/* ============================================================
   v3 UI · 浅色清爽商务风（无毛玻璃）
   设计：白底卡片 · 柔和多层阴影 · indigo 主色 · 清晰留白
   主题：浅色为主，dark 由 v3-dark.css 覆盖变量
   ============================================================ */

/* ---------- 设计 Token（浅色，默认） ---------- */
:root {
    /* 主色 / 语义色 */
    --v3-primary: #4F46E5;            /* indigo-600 */
    --v3-primary-hover: #4338CA;      /* indigo-700 */
    --v3-primary-soft: #EEF2FF;       /* indigo-50 */
    --v3-primary-ring: rgba(79, 70, 229, 0.18);
    --v3-success: #16A34A;
    --v3-success-soft: #DCFCE7;
    --v3-warning: #D97706;
    --v3-warning-soft: #FEF3C7;
    --v3-danger: #DC2626;
    --v3-danger-soft: #FEE2E2;
    --v3-info: #2563EB;

    /* 表面 / 文字 */
    --v3-bg: #F8FAFC;
    --v3-bg-grad: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 240px);
    --v3-surface: #FFFFFF;
    --v3-surface-2: #F8FAFC;
    --v3-surface-hover: #F1F5F9;
    --v3-text: #0F172A;
    --v3-text-muted: #64748B;
    --v3-text-faint: #94A3B8;
    --v3-border: #E2E8F0;
    --v3-border-strong: #CBD5E1;

    /* 阴影：柔和多层 */
    --v3-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --v3-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --v3-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --v3-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.06);
    --v3-shadow-primary: 0 8px 20px rgba(79, 70, 229, 0.25);

    /* 圆角 */
    --v3-radius-sm: 8px;
    --v3-radius: 12px;
    --v3-radius-lg: 16px;
    --v3-radius-xl: 22px;
    --v3-radius-full: 9999px;

    /* 间距 */
    --v3-space-xs: 6px;
    --v3-space-sm: 12px;
    --v3-space-md: 20px;
    --v3-space-lg: 32px;
    --v3-space-xl: 56px;
    --v3-space-2xl: 88px;

    /* 字号 */
    --v3-fs-xs: 0.78rem;
    --v3-fs-sm: 0.875rem;
    --v3-fs-base: 0.95rem;
    --v3-fs-md: 1.05rem;
    --v3-fs-lg: 1.25rem;
    --v3-fs-xl: 1.6rem;
    --v3-fs-2xl: 2.4rem;
    --v3-fs-hero: clamp(2.6rem, 1.4rem + 4vw, 3.8rem);

    /* 过渡 */
    --v3-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --v3-fast: 140ms var(--v3-ease);
    --v3-normal: 260ms var(--v3-ease);

    --v3-sidebar-w: 256px;
    --v3-topbar-h: 64px;
}

/* ---------- 全局 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "阿里妈妈东方大楷 Regular", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--v3-bg);
    background-image: var(--v3-bg-grad);
    background-repeat: no-repeat;
    color: var(--v3-text);
    font-size: var(--v3-fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--v3-primary); text-decoration: none; transition: color var(--v3-fast); }
a:hover { color: var(--v3-primary-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--v3-text); line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--v3-primary-soft); color: var(--v3-primary); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--v3-border-strong); border-radius: 99px; border: 2px solid var(--v3-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--v3-text-faint); }

/* ---------- 布局工具 ---------- */
.v3-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--v3-space-lg); }
.v3-text-center { text-align: center; }
.v3-text-muted { color: var(--v3-text-muted); }
.v3-text-faint { color: var(--v3-text-faint); }
.v3-gradient-text {
    background: linear-gradient(120deg, var(--v3-primary) 0%, #7C3AED 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.v3-hide { display: none !important; }

/* ---------- 按钮 ---------- */
.v3-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--v3-radius);
    font-family: inherit; font-size: var(--v3-fs-sm); font-weight: 600;
    border: 1px solid var(--v3-border); background: var(--v3-surface); color: var(--v3-text);
    cursor: pointer; transition: all var(--v3-fast); white-space: nowrap; line-height: 1.4;
}
.v3-btn:hover { background: var(--v3-surface-hover); border-color: var(--v3-border-strong); transform: translateY(-1px); box-shadow: var(--v3-shadow-sm); }
.v3-btn:active { transform: translateY(0); }
.v3-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--v3-primary-ring); }

