/* =====================================================
   AI 中转站 · 企业级设计系统 v2.0
   设计语言：克制、专业、可信赖 — 参考 Ant Design / Arco / Vercel
   主色 #165DFF · 深色侧边栏 + 浅色内容区 · 支持明暗主题
   ===================================================== */

:root {
    /* 品牌主色 */
    --primary: #165DFF;
    --primary-hover: #4080FF;
    --primary-active: #0E42D2;
    --primary-soft: #E8F1FF;
    --primary-soft-2: #D6E6FF;

    /* 语义色 */
    --success: #00B42A;
    --success-hover: #23C343;
    --success-soft: #E8FFEA;
    --warning: #FF7D00;
    --warning-hover: #FF9A2E;
    --warning-soft: #FFF3E8;
    --danger: #F53F3F;
    --danger-hover: #F76560;
    --danger-soft: #FFECE8;
    --info: #165DFF;
    --info-soft: #E8F1FF;

    /* 中性色阶 */
    --gray-1: #F7F8FA;
    --gray-2: #F2F3F5;
    --gray-3: #E5E6EB;
    --gray-4: #C9CDD4;
    --gray-5: #A9AEB8;
    --gray-6: #86909C;
    --gray-7: #4E5969;
    --gray-8: #272E3B;
    --gray-9: #1D2129;
    --gray-10: #12161F;

    /* 语义映射（保持兼容） */
    --gray: var(--gray-6);
    --gray-light: var(--gray-2);
    --success-light: var(--success-soft);
    --warning-light: var(--warning-soft);
    --danger-light: var(--danger-soft);
    --primary-light: var(--primary-soft);

    /* 表面 */
    --bg: #F5F7FA;
    --bg-elevated: #FFFFFF;
    --card: #FFFFFF;
    --border: #E5E8EF;
    --border-light: #EFF1F5;
    --border-strong: #D6DBE4;
    --text: #1D2129;
    --text-sub: #4E5969;
    --text-light: #86909C;
    --text-placeholder: #A9AEB8;

    /* 侧边栏（深色） */
    --sidebar-bg: #171C2B;
    --sidebar-bg-2: #111524;
    --sidebar-text: #9DA7BC;
    --sidebar-text-hover: #FFFFFF;
    --sidebar-active-bg: rgba(22, 93, 255, 0.16);
    --sidebar-active-bar: #4D8DFF;
    --sidebar-border: rgba(255, 255, 255, 0.07);

    /* 圆角 */
    --radius-xs: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(29, 33, 41, 0.04);
    --shadow: 0 1px 3px rgba(29, 33, 41, 0.04), 0 6px 16px -6px rgba(29, 33, 41, 0.08);
    --shadow-md: 0 4px 12px rgba(29, 33, 41, 0.06), 0 12px 28px -10px rgba(29, 33, 41, 0.12);
    --shadow-lg: 0 12px 32px rgba(29, 33, 41, 0.10), 0 24px 56px -20px rgba(29, 33, 41, 0.18);
    --shadow-focus: 0 0 0 3px rgba(22, 93, 255, 0.14);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

html[data-theme="dark"] {
    --primary: #4080FF;
    --primary-hover: #6C9CFF;
    --primary-active: #165DFF;
    --primary-soft: rgba(64, 128, 255, 0.14);
    --primary-soft-2: rgba(64, 128, 255, 0.22);

    --success: #23C343;
    --success-soft: rgba(35, 195, 67, 0.14);
    --warning: #FF9A2E;
    --warning-soft: rgba(255, 154, 46, 0.14);
    --danger: #F76560;
    --danger-soft: rgba(247, 101, 96, 0.14);

    --gray-1: #17181C;
    --gray-2: #222328;
    --gray-3: #2E3038;
    --gray-4: #3A3D47;
    --gray-5: #555A66;
    --gray-6: #7A8290;
    --gray-7: #A6ADBA;
    --gray-8: #D0D5DD;
    --gray-9: #E8EAF0;
    --gray-10: #F5F6F9;

    --bg: #0F1115;
    --bg-elevated: #1A1C22;
    --card: #1A1C22;
    --border: #2C2F38;
    --border-light: #24262E;
    --border-strong: #3A3E4A;
    --text: #E8EAF0;
    --text-sub: #A6ADBA;
    --text-light: #7A8290;
    --text-placeholder: #5C626F;

    --sidebar-bg: #14161D;
    --sidebar-bg-2: #0D0E13;
    --sidebar-text: #8B93A3;
    --sidebar-active-bg: rgba(64, 128, 255, 0.18);
    --sidebar-active-bar: #6C9CFF;
    --sidebar-border: rgba(255, 255, 255, 0.06);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --shadow-focus: 0 0 0 3px rgba(64, 128, 255, 0.2);
}

/* ============ 基础重置 ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 14px; -webkit-text-size-adjust: 100%; background: #F5F7FA; }
html[data-theme="dark"] { background: #0F1115; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5715;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: tabular-nums;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }
button { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text); }
::selection { background: var(--primary-soft-2); color: var(--primary-active); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-5); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ============ 认证页（登录/注册/找回） ============ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(22, 93, 255, 0.10), transparent 55%),
        radial-gradient(900px 500px at 0% 100%, rgba(64, 128, 255, 0.08), transparent 5%),
        linear-gradient(160deg, #F4F7FF 0%, #F7F8FA 45%, #EEF4FF 100%);
}
.auth-body::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(22, 93, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 93, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
    pointer-events: none;
}
html[data-theme="dark"] .auth-body {
    background:
        radial-gradient(1000px 600px at 85% -10%, rgba(64, 128, 255, 0.12), transparent 55%),
        linear-gradient(160deg, #0F1420 0%, #0F1115 50%, #10151F 100%);
}
html[data-theme="dark"] .auth-body::before {
    background-image:
        linear-gradient(rgba(120, 160, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 255, 0.04) 1px, transparent 1px);
}
.auth-wrapper { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px 34px;
}
.auth-brand { text-align: center; margin-bottom: 10px; }
.auth-logo {
    width: 52px; height: 52px; border-radius: 14px; margin: 0 auto;
    box-shadow: 0 6px 16px -4px rgba(22, 93, 255, 0.45);
}
.auth-site-name { font-size: 21px; font-weight: 700; margin-top: 14px; color: var(--text); letter-spacing: -0.01em; }
.auth-slogan { text-align: center; color: var(--text-light); font-size: 13px; margin: 6px 0 26px; }
.auth-form .form-group:first-child { margin-top: 4px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-light); }
.auth-switch a { font-weight: 500; }
.auth-footer {
    text-align: center; margin-top: 22px; font-size: 12px;
    color: var(--text-light); position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 6px;
}
.auth-footer a { color: var(--text-light); }
.auth-footer a:hover { color: var(--primary); }

/* ============ 应用骨架（侧边栏 + 顶栏） ============ */
.app-body { min-height: 100vh; }
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 248px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(16, 22, 40, 0.08);
}
.sidebar-brand {
    display: flex; align-items: center; gap: 11px;
    height: 68px; padding: 0 20px; flex: none;
    border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-logo { width: 34px; height: 34px; border-radius: 9px; flex: none; box-shadow: 0 2px 10px rgba(22,93,255,.35); }
.sidebar-name { color: #FFF; font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.sidebar-tag {
    font-size: 10px; font-style: normal; color: #FFF; font-weight: 500;
    background: var(--primary); border-radius: 4px; padding: 2px 6px; margin-left: 8px;
    vertical-align: 2px; letter-spacing: 0.02em;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); background-clip: padding-box; }
