/* ============================================================
   用户相关样式：登录 / 注册 / 协议页
   ============================================================ */

/* ---------- 登录页 ---------- */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(110, 220, 255, 0.35), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(46, 201, 194, 0.35), transparent 60%),
        linear-gradient(150deg, #0b86f5 0%, #1498e8 45%, #2ec9c2 100%);
    padding: var(--space-md);
    padding-top: 64px;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰：光斑 + 细网格 */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(2px);
}
.auth-page::before {
    width: 460px;
    height: 460px;
    top: -140px;
    right: -120px;
}
.auth-page::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    left: -90px;
}

/* ---------- 顶部返回按钮 ---------- */
.auth-topbar {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: background 0.2s, transform 0.2s;
}
.auth-topbar:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.32);
    transform: translateX(-2px);
}
.auth-topbar svg { width: 16px; height: 16px; }

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: auto 0;
    background: var(--c-surface);
    border-radius: 20px;
    padding: 40px 36px 28px;
    box-shadow:
        0 18px 60px rgba(0, 30, 80, 0.22),
        0 2px 0 rgba(255, 255, 255, 0.6) inset;
    position: relative;
    z-index: 1;
    animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    overflow: hidden;
}

/* 卡片顶部品牌色装饰条 */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1890ff, #36cfc9, #1890ff);
    background-size: 200% 100%;
    animation: brand-flow 4s linear infinite;
}

@keyframes brand-flow {
    from { background-position: 0% 0%; }
    to   { background-position: 200% 0%; }
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.auth-header .logo {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    border-radius: 16px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    box-shadow:
        0 8px 20px rgba(24, 144, 255, 0.35),
        0 0 0 4px rgba(24, 144, 255, 0.08);
    position: relative;
}
.auth-header .logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 60%);
    pointer-events: none;
}