.v3-btn-primary { background: var(--v3-primary); border-color: var(--v3-primary); color: #fff; }
.v3-btn-primary:hover { background: var(--v3-primary-hover); border-color: var(--v3-primary-hover); color: #fff; box-shadow: var(--v3-shadow-primary); }

.v3-btn-ghost { background: transparent; border-color: transparent; }
.v3-btn-ghost:hover { background: var(--v3-surface-hover); border-color: transparent; box-shadow: none; transform: none; }

.v3-btn-soft { background: var(--v3-primary-soft); border-color: transparent; color: var(--v3-primary); }
.v3-btn-soft:hover { background: #E0E7FF; color: var(--v3-primary-hover); border-color: transparent; box-shadow: none; }

.v3-btn-lg { padding: 14px 28px; font-size: var(--v3-fs-base); border-radius: var(--v3-radius); }
.v3-btn-sm { padding: 6px 14px; font-size: var(--v3-fs-xs); border-radius: var(--v3-radius-sm); }
.v3-btn-block { width: 100%; }

/* ---------- 卡片 ---------- */
.v3-card {
    background: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-lg);
    box-shadow: var(--v3-shadow-sm);
    transition: transform var(--v3-normal), box-shadow var(--v3-normal), border-color var(--v3-fast);
}
.v3-card-pad { padding: var(--v3-space-lg); }
.v3-card-hover:hover { transform: translateY(-4px); box-shadow: var(--v3-shadow-lg); border-color: var(--v3-border-strong); }

/* ---------- 徽章 ---------- */
.v3-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--v3-radius-full);
    font-size: var(--v3-fs-xs); font-weight: 600; line-height: 1.5;
}
.v3-badge-success { background: var(--v3-success-soft); color: var(--v3-success); }
.v3-badge-warning { background: var(--v3-warning-soft); color: var(--v3-warning); }
.v3-badge-danger { background: var(--v3-danger-soft); color: var(--v3-danger); }
.v3-badge-info { background: var(--v3-primary-soft); color: var(--v3-primary); }
.v3-badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 表单 ---------- */
.v3-input-group { position: relative; display: flex; align-items: center; }
.v3-input-icon {
    position: absolute; left: 14px; font-size: 1rem; line-height: 1;
    pointer-events: none; opacity: 0.7; display: flex; align-items: center;
}
.v3-input {
    width: 100%; padding: 11px 14px 11px 40px;
    font-family: inherit; font-size: var(--v3-fs-sm); color: var(--v3-text);
    background: var(--v3-surface); border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius); transition: all var(--v3-fast); outline: none;
}
.v3-input:not(.v3-input-with-icon) { padding-left: 14px; }
.v3-input::placeholder { color: var(--v3-text-faint); }
.v3-input:focus { border-color: var(--v3-primary); box-shadow: 0 0 0 3px var(--v3-primary-ring); }
.v3-input:hover:not(:focus) { border-color: var(--v3-border-strong); }

.v3-label { display: block; color: var(--v3-text); font-size: var(--v3-fs-sm); font-weight: 600; margin-bottom: 8px; }
.v3-form-group { margin-bottom: var(--v3-space-md); }