.nav-group-title {
    font-size: 11px; color: rgba(255, 255, 255, 0.34); font-weight: 600;
    padding: 8px 12px 8px; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin: 3px 0;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    font-size: 14px; font-weight: 450;
    cursor: pointer; text-decoration: none;
    transition: background 0.16s, color 0.16s;
    background: none; border: none; width: 100%; text-align: left;
    position: relative;
}
.nav-item svg { flex: none; opacity: 0.9; }
.nav-item:hover { color: var(--sidebar-text-hover); background: rgba(255, 255, 255, 0.06); }
.nav-item.active {
    color: #FFF; font-weight: 550;
    background: var(--sidebar-active-bg);
}
.nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 3px 3px 0;
    background: var(--sidebar-active-bar);
}
.nav-item.active svg { color: var(--sidebar-active-bar); opacity: 1; }
.nav-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-bottom { padding: 12px; border-top: 1px solid var(--sidebar-border); flex: none; }
.sidebar-mask { display: none; }

/* 子菜单折叠 */
.nav-submenu-toggle .submenu-arrow { flex: none; transition: transform 0.22s; display: flex; opacity: 0.7; }
.nav-submenu.open .nav-submenu-toggle .submenu-arrow { transform: rotate(180deg); }
.submenu-panel { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.nav-submenu.open .submenu-panel { max-height: 320px; }
.nav-child { padding-left: 44px; font-size: 13px; padding-top: 8px; padding-bottom: 8px; }
.nav-child::before { left: 26px !important; height: 14px !important; }

/* 明暗切换图标 */
.theme-icon-dark { display: none; }
html[data-theme="dark"] .theme-icon-light { display: none; }
html[data-theme="dark"] .theme-icon-dark { display: inline-flex; }

/* 顶栏 */
.app-main { flex: 1; margin-left: 248px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    height: 68px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 28px;
    position: sticky; top: 0; z-index: 50;
    gap: 12px;
}
html[data-theme="dark"] .topbar { background: rgba(26, 28, 34, 0.86); }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text-sub); padding: 8px; border-radius: var(--radius); }
.hamburger:hover { background: var(--gray-2); }
.topbar-title { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar-link {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-sub); font-size: 13px; font-weight: 500;
    padding: 8px 12px; border-radius: var(--radius);
}
.topbar-link:hover { background: var(--gray-2); color: var(--primary); }

