/* ================================================================
   抖音直播卖货记账系统 - 官网样式 v5.0
   设计：深空科技风 | Dark Tech
   ================================================================ */

/* ── Design Tokens ──────────────────────────── */
:root {
    --bg-deep:    #05060F;
    --bg-body:    #080B1A;
    --bg-section: #0B0E1F;
    --bg-card:    rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(79, 140, 247, 0.35);
    --text:       #EDF0F7;
    --text-sec:   #8E9BB8;
    --text-muted: #505D7A;
    --primary:    #4F8CF7;
    --primary-dark: #2563EB;
    --primary-glow: rgba(79, 140, 247, 0.25);
    --accent:     #8B5CF6;
    --accent-glow: rgba(139, 92, 246, 0.25);
    --cyan:       #22D3EE;
    --success:    #34D399;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-2xl: 32px;
    --shadow:     0 4px 24px rgba(0,0,0,.4);
    --shadow-lg:  0 12px 48px rgba(0,0,0,.5);
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 动态粒子画布背景 */
#bgCanvas {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* 光晕底层 */
body::after {
    content: '';
    position: fixed; top: -50%; left: -50%;
    width: 200%; height: 200%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(79,140,247,.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 40%, rgba(139,92,246,.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(34,211,238,.04) 0%, transparent 60%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Navigation ──────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(8,11,26,.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 10px 0;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; letter-spacing: -.5px;
    color: var(--text);
}
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 4px 16px var(--primary-glow);
}
.logo-text {
    background: linear-gradient(135deg, #EDF0F7, #8E9BB8);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu a {
    font-size: 14px; font-weight: 500; color: var(--text-sec);
    position: relative; padding: 4px 0;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px; transition: width .3s ease;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover::after { width: 100%; }
.btn-nav-admin {
    padding: 8px 20px !important;
    background: linear-gradient(135deg, rgba(79,140,247,.2), rgba(139,92,246,.2));
    border: 1px solid rgba(79,140,247,.3); border-radius: 10px;
    color: var(--text) !important;
}
.btn-nav-admin:hover {
    background: linear-gradient(135deg, rgba(79,140,247,.35), rgba(139,92,246,.35));
    border-color: var(--primary);
}
.btn-nav-admin::after { display: none !important; }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ── Section Header ──────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-tag {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    background: rgba(79,140,247,.1); color: var(--primary);
    border: 1px solid rgba(79,140,247,.2); margin-bottom: 16px;
}
.section-header h2 {
    font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 14px;
}
.section-header h2 .gradient {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-header p {
    font-size: 16px; color: var(--text-sec); max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
    border-radius: 12px; cursor: pointer; transition: var(--transition);
    font-size: 15px; border: none; white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3B82F6);
    color: #fff; box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79,140,247,.4);
}
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid rgba(255,255,255,.15);
}
.btn-outline:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(79,140,247,.06);
}
.btn-block { display: flex; justify-content: center; }

/* ── Hero ────────────────────────────────────── */
.hero {
    padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(79,140,247,.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container {
    display: flex; flex-direction: column; gap: 32px;
}

.hero-content {
    text-align: center; max-width: 720px; margin: 0 auto;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 20px;
    background: rgba(79,140,247,.08); border: 1px solid rgba(79,140,247,.18);
    font-size: 13px; font-weight: 600; color: var(--primary);
}

.hero-badge-sm {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.hero-badge::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 8px rgba(52,211,153,.6);
    animation: pulse-dot 2s ease infinite;
}

.hero-actions .hero-badge {
    flex-shrink: 0;
}
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:.4;} }

.hero-title {
    font-size: 44px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.2; margin-bottom: 16px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 20%, var(--cyan) 60%, var(--accent) 100%);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite; background-size: 200% 200%;
}
@keyframes gradient-shift {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 16px; color: var(--text-sec); line-height: 1.75; margin-bottom: 28px;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-stats { display: flex; gap: 36px; margin-bottom: 32px; justify-content: center; }
.stat-item { text-align: center; }
.stat-num {
    display: block; font-size: 28px; font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--text-sec));
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-muted); }
.hero-actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ================================================================
   Hero 软件 UI 展示 — 对齐 PyQt5 桌面端真机 QSS 样式
   源文件: app/ui/styles.py CYBER_THEME + main_window.py 布局
   色彩: bg #060b14 | nav #080d1a | border #1a2540
          text #e8ecf4 | sec #8b9cc0 | muted #5a6d8c
          cyan #00d4ff | purple #8b5cf6 | pink #ec4899
   ================================================================ */