/* ---------- 提示条 ---------- */
.v3-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--v3-radius); font-size: var(--v3-fs-sm);
    border: 1px solid transparent;
}
.v3-alert-danger { background: var(--v3-danger-soft); color: #991B1B; border-color: #FECACA; }
.v3-alert-success { background: var(--v3-success-soft); color: #166534; border-color: #BBF7D0; }
.v3-alert-warning { background: var(--v3-warning-soft); color: #92400E; border-color: #FDE68A; }
.v3-alert-info { background: var(--v3-primary-soft); color: var(--v3-primary-hover); border-color: #C7D2FE; }

/* ---------- 空状态 ---------- */
.v3-empty { text-align: center; padding: var(--v3-space-xl) var(--v3-space-md); color: var(--v3-text-muted); }
.v3-empty-icon { font-size: 2.6rem; margin-bottom: 12px; opacity: 0.7; }
.v3-empty-text { font-size: var(--v3-fs-sm); }

/* ---------- 顶部导航（首页用） ---------- */
.v3-nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--v3-surface);
    border-bottom: 1px solid var(--v3-border);
    box-shadow: var(--v3-shadow-xs);
}
.v3-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--v3-space-lg); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--v3-space-md); }
.v3-nav-logo { display: flex; align-items: center; gap: 8px; font-size: var(--v3-fs-lg); font-weight: 800; color: var(--v3-text); }
.v3-nav-logo:hover { color: var(--v3-primary); }
.v3-nav-logo .v3-logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, #165DFF, #4338CA);
    color: #fff; font-size: 0.9rem; box-shadow: var(--v3-shadow-primary);
}
.v3-logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #165DFF, #4338CA);
    color: #fff; box-shadow: 0 2px 8px rgba(22,93,255,.25);
}
.v3-nav-menu { display: flex; align-items: center; gap: 4px; }
.v3-nav-link {
    padding: 8px 14px; border-radius: var(--v3-radius-sm);
    color: var(--v3-text-muted); font-size: var(--v3-fs-sm); font-weight: 500;
    transition: all var(--v3-fast);
}
.v3-nav-link:hover { color: var(--v3-text); background: var(--v3-surface-hover); }
.v3-nav-link.active { color: var(--v3-primary); background: var(--v3-primary-soft); }

/* 主题切换按钮 */
.v3-theme-toggle {
    width: 38px; height: 38px; border-radius: var(--v3-radius-full);
    background: var(--v3-surface-2); border: 1px solid var(--v3-border);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; transition: all var(--v3-fast); color: var(--v3-text);
}
.v3-theme-toggle:hover { background: var(--v3-surface-hover); transform: rotate(15deg); }
.v3-theme-toggle .v3-sun { display: none; }
.v3-theme-toggle .v3-moon { display: inline; }

/* ---------- Hero（首页） ---------- */
.v3-hero { padding: 90px 0 64px; text-align: center; }
.v3-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: var(--v3-radius-full);
    background: var(--v3-primary-soft); color: var(--v3-primary);
    font-size: var(--v3-fs-xs); font-weight: 600; margin-bottom: 22px;
}
.v3-hero-title { font-size: var(--v3-fs-hero); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--v3-space-md); }
.v3-hero-subtitle { font-size: 1.12rem; color: var(--v3-text-muted); max-width: 620px; margin: 0 auto var(--v3-space-lg); line-height: 1.7; }
.v3-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.v3-hero-stats { display: flex; gap: var(--v3-space-lg); justify-content: center; margin-top: var(--v3-space-xl); flex-wrap: wrap; }
.v3-hero-stat { text-align: center; min-width: 120px; }
.v3-hero-stat .v3-stat-num { font-size: 2rem; font-weight: 800; }
.v3-hero-stat .v3-stat-cap { color: var(--v3-text-muted); font-size: var(--v3-fs-sm); margin-top: 2px; }

/* ---------- 公告条 ---------- */
.v3-announce {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; margin-bottom: var(--v3-space-lg);
    background: var(--v3-primary-soft); border: 1px solid #E0E7FF;
    border-radius: var(--v3-radius); color: var(--v3-primary-hover); font-size: var(--v3-fs-sm);
}