.auth-header h1 {
    font-size: 22px;
    color: var(--c-text);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.auth-header p {
    font-size: 13px;
    color: var(--c-text-3);
}

.auth-header .logo-lock {
    font-size: 26px;
    background: linear-gradient(135deg, #1890ff, #36cfc9);
}

/* ---------- 登录方式 Tab（分段控制器） ---------- */
.auth-tabs {
    display: flex;
    background: var(--c-bg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: var(--space-lg);
    position: relative;
}
.auth-tab {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    color: var(--c-text-3);
    border-radius: 8px;
    transition: color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.15s;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.auth-tab:hover { color: var(--c-primary); }
.auth-tab.active {
    background: var(--c-surface);
    color: var(--c-primary);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(24, 144, 255, 0.18);
    transform: scale(1.02);
}

/* ---------- 登录面板切换 ---------- */
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fade-in 0.3s ease; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 忘记密码链接行 ---------- */
.auth-extra {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.auth-extra a { font-size: 13px; }

/* ---------- 密码显隐按钮 ---------- */
.form-input.has-toggle { padding-right: 42px; }
.pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-3);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.pwd-toggle:hover { color: var(--c-primary); background: var(--c-primary-light); }
.pwd-toggle svg {
    width: 18px;
    height: 18px;
    position: absolute;
}
/* 默认（密文）显示睁眼图标；切换后（.show 明文）显示闭眼图标 */
.pwd-toggle .eye-close { display: none; }
.pwd-toggle.show .eye-open { display: none; }
.pwd-toggle.show .eye-close { display: block; }

/* ---------- 登录主按钮 ---------- */
.btn-login {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1890ff 0%, #13b3c9 100%);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.32);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    position: relative;
    overflow: hidden;
}
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
    pointer-events: none;
}
.btn-login:hover {
    background: linear-gradient(135deg, #0f7fe6 0%, #0ea2b6 100%);
    box-shadow: 0 10px 24px rgba(24, 144, 255, 0.42);
    transform: translateY(-1px);
    filter: brightness(1.04);
}
.btn-login:active { transform: translateY(0); filter: brightness(0.96); }
.btn-login .loading {
    margin-right: 6px;
    border-color: rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
}

/* 输入框前缀图标 */
.form-input-wrap {
    position: relative;
}
.form-input-wrap .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-3);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: color 0.2s;
}
.form-input-wrap .form-input {
    padding-left: 40px;
}
.form-input-wrap:focus-within .icon { color: var(--c-primary); }

/* 聚焦态加强 */
.form-input-wrap .form-input {
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input-wrap .form-input:focus {
    border-color: var(--c-primary);
    background: var(--c-surface);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
}

/* 验证码行 */
.code-row {
    display: flex;
    gap: var(--space-sm);
}
.code-row .form-input-wrap { flex: 1; }
.code-row .btn {
    flex-shrink: 0;
    width: 130px;
    padding: 10px 12px;
    font-size: 13px;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.code-row .btn:hover { transform: translateY(-1px); }
.code-row .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 图形验证码行 */
.captcha-row {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
}
.captcha-row .form-input-wrap { flex: 1; }
.captcha-row img {
    width: 120px;
    height: 42px;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    transition: border-color 0.2s, transform 0.15s;
}
.captcha-row img:hover {
    border-color: var(--c-primary);
    transform: translateY(-1px);
}

/* 协议勾选 */
.auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--c-text-3);
    margin: var(--space-md) 0;
    line-height: 1.5;
    cursor: pointer;
}
.auth-agree label {
    cursor: pointer;
    user-select: none;
}
.auth-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--c-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.auth-agree a { font-weight: 500; }

/* 切换链接 */
.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 13px;
    color: var(--c-text-3);
}

/* 移动端：底部 fixed Tab 占位
   - .auth-page min-height:100vh 自身填满 viewport
   - .mobile-tabbar-spacer 在 .auth-page 外部，无法保护内部 .auth-footer
   - 加 padding-bottom 避免 .auth-footer 在窄屏滚动时被 tabbar 遮挡 */
@media (max-width: 768px) {
    .auth-page {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

.auth-footer a {
    color: var(--c-primary);
    margin-left: var(--space-xs);
}

/* ---------- 通用信息卡（如提示）---------- */
.info-card {
    background: var(--c-primary-light);
    border-radius: var(--radius);
    padding: 10px var(--space-md);
    font-size: 13px;
    color: var(--c-primary-dark);
    margin-bottom: var(--space-md);
    border-left: 3px solid var(--c-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-card::before {
    content: 'ℹ';
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 22px 24px;
        border-radius: 16px;
    }
    .auth-header h1 { font-size: 20px; }
    .auth-header .logo { width: 54px; height: 54px; font-size: 24px; }
    .code-row {
        flex-direction: row;
    }
    .code-row .btn {
        width: 110px;
        font-size: 12px;
    }
    .captcha-row img { width: 104px; }
    .auth-topbar span { display: none; }
    .auth-topbar { padding: 8px 10px; }
}

/* ---------- 用户协议 / 隐私政策 ---------- */
.legal-wrap {
    max-width: 860px;
    margin: 28px auto;
    padding: 0 var(--space-md);
}

/* PC 大屏与导航栏水平内边距对齐 */
@media (min-width: 1200px) {
    .legal-wrap { padding: 0 var(--space-lg); }
}

.legal-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 36px 40px;
}

.legal-card h1 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 10px;
}

.legal-updated {
    text-align: center;
    color: var(--c-text-3);
    font-size: 13px;
    margin-bottom: var(--space-lg);
}

.legal-card h2 {
    font-size: 17px;
    margin: var(--space-lg) 0 var(--space-sm);
    padding-left: 10px;
    border-left: 4px solid var(--c-primary);
}

.legal-card p {
    color: var(--c-text-2);
    margin-bottom: 10px;
    font-size: 14px;
}

.legal-back {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

@media (max-width: 600px) {
    .legal-card { padding: 24px 18px; }
    .legal-card h1 { font-size: 22px; }
    .legal-back { flex-direction: column; }
}

/* ============================================================
   暗黑模式适配
   ============================================================ */
html[data-theme="dark"] .auth-card {
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
html[data-theme="dark"] .uc-logout:hover {
    background: rgba(224, 93, 95, 0.15);
}
html[data-theme="dark"] .uc-avatar {
    border-color: var(--c-surface);
}

/* ============================================================
   用户中心（参考粤车南下8 user/profile 视觉）
   顶部渐变带 + 悬浮白卡 + 数据行 + 功能宫格
   ============================================================ */

/* 顶部渐变背景带 */
.uc-hero {
    height: 180px;
    background: linear-gradient(135deg, #1890ff 0%, #13b3c9 60%, #36cfc9 100%);
    border-radius: 0 0 28px 28px;
    position: relative;
    overflow: hidden;
}
.uc-hero::before,
.uc-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.uc-hero::before { width: 220px; height: 220px; top: -80px; right: -40px; }
.uc-hero::after  { width: 140px; height: 140px; bottom: -50px; left: -30px; }

.user-center {
    max-width: 720px;
    margin: -90px auto 0;
    padding: 0 var(--space-md) var(--space-lg);
    position: relative;
    z-index: 1;
}

/* PC 大屏与导航栏水平内边距对齐 */
@media (min-width: 1200px) {
    .user-center { padding: 0 var(--space-lg) var(--space-lg); }
}

/* ---------- 通用卡片 ---------- */
.uc-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    position: relative;
}
.uc-card + .uc-card { margin-top: var(--space-md); }

/* ---------- 用户卡片 ---------- */
.uc-profile-card { padding-top: var(--space-xl); }

.uc-logout {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--c-text-3);
    background: var(--c-bg);
    transition: color 0.2s, background 0.2s, transform 0.2s;
}
.uc-logout:hover { color: var(--c-danger); background: #fff1f0; transform: rotate(8deg); }
.uc-logout svg { width: 18px; height: 18px; }

.uc-profile-head {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.uc-avatar {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.28);
    border: 3px solid #fff;
    user-select: none;
}

.uc-profile-meta { flex: 1; min-width: 0; }

.uc-name-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.uc-nickname {
    font-size: 19px;
    font-weight: 600;
    color: var(--c-text);
    margin: 0;
}

/* 会员红色名称特权：等级勾选「红色名称」后昵称显示红色 */
.uc-nickname.uc-red-name {
    color: #dc2626;
}
.uc-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 经验等级徽章（UID 后方，背景色由 JS 按等级配置注入） */
.uc-level-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: 1px;
}
.uc-sub {
    font-size: 13px;
    color: var(--c-text-3);
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 手机号「已认证」标识（手机行号码后方，移动端与PC端共用） */
.uc-verify-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: 1px;
}
html[data-theme="dark"] .uc-verify-tag { background: rgba(52, 211, 153, 0.15); color: #34d399; }

/* ---------- 数据行 ---------- */
.uc-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--c-bg-2);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-sm);
}
.uc-stat {
    flex: 1;
    text-align: center;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
a.uc-stat:hover .uc-stat-num { color: var(--c-primary); }
.uc-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-text);
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uc-stat-num-sm {
    font-size: 13px;
    font-weight: 600;
    padding-top: 4px;
    padding-bottom: 4px;
}
.uc-stat-label {
    font-size: 12px;
    color: var(--c-text-3);
    margin-top: 2px;
}
.uc-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--c-border);
    flex-shrink: 0;
}

