/* ==================== 登录页独立样式 ==================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2330;
    background: #f5f6fa;
}

.login-page {
    height: 100vh;                              /* 严格视口高, 不允许超出滚动 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;                    /* 登录卡垂直居中 */
    /* 顶部 80px: 给顶部 460x80 距顶 40px 的 fixed 广告留缓冲 */
    /* 底部 80px: 给底部 fixed 的 site-footer (版权 + 备案) 留缓冲 */
    padding: 80px 24px 80px;
    overflow: hidden;                           /* 保险: 即使卡片过大也不溢出 */
    background:
        radial-gradient(1200px 600px at 10% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(900px 500px at 100% 100%, rgba(236, 72, 153, 0.14), transparent 60%),
        linear-gradient(180deg, #eef0f7 0%, #f5f6fa 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px -20px rgba(20, 20, 60, 0.18), 0 4px 16px rgba(20, 20, 60, 0.06);
    padding: 24px 28px 18px;                     /* 原 32 32 24, 紧凑 8~10px */
    animation: cardIn 0.35s ease-out;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.login-brand { text-align: center; margin-bottom: 16px; }    /* 原 24 -> 16, 省 8 */
.brand-icon { font-size: 36px; line-height: 1; margin-bottom: 6px; } /* 原 44 8 -> 36 6 */
.login-brand h1 { font-size: 20px; font-weight: 600; letter-spacing: 0.5px; }
.brand-sub { color: #888; font-size: 12px; margin-top: 4px; }

.login-tabs {
    display: flex;
    background: #f1f2f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;                        /* 原 20 -> 16 */
}
.tab-btn {
    flex: 1;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: #5b6271;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 2px 6px rgba(20, 20, 60, 0.08);
    font-weight: 500;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: paneIn 0.25s ease-out; }
@keyframes paneIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.field { margin-bottom: 12px; }                           /* 原 14 -> 12, 5 个字段省 10px */
.field label {
    display: block;
    font-size: 13px;
    color: #5b6271;
    margin-bottom: 6px;
    font-weight: 500;
}
.field input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e5ec;
    border-radius: 8px;
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.15s;
    outline: none;
}
.field input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.field input::placeholder { color: #b0b6c2; }

.error-msg {
    color: #ef4444;
    font-size: 13px;
    min-height: 18px;
    margin-bottom: 8px;
}

.primary-btn {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 2px;
    transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 6px 14px -4px rgba(99, 102, 241, 0.4);
}
.primary-btn:hover  { box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.5); }
.primary-btn:active { transform: translateY(1px); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.footer-tip {
    text-align: center;
    color: #aab0bc;
    font-size: 12px;
    margin-top: 12px;                            /* 原 18 -> 12 */
}
.footer-tip-sub { margin-top: 4px; }
.footer-tip .buy-link {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    transition: all 0.15s;
    display: inline-block;
}
.footer-tip .buy-link:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}
.field-extra {
    float: right;
    font-weight: 400;
}
.inline-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.15s;
}
.inline-link:hover { color: #4338ca; text-decoration: underline; }

/* ==================== 登录页底部版权 ==================== */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eef0f5;
}
.login-footer p {
    font-size: 12px;
    color: #aab0bc;
    line-height: 1.8;
}
.login-footer a {
    color: #8890a0;
    text-decoration: none;
    transition: color 0.15s;
}
.login-footer a:hover {
    color: #4f46e5;
}

/* ==================== 手机号 + 验证码 UI ==================== */
.hidden { display: none !important; }

/* 验证码输入行: input + 获取按钮 平行布局 */
.sms-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.sms-row input { flex: 1; min-width: 0; }
.sms-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #6366f1;
    background: #ffffff;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    min-width: 110px;
}
.sms-btn:hover:not(:disabled) {
    background: #6366f1;
    color: #ffffff;
}
.sms-btn:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    background: #f9fafb;
    cursor: not-allowed;
}

/* 登录 Tab 内部模式切换 (用户名密码 / 手机号+验证码) */
.tab-mode-switch {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}
.tab-mode-switch a {
    display: inline-block;
    padding: 4px 0;
    transition: color 0.15s;
}

/* ==================== 注册两步式表单 ==================== */
.register-step {
    animation: stepIn 0.3s ease-out;
}
@keyframes stepIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.step-hint {
    text-align: center;
    color: #6366f1;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 8px 0;
    background: #eef2ff;
    border-radius: 8px;
    border: 1px dashed #c7d2fe;
}