/* ---------- 区块标题 ---------- */
.v3-section { padding: var(--v3-space-xl) 0; }
.v3-section-head { text-align: center; margin-bottom: var(--v3-space-lg); }
.v3-section-title { font-size: var(--v3-fs-xl); font-weight: 800; letter-spacing: -0.01em; }
.v3-section-sub { color: var(--v3-text-muted); font-size: var(--v3-fs-base); margin-top: 8px; }

/* ---------- 搜索栏 ---------- */
.v3-search { max-width: 560px; margin: 0 auto var(--v3-space-lg); }
.v3-search .v3-input { padding: 13px 16px 13px 44px; font-size: var(--v3-fs-base); border-radius: var(--v3-radius); box-shadow: var(--v3-shadow-sm); }
.v3-search .v3-input-icon { left: 16px; }

/* ---------- 网格 ---------- */
.v3-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--v3-space-md); }
.v3-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--v3-space-md); }

/* ---------- API 卡片 ---------- */
.v3-api-card { padding: var(--v3-space-md); cursor: pointer; position: relative; }
.v3-api-card .v3-hot {
    position: absolute; top: 14px; right: 14px;
    background: linear-gradient(135deg, #F59E0B, #EF4444); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: var(--v3-radius-full);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}
.v3-api-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.v3-api-name { font-size: var(--v3-fs-md); font-weight: 700; color: var(--v3-text); }
.v3-api-desc { color: var(--v3-text-muted); font-size: var(--v3-fs-sm); line-height: 1.6; margin: 8px 0 16px; min-height: 2.6em; }
.v3-api-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--v3-border); }
.v3-api-endpoint { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--v3-fs-xs); color: var(--v3-text-faint); background: var(--v3-surface-2); padding: 4px 8px; border-radius: 6px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 特性卡 ---------- */
.v3-feature { padding: var(--v3-space-md); text-align: left; }
.v3-feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 14px;
    background: var(--v3-primary-soft);
}
.v3-feature-title { font-size: var(--v3-fs-md); font-weight: 700; margin-bottom: 6px; }
.v3-feature-desc { color: var(--v3-text-muted); font-size: var(--v3-fs-sm); line-height: 1.6; }

/* ---------- CTA ---------- */
.v3-cta { text-align: center; padding: var(--v3-space-xl) var(--v3-space-lg); background: linear-gradient(135deg, var(--v3-primary-soft) 0%, #F5F3FF 100%); border: 1px solid #E0E7FF; }
.v3-cta-title { font-size: var(--v3-fs-xl); font-weight: 800; }
.v3-cta-sub { color: var(--v3-text-muted); margin: 10px 0 var(--v3-space-lg); }
.v3-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.v3-footer { margin-top: var(--v3-space-2xl); border-top: 1px solid var(--v3-border); background: var(--v3-surface); }
.v3-footer-inner { max-width: 1280px; margin: 0 auto; padding: var(--v3-space-lg); }
.v3-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--v3-space-lg); }
.v3-footer-brand { color: var(--v3-text-muted); font-size: var(--v3-fs-sm); line-height: 1.7; max-width: 380px; margin-top: 12px; }
.v3-footer h4 { font-size: var(--v3-fs-sm); margin-bottom: 12px; color: var(--v3-text); }
.v3-footer-links a { display: block; color: var(--v3-text-muted); font-size: var(--v3-fs-sm); padding: 5px 0; transition: color var(--v3-fast); }
.v3-footer-links a:hover { color: var(--v3-primary); }
.v3-footer-bottom { text-align: center; padding-top: var(--v3-space-md); margin-top: var(--v3-space-md); border-top: 1px solid var(--v3-border); color: var(--v3-text-faint); font-size: var(--v3-fs-xs); }

