/* ============================================================
 * Login.css �?Login.html 独立样式
 * ============================================================ */

/* 覆盖 viewport-adapt.js 的根字号上限�?4px�?8px），手机�?vw/9.8 保持不变 */
/* iOS 14 降级：min() 需�?Safari 14.1+（iOS 14.5+），低版本用�?calc 回退 */
/* iOS Safari/安卓微信: 用动态视口单位 100dvh 自适应可视高度，避免工具栏变化导致布局跳动与背景溢出 */
html { font-size: calc(100vw / 9.8); }
html { font-size: min(calc(100vw / 9.8), 48px); }
html {
            overflow-x: hidden;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
html::-webkit-scrollbar { display: none; }
*, *::before, *::after {
            -webkit-tap-highlight-color: transparent !important;
            box-sizing: border-box;
        }
body {
            margin: 0; padding: 0;
            width: 100%;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(to bottom right,
                #FDDCA7 0%, #FEB19E 30%, #D8AEE0 60%, #99C4F2 100%
            );
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            /* iOS Safari: position:relative 确保 overflow-x:hidden 生效 */
            position: relative;
        }
body::-webkit-scrollbar { display: none; /* Chrome/Safari */ }
/* ══════ 爪印呼吸动画 ══════ */
        @keyframes pawPulse {
            0%, 100% { transform: translateY(0) scale(1); }
            50%      { transform: translateY(-0.16rem) scale(1.08); }
        }
/* ══════ Logo图标（动画面�?/ 支付宝区域共用） ══════ */
.logo-icon {
            width: 1.83rem; height: 1.83rem;
            border-radius: 50%; margin: 0 auto 0.31rem;
            display: flex; align-items: center; justify-content: center;
            background-color: var(--theme-color);
            box-shadow: 0 0.21rem 0.52rem var(--theme-color-025);
        }
.logo-icon svg {
            width: 60%; height: 60%;
        }
/* 动画面板：logo-icon 填满 */
        .login-anim-panel .logo-icon {
            width: 100%; height: 100%;
            display: flex; align-items: center; justify-content: center;
            background: none; border-radius: 0; box-shadow: none;
        }
.login-anim-panel .logo-icon svg {
            width: 60%; height: 60%;
        }
/* 支付宝区�?logo-icon */
        .alipay-area .logo-icon {
            background: transparent;
            overflow: visible;
        }
.alipay-area .logo-icon svg {
            display: block;
            width: 100%; height: 100%;
            overflow: visible;
        }
.circle-bg {
            fill: var(--theme-color);
            color: var(--theme-color);
        }
/* ══════ pageContainer：宽度撑满，高度自适应内容 ══════ */
        .page-container {
            width: 100%;
            overflow-x: hidden;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
        }
/* ══════ 父级居中卡片 ══════ */
        .login-wrapper {
            min-height: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
        }
.login-wrapper::-webkit-scrollbar { display: none; }
.login-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            max-width: 12rem;
            box-sizing: border-box;
            margin: 0;
            flex-shrink: 0;
            min-height: 0;
        }
/* ══════ 动画左（2/3�?+ 卡片父框右（1/3），弹性等�?══════ */
        .login-row {
            min-height: 0;
            width: 100%;
            box-sizing: border-box;
        }
.login-anim-panel {
            overflow: hidden;
            transition: flex 0.35s ease-out;
        }
.login-anim-inner {
            width: 100%; height: 100%;
            display: flex; align-items: center; justify-content: center;
            overflow: hidden;
        }
.login-card-box {
            min-height: 0;
        }
/* ══════ 宽屏 ══════ */
        @media (min-width: 768px) {
            .login-card {
                max-width: 14rem;
                min-width: 0;
            }
.login-card-box {
                min-width: 10rem;
            }
.form-area {
                flex: 0 0 auto;
                width: auto;
                max-width: 12rem;
            }
.input-group input {
                width: 100%;
            }
        }
/* ══════ 超大屏：加宽卡片 ══════ */
        @media (min-width: 1200px) {
            .login-card {
                max-width: 18rem;
            }
        }
.footer-card .tip2-text {
            color: rgba(255,255,255,0.65);
            font-size: 15px;
        }