.icon-btn {
    position: relative; background: none; border: none; cursor: pointer;
    color: var(--text-sub); padding: 9px; border-radius: var(--radius); display: flex; align-items: center;
    transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--gray-2); color: var(--primary); }
.dot-badge {
    position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--danger); border: 1.5px solid var(--card);
}

/* 下拉 */
.dropdown { position: relative; }
.dropdown-panel {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    min-width: 180px; padding: 6px; z-index: 100;
    animation: dropdown-in 0.16s ease;
}
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown.open .dropdown-panel { display: block; }
.dropdown-panel-wide { width: 340px; max-height: 420px; overflow-y: auto; }
.dropdown-title { font-size: 13px; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border-light); }
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius);
    color: var(--text); font-size: 13.5px;
    background: none; border: none; width: 100%; text-align: left; cursor: pointer;
}
.dropdown-item svg { opacity: .75; }
.dropdown-item:hover { background: var(--gray-1); color: var(--primary); }
.dropdown-item:hover svg { opacity: 1; }
.dropdown-danger, .dropdown-danger:hover { color: var(--danger); }
.dropdown-danger:hover { background: var(--danger-soft); }
.notice-content { padding: 12px; font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.notice-empty { color: var(--text-light); text-align: center; padding: 32px 0; }

.avatar-btn {
    display: flex; align-items: center; gap: 9px;
    background: none; border: none; cursor: pointer; color: var(--text);
    padding: 5px 8px; border-radius: var(--radius); transition: background 0.15s;
}
.avatar-btn:hover { background: var(--gray-1); }
.avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-fallback {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-2)); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.avatar-name { font-size: 13.5px; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 内容区 */
.page-content { padding: 28px; flex: 1; max-width: 1680px; width: 100%; margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.page-header h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.page-desc, .page-header .form-tip { color: var(--text-light); font-size: 13px; margin-top: 5px; }

/* ============ 卡片 ============ */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    padding: 22px 24px;
    margin-bottom: 18px;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border); }
.card-title { font-size: 15.5px; font-weight: 650; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; }
.card-title svg { color: var(--primary); }
.card-title .card-tip { font-size: 12px; color: var(--text-light); font-weight: 400; margin-left: auto; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    padding: 20px;
    display: flex; align-items: center; gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border); }