/* ---------- 通用表格 ---------- */
.v3-info-table { width: 100%; border-collapse: collapse; font-size: var(--v3-fs-sm); }
.v3-info-table th { text-align: left; padding: 12px 14px; background: var(--v3-surface-2); color: var(--v3-text-muted); font-weight: 600; border-bottom: 1px solid var(--v3-border); font-size: var(--v3-fs-xs); white-space: nowrap; }
.v3-info-table td { padding: 12px 14px; border-bottom: 1px solid var(--v3-border); color: var(--v3-text); vertical-align: middle; }
.v3-info-table tr:last-child td { border-bottom: none; }
.v3-info-table tbody tr:hover td { background: var(--v3-surface-2); }

/* ============================================================
   用户中心布局
   ============================================================ */
.v3-layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.v3-sidebar {
    width: var(--v3-sidebar-w); flex-shrink: 0;
    background: var(--v3-surface);
    border-right: 1px solid var(--v3-border);
    position: fixed; top: 0; left: 0; bottom: 0;
    display: flex; flex-direction: column;
    z-index: 95; transition: transform var(--v3-normal);
    overflow-y: auto;
}
.v3-sidebar-head { height: var(--v3-topbar-h); display: flex; align-items: center; padding: 0 var(--v3-space-md); border-bottom: 1px solid var(--v3-border); }
.v3-sidebar-logo { display: flex; align-items: center; gap: 9px; font-size: var(--v3-fs-md); font-weight: 800; color: var(--v3-text); }
.v3-sidebar-logo:hover { color: var(--v3-primary); }
.v3-sidebar-menu { padding: var(--v3-space-md) var(--v3-space-sm); flex: 1; }
.v3-sidebar-section { margin-bottom: var(--v3-space-md); }
.v3-sidebar-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--v3-text-faint); padding: 0 12px; margin-bottom: 8px; }
.v3-sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--v3-radius-sm);
    color: var(--v3-text-muted); font-size: var(--v3-fs-sm); font-weight: 500;
    transition: all var(--v3-fast); margin-bottom: 2px;
}
.v3-sidebar-link:hover { background: var(--v3-surface-hover); color: var(--v3-text); }
.v3-sidebar-link.active { background: var(--v3-primary-soft); color: var(--v3-primary); font-weight: 600; }
.v3-sidebar-link .v3-ico { font-size: 1.05rem; width: 20px; text-align: center; }

/* 主内容区 */
.v3-main { flex: 1; margin-left: var(--v3-sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.v3-topbar {
    height: var(--v3-topbar-h); position: sticky; top: 0; z-index: 90;
    background: var(--v3-surface); border-bottom: 1px solid var(--v3-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--v3-space-lg);
}
.v3-topbar-left { display: flex; align-items: center; gap: var(--v3-space-sm); }
.v3-topbar-right { display: flex; align-items: center; gap: var(--v3-space-sm); }
.v3-page-title { font-size: var(--v3-fs-lg); font-weight: 700; }

.v3-sidebar-toggle { display: none; width: 38px; height: 38px; border-radius: var(--v3-radius-sm); background: var(--v3-surface-2); border: 1px solid var(--v3-border); align-items: center; justify-content: center; cursor: pointer; color: var(--v3-text); font-size: 1.1rem; }
.v3-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 94; }
.v3-sidebar-overlay.active { display: block; }

.v3-content { padding: var(--v3-space-lg); max-width: 1200px; margin: 0 auto; width: 100%; }
.v3-content-sm { max-width: 720px; }
.v3-content-xs { max-width: 560px; }
.v3-welcome { color: var(--v3-text-muted); font-size: var(--v3-fs-sm); margin-bottom: var(--v3-space-md); }
.v3-welcome strong { color: var(--v3-text); }

/* 头像 */
.v3-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--v3-radius-full);
    background: linear-gradient(135deg, var(--v3-primary), #7C3AED);
    color: #fff; font-weight: 700; flex-shrink: 0;
}