.hero-visual { position: relative; width: 100%; }

/* ── 应用窗口容器 ── */
.hero-visual .app-window {
    background: #060b14;
    border: 1px solid #1a2540;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.3);
    position: relative;
}
/* 顶部窗口标题栏 —— 模拟 Windows 桌面标题栏 */
.hero-visual .app-titlebar {
    display: flex; align-items: center; gap: 12px;
    height: 36px; padding: 0 16px;
    background: #080d1a;
    border-bottom: 1px solid #1a2540;
    user-select: none;
}
.hero-visual .app-traffic { display: flex; gap: 7px; flex-shrink: 0; }
.hero-visual .app-traffic span {
    width: 12px; height: 12px; border-radius: 50%; cursor: default;
}
.hero-visual .app-traffic .close    { background: #FF5F57; }
.hero-visual .app-traffic .minimize { background: #FEBc2E; }
.hero-visual .app-traffic .maximize { background: #28C840; }
.hero-visual .app-title {
    font-size: 12px; color: #5a6d8c; font-weight: 400;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-family: "Microsoft YaHei","PingFang SC","Inter",sans-serif;
}

/* ── 应用主体 ── */
.hero-visual .app-body {
    display: flex; height: 560px; position: relative;
}

/* ═══════════════════════════════════════════
   侧边栏 #sideNavBar (桌面端宽度: 290px)
   bg #080d1a    border-right #1a2540
   ═══════════════════════════════════════════ */
.hero-visual .app-sidebar {
    width: 240px; flex-shrink: 0;
    background: #080d1a;
    border-right: 1px solid #1a2540;
    display: flex; flex-direction: column;
}

/* -- 侧边栏 Logo 区 -- */
.hero-visual .sidebar-logo {
    display: flex; align-items: center; gap: 11px;
    padding: 18px 14px 14px;
    border-bottom: 1px solid #1a2540;
}
.hero-visual .sidebar-logo-avatar {
    width: 38px; height: 38px; border-radius: 8px;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6, #ec4899);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.hero-visual .sidebar-logo-text { line-height: 1.2; }
.hero-visual .sidebar-logo-name {
    font-size: 14px; font-weight: 700; color: #e8ecf4;
    font-family: "Microsoft YaHei","PingFang SC",sans-serif;
}
.hero-visual .sidebar-logo-ver {
    font-size: 10px; color: #5a6d8c;
}

/* -- 侧边栏分类标签 (桌面端: #navCategoryLabel) -- */
.hero-visual .sidebar-category {
    font-size: 10px; color: #5a6d8c; text-transform: uppercase;
    letter-spacing: .12em; padding: 14px 16px 4px; font-weight: 700;
}

/* -- 侧边栏导航项 (桌面端: #sidebarNavBtn) -- */
.hero-visual .app-sidebar-item {
    display: flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 14px; margin: 1px 8px;
    border-radius: 8px; border-left: 3px solid transparent;
    font-size: 13px; cursor: pointer; font-weight: 400;
    color: #8b9cc0;
    background: transparent;
    transition: all .12s ease;
}
.hero-visual .app-sidebar-item:hover {
    background: rgba(0,200,255,.06);
    color: #e8ecf4;
}
.hero-visual .app-sidebar-item.active {
    background: linear-gradient(to right, rgba(0,200,255,.1), rgba(139,92,246,.06));
    color: #fff; font-weight: 600;
    border-left: 3px solid #00d4ff;
}
/* icon */
.hero-visual .app-sidebar-item .side-icon {
    font-size: 15px; width: 22px; text-align: center; flex-shrink: 0;
}
/* badge (桌面端: #navBadge — 红粉渐变) */
.hero-visual .app-sidebar-item .side-badge {
    margin-left: auto; font-size: 10px; font-weight: 700;
    padding: 1px 8px; border-radius: 10px;
    background: linear-gradient(135deg, #ef4444, #ec4899); color: #fff;
}

/* -- 侧边栏底部用户区 (桌面端: #sidebarUserWidget) -- */
.hero-visual .sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 14px 16px; margin-top: auto;
    border-top: 1px solid #1a2540;
}
.hero-visual .sidebar-user-avatar {
    width: 36px; height: 36px; border-radius: 18px; flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
}
.hero-visual .sidebar-user-name {
    font-size: 13px; font-weight: 600; color: #e8ecf4;
}
.hero-visual .sidebar-user-role {
    font-size: 11px; color: #5a6d8c;
}

/* ═══════════════════════════════════════════
   内容区 (桌面端: QMainWindow 中央 Widget)
   bg #060b14
   ═══════════════════════════════════════════ */
.hero-visual .app-content {
    flex: 1; padding: 22px 24px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 16px;
    background: #060b14;
}

/* -- 页面标题 + 面包屑 (桌面端: #pageTitle / #breadcrumbLabel) -- */
.hero-visual .content-header { margin-bottom: 2px; }
.hero-visual .content-header .page-title {
    font-size: 20px; font-weight: 700; color: #e8ecf4;
    font-family: "Microsoft YaHei","PingFang SC",sans-serif;
}
.hero-visual .content-header .breadcrumb {
    font-size: 11px; color: #5a6d8c; margin-top: 2px;
}
.hero-visual .content-header .breadcrumb span {
    color: #00d4ff;
}

/* -- 顶部快捷操作按钮行 (桌面端: #iconBtn + #primaryActionBtn) -- */
.hero-visual .top-actions {
    display: flex; align-items: center; gap: 10px;
}
.hero-visual .top-action-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: #0d1528; border: 1px solid #1a2540;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; cursor: pointer; transition: all .15s ease;
}
.hero-visual .top-action-btn:hover { border-color: #00d4ff; }
.hero-visual .top-action-primary {
    height: 36px; padding: 0 18px; border-radius: 20px; border: none;
    background: linear-gradient(135deg, #00c8f0, #8b5cf6);
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: inherit; white-space: nowrap;
    transition: opacity .15s ease;
}
.hero-visual .top-action-primary:hover { opacity: .85; }

/* -- 统计卡片 (桌面端: #statCard) -- */
.hero-visual .app-stat-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.hero-visual .app-stat-card {
    background: rgba(13,21,40,.65);
    border: 1px solid rgba(30,58,95,.5);
    border-left: 4px solid #00d4ff;
    border-radius: 10px; padding: 16px 18px;
    transition: all .15s ease;
    position: relative;
}
.hero-visual .app-stat-card:hover {
    border-color: rgba(0,200,255,.35);
    background: rgba(17,27,50,.75);
}
/* 四张卡片四种左边框色 (桌面端: border-left: 4px solid {color}) */
.hero-visual .app-stat-cards .app-stat-card:nth-child(1) { border-left-color: #00d4ff; }
.hero-visual .app-stat-cards .app-stat-card:nth-child(2) { border-left-color: #10b981; }
.hero-visual .app-stat-cards .app-stat-card:nth-child(3) { border-left-color: #8b5cf6; }
.hero-visual .app-stat-cards .app-stat-card:nth-child(4) { border-left-color: #f59e0b; }
/* 副面板卡片也使用彩色左边框 */
.hero-visual .app-stat-cards.finance .app-stat-card:nth-child(1) { border-left-color: #00d4ff; }
.hero-visual .app-stat-cards.finance .app-stat-card:nth-child(2) { border-left-color: #ef4444; }
.hero-visual .app-stat-cards.finance .app-stat-card:nth-child(3) { border-left-color: #10b981; }
.hero-visual .app-stat-cards.finance .app-stat-card:nth-child(4) { border-left-color: #8b5cf6; }

.hero-visual .app-stat-label {
    font-size: 12px; color: #5a6d8c; margin-bottom: 6px;
}
.hero-visual .app-stat-value {
    font-size: 24px; font-weight: 700; color: #e8ecf4; line-height: 1.1;
    font-family: "Microsoft YaHei","PingFang SC",sans-serif;
}
.hero-visual .app-stat-sub {
    height: 20px; display: flex; align-items: flex-end;
    font-size: 12px; margin-top: 4px;
}
.hero-visual .app-stat-sub.up   { color: #10b981; }
.hero-visual .app-stat-sub.down { color: #ef4444; }

/* -- 表格容器 (桌面端: #tablePanel / QTableWidget) -- */
.hero-visual .app-table-wrap {
    background: rgba(13,21,40,.45);
    border: 1px solid rgba(30,58,95,.4);
    border-radius: 10px; overflow: hidden;
}
.hero-visual .app-table-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid rgba(30,58,95,.3);
}
.hero-visual .app-table-header h4 {
    font-size: 14px; font-weight: 700; color: #e8ecf4;
    font-family: "Microsoft YaHei","PingFang SC",sans-serif;
}
.hero-visual .app-table {
    width: 100%; border-collapse: collapse;
}
.hero-visual .app-table th {
    text-align: left; padding: 10px 18px; font-size: 11px;
    color: #5a6d8c; text-transform: uppercase; letter-spacing: .05em;
    font-weight: 600; border-bottom: 1px solid rgba(30,58,95,.25);
    background: rgba(0,0,0,.15);
}
.hero-visual .app-table td {
    padding: 10px 18px; font-size: 13px;
    border-bottom: 1px solid rgba(26,37,64,.2);
    color: #8b9cc0; transition: background .12s ease;
}
.hero-visual .app-table tbody tr:hover td {
    background: rgba(0,200,255,.03);
}
.hero-visual .app-table tbody tr:last-child td { border-bottom: none; }
.hero-visual .app-table .cell-highlight { color: #00d4ff; font-weight: 600; }
.hero-visual .app-table .cell-success  { color: #10b981; }
.hero-visual .app-table .cell-warn     { color: #f59e0b; }

/* 表格内标签 pill (桌面端: #incomeTag / #expenseTag) */
.hero-visual .app-tag {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 2px 10px; border-radius: 10px;
}
.hero-visual .app-tag.income  { background: rgba(16,185,129,.12); color: #10b981; }
.hero-visual .app-tag.expense { background: rgba(239,68,68,.12);  color: #ef4444; }
.hero-visual .app-tag.pending { background: rgba(245,158,11,.12); color: #f59e0b; }

/* ── 底部状态栏 (桌面端: #footerBar) ── */
.hero-visual .app-statusbar {
    display: flex; align-items: center; gap: 12px;
    height: 32px; padding: 0 16px; font-size: 11px;
    color: #5a6d8c; background: #080d1a;
    border-top: 1px solid #1a2540;
}
.hero-visual .app-statusbar .status-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #10b981;
    flex-shrink: 0; margin-right: 2px;
}

/* ── 内容面板切换 ── */
.hero-visual .app-content-panel { display: none; }
.hero-visual .app-content-panel.active {
    display: flex; flex-direction: column; gap: 16px;
}
.hero-visual .divider-label {
    font-size: 11px; color: #5a6d8c; text-transform: uppercase;
    letter-spacing: .08em; padding: 4px 0; font-weight: 600;
    border-bottom: 1px solid rgba(26,37,64,.4);
}
.hero-visual .dialog_tag {
    font-size: 11px; color: #5a6d8c;
    margin-bottom: -8px;
}

/* ── 主播管理面板 ── */
.hero-visual .app-anchor-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.hero-visual .app-anchor-card {
    background: rgba(13,21,40,.55);
    border: 1px solid rgba(30,58,95,.4);
    border-radius: 10px; padding: 18px;
    text-align: center; transition: all .15s ease;
}
.hero-visual .app-anchor-card:hover {
    border-color: rgba(0,200,255,.3); background: rgba(17,27,50,.7);
}
.hero-visual .anchor-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}
.hero-visual .anchor-name {
    font-size: 14px; font-weight: 700; color: #e8ecf4; margin-bottom: 2px;
}
.hero-visual .anchor-role { font-size: 11px; color: #5a6d8c; margin-bottom: 8px; }
.hero-visual .anchor-stats {
    display: flex; justify-content: center; gap: 14px; font-size: 11px; color: #8b9cc0;
    margin-bottom: 8px;
}
.hero-visual .anchor-status { font-size: 11px; font-weight: 600; }
.hero-visual .anchor-status.online  { color: #10b981; }
.hero-visual .anchor-status.offline { color: #5a6d8c; }

/* ── 股东管理 / 分红面板 ── */
.hero-visual .app-dividend-calc {
    background: rgba(13,21,40,.45);
    border: 1px solid rgba(30,58,95,.4);
    border-radius: 10px; padding: 18px 20px;
}
.hero-visual .app-calc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 13px;
}
.hero-visual .app-calc-row .calc-label { color: #8b9cc0; }
.hero-visual .app-calc-row .calc-value { font-weight: 700; color: #e8ecf4; }
.hero-visual .app-calc-row .calc-value.highlight { color: #00d4ff; font-size: 16px; }
.hero-visual .app-calc-divider {
    height: 1px; background: rgba(30,58,95,.35); margin: 10px 0; position: relative;
}
.hero-visual .app-calc-divider::after {
    content: '分配明细'; position: absolute; top: -8px; left: 50%;
    transform: translateX(-50%); font-size: 10px; color: #5a6d8c;
    background: #060b14; padding: 0 8px;
}
.hero-visual .dividend-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; border-radius: 6px; font-size: 13px; color: #8b9cc0;
    background: rgba(255,255,255,.015); margin-bottom: 4px;
    transition: background .12s ease;
}
.hero-visual .dividend-item:hover { background: rgba(0,200,255,.04); }

/* ── 直播排期 ── */
.hero-visual .app-schedule-list { display: flex; flex-direction: column; gap: 8px; }
.hero-visual .schedule-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 8px;
    background: rgba(13,21,40,.4);
    border: 1px solid rgba(30,58,95,.35);
    transition: all .15s ease;
}
.hero-visual .schedule-item:hover {
    border-color: rgba(0,200,255,.25);
    background: rgba(17,27,50,.6);
}
.hero-visual .sch-time {
    font-size: 11px; color: #5a6d8c; white-space: nowrap; min-width: 60px;
    text-align: center;
}
.hero-visual .sch-time strong { display: block; font-size: 15px; color: #e8ecf4; font-weight: 700; }
.hero-visual .sch-info { flex: 1; font-size: 13px; color: #8b9cc0; }
.hero-visual .sch-info span { color: #00d4ff; font-weight: 600; }
.hero-visual .sch-badge {
    font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 10px;
    white-space: nowrap;
}
.hero-visual .sch-badge.active   { background: rgba(16,185,129,.12); color: #10b981; }
.hero-visual .sch-badge.upcoming { background: rgba(0,200,255,.08);  color: #00d4ff;  }
.hero-visual .sch-badge.future   { background: rgba(255,255,255,.03); color: #5a6d8c; }

/* ── 响应式 ── */
@media (max-width: 1024px) {
    .hero-visual .app-window { border-radius: 8px; }
    .hero-visual .app-body { height: auto; flex-direction: column; }
    .hero-visual .app-sidebar {
        width: 100%; flex-direction: row; overflow-x: auto;
        padding: 0 4px; border-right: none; border-bottom: 1px solid #1a2540;
    }
    .hero-visual .sidebar-logo, .hero-visual .sidebar-category,
    .hero-visual .sidebar-user { display: none; }
    .hero-visual .app-sidebar-item {
        flex-shrink: 0; white-space: nowrap; height: 36px;
        padding: 0 10px; margin: 2px; border-left: none;
        border-bottom: 3px solid transparent; border-radius: 0;
        font-size: 12px;
    }
    .hero-visual .app-sidebar-item.active {
        border-bottom: 3px solid #00d4ff; border-left: none;
        background: transparent;
    }
    .hero-visual .app-sidebar-item .side-badge { display: none; }
    .hero-visual .app-stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Features ────────────────────────────────── */
.features {
    padding: 120px 0; position: relative;
    background: rgba(255,255,255,.01);
}
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border-card);
    border-radius: var(--radius-xl); padding: 36px 28px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: opacity .3s ease;
}
.feature-card:hover {
    background: var(--bg-card-hover); border-color: var(--border-hover);
    transform: translateY(-6px); box-shadow: 0 16px 48px rgba(79,140,247,.08);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(79,140,247,.1); display: flex;
    align-items: center; justify-content: center; font-size: 24px; margin-bottom: 22px;
}
.feature-card:nth-child(even) .feature-icon { background: rgba(139,92,246,.1); }
.feature-card h3 {
    font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px;
}
.feature-card p {
    font-size: 14px; color: var(--text-sec); line-height: 1.7;
}

/* ── Modules ─────────────────────────────────── */
.modules {
    padding: 120px 0; position: relative;
}
.modules-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.module-item {
    background: var(--bg-card); border: 1px solid var(--border-card);
    border-radius: var(--radius-lg); padding: 28px 24px;
    transition: var(--transition); display: flex; gap: 16px; align-items: flex-start;
}
.module-item:hover {
    border-color: var(--border-hover); background: var(--bg-card-hover);
    transform: translateY(-4px);
}
.module-num {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: var(--primary);
    background: rgba(79,140,247,.1); border: 1px solid rgba(79,140,247,.15);
}
.module-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.module-info p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── News ────────────────────────────────────── */
.news {
    padding: 120px 0; position: relative;
    background: rgba(255,255,255,.01);
}
.news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.news-card {
    background: var(--bg-card); border: 1px solid var(--border-card);
    border-radius: var(--radius-xl); overflow: hidden;
    transition: var(--transition); display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.news-card:hover {
    border-color: var(--border-hover); background: var(--bg-card-hover);
    transform: translateY(-6px); box-shadow: 0 16px 48px rgba(79,140,247,.08);
}
.news-card-top {
    height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--cyan));
}
.news-card-body {
    padding: 24px 22px 22px; flex: 1; display: flex; flex-direction: column;
}
.news-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.news-card-category {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 10px;
    letter-spacing: .5px;
}
.news-card-category.announcement { background: rgba(79,140,247,.12); color: var(--primary); }
.news-card-category.update     { background: rgba(251,191,36,.12); color: #FBBF24; }
.news-card-category.guide      { background: rgba(52,211,153,.12); color: var(--success); }
.news-card-category.other      { background: rgba(255,255,255,.05); color: var(--text-sec); }
.news-card-date { font-size: 12px; color: var(--text-muted); }
.news-card-title {
    font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-summary {
    font-size: 14px; color: var(--text-sec); line-height: 1.7; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-card);
}
.news-card-views { font-size: 12px; color: var(--text-muted); }
.news-card-more { font-size: 12px; font-weight: 600; color: var(--primary); }
.news-card.is-top .news-card-body { position: relative; }
.news-card.is-top .news-card-body::after {
    content: '置顶'; position: absolute; top: 16px; right: 16px;
    font-size: 10px; font-weight: 700; color: #fff;
    padding: 2px 8px; border-radius: 4px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
}
.news-loading, .news-empty {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
    font-size: 15px; grid-column: 1/-1;
}
.news-more-link { text-align: center; margin-top: 44px; }
.news-more-link a {
    font-size: 15px; font-weight: 600; color: var(--primary);
    transition: var(--transition);
}
.news-more-link a:hover { color: var(--cyan); }

/* ── Pricing ─────────────────────────────────── */
.pricing {
    padding: 120px 0; position: relative;
}
.pricing-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
    max-width: 1100px; margin: 0 auto 28px;
}
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border-card);
    border-radius: var(--radius-2xl); padding: 36px 28px 32px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.pricing-card.featured {
    border-color: rgba(79,140,247,.3);
    background: linear-gradient(145deg, rgba(79,140,247,.06), rgba(139,92,246,.04));
}
.pricing-card.featured::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--cyan));
}
.pricing-badge {
    position: absolute; top: 20px; right: -32px;
    background: linear-gradient(135deg, var(--primary), #2563EB);
    color: #fff; font-size: 12px; font-weight: 700; padding: 4px 40px;
    transform: rotate(45deg);
}
.pricing-header { margin-bottom: 28px; }
.pricing-header h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pricing-price .currency { font-size: 20px; font-weight: 700; color: var(--text-sec); }
.pricing-price .amount {
    font-size: 42px; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-price .period { font-size: 15px; color: var(--text-muted); }
.pricing-header > p { font-size: 14px; color: var(--text-muted); }
.pricing-features { margin-bottom: 32px; }
.pricing-features li {
    padding: 10px 0; font-size: 14px; color: var(--text-sec);
    border-bottom: 1px solid var(--border-card);
}
.pricing-features li.disabled { color: var(--text-muted); text-decoration: line-through; opacity: .5; }
.pricing-note { text-align: center; font-size: 14px; color: var(--text-muted); }

/* ── Download ────────────────────────────────── */
.download {
    padding: 120px 0; position: relative;
    background: linear-gradient(180deg, var(--bg-section), var(--bg-body));
}
.steps {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-bottom: 60px; flex-wrap: wrap;
}
.step {
    text-align: center; background: var(--bg-card); border: 1px solid var(--border-card);
    border-radius: var(--radius-xl); padding: 36px 40px;
    transition: var(--transition); min-width: 200px;
}
.step:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.step-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(79,140,247,.2);
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-muted); }
.step-arrow { font-size: 28px; color: var(--text-muted); }
.download-card {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    background: linear-gradient(135deg, rgba(79,140,247,.08), rgba(139,92,246,.05));
    border: 1px solid rgba(79,140,247,.2);
    border-radius: var(--radius-2xl); padding: 40px 48px;
    max-width: 800px; margin: 0 auto; flex-wrap: wrap;
}
.download-info h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.download-info p { font-size: 14px; color: var(--text-sec); }
.download-hint { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* ── Footer ──────────────────────────────────── */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--border-card); position: relative; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px; margin-bottom: 48px;
}
.footer-col h4 {
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
    color: var(--text);
}
.footer-col p { font-size: 14px; color: var(--text-sec); line-height: 1.7; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 14px; color: var(--text-sec); }
.footer-col ul li a { color: var(--text-sec); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center; padding-top: 32px; border-top: 1px solid var(--border-card);
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ================================================================
   Scroll-triggered Entrance Animations
   ================================================================ */

/* 初始隐藏，JS 触发后显形 */
.reveal-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    /* delay 由 inline style="--delay:Xms" 控制 */
}
.reveal-on-scroll.revealed {
    animation: fadeInUp .65s cubic-bezier(.34,1.56,.64,1) forwards;
    animation-delay: var(--delay, 0ms);
}

/* 不同方向的入场 */
.reveal-on-scroll.reveal-fade-only.revealed     { animation-name: fadeInOnly; animation-duration: .7s; }
.reveal-on-scroll.reveal-up.revealed            { animation-name: fadeInUp; }
.reveal-on-scroll.reveal-down.revealed          { animation-name: fadeInDown; animation-duration: .6s; }
.reveal-on-scroll.reveal-left.revealed          { animation-name: fadeInLeft; }
.reveal-on-scroll.reveal-right.revealed         { animation-name: fadeInRight; }
.reveal-on-scroll.reveal-scale.revealed         { animation-name: scaleIn; animation-duration: .55s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-36px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInOnly {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.82); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .hero-title { font-size: 42px; }
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { max-width: 540px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr 1fr; max-width: 700px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(8,11,26,.96); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; gap: 32px; z-index: 99;
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: block; z-index: 100; }
    .hero { padding: 120px 0 80px; min-height: auto; }
    .hero-title { font-size: 32px; }
    .section-header h2 { font-size: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .download-card { flex-direction: column; text-align: center; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .modules-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .hero-actions { flex-direction: column; }
}