/* ---------- 功能宫格 ---------- */
.uc-grid-card { padding: var(--space-md); }

/* 移动端宫格：一排4个，列宽随页面大小自适应收缩 */
.uc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xs);
}
.uc-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xs);
    border-radius: var(--radius-lg);
    color: var(--c-text-2);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.uc-grid-item:hover {
    background: var(--c-bg-2);
    color: var(--c-text);
    transform: translateY(-2px);
}
.uc-grid-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.uc-grid-item:hover .uc-grid-icon { transform: scale(1.06) translateY(-1px); }
.uc-grid-icon svg { width: 22px; height: 22px; }

/* 浅底 + 主色线性图标系统（统一风格） */
.ic-amber   { background: #fef3c7; color: #d97706; }
.ic-indigo  { background: #e0e7ff; color: #4f46e5; }
.ic-cyan    { background: #cffafe; color: #0891b2; }
.ic-sky     { background: #e0f2fe; color: #0284c7; }
.ic-emerald { background: #d1fae5; color: #059669; }
.ic-slate   { background: #f1f5f9; color: #475569; }
.uc-ic-blue { background: #e6f7ff; color: #1890ff; }
.uc-grid-item:hover .ic-amber   { box-shadow: 0 6px 14px rgba(217, 119, 6, 0.22); }
.uc-grid-item:hover .ic-indigo  { box-shadow: 0 6px 14px rgba(79, 70, 229, 0.22); }
.uc-grid-item:hover .ic-cyan    { box-shadow: 0 6px 14px rgba(8, 145, 178, 0.22); }
.uc-grid-item:hover .ic-sky     { box-shadow: 0 6px 14px rgba(2, 132, 199, 0.22); }
.uc-grid-item:hover .ic-emerald { box-shadow: 0 6px 14px rgba(5, 150, 105, 0.22); }
.uc-grid-item:hover .ic-slate   { box-shadow: 0 6px 14px rgba(71, 85, 105, 0.22); }
.uc-grid-item:hover .uc-ic-blue { box-shadow: 0 6px 14px rgba(24, 144, 255, 0.22); }
.uc-grid-label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* 渐变色（参考 Tailwind 渐变搭配） - 已弃用，保留兼容 */
.grad-slate  { background: linear-gradient(135deg, #64748b, #475569); }

/* ============================================================
   积分轻量数据条（替代原紫渐变卡片）
   视觉权重低于用户卡片，避免抢焦点
   ============================================================ */
.uc-points-strip {
    display: flex;
    align-items: stretch;
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--space-md) var(--space-sm);
    margin-top: var(--space-md);
}
.uc-strip-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.15s;
}
.uc-strip-item:hover {
    background: var(--c-primary-light);
    transform: translateY(-1px);
}
.uc-strip-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-text);
    line-height: 1.1;
    letter-spacing: -0.3px;
}
.uc-strip-item:hover .uc-strip-num { color: var(--c-primary); }

/* 余额（货币体系）：绿色 + ¥前缀略小 */
#stripBalance .uc-strip-num {
    color: #059669;
    font-size: 19px;
}
.uc-strip-item:hover #stripBalance .uc-strip-num { color: #059669; }
/* 游戏积分（独立体系）：靛色 */
#stripGamePoints .uc-strip-num {
    color: #4f46e5;
}
.uc-strip-item:hover #stripGamePoints .uc-strip-num { color: #4f46e5; }
.uc-strip-label {
    font-size: 11px;
    color: var(--c-text-3);
    font-weight: 600;
}
.uc-strip-divider {
    width: 1px;
    background: var(--c-border);
    margin: 4px 0;
    flex-shrink: 0;
}

/* ---------- 移动端微调 ---------- */
@media (max-width: 480px) {
    .uc-hero { height: 160px; border-radius: 0 0 22px 22px; }
    .user-center { margin-top: -80px; }
    .uc-card { padding: var(--space-md); }
    .uc-profile-card { padding-top: var(--space-lg); }
    .uc-avatar { width: 60px; height: 60px; font-size: 24px; }
    .uc-nickname { font-size: 17px; }
    .uc-grid-card { padding: var(--space-sm); }
    .uc-grid-icon { width: 44px; height: 44px; border-radius: 12px; }
    .uc-grid-icon svg { width: 20px; height: 20px; }
    .uc-grid-label { font-size: 11px; }
    .uc-strip-num { font-size: 18px; }
    #stripBalance .uc-strip-num { font-size: 15px; }
}

/* ============================================================
   暗黑模式：积分条 / 浅底图标适配
   ============================================================ */
html[data-theme="dark"] .uc-points-strip { background: var(--c-surface); }
html[data-theme="dark"] .uc-strip-num { color: var(--c-text); }
html[data-theme="dark"] .uc-strip-label { color: var(--c-text-3); }
html[data-theme="dark"] .uc-strip-divider { background: var(--c-border); }
html[data-theme="dark"] .uc-strip-item:hover { background: rgba(24, 144, 255, 0.1); }
html[data-theme="dark"] .uc-strip-item:hover .uc-strip-num { color: #40a9ff; }

/* 余额（货币体系）：暗黑模式绿色高亮 */
html[data-theme="dark"] #stripBalance .uc-strip-num { color: #34d399; }
html[data-theme="dark"] .uc-strip-item:hover #stripBalance .uc-strip-num { color: #34d399; }
/* 游戏积分（独立体系）：暗黑模式靛色高亮 */
html[data-theme="dark"] #stripGamePoints .uc-strip-num { color: #818cf8; }
html[data-theme="dark"] .uc-strip-item:hover #stripGamePoints .uc-strip-num { color: #818cf8; }

html[data-theme="dark"] .ic-amber   { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
html[data-theme="dark"] .ic-indigo  { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
html[data-theme="dark"] .ic-cyan    { background: rgba(8, 145, 178, 0.15); color: #22d3ee; }
html[data-theme="dark"] .ic-sky     { background: rgba(2, 132, 199, 0.15); color: #38bdf8; }
html[data-theme="dark"] .ic-emerald { background: rgba(5, 150, 105, 0.15); color: #34d399; }
html[data-theme="dark"] .ic-slate   { background: rgba(71, 85, 105, 0.18); color: #94a3b8; }

/* ============================================================
   用户中心：移动端 / PC端 双布局切换
   - ≤768px：仅 .uc-layout-mobile（纵向单列，现有移动布局）
   - ≥769px：仅 .uc-layout-pc（横向仪表盘：资料横幅+资产三卡+宽宫格）
   断点与全站 .mobile-tabbar 保持一致（768px）
   ============================================================ */
.uc-layout-pc { display: none; }

@media (min-width: 769px) {
    /* 覆盖 common.css 中 .user-center 720px 的限宽，PC仪表盘更宽 */
    .user-center { max-width: 1000px; }

    .uc-layout-mobile { display: none; }
    .uc-layout-pc { display: block; }

    /* ---------- PC资料横幅卡 ---------- */
    .uc-pc-profile {
        display: flex;
        align-items: center;
        gap: 32px;
        padding: 28px 32px;
        flex-wrap: wrap;
    }
    .uc-pc-profile-main {
        display: flex;
        align-items: center;
        gap: 20px;
        flex: 1;
        min-width: 280px;
    }
    .uc-pc-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin: 0;
        flex-shrink: 0;
    }
    .uc-pc-profile-info { min-width: 0; flex: 1; }
    .uc-pc-profile-info .uc-nickname { font-size: 22px; }
    .uc-pc-profile-info .uc-name-row { margin-bottom: 8px; }
    .uc-pc-sub {
        font-size: 13px;
        color: var(--c-text-3);
        line-height: 1.9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .uc-pc-profile-stats {
        display: flex;
        align-items: center;
        gap: 24px;
        padding-left: 32px;
        border-left: 1px solid var(--c-border);
        flex-shrink: 0;
    }
    .uc-pc-stat { text-align: center; min-width: 110px; }
    .uc-pc-stat-num {
        font-size: 15px;
        font-weight: 700;
        color: var(--c-text);
        font-variant-numeric: tabular-nums;
    }
    .uc-pc-stat-label { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }
    .uc-pc-stat-divider { width: 1px; height: 36px; background: var(--c-border); }

    /* ---------- PC资产三卡 ---------- */
    .uc-pc-assets {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-top: var(--space-md);
    }
    .uc-pc-asset {
        position: relative;
        display: flex;
        align-items: center;
        gap: 16px;
        background: var(--c-surface);
        border-radius: var(--radius-lg);
        border: 1px solid var(--c-border);
        box-shadow: var(--shadow);
        padding: 22px 24px;
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s, box-shadow 0.2s;
        overflow: hidden;
    }
    .uc-pc-asset:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
        color: inherit;
    }
    .uc-pc-asset-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .uc-pc-asset-icon svg { width: 26px; height: 26px; }
    .uc-pc-asset-meta {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }
    .uc-pc-asset-label { font-size: 13px; color: var(--c-text-3); font-weight: 600; }
    .uc-pc-asset-num {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.3;
        color: var(--c-text);
        white-space: nowrap;
    }
    #pcStripPoints .uc-pc-asset-num { color: #1890ff; }
    #pcStripBalance .uc-pc-asset-num { color: #059669; }
    #pcStripGamePoints .uc-pc-asset-num { color: #4f46e5; }
    .uc-pc-asset-go {
        color: var(--c-text-3);
        font-size: 13px;
        flex-shrink: 0;
        transition: transform 0.2s, color 0.2s;
    }
    .uc-pc-asset:hover .uc-pc-asset-go { color: var(--c-primary); transform: translateX(3px); }

    /* ---------- PC宽功能宫格 ---------- */
    .uc-pc-grid-card { margin-top: var(--space-md); padding: 20px 20px 24px; }
    .uc-pc-card-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--c-text);
        margin: 4px 4px 12px;
    }
    /* PC端宫格：一排5个，列宽随页面大小自适应收缩 */
    .uc-pc-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    .uc-pc-grid .uc-grid-item { padding: var(--space-lg) var(--space-sm); }
}

/* ---------- PC端暗黑模式 ---------- */
html[data-theme="dark"] .uc-ic-blue { background: rgba(24, 144, 255, 0.15); color: #40a9ff; }
html[data-theme="dark"] .uc-pc-sub { color: var(--c-text-3); }
html[data-theme="dark"] .uc-pc-profile-stats { border-left-color: var(--c-border); }
html[data-theme="dark"] .uc-pc-stat-divider { background: var(--c-border); }
html[data-theme="dark"] .uc-pc-stat-num { color: var(--c-text); }
html[data-theme="dark"] .uc-pc-stat-label { color: var(--c-text-3); }
html[data-theme="dark"] .uc-pc-asset { background: var(--c-surface); border-color: var(--c-border); }
html[data-theme="dark"] .uc-pc-asset-label { color: var(--c-text-3); }
html[data-theme="dark"] .uc-pc-asset-go { color: var(--c-text-3); }
html[data-theme="dark"] #pcStripPoints .uc-pc-asset-num { color: #40a9ff; }
html[data-theme="dark"] #pcStripBalance .uc-pc-asset-num { color: #34d399; }
html[data-theme="dark"] #pcStripGamePoints .uc-pc-asset-num { color: #818cf8; }
html[data-theme="dark"] #pcStripCoupons .uc-pc-asset-num { color: #fbbf24; }
html[data-theme="dark"] .uc-pc-card-title { color: var(--c-text); }

/* ---------- 注册蜜罐字段（防脚本注册，正常用户不可见） ---------- */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ============================================================
   强制绑定手机号弹窗（邮箱注册老用户首次登录）
   - 不可关闭 / 不可跳过：无关闭按钮，遮罩点击与 Esc 均无效
   - 移动端：底部抽屉式弹起；PC 端（≥769px）：居中卡片
   - 是否弹出由服务端 need_bind_phone 状态驱动，重新登录仍会复现
   ============================================================ */
.uc-bind-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9997;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    overscroll-behavior: contain;
}
.uc-bind-mask[hidden] { display: none !important; }

/* 弹窗展示期间锁定页面滚动，避免背景跟随滚动 */
body.uc-bind-lock { overflow: hidden; }

.uc-bind-dialog {
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--c-surface);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 20, 60, 0.28);
    padding: 24px 22px calc(20px + env(safe-area-inset-bottom, 0px));
    animation: uc-bind-up 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes uc-bind-up {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 抽屉顶部拖拽提示条 */
.uc-bind-dialog::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--c-border);
    margin: -8px auto 14px;
}

.uc-bind-head { text-align: center; margin-bottom: var(--space-lg); }
.uc-bind-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(24, 144, 255, 0.32);
}
.uc-bind-icon svg { width: 26px; height: 26px; }
.uc-bind-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.uc-bind-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--c-text-3);
    padding: 0 6px;
}

.uc-bind-body { display: flex; flex-direction: column; }
.uc-bind-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-2);
    margin: 0 0 6px 2px;
}
.uc-bind-label:not(:first-child) { margin-top: var(--space-md); }