/* 下拉菜单 */
.v3-dropdown { position: relative; }
.v3-dropdown-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: var(--v3-radius-full); transition: background var(--v3-fast); }
.v3-dropdown-trigger:hover { background: var(--v3-surface-hover); }
.v3-dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
    background: var(--v3-surface); border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius); box-shadow: var(--v3-shadow-lg);
    padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all var(--v3-fast); z-index: 100;
}
.v3-dropdown.open .v3-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.v3-dropdown-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--v3-radius-sm); color: var(--v3-text); font-size: var(--v3-fs-sm); transition: background var(--v3-fast); }
.v3-dropdown-item:hover { background: var(--v3-surface-hover); color: var(--v3-primary); }
.v3-dropdown-divider { height: 1px; background: var(--v3-border); margin: 4px 0; }

/* 仪表盘统计卡 */
.v3-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--v3-space-md); }
.v3-stat-card { padding: var(--v3-space-md); display: flex; align-items: center; gap: 14px; }
.v3-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.v3-stat-icon-blue { background: #DBEAFE; color: #2563EB; }
.v3-stat-icon-green { background: var(--v3-success-soft); color: var(--v3-success); }
.v3-stat-icon-orange { background: var(--v3-warning-soft); color: var(--v3-warning); }
.v3-stat-icon-purple { background: #F3E8FF; color: #9333EA; }
.v3-stat-val { font-size: var(--v3-fs-lg); font-weight: 800; color: var(--v3-text); line-height: 1.2; }
.v3-stat-label { font-size: var(--v3-fs-xs); color: var(--v3-text-muted); }

/* 卡片标题行 */
.v3-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--v3-space-md); }
.v3-card-title { font-size: var(--v3-fs-md); font-weight: 700; }

/* 活动列表项 */
.v3-activity { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--v3-border); }
.v3-activity:last-child { border-bottom: none; }
.v3-activity-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; background: var(--v3-surface-2); }
.v3-activity-info { flex: 1; min-width: 0; }
.v3-activity-title { color: var(--v3-text); font-size: var(--v3-fs-sm); font-weight: 500; }
.v3-activity-time { color: var(--v3-text-faint); font-size: var(--v3-fs-xs); }
.v3-activity-amount { font-weight: 700; font-size: var(--v3-fs-sm); }
.v3-amount-neg { color: var(--v3-danger); }

/* 快捷操作 */
.v3-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--v3-space-sm); }
.v3-quick-item { padding: var(--v3-space-md); text-align: center; color: var(--v3-text); border: 1px solid var(--v3-border); background: var(--v3-surface); border-radius: var(--v3-radius); transition: all var(--v3-fast); }
.v3-quick-item:hover { color: var(--v3-primary); border-color: var(--v3-primary); transform: translateY(-2px); box-shadow: var(--v3-shadow-sm); }
.v3-quick-ico { font-size: 1.8rem; margin-bottom: 8px; }
.v3-quick-label { font-size: var(--v3-fs-sm); font-weight: 600; }

/* 信息行（资料页） */
.v3-info-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--v3-border); }
.v3-info-row:last-child { border-bottom: none; }
.v3-info-label { color: var(--v3-text-muted); font-size: var(--v3-fs-sm); }
.v3-info-value { color: var(--v3-text); font-size: var(--v3-fs-sm); font-weight: 600; }