/* 步骤 2 底部: 上一步 + 注册 (并排) */
.btn-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.btn-row .flex-grow { flex: 1; }
.secondary-btn {
    flex-shrink: 0;
    width: auto;
    min-width: 110px;
    height: 42px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #5b6271;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 1px;
}
.secondary-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.secondary-btn:active { transform: translateY(1px); }

/* ==================== SMS 验证码防刷用算式 Modal ==================== */
.sms-captcha-mask {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    animation: smsCapFade 0.18s ease-out;
}
@keyframes smsCapFade { from { opacity: 0 } to { opacity: 1 } }
.sms-captcha-card {
    background: #ffffff;
    width: min(420px, calc(100vw - 32px));
    border-radius: 12px;
    padding: 24px 22px 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
    color: #1f2937;
}
.sms-captcha-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #1f2937;
}
.sms-captcha-card .sms-captcha-sub {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}
.sms-captcha-card .sms-captcha-q {
    display: flex; align-items: center; justify-content: space-between;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.sms-captcha-card .sms-captcha-question {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1f2937;
}
.sms-captcha-card .sms-captcha-refresh {
    background: transparent; border: none; cursor: pointer;
    color: #4f46e5; font-size: 13px; padding: 4px 8px;
}
.sms-captcha-card .sms-captcha-refresh:hover { color: #312e81; text-decoration: underline; }
.sms-captcha-card .sms-captcha-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.sms-captcha-card .sms-captcha-input:focus {
    outline: none; border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.sms-captcha-card .sms-captcha-error {
    color: #ef4444; font-size: 13px; min-height: 18px; margin: 0 0 12px;
}
.sms-captcha-card .sms-captcha-btns {
    display: flex; gap: 10px;
}
.sms-captcha-card .sms-captcha-btns button {
    flex: 1; height: 42px; border-radius: 8px; cursor: pointer;
    font-size: 14px; font-weight: 500; border: 1px solid transparent;
    transition: all 0.15s;
}
.sms-captcha-card .sms-captcha-btns .cancel {
    background: #ffffff; border-color: #d1d5db; color: #5b6271;
}
.sms-captcha-card .sms-captcha-btns .cancel:hover { background: #f3f4f6; }
.sms-captcha-card .sms-captcha-btns .ok {
    background: #4f46e5; color: #ffffff;
}
.sms-captcha-card .sms-captcha-btns .ok:hover { background: #4338ca; }
.sms-captcha-card .sms-captcha-btns button:disabled { opacity: 0.5; cursor: not-allowed; }


/* ==================== 注册协议勾选区 ==================== */
.agree-row {
    margin: 14px 0 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}
.agree-row.agree-row-error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: agreeShake 0.32s ease-in-out;
}
@keyframes agreeShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.agree-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}
.agree-checkbox input[type="checkbox"] {
    /* 真实 input 隐藏, 用 .agree-box 自定义样式 */
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}
.agree-box {
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 1px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: all 0.15s;
}
.agree-checkbox input[type="checkbox"]:checked + .agree-box {
    background: #4f46e5;
    border-color: #4f46e5;
}
.agree-checkbox input[type="checkbox"]:checked + .agree-box::after {
    content: '';
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.agree-checkbox input[type="checkbox"]:focus-visible + .agree-box {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    border-color: #4f46e5;
}
.agree-text {
    flex: 1;
}
.agree-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.15s;
}
.agree-link:hover {
    border-bottom-color: #4f46e5;
}

/* ==================== 协议/免责 模态框 ==================== */
.legal-modal-mask {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    animation: legalFade 0.18s ease-out;
    padding: 16px;
}
@keyframes legalFade { from { opacity: 0 } to { opacity: 1 } }
.legal-modal-card {
    background: #ffffff;
    width: min(680px, 100%);
    max-height: min(82vh, 720px);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: legalSlideUp 0.22s ease-out;
}
@keyframes legalSlideUp {
    from { transform: translateY(12px); opacity: 0 }
    to   { transform: translateY(0); opacity: 1 }
}
.legal-modal-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    flex-shrink: 0;
}
.legal-modal-title {
    margin: 0 0 4px;
    font-size: 17px;
    color: #1e293b;
    font-weight: 600;
}
.legal-modal-version {
    font-size: 12px;
    color: #64748b;
}
.legal-modal-body {
    padding: 18px 24px 22px;
    overflow-y: auto;
    flex: 1 1 auto;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.72;
}
.legal-modal-body p {
    margin: 0 0 12px;
}
.legal-modal-body h4 {
    margin: 18px 0 8px;
    font-size: 14.5px;
    color: #1e293b;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid #4f46e5;
}
.legal-modal-body h4:first-child { margin-top: 4px; }
.legal-modal-body ol, .legal-modal-body ul {
    margin: 6px 0 12px;
    padding-left: 22px;
}
.legal-modal-body ol li, .legal-modal-body ul li {
    margin-bottom: 4px;
}
.legal-modal-body ul { list-style-type: disc; }
.legal-modal-body strong { color: #1e293b; }
.legal-footer {
    margin-top: 18px !important;
    text-align: center;
    color: #94a3b8;
    font-size: 12.5px;
    font-style: italic;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.legal-modal-foot {
    padding: 14px 22px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
    display: flex; justify-content: flex-end;
}
.legal-modal-close {
    height: 38px;
    padding: 0 22px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.legal-modal-close:hover { background: #4338ca; }
.legal-modal-close:active { transform: translateY(1px); }

/* 模态框内滚动条美化 (Webkit) */
.legal-modal-body::-webkit-scrollbar { width: 8px; }
.legal-modal-body::-webkit-scrollbar-track { background: #f1f5f9; }
.legal-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.legal-modal-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }


/* ===== 登录页顶部广告位 (与页面一体的内嵌信息条: 460x80, 距顶 40px) ===== */
.login-ad-top-slot {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    height: 80px;
    z-index: 100;
    pointer-events: none;  /* 容器不接收事件, 仅 banner 卡片接收 */
}
.login-ad-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #1f2330;
    text-decoration: none;
    box-shadow: 0 6px 18px -8px rgba(20, 20, 60, 0.12), 0 1px 4px rgba(20, 20, 60, 0.05);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    pointer-events: auto;  /* 卡片本身可点击 */
    box-sizing: border-box;
    overflow: hidden;
}
.login-ad-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(20, 20, 60, 0.18), 0 2px 6px rgba(20, 20, 60, 0.08);
    border-color: #c7d2fe;
}
.login-ad-badge-top {
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    padding: 2px 6px;
    flex-shrink: 0;
    font-weight: 500;
}
.login-ad-banner-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f6fa;
    border: 1px solid #f0f1f5;
}
.login-ad-banner-body {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.login-ad-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2330;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.login-ad-banner-desc {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.login-ad-banner-arrow {
    color: #9ca3af;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 400;
    transition: transform 0.18s, color 0.18s;
}
.login-ad-banner:hover .login-ad-banner-arrow {
    transform: translateX(2px);
    color: #6366f1;
}
@media (max-width: 480px) {
    /* 顶部广告条: 跟随屏幕宽度, 不超屏 */
    .login-ad-top-slot {
        width: calc(100vw - 32px);
        top: 16px;                                  /* 8px 顶部安全 + 80px 自适应 */
        height: auto;
        min-height: 64px;
        max-height: 88px;
    }
    .login-ad-banner { padding: 0 12px; gap: 8px; }
    .login-ad-banner-img { width: 40px; height: 40px; }
    .login-ad-banner-title { font-size: 13px; }
    .login-ad-banner-desc { font-size: 11px; -webkit-line-clamp: 1; }

    /* 登录卡内边距收紧 */
    .login-card { padding: 20px 22px 14px; }
    .login-brand h1 { font-size: 18px; }
    .brand-icon { font-size: 32px; }

    /* 登录按钮更大 (touch) */
    .btn-primary, button[type="submit"].login-btn {
        min-height: 48px;
        font-size: 16px;
    }

    /* 二维码登录等额外的按钮 */
    .login-btn, .sms-captcha-submit, button.btn {
        min-height: 48px;
    }

    /* 输入框字号 ≥16px 防 iOS Safari 缩放 (虽然全局已设, 这里加 !important 强保) */
    .field input { font-size: 16px !important; min-height: 44px; }
}

//* 底部广告位样式已移除 (2026-07-26, 用户要求) */


/* ===== 登录页底部版权: 固定贴底, 不占文档流 ===== */
/* header-shared.js 注入的 <div id="appFooterSlot"></div> 会替换为 <footer class="site-footer"> */
#appFooterSlot,
#appFooterSlot.site-footer,
#appFooterSlot footer.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    text-align: center;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
/* 但 footer 内部的链接要可点 */
#appFooterSlot .site-footer-inner {
    pointer-events: auto;
}
/* 登录页专属: 紧凑 footer (不影响其他页面, 因其他页面 site-footer 是普通文档流) */
#appFooterSlot.site-footer {
    padding: 8px 12px 12px !important;
    background: transparent !important;
}
#appFooterSlot .site-footer-inner {
    font-size: 11px !important;
    padding: 4px 14px !important;
    gap: 6px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}

/* === P7: 登录页 iOS 异形屏适配 (仅 ≤768px, PC 不受影响) === */
@media (max-width: 768px) {
    @supports (padding-top: env(safe-area-inset-top)) {
        .login-page {
            padding-top: max(80px, calc(40px + env(safe-area-inset-top) + 80px));
            padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 80px));
        }
    }
}