.uc-bind-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--c-text);
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.uc-bind-input::placeholder { color: var(--c-text-3); }
.uc-bind-input:focus {
    border-color: var(--c-primary);
    background: var(--c-surface);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
}

.uc-bind-row {
    display: flex;
    align-items: stretch;
    gap: var(--space-sm);
}
.uc-bind-row .uc-bind-input { flex: 1; min-width: 0; }

/* 图形验证码图框：原图 160x50（宽高比 3.2），容器按等比 147x46 显示，
   避免 object-fit:cover 裁切导致首位字符显示不全 */
.uc-bind-captcha {
    width: 147px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    background: var(--c-bg-2);
    cursor: pointer;
    object-fit: fill;
    transition: border-color 0.2s;
}
.uc-bind-captcha:hover { border-color: var(--c-primary); }

.uc-bind-send {
    flex-shrink: 0;
    width: 116px;
    height: 46px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primary);
    background: var(--c-primary-light);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.uc-bind-send:hover:not(:disabled) { transform: translateY(-1px); }
.uc-bind-send:disabled { opacity: 0.62; cursor: not-allowed; transform: none; }

.uc-bind-submit {
    width: 100%;
    height: 48px;
    margin-top: var(--space-lg);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, #1890ff 0%, #13b3c9 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.32);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.uc-bind-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(24, 144, 255, 0.42);
    filter: brightness(1.04);
}
.uc-bind-submit:active:not(:disabled) { transform: translateY(0); filter: brightness(0.96); }
.uc-bind-submit:disabled { opacity: 0.68; cursor: not-allowed; }

.uc-bind-logout {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--c-text-3);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.uc-bind-logout:hover { color: var(--c-primary); background: var(--c-bg-2); }

/* ---------- 绑定弹窗 PC 端（≥769px 居中卡片） ---------- */
@media (min-width: 769px) {
    .uc-bind-mask { align-items: center; padding: 24px; }
    .uc-bind-dialog {
        max-width: 430px;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: 20px;
        padding: 30px 30px 24px;
        box-shadow: 0 20px 60px rgba(0, 30, 80, 0.28);
        animation-name: uc-bind-in;
    }
    .uc-bind-dialog::before { display: none; }
}
@keyframes uc-bind-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 绑定弹窗暗色主题 ---------- */
html[data-theme="dark"] .uc-bind-mask { background: rgba(0, 0, 0, 0.66); }
html[data-theme="dark"] .uc-bind-dialog { box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .uc-bind-icon { box-shadow: 0 8px 20px rgba(22, 104, 220, 0.35); }
html[data-theme="dark"] .uc-bind-input:focus { box-shadow: 0 0 0 3px rgba(22, 104, 220, 0.2); }
html[data-theme="dark"] .uc-bind-send { background: rgba(22, 104, 220, 0.22); color: #7cb0ff; }