/* ══════ 小屏（≤480px）：紧凑间距 ══════ */
        @media (max-width: 480px) {
            body {
                padding: 0 0.2rem;
            }
.login-wrapper {
                justify-content: center;
            }
.login-card {
                width: 100%;
                margin: 0;
            }
.tip2 {
                margin-top: 18px;
            }
.form-area {
                padding: 0.37rem 0.37rem 0.7rem;
                margin-top: 0.2rem;
                border-radius: 0.42rem;
                width: 100%;
            }
.input-group {
                margin-bottom: 0.42rem;
            }
.input-group input {
                font-size: 0.37rem;
                height: 1.05rem;
            }
.tab-bar .tab {
                padding: 0.21rem 0.31rem;
                font-size: 0.32rem;
            }
.btn {
                height: 1.1rem;
                font-size: 0.36rem;
            }
.link {
                height: 1rem;
                font-size: 0.32rem;
            }
.footer-card {
                padding: 0;
            }
.footer-card .tip2-text {
                font-size: 0.32rem;
            }
.tip {
                font-size: 0.29rem;
                margin-top: 0.21rem;
            }
        }
/* ══════ 表单区域 ══════ */
        .form-area {
            display: flex; flex-direction: column;
            align-items: stretch;
            width: 100%;
            max-width: 8rem;
            background: #fff;
            border-radius: 0.63rem;
            padding: 0.42rem 0.42rem 0.8rem;
            margin-top: 0.56rem;
            position: relative; z-index: 2;
            color: var(--theme-color);
            box-shadow: 0 0.1rem 0.52rem var(--theme-color-008);
        }
/* ── 顶部选项�?── */
        .tab-bar {
            display: flex;
            justify-content: center;
            margin: 0 0 0.37rem;
            background: transparent;
            border: none;
            border-radius: 9999px;
            padding: 0.10rem;
            backdrop-filter: blur(0.21rem);
            -webkit-backdrop-filter: blur(0.21rem);
        }
.tab-bar .tab {
            flex: 0 0 auto; min-width: 0; text-align: center;
            padding: 0.24rem 0.30rem;
            font-size: 0.32rem; font-weight: 600;
            color: rgba(120,100,140,0.60);
            background: transparent;
            border-radius: 9999px;
            cursor: pointer; user-select: none;
            transition: background 0.30s cubic-bezier(0.4,0,0.2,1), box-shadow 0.30s cubic-bezier(0.4,0,0.2,1);
            display: flex; align-items: center; justify-content: center;
            white-space: nowrap;
        }
/* tab 间距：用 margin 代替 gap（兼�?iOS 14�?*/
.tab-bar .tab + .tab { margin-left: 0.34rem; }
.tab-bar .tab .tab-icon { margin-right: 0.12rem; }
.tab-bar .tab .tab-icon {
            width: 0.42rem; height: 0.42rem;
            flex-shrink: 0;
        }
/* 手机登录入口通过底部 tip 跳转 */
.tab-bar .tab.active {
            color: var(--theme-color);
            background: rgba(255,255,255,0.65);
            font-weight: 700;
        }
/* ── 输入�?── */
        .input-group {
            margin-bottom: 0.42rem; position: relative;
        }
.input-group .input-icon {
            position: absolute; left: 0.42rem; top: 50%;
            transform: translateY(-50%);
            width: 0.47rem; height: 0.47rem;
            z-index: 1; pointer-events: none;
            display: flex; align-items: center; justify-content: center;
        }
.input-group .input-icon svg {
            width: 100%; height: 100%;
            stroke: var(--theme-light);
        }
.input-group input {
            display: block;
            width: 100%; height: 1.15rem;
            border: 0.054rem solid var(--theme-light);
            border-radius: 9999px;
            padding: 0 0.42rem 0 1.05rem;
            font-size: 0.39rem; color: var(--theme-color);
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(0.16rem);
            -webkit-backdrop-filter: blur(0.16rem);
            transition: background 0.2s;
            -webkit-appearance: none;
        }
.input-group input:focus {
            outline: none;
            background: rgba(255,255,255,0.92);
            border-color: var(--theme-color);
        }
.input-group input::placeholder {
            font-size: 0.37rem;
            color: var(--theme-light);
        }
/* ── 密码�?+ 内嵌眼睛切换 ── */
        .pwd-wrap { position: relative; width: 100%; line-height: 0; }
.pwd-wrap input { width: 100%; padding-right: 1.05rem; display: block; }
.pwd-eye {
            position: absolute;
            top: 50%;
            right: 0.31rem;
            transform: translateY(-50%);
            width: 0.63rem;
            height: 0.63rem;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            color: var(--theme-light);
            -webkit-tap-highlight-color: transparent;
        }
.pwd-eye:active { opacity: 0.6; }
.pwd-eye svg { width: 0.52rem; height: 0.52rem; display: block; }
.pwd-wrap.has-text .pwd-eye { display: flex; }
/* ── 手机号输入 + 内嵌眼睛（脱敏/明文切换） ── */
        .phone-wrap { position: relative; width: 100%; line-height: 0; }