.stat-icon {
    width: 52px; height: 52px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; flex: none;
    position: relative;
}
.stat-icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .2s; }
.stat-icon.blue { background: linear-gradient(135deg, #E8F1FF, #D6E6FF); color: var(--primary); }
.stat-icon.green { background: linear-gradient(135deg, #E8FFEA, #D6F8D9); color: var(--success); }
.stat-icon.orange { background: linear-gradient(135deg, #FFF3E8, #FFE8CC); color: var(--warning); }
.stat-icon.red { background: linear-gradient(135deg, #FFECE8, #FFDBD6); color: var(--danger); }
html[data-theme="dark"] .stat-icon.blue { background: rgba(64,128,255,.16); }
html[data-theme="dark"] .stat-icon.green { background: rgba(35,195,67,.16); }
html[data-theme="dark"] .stat-icon.orange { background: rgba(255,154,46,.16); }
html[data-theme="dark"] .stat-icon.red { background: rgba(247,101,96,.16); }
.stat-info { min-width: 0; }
.stat-info .stat-label { font-size: 13px; color: var(--text-light); margin-bottom: 3px; }
.stat-info .stat-value { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.25; letter-spacing: -0.02em; }
.stat-info .stat-sub { font-size: 12px; color: var(--text-light); margin-top: 3px; }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 18px; border-radius: var(--radius);
    border: 1px solid transparent; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap; line-height: 1.4; user-select: none;
    box-shadow: var(--shadow-xs);
}
.btn svg { flex: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: var(--primary); color: #FFF; border-color: var(--primary); box-shadow: 0 2px 8px -2px rgba(22,93,255,.5); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #FFF; box-shadow: 0 4px 14px -3px rgba(22,93,255,.55); }
.btn-primary:active { background: var(--primary-active); }
.btn-outline { background: var(--card); color: var(--text-sub); border-color: var(--border-strong); box-shadow: none; }
.btn-outline:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.btn-danger { background: var(--danger); color: #FFF; border-color: var(--danger); box-shadow: 0 2px 8px -2px rgba(245,63,63,.4); }
.btn-danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); color: #FFF; }
.btn-danger-outline { background: var(--card); color: var(--danger); border-color: var(--danger); box-shadow: none; }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: transparent; box-shadow: none; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-success { background: var(--success); color: #FFF; border-color: var(--success); box-shadow: 0 2px 8px -2px rgba(0,180,42,.4); }
.btn-success:hover { background: var(--success-hover); color: #FFF; }
.btn-ghost { background: var(--gray-2); color: var(--text-sub); box-shadow: none; }
.btn-ghost:hover { color: var(--text); background: var(--gray-3); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: var(--radius-xs); gap: 5px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: var(--radius); }
.btn-loading { pointer-events: none; opacity: 0.75; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 8px; font-weight: 550; }
.form-group .form-required::before { content: '* '; color: var(--danger); }
.form-group .form-tip, .form-tip { font-size: 12px; color: var(--text-light); margin-top: 6px; line-height: 1.6; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="url"], input[type="date"], input[type="datetime-local"], input[type="tel"], select, textarea {
    width: 100%; padding: 10px 13px; min-height: 40px;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--card); color: var(--text);
    font-size: 14px; font-family: inherit; line-height: 1.5;
    transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
    outline: none;
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--gray-5); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--shadow-focus); }
input::placeholder, textarea::placeholder { color: var(--text-placeholder); }
textarea { resize: vertical; min-height: 88px; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-inline .form-group { margin-bottom: 0; min-width: 150px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }

/* 单选组 / 上游权重行 */
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-item {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
    font-size: 13.5px; cursor: pointer; transition: all .15s; background: var(--card);
}
.radio-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.upstream-row { padding: 14px; background: var(--gray-1); border: 1px solid var(--border-light); border-radius: var(--radius); }
.group-row { padding: 14px; background: var(--gray-1); border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 10px; }
.group-name { font-weight: 600; color: var(--text); }

/* 开关 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--gray-4); border-radius: 22px; transition: 0.2s; cursor: pointer; }
.switch .slider::before {
    content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
    background: #FFF; border-radius: 50%; transition: 0.2s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-xs); }
.table-toolbar { display: flex; align-items: center; gap: 10px; padding: 16px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--border-light); }
.table-toolbar .toolbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left; padding: 13px 16px;
    background: var(--gray-1); color: var(--text-sub);
    font-weight: 600; font-size: 12.5px; white-space: nowrap;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.02em;
}
.table th:first-child { border-top-left-radius: 0; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: var(--primary-soft); }
.table .table-empty { text-align: center; color: var(--text-light); padding: 48px 0 !important; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table .link-btn { color: var(--primary); background: none; border: none; cursor: pointer; font-size: 13px; padding: 2px 4px; border-radius: 4px; }
.table .link-btn:hover { background: var(--primary-soft); text-decoration: none; }
.table .link-btn.danger { color: var(--danger); }
.table .link-btn.danger:hover { background: var(--danger-soft); }
.table .mono, .mono { font-family: var(--font-mono); font-size: 12.5px; }
.key-mask { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-sub); }
.key-mask .key-visible, .key-text { word-break: break-all; font-family: var(--font-mono); }
.up-weight, .up-priority { font-family: var(--font-mono); }

/* 分页 */
.pagination { display: flex; align-items: center; gap: 6px; padding: 16px 2px 2px; flex-wrap: wrap; }
.page-info { color: var(--text-light); font-size: 13px; margin-right: 8px; }
.page-btn { padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text-sub); font-size: 13px; background: var(--card); transition: all .15s; }
.page-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #FFF; }
.page-dots { color: var(--text-light); padding: 0 2px; }

/* ============ 徽章 ============ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-orange { background: var(--warning-soft); color: var(--warning); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: var(--gray-2); color: var(--text-light); }

/* ============ 弹窗 ============ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 20, 35, 0.5);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 20px;
}
html[data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.66); }
.modal-overlay.visible { display: flex; }
.modal {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 560px; max-height: 88vh;
    display: flex; flex-direction: column; overflow: hidden;
    animation: modal-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-sm { max-width: 440px; }
.modal-md { max-width: 640px; }
.modal-lg { max-width: 820px; }
.modal-notice { max-width: 540px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.modal-title { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.modal-title svg { color: var(--primary); }
.modal-title.danger { color: var(--danger); }
.modal-title.danger svg { color: var(--danger); }
.modal-title.success { color: var(--success); }
.modal-title.warning { color: var(--warning); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-light); padding: 6px; border-radius: var(--radius); display: flex; transition: all .15s; }
.modal-close:hover { color: var(--text); background: var(--gray-2); }
.modal-body { padding: 24px; overflow-y: auto; font-size: 14px; color: var(--text-sub); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border-light); background: var(--gray-1); }

/* ============ Toast ============ */
.toast-box { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 10px;
    background: var(--card); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 12px 20px; border-radius: var(--radius);
    font-size: 13.5px; font-weight: 500; color: var(--text);
    animation: toast-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 3px solid var(--primary); min-width: 200px;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--primary); }
.toast-success svg { color: var(--success); }
.toast-error svg { color: var(--danger); }
.toast-warning svg { color: var(--warning); }
.toast-info svg { color: var(--primary); }

/* ============ 图表 ============ */
.chart-box { width: 100%; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.chart-legend .legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-sub); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* 空状态 */
.empty-state { text-align: center; padding: 52px 0; color: var(--text-light); }
.empty-state svg { color: var(--text-light); opacity: 0.45; margin-bottom: 12px; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-item {
    display: flex; align-items: center; gap: 12px; padding: 16px;
    background: var(--gray-1); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); color: var(--text);
    transition: all 0.18s; font-size: 14px; font-weight: 500;
}
.quick-item > svg:first-child { color: var(--primary); }
.quick-item > svg:last-child { margin-left: auto; color: var(--text-light); }
.quick-item:hover { background: var(--primary-soft); border-color: var(--primary-soft-2); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-item:hover > svg:last-child { color: var(--primary); }

/* 告警提示 */
.alert { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border-radius: var(--radius); font-size: 13.5px; line-height: 1.6; margin-bottom: 12px; border: 1px solid transparent; }
.alert svg { flex: none; margin-top: 1px; }
.alert-warning { background: var(--warning-soft); color: #B45D00; border-color: rgba(255,125,0,.18); }
.alert-danger { background: var(--danger-soft); color: #CB2634; border-color: rgba(245,63,63,.16); }
.alert-info { background: var(--primary-soft); color: var(--primary); border-color: rgba(22,93,255,.14); }
.alert-success { background: var(--success-soft); color: #009A29; border-color: rgba(0,180,42,.16); }
html[data-theme="dark"] .alert-warning { color: var(--warning); }
html[data-theme="dark"] .alert-danger { color: var(--danger); }
html[data-theme="dark"] .alert-success { color: var(--success); }

/* 富文本 */
.rich-text { line-height: 1.9; font-size: 14px; color: var(--text); word-break: break-word; }
.rich-text a { color: var(--primary); }
.rich-text img { border-radius: var(--radius); }
.rich-text ul, .rich-text ol { padding-left: 24px; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin: 16px 0 10px; }
.rich-text p { margin: 8px 0; }
.rich-text blockquote { border-left: 3px solid var(--primary-soft-2); padding-left: 14px; color: var(--text-light); background: var(--gray-1); }

/* 富文本编辑器 */
.editor-toolbar { display: flex; gap: 3px; flex-wrap: wrap; padding: 8px; background: var(--gray-1); border: 1px solid var(--border-strong); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.editor-toolbar button { background: none; border: none; cursor: pointer; padding: 7px 10px; border-radius: var(--radius-xs); color: var(--text-sub); font-size: 13px; display: flex; align-items: center; transition: all .15s; }
.editor-toolbar button:hover { background: var(--card); color: var(--primary); box-shadow: var(--shadow-xs); }
.editor-area { min-height: 220px; max-height: 480px; overflow-y: auto; padding: 16px; border: 1px solid var(--border-strong); border-radius: 0 0 var(--radius) var(--radius); background: var(--card); font-size: 14px; line-height: 1.8; outline: none; }
.editor-area:focus { border-color: var(--primary); box-shadow: var(--shadow-focus); }
.editor-area[data-empty="true"]::before { content: attr(data-placeholder); color: var(--text-placeholder); pointer-events: none; }

/* 代码块 */
.code-block { position: relative; background: #151A23; color: #D6DBE4; border-radius: var(--radius-lg); padding: 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; overflow-x: auto; white-space: pre; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.06); }
html[data-theme="dark"] .code-block { background: #0B0D12; }
.code-block .code-lang { position: absolute; top: 10px; right: 12px; font-size: 11px; color: #7A8290; }
.code-copy { position: absolute; top: 8px; right: 52px; background: rgba(255,255,255,0.08); border: none; color: #A9AEB8; border-radius: var(--radius-xs); padding: 4px 10px; cursor: pointer; font-size: 11px; transition: all .15s; }
.code-copy:hover { background: rgba(255,255,255,0.16); color: #FFF; }

/* 文档页锚点布局 */
.doc-layout { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.doc-nav { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-xs); }
.doc-nav a { display: block; padding: 9px 12px; color: var(--text-sub); font-size: 13px; border-radius: var(--radius); border-left: 2px solid transparent; transition: all .15s; }
.doc-nav a:hover, .doc-nav a.active { color: var(--primary); background: var(--primary-soft); border-left-color: var(--primary); }
.doc-section { margin-bottom: 30px; }
.doc-section h3 { font-size: 17px; font-weight: 650; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }

/* Tab 切换 */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-item { padding: 11px 20px; font-size: 14px; font-weight: 500; color: var(--text-sub); cursor: pointer; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; display: inline-flex; align-items: center; gap: 7px; transition: all .15s; }
.tab-item:hover { color: var(--primary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 上游渠道权重标签 */
.tag-input-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { display: inline-flex; align-items: center; gap: 7px; background: var(--primary-soft); color: var(--primary); border-radius: var(--radius); padding: 5px 11px; font-size: 13px; font-weight: 500; }
.tag-item .tag-remove { cursor: pointer; display: flex; color: inherit; opacity: 0.7; }
.tag-item .tag-remove:hover { opacity: 1; }

/* 模型多选 */
.model-check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 240px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px 14px; }
.model-check-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; padding: 4px; border-radius: var(--radius-xs); }
.model-check-item:hover { background: var(--gray-1); }

/* 错误页 */
.error-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(800px 400px at 50% 0%, var(--primary-soft), transparent 70%), var(--bg); }
.error-card { text-align: center; background: var(--card); padding: 56px 72px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.error-code { font-size: 72px; font-weight: 800; color: var(--primary); line-height: 1.1; letter-spacing: -0.04em; }
.error-msg { color: var(--text-light); margin-top: 10px; font-size: 15px; }
.mt24 { margin-top: 24px; }
.tip-icon { color: var(--text-light); cursor: help; vertical-align: -2px; }

/* ============ 步骤条（安装页） ============ */
.steps { display: flex; margin-bottom: 30px; position: relative; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-item::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.step-item:first-child::before { display: none; }
.step-item.done::before, .step-item.active::before { background: var(--primary); }
.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--card); color: var(--text-light);
    border: 2px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; position: relative; z-index: 1;
    transition: all 0.25s;
}
.step-item.active .step-dot { border-color: var(--primary); background: var(--primary); color: #FFF; box-shadow: 0 0 0 5px var(--primary-soft); }
.step-item.done .step-dot { border-color: var(--primary); background: var(--primary); color: #FFF; }
.step-label { font-size: 12.5px; color: var(--text-light); margin-top: 9px; font-weight: 500; }
.step-item.active .step-label { color: var(--primary); font-weight: 600; }
.step-item.done .step-label { color: var(--text-sub); }

/* 加载动画 */
.btn .btn-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #FFF; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-outline .btn-spinner, .btn-ghost .btn-spinner, .btn-danger-outline .btn-spinner { border-color: rgba(22,93,255,0.25); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-nav { display: none; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .sidebar.open ~ .sidebar-mask { display: block; position: fixed; inset: 0; background: rgba(15,20,35,.5); backdrop-filter: blur(2px); z-index: 55; animation: fade-in .2s; }
    .app-main { margin-left: 0; }
    .hamburger { display: flex; }
    .topbar { padding: 0 16px; }
    .topbar-title { font-size: 16px; }
    .topbar-link span { display: none; }
    .avatar-name { display: none; }
    .page-content { padding: 18px 14px; }
    .stat-grid, .stat-grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .quick-grid { grid-template-columns: 1fr; }
    .model-check-list { grid-template-columns: 1fr; }
    .modal { max-width: 100%; }
    .table-toolbar { padding: 12px; }
    .auth-card { padding: 32px 24px 28px; }
    .error-card { padding: 44px 32px; }
}
@media (max-width: 480px) {
    .stat-grid, .stat-grid-3 { grid-template-columns: 1fr; }
    .step-label { font-size: 11px; }
    .auth-body { padding: 20px 14px; }
}

/* 打印隐藏侧栏 */
@media print {
    .sidebar, .topbar, .table-toolbar, .sidebar-mask { display: none !important; }
    .app-main { margin-left: 0 !important; }
    .card, .stat-card { box-shadow: none; break-inside: avoid; }
}

/* =====================================================
   安装向导专属样式
   ===================================================== */
.install-shell {
    width: 100%; max-width: 980px;
    display: grid; grid-template-columns: 320px 1fr;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    overflow: hidden; position: relative; z-index: 1;
}
.install-aside {
    background: linear-gradient(160deg, #1B2B62 0%, #165DFF 55%, #4D90FF 100%);
    color: #FFF; padding: 44px 34px;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.install-aside::before {
    content: ''; position: absolute; width: 340px; height: 340px;
    border-radius: 50%; background: rgba(255,255,255,.08);
    top: -130px; right: -150px;
}
.install-aside::after {
    content: ''; position: absolute; width: 240px; height: 240px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
    bottom: -80px; left: -90px;
}
.install-aside > * { position: relative; z-index: 1; }
.install-aside .auth-logo { box-shadow: 0 8px 22px -6px rgba(0,0,0,.4); }
.install-brand-title { font-size: 23px; font-weight: 700; margin-top: 20px; letter-spacing: -0.02em; }
.install-brand-sub { font-size: 13px; opacity: .82; margin-top: 8px; line-height: 1.7; }
.install-features { list-style: none; margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.install-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; }
.install-features .fin {
    width: 22px; height: 22px; border-radius: 50%; flex: none;
    background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.install-features li b { display: block; font-weight: 600; }
.install-features li span { opacity: .78; font-size: 12px; }
.install-aside-footer { margin-top: auto; padding-top: 30px; font-size: 12px; opacity: .7; line-height: 1.8; }
.install-main { padding: 40px 44px; min-width: 0; }
.install-main .card { box-shadow: none; background: var(--gray-1); margin-bottom: 0; padding: 22px 24px; }
.install-main .card-title { font-size: 14.5px; }
.install-check-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 13.5px; }
.install-check-row:last-child { border-bottom: none; }
.install-check-row .badge { margin-left: auto; }
.install-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 10px; }
.install-actions .right { display: flex; gap: 10px; }
.install-success-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--success-soft); color: var(--success);
    display: flex; align-items: center; justify-content: center;
}
.install-success-title { font-size: 24px; font-weight: 700; color: var(--success); text-align: center; }
.install-success-info { color: var(--text-sub); font-size: 13.5px; line-height: 2.1; margin-top: 16px; text-align: center; }
.install-success-info b { color: var(--text); font-family: var(--font-mono); background: var(--gray-1); padding: 2px 8px; border-radius: 5px; }
.install-path { color: var(--primary); font-weight: 600; }
@media (max-width: 820px) {
    .install-shell { grid-template-columns: 1fr; max-width: 560px; }
    .install-aside { padding: 30px 30px 26px; }
    .install-features, .install-aside-footer { display: none; }
    .install-main { padding: 28px 24px; }
}
@media (max-width: 480px) {
    .install-main { padding: 24px 18px; }
    .install-actions { flex-wrap: wrap; }
}

/* =====================================================
   公开首页（落地页）专属样式
   ===================================================== */
.landing-body { background: var(--card); }
.landing-header {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1180px; margin: 0 auto; padding: 0 28px;
    height: 72px;
}
.landing-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.landing-brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 10px rgba(22,93,255,.3); }
.landing-brand span { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.landing-nav { display: flex; align-items: center; gap: 8px; }
.landing-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 92px 24px 88px;
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(22,93,255,.14), transparent 60%),
        radial-gradient(500px 300px at 85% 30%, rgba(64,128,255,.10), transparent 60%),
        linear-gradient(180deg, #FBFCFF, var(--card));
    border-bottom: 1px solid var(--border-light);
}
html[data-theme="dark"] .landing-hero {
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(64,128,255,.16), transparent 60%),
        linear-gradient(180deg, #12161F, var(--card));
}
.landing-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(22,93,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(22,93,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%);
    pointer-events: none;
}
.landing-hero > * { position: relative; z-index: 1; }
.landing-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 12.5px; font-weight: 600; margin-bottom: 26px;
    border: 1px solid var(--primary-soft-2);
}
.landing-pill .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft-2); }
.landing-title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; margin: 0 0 18px; }
.landing-title .grad {
    background: linear-gradient(100deg, #165DFF, #4D90FF 60%, #722ED1);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dark"] .landing-title .grad { background: linear-gradient(100deg, #6C9CFF, #4D90FF 55%, #B37FEB); -webkit-background-clip: text; background-clip: text; }
.landing-desc { font-size: 16px; color: var(--text-sub); max-width: 620px; margin: 0 auto 32px; line-height: 1.85; }
.landing-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.landing-cta .btn { padding: 13px 26px; font-size: 15px; }
.landing-trust { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 52px; }
.landing-trust .t-item { display: flex; align-items: baseline; gap: 7px; }
.landing-trust .t-num { font-size: 24px; font-weight: 750; color: var(--text); letter-spacing: -0.02em; }
.landing-trust .t-label { font-size: 12.5px; color: var(--text-light); }
.landing-section { max-width: 1180px; margin: 0 auto; padding: 72px 28px; }
.landing-section-title { text-align: center; font-size: 30px; font-weight: 750; letter-spacing: -0.03em; margin-bottom: 12px; }
.landing-section-sub { text-align: center; color: var(--text-light); font-size: 14.5px; margin-bottom: 44px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 30px 26px; box-shadow: var(--shadow-xs); transition: all 0.22s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-soft-2); }
.feature-icon { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon.blue { background: linear-gradient(135deg, #E8F1FF, #D6E6FF); color: var(--primary); }
.feature-icon.green { background: linear-gradient(135deg, #E8FFEA, #D6F8D9); color: var(--success); }
.feature-icon.orange { background: linear-gradient(135deg, #FFF3E8, #FFE8CC); color: var(--warning); }
html[data-theme="dark"] .feature-icon.blue { background: rgba(64,128,255,.16); }
html[data-theme="dark"] .feature-icon.green { background: rgba(35,195,67,.16); }
html[data-theme="dark"] .feature-icon.orange { background: rgba(255,154,46,.16); }
.feature-card h3 { font-size: 17px; font-weight: 650; margin-bottom: 10px; }
.feature-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.85; margin: 0; }
.landing-cta-band {
    max-width: 1180px; margin: 0 auto 72px; padding: 0 28px;
}
.landing-cta-inner {
    background: linear-gradient(120deg, #165DFF, #4080FF);
    border-radius: var(--radius-xl); padding: 48px 40px; text-align: center; color: #FFF;
    box-shadow: 0 16px 40px -16px rgba(22,93,255,.6); position: relative; overflow: hidden;
}
.landing-cta-inner::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.08); top: -180px; left: -80px; }
.landing-cta-inner::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); bottom: -140px; right: -40px; }
.landing-cta-inner h2 { color: #FFF; font-size: 26px; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1; }
.landing-cta-inner p { opacity: .9; font-size: 14px; margin-bottom: 24px; position: relative; z-index: 1; }
.landing-cta-inner .btn-light { background: #FFF; color: var(--primary); border-color: #FFF; position: relative; z-index: 1; }
.landing-cta-inner .btn-light:hover { background: var(--gray-1); color: var(--primary-active); }
.landing-footer { text-align: center; padding: 28px 20px 36px; border-top: 1px solid var(--border-light); color: var(--text-light); font-size: 12.5px; line-height: 1.9; }
@media (max-width: 768px) {
    .landing-hero { padding: 64px 20px 60px; }
    .landing-desc { font-size: 14.5px; }
    .landing-section { padding: 52px 20px; }
    .feature-grid { grid-template-columns: 1fr; }
    .landing-nav .btn { padding: 7px 12px; font-size: 13px; }
    .landing-trust { gap: 18px; }
}