/* 余额展示 */
.v3-balance-card { text-align: center; padding: var(--v3-space-lg); background: linear-gradient(135deg, var(--v3-primary-soft) 0%, #F5F3FF 100%); border: 1px solid #E0E7FF; }
.v3-balance-label { color: var(--v3-primary-hover); font-size: var(--v3-fs-sm); margin-bottom: 8px; }
.v3-balance-amount { font-size: 2.8rem; font-weight: 800; }

/* 充值套餐 */
.v3-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--v3-space-sm); }
.v3-plan-card { padding: var(--v3-space-md); text-align: center; cursor: pointer; background: var(--v3-surface); border: 1px solid var(--v3-border); border-radius: var(--v3-radius); transition: all var(--v3-fast); }
.v3-plan-card:hover { border-color: var(--v3-border-strong); transform: translateY(-2px); box-shadow: var(--v3-shadow-sm); }
.v3-plan-card.selected { border-color: var(--v3-primary); box-shadow: 0 0 0 3px var(--v3-primary-ring); background: var(--v3-primary-soft); }
.v3-plan-name { font-size: var(--v3-fs-sm); color: var(--v3-text-muted); }
.v3-plan-price { font-size: 1.6rem; font-weight: 800; color: var(--v3-text); margin: 6px 0; }
.v3-plan-desc { font-size: var(--v3-fs-xs); color: var(--v3-text-faint); }

/* ---------- 认证页（登录/注册） ---------- */
.v3-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--v3-space-md); }
.v3-auth-card { max-width: 460px; width: 100%; padding: 44px 38px; }
.v3-auth-logo { text-align: center; margin-bottom: 28px; }
.v3-auth-logo h1 { font-size: var(--v3-fs-lg); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }
.v3-auth-logo p { color: var(--v3-text-muted); font-size: var(--v3-fs-sm); margin-top: 8px; }
.v3-auth-foot { text-align: center; margin-top: 22px; color: var(--v3-text-muted); font-size: var(--v3-fs-xs); }
.v3-auth-back { text-align: center; margin-top: 14px; }
.v3-auth-back a { color: var(--v3-text-faint); font-size: var(--v3-fs-xs); }

/* ---------- 动画 ---------- */
@keyframes v3-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.v3-fade { opacity: 0; }
.v3-fade.v3-in { animation: v3-fade-up 0.6s var(--v3-ease) forwards; }
.v3-delay-1 { animation-delay: 0.08s; }
.v3-delay-2 { animation-delay: 0.16s; }
.v3-delay-3 { animation-delay: 0.24s; }
.v3-delay-4 { animation-delay: 0.32s; }

/* ---------- Toast ---------- */
.v3-toast-wrap { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.v3-toast { padding: 12px 18px; border-radius: var(--v3-radius); background: var(--v3-surface); border: 1px solid var(--v3-border); box-shadow: var(--v3-shadow-lg); font-size: var(--v3-fs-sm); color: var(--v3-text); animation: v3-fade-up 0.3s var(--v3-ease); border-left: 3px solid var(--v3-primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .v3-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --v3-space-xl: 40px; --v3-space-2xl: 60px; }
    .v3-container { padding: 0 var(--v3-space-md); }
    .v3-nav-menu { display: none; }
    .v3-hero { padding: 56px 0 40px; }
    .v3-hero-title { font-size: 2rem; }
    .v3-hero-subtitle { font-size: 1rem; }
    .v3-hero-stats { gap: var(--v3-space-md); }
    .v3-grid-3 { grid-template-columns: 1fr; }
    .v3-grid-4 { grid-template-columns: 1fr 1fr; }
    .v3-footer-grid { grid-template-columns: 1fr; }

    /* 侧边栏抽屉 */
    .v3-sidebar { transform: translateX(-100%); box-shadow: var(--v3-shadow-lg); }
    .v3-sidebar.open { transform: translateX(0); }
    .v3-main { margin-left: 0; }
    .v3-sidebar-toggle { display: flex; }
    .v3-content { padding: var(--v3-space-md); }
    .v3-stat-grid { grid-template-columns: 1fr 1fr; }
    .v3-plan-grid { grid-template-columns: 1fr 1fr; }
    .v3-quick-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .v3-grid-4 { grid-template-columns: 1fr; }
    .v3-stat-grid { grid-template-columns: 1fr; }
    .v3-plan-grid { grid-template-columns: 1fr; }
    .v3-auth-card { padding: 32px 22px; }
    .v3-topbar-right .v3-dropdown-trigger span { display: none; }
}