.phone-wrap input { width: 100%; padding-right: 1.05rem; display: block; }
.phone-wrap.has-text .pwd-eye { display: flex; }
/* ── 手机验证码登录：验证码输入 + 获取验证码按钮 ── */
        .sms-code-wrap {
            display: flex;
            align-items: center;
        }
        .sms-code-wrap > * + * { margin-left: 0.21rem; }
.sms-code-wrap input {
            flex: 1 1 auto;
            min-width: 0;
        }
.sms-get-code {
            flex: 0 0 auto;
            height: 0.94rem;
            padding: 0 0.32rem;
            border: none;
            border-radius: 9999px;
            background: var(--theme-color);
            color: #fff;
            font-size: 0.33rem;
            font-weight: 600;
            white-space: nowrap;
            cursor: pointer;
            -webkit-appearance: none;
        }
.sms-get-code:active { opacity: 0.85; }
.sms-get-code:disabled {
            background: #c9c9c9;
            cursor: not-allowed;
            opacity: 0.95;
        }
/* ── 操作�?── */
        .action-row {
            display: flex; justify-content: space-between;
            align-items: center; margin-bottom: 0.6rem;
            white-space: nowrap;
        }
.remember-me {
            display: flex; align-items: center;
            cursor: pointer; user-select: none;
            font-size: 0.34rem;
            color: var(--theme-light);
        }
.remember-me input[type="checkbox"] { display: none; }
.check-dot {
            width: 0.42rem; height: 0.42rem;
            border: 0.054rem solid var(--theme-light);
            border-radius: 50%; margin-right: 0.16rem;
            position: relative; transition: all 0.2s;
            flex-shrink: 0;
        }
.check-dot::after {
            content: ''; position: absolute;
            left: 50%; top: 50%;
            width: 0.26rem; height: 0.26rem;
            border-radius: 50%;
            background: var(--theme-color);
            transform: translate(-50%, -50%) scale(0);
            transition: transform 0.2s ease;
        }
.remember-me input:checked + .check-dot {
            background: var(--theme-color-010);
            border-color: var(--theme-color);
        }
.remember-me input:checked + .check-dot::after {
            transform: translate(-50%, -50%) scale(1);
        }
.forgot-password {
            text-decoration: none;
            font-size: 0.34rem; font-weight: 500;
            color: var(--theme-light);
        }
.forgot-password:active { opacity: 0.6; }
/* ── 按钮：全圆角 ── */
        .btn {
            width: 100%; height: 1.2rem;
            border: none; border-radius: 9999px;
            color: #fff; font-size: 0.37rem; font-weight: 600;
            letter-spacing: 0.05rem;
            cursor: pointer;
            transition: transform 0.2s;
            background-color: var(--theme-color);
            box-shadow: 0 0.1rem 0.31rem var(--theme-color-030);
            -webkit-appearance: none;
        }
.btn:active {
            box-shadow: 0 0.05rem 0.16rem var(--theme-color-020);
        }
.link {
            width: 100%; height: 1.1rem;
            border: 0.054rem solid var(--theme-color-045);
            border-radius: 9999px;
            background: transparent;
            font-size: 0.34rem; font-weight: 500;
            text-align: center; cursor: pointer; text-decoration: none;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s;
            color: var(--theme-color);
            -webkit-appearance: none;
        }
.link:active {
            background: rgba(255,255,255,0.5);
        }
/* ── 支付宝区�?── */
        .alipay-area {
            text-align: center; padding: 0 0;
        }
.alipay-tip-text {
            font-size: 0.47rem; font-weight: 700;
            text-align: center;
            padding: 0; line-height: 1.6;
            color: var(--theme-color);
        }
.other-login-hint {
            text-align: center;
            font-size: 0.34rem; margin-top: 0.26rem;
            user-select: none; cursor: pointer;
            color: var(--theme-color);
            -webkit-tap-highlight-color: transparent;
        }
.other-login-hint:active { opacity: 0.6; }
/* ── auth-wrap：固定高度，两面板一�?── */
        .auth-wrap {
            display: block;
            position: relative;
            min-height: 5rem;
        }
.auth-wrap > .auth-area {
            width: 100%; min-width: 0; padding: 0 0.05rem;
            transition: opacity .28s ease;
            position: absolute; top: 0; left: 0;
            height: 100%;
        }