/* 极窄屏 (≤360px, e.g. iPhone SE 1st gen / 小米小屏) */
@media (max-width: 360px) {
    .login-ad-top-slot {
        width: calc(100vw - 16px);
        top: 12px;
        min-height: 56px;
        max-height: 72px;
    }
    .login-ad-banner-img { width: 36px; height: 36px; }
    .login-ad-banner-title { font-size: 12px; }
    .login-card { padding: 18px 18px 12px; }
}

/* 横屏 (mobile landscape) - 顶部广告 + 登录卡更紧凑 */
@media (orientation: landscape) and (max-height: 500px) {
    .login-page {
        padding: 16px 24px;
    }
    .login-ad-top-slot {
        width: min(420px, calc(100vw - 48px));
        top: 12px;
        min-height: 56px;
        max-height: 72px;
    }
    .login-card { padding: 16px 24px 14px; }
}

/* ===== 登录页顶部广告位 (与页面一体的内嵌信息条: 460x80, 距顶 40px) ===== */
.login-ad-top-slot {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    height: 80px;
    z-index: 100;
    pointer-events: none;  /* 容器不接收事件, 仅 banner 卡片接收 */
}
.login-ad-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #1f2330;
    text-decoration: none;
    box-shadow: 0 6px 18px -8px rgba(20, 20, 60, 0.12), 0 1px 4px rgba(20, 20, 60, 0.05);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    pointer-events: auto;  /* 卡片本身可点击 */
    box-sizing: border-box;
    overflow: hidden;
}
.login-ad-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(20, 20, 60, 0.18), 0 2px 6px rgba(20, 20, 60, 0.08);
    border-color: #c7d2fe;
}
.login-ad-badge-top {
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    padding: 2px 6px;
    flex-shrink: 0;
    font-weight: 500;
}
.login-ad-banner-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f6fa;
    border: 1px solid #f0f1f5;
}
.login-ad-banner-body {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.login-ad-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2330;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.login-ad-banner-desc {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.login-ad-banner-arrow {
    color: #9ca3af;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 400;
    transition: transform 0.18s, color 0.18s;
}
.login-ad-banner:hover .login-ad-banner-arrow {
    transform: translateX(2px);
    color: #6366f1;
}
@media (max-width: 480px) {
    /* 顶部广告条: 跟随屏幕宽度, 不超屏 */
    .login-ad-top-slot {
        width: calc(100vw - 32px);
        top: 16px;                                  /* 8px 顶部安全 + 80px 自适应 */
        height: auto;
        min-height: 64px;
        max-height: 88px;
    }
    .login-ad-banner { padding: 0 12px; gap: 8px; }
    .login-ad-banner-img { width: 40px; height: 40px; }
    .login-ad-banner-title { font-size: 13px; }
    .login-ad-banner-desc { font-size: 11px; -webkit-line-clamp: 1; }

    /* 登录卡内边距收紧 */
    .login-card { padding: 20px 22px 14px; }
    .login-brand h1 { font-size: 18px; }
    .brand-icon { font-size: 32px; }

    /* 登录按钮更大 (touch) */
    .btn-primary, button[type="submit"].login-btn {