#authWrap[data-mode="password"] > #passwordArea {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
#authWrap[data-mode="password"] > #alipayArea {
            display: none;
        }
#authWrap[data-mode="alipay"] > #passwordArea {
            display: none;
        }
#authWrap[data-mode="alipay"] > #alipayArea {
            display: flex;
        }
#alipayArea {
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
        }
#phoneLoginArea {
            display: none;
        }
#authWrap[data-mode="phone"] > #passwordArea {
            display: none;
        }
#authWrap[data-mode="phone"] > #alipayArea {
            display: none;
        }
#authWrap[data-mode="phone"] > #phoneLoginArea {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
/* ── 支付宝扫码登录二维码 ── */
        .alipay-qr-wrap {
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
        }
        .alipay-qr-box {
            background: #fff; padding: 0.24rem;
            border-radius: 0.36rem;
            box-shadow: 0 0.21rem 0.52rem rgba(0,0,0,0.08);
            line-height: 0;
            display: flex; align-items: center; justify-content: center;
        }
        .alipay-qr-box img,
        .alipay-qr-box canvas {
            display: block; max-width: 2.8rem; max-height: 2.8rem;
        }
        .alipay-qr-tip {
            margin-top: 0.3rem; font-size: 0.3rem; color: var(--theme-light);
        }
        .alipay-qr-refresh {
            margin-top: 0.22rem; font-size: 0.28rem; color: var(--theme-color);
            cursor: pointer; text-decoration: underline;
            -webkit-tap-highlight-color: transparent; user-select: none;
        }
/* ── 提示 + 协议 ── */
        .tip {
            text-align: center; font-size: 0.3rem;
            margin-top: 0.24rem;
            color: var(--theme-light);
            flex-shrink: 0;
        }
@media (max-width: 360px) {
            .tip { white-space: normal; word-break: break-all; }
        }
/* ── 底部备案卡片 ── */
        @keyframes slideInLeft {
            0%   { opacity: 0; transform: translateX(-1.2rem); }
            100% { opacity: 1; transform: translateX(0); }
        }
.footer-card {
            background: transparent;
            border-radius: 0;
            padding: 0;
            margin: 0;
            width: 100%;
            max-width: 8.8rem;
            text-align: center;
            line-height: 1.6;
            position: relative; z-index: 2;
        }
.footer-card a {
            color: inherit; text-decoration: none;
            pointer-events: auto;
        }
.footer-card .beian-icon {
            width: 0.34rem; height: 0.34rem;
            vertical-align: -0.0185rem; margin-right: 0.05rem;
            opacity: 1;
        }
.footer-text-box {
            display: block;
        }
/* ══════ 底部备案 ══════ */
        .tip2 {
            display: flex;
            flex-shrink: 0;
            width: 100%;
            justify-content: center;
            position: relative; z-index: 2;
            margin-top: auto;
            /* iOS Safari: 底部安全区留白 + 额外底部间距，防止备案被横条遮挡 */
            padding-bottom: calc(env(safe-area-inset-bottom) + 40px);
        }
/* 底部渐变层：固定屏幕底部，撑满视口宽度（iOS Safari 兼容：用真实 div 而非伪元素） */
.bottom-gradient {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            height: 50vh;
            background: linear-gradient(to top, rgba(0,0,0,0.08), transparent);
            pointer-events: none;
            z-index: 1;
            -webkit-transform: translateZ(0);
        }
/* ── 弹窗 ── */
        #infoPopup {
            display: none; position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.35); z-index: 99999;
            align-items: center; justify-content: center;
        }

/* 注册提示动画 */
@keyframes regTipFadeOut{from{opacity:1}
to{opacity:0}}

/* 注册提示动画 */
@keyframes regTipFadeIn{from{opacity:0}
to{opacity:1}}
@keyframes regTipFadeOut{from{opacity:1}
to{opacity:0}}
@keyframes regTipPopIn{from{opacity:0;transform:scale(.8) translateY(0.714rem)}
to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes regTipPopOut{from{opacity:1;transform:scale(1) translateY(0)}
to{opacity:0;transform:scale(.8) translateY(0.714rem)}}

/* 注册提示动画 */
@keyframes regTipFadeIn{from{opacity:0}
to{opacity:1}}
@keyframes regTipFadeOut{from{opacity:1}
to{opacity:0}}
@keyframes regTipPopIn{from{opacity:0;transform:scale(.8) translateY(0.714rem)}
to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes regTipPopOut{from{opacity:1;transform:scale(1) translateY(0)}
to{opacity:0;transform:scale(.8) translateY(0.714rem)}}