/* ============================================================
 * 零时科技 v2.4 品牌收敛（F-FE1 方案 B · 2026-08-27）
 * 设计基准：《零时科技_部署包》暗色体系 → tokens.dark.css 暗色终版（F-FE1 方案 C）
 * 别名层：--lingshi-* 保留旧名指向 --zt-* token；换肤只改 tokens.dark.css
 * 行情红涨绿跌配色不随品牌改动
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--lingshi-bg); color: var(--zt-text, #f8fafc); }

/* ===== 品牌色变量（别名层 → tokens.dark.css 的 --zt-*） ===== */
:root {
  --lingshi-primary: var(--zt-primary, #06b6d4);
  --lingshi-secondary: var(--zt-secondary, #0891b2);
  --lingshi-dark: var(--zt-dark, #22d3ee);
  --lingshi-light: var(--zt-light, rgba(34, 211, 238, 0.14));
  --lingshi-bg: var(--zt-bg, #0b1120);
  --lingshi-border: var(--zt-border, rgba(148, 163, 184, 0.18));
  --sidebar-w: 220px;
  --sidebar-w-mini: 64px;
}

/* ===== 顶部 header（简洁带折叠按钮） ===== */
.header {
  background: var(--zt-surface, #111827); padding: 12px 28px; border-bottom: 1px solid var(--lingshi-border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 50;
}
.header-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.header h1 { font-size: 19px; font-weight: 800; color: var(--lingshi-dark); letter-spacing: 1px; line-height: 1.2; }
.header .sub { font-size: 11px; color: #8a97a8; margin-top: 3px; }
.header .right { display: flex; align-items: center; gap: 10px; }
.trading-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 12px; background:rgba(245,158,11,.12); color: #b87100; border: 1px solid rgba(245,158,11,.35); }
.trading-status.closed { background:rgba(245,158,11,.12); color: #b87100; }
.trading-status.open { background: var(--zt-light, rgba(34, 211, 238, 0.14)); color: var(--lingshi-primary); border-color: var(--lingshi-light); }
.trading-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.trading-status.closed .dot { background: #b87100; }
.trading-status.open .dot { background: var(--lingshi-secondary); }

/* ===== 左侧导航栏（可隐藏/折叠） ===== */
.app-shell { display: flex; min-height: calc(100vh - 0px); }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--zt-surface, #111827); border-right: 1px solid var(--lingshi-border);
  display: flex; flex-direction: column; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; transition: width .25s ease, transform .25s ease;
  z-index: 40;
}
.app-shell.sidebar-collapsed .sidebar { width: var(--sidebar-w-mini); }
.app-shell.sidebar-collapsed .sidebar__brand-text,
.app-shell.sidebar-collapsed .menu-item__label,
.app-shell.sidebar-collapsed .menu-item__badge,
.app-shell.sidebar-collapsed .menu-group__title { display: none; }
.app-shell.sidebar-collapsed .menu-item { justify-content: center; padding: 0; }
.app-shell.sidebar-collapsed .sidebar__brand { padding: 18px 10px 14px; justify-content: center; }
.app-shell.sidebar-collapsed .sidebar__logo { width: auto; height: 22px; }
.app-shell.sidebar-collapsed .app-main { margin-left: calc(var(--sidebar-w-mini) - var(--sidebar-w)); }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; border-bottom: 1px solid var(--lingshi-border); }
.sidebar__logo { width: auto; height: 28px; max-width: 130px; object-fit: contain; flex-shrink: 0; }
.sidebar__brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 14px; font-weight: 800; color: var(--lingshi-dark); letter-spacing: 1px; }
.brand-slogan { font-size: 10px; color: var(--lingshi-secondary); letter-spacing: 1px; margin-top: 1px; }
.sidebar__menu { flex: 1; padding: 8px 0; }
.menu-group { margin-bottom: 6px; }
.menu-group__title {
  padding: 12px 16px 4px; font-size: 11px; font-weight: 600; color: #9aa5a8;
  text-transform: uppercase; letter-spacing: 1px;
}
.menu-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 40px;
  padding: 0 16px; margin: 1px 8px; font-size: 13px; color: #4a5872;
  text-decoration: none; border-radius: 8px; cursor: pointer; transition: all .15s;
}
.menu-item__icon { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.menu-item__label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item__badge {
  padding: 1px 6px; font-size: 10px; font-weight: 600; border-radius: 9999px;
  background: var(--lingshi-secondary); color: #fff; line-height: 16px;
}
.menu-item:hover { background: var(--zt-light, rgba(34, 211, 238, 0.14)); color: var(--lingshi-primary); }
.menu-item.active { background: rgba(14,116,144,.10); color: var(--lingshi-primary); font-weight: 700; }
.menu-item.active::before {
  content: ''; position: absolute; left: -8px; top: 4px; bottom: 4px; width: 3px;
  background: var(--lingshi-primary); border-radius: 0 2px 2px 0;
}
.sidebar__footer { padding: 12px 16px; border-top: 1px solid var(--lingshi-border); display: flex; flex-direction: column; gap: 6px; }
.sidebar__footer-link { font-size: 12px; color: #8a97a8; text-decoration: none; transition: color .15s; }
.sidebar__footer-link:hover { color: var(--lingshi-primary); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--lingshi-bg); }

/* ===== 顶部条 ===== */
.mode-banner {
  background: var(--zt-surface, #111827); color: var(--zt-text-2, #94a3b8); font-size: 12px; padding: 10px 24px;
  border-bottom: 1px solid var(--lingshi-border); display: flex;
  align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.mode-banner .tag { background: var(--lingshi-primary); color: #fff; }
.footer { text-align: center; color: #99a3b5; font-size: 12px; padding: 24px 0 40px; background: transparent; }

/* ===== 首页 Hero（科技公司门户风） ===== */
.hero-banner {
  position: relative; border-radius: 16px; padding: 32px 36px 26px; margin-bottom: 14px;
  background:
    radial-gradient(circle at 80% 30%, rgba(31,158,117,.10), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(159,225,203,.18), transparent 55%),
    linear-gradient(135deg, var(--lingshi-bg) 0%, var(--zt-light, rgba(34, 211, 238, 0.14)) 100%);
  border: 1px solid var(--lingshi-border); overflow: hidden;
}
.hero-banner::after {
  content: ''; position: absolute; top: -50px; right: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(14,116,144,.06), transparent 70%);
  pointer-events: none;
}
.hero-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-logo { height: 64px; width: auto; object-fit: contain; }
.hero-text { display: flex; flex-direction: column; }
.hero-brand { font-size: 24px; font-weight: 800; color: var(--lingshi-dark); letter-spacing: 4px; }
.hero-slogan { font-size: 16px; color: var(--lingshi-secondary); font-weight: 600; letter-spacing: 2px; margin-top: 4px; }
.hero-sub { font-size: 12px; color: #5a6872; margin-top: 8px; letter-spacing: 0.5px; }
.hero-right { position: absolute; top: 28px; right: 28px; text-align: right; }
.hero-status-label { font-size: 11px; color: #8a97a8; }
.hero-status-val { font-size: 14px; font-weight: 700; color: var(--lingshi-primary); margin-top: 2px; }
.hero-search {
  display: flex; background: var(--zt-surface, #111827); border-radius: 12px; box-shadow: 0 4px 16px rgba(21,94,117,.06);
  overflow: hidden; margin-top: 18px; border: 1px solid var(--lingshi-border);
}
.hero-search input { flex: 1; border: none; outline: none; padding: 13px 18px; font-size: 14px; color: var(--lingshi-dark); background: transparent; }
.hero-search input::placeholder { color: #a3b1b5; }
.hero-search button { border: none; background: linear-gradient(135deg, var(--lingshi-primary), var(--lingshi-secondary)); color: #fff; font-weight: 700; padding: 0 28px; cursor: pointer; font-size: 14px; letter-spacing: 1px; }
.search-results { margin-top: 8px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.08); overflow: hidden; }
.search-results .search-item { padding: 10px 14px; border-bottom: 1px solid var(--zt-light, rgba(34, 211, 238, 0.14)); cursor: pointer; }
.search-results .search-item:hover { background: var(--lingshi-bg); }
.search-results .search-item .code { color: var(--lingshi-primary); font-weight: 700; }
.search-results .search-item .name { color: var(--zt-text, #f8fafc); margin-left: 8px; }
.search-results .search-item .price { color: #d32f2f; font-weight: 700; }

/* ===== 卡片与通用组件 ===== */
.container { max-width: 100%; margin: 0; padding: 16px 24px; }
.view { display: none; }
.view.active { display: block; }
.card { background: var(--zt-surface, #111827); border: 1px solid var(--lingshi-border); border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(21,94,117,.02); }
.card-title { font-size: 15px; font-weight: 700; color: var(--lingshi-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.badge { background: var(--zt-light, rgba(34, 211, 238, 0.14)); color: var(--lingshi-primary); font-size: 11px; padding: 2px 10px; border-radius: 10px; font-weight: 600; }
.empty-state { text-align: center; color: #99a3b5; padding: 30px 0; font-size: 13px; }
.section-label { font-size: 12px; color: #5a6872; margin: 10px 0 6px; font-weight: 600; }

/* ===== 首页入口卡片 ===== */
.home-entry {
  background: var(--zt-surface, #111827); border: 1px solid var(--lingshi-border); border-radius: 12px;
  padding: 16px 10px; text-align: center; cursor: pointer;
  transition: all .18s ease; user-select: none;
}
.home-entry:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14,116,144,.12); border-color: var(--lingshi-primary); }
.home-entry b { display: block; font-size: 14px; color: var(--lingshi-dark); margin: 8px 0 4px; }
.home-entry span { font-size: 11px; color: #99a3b5; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { background: var(--lingshi-bg); color: #5a6872; text-align: left; padding: 8px 10px; font-weight: 600; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--zt-light, rgba(34, 211, 238, 0.14)); }
.table tr:hover td { background: var(--lingshi-bg); }
.up { color: #d32f2f; }
.down { color: #2e7d32; }

/* ===== 按钮 ===== */
.btn-sm { border: none; background: var(--lingshi-primary); color: #fff; font-size: 12px; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-sm:hover { background: var(--lingshi-dark); }

/* ===== 工具栏与导航分组标签 ===== */
.chart-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.group { display: flex; gap: 4px; background: var(--lingshi-bg); border-radius: 8px; padding: 3px; }
.group button { border: none; background: transparent; color: #5a6872; font-size: 12px; padding: 6px 14px; border-radius: 6px; cursor: pointer; }
.group button.active { background: var(--lingshi-primary); color: #fff; }

/* ===== 导航分组标签 ===== */
.nav-group-label {
  font-size: 10px; color: #8a97a8; margin: 0 2px 0 10px;
  padding: 2px 6px; border: 1px solid #c3cdd9; border-radius: 4px;
  letter-spacing: 1px; user-select: none; white-space: nowrap;
}

/* ===== 图表画线提示 ===== */
.hover-tip {
  position: absolute; pointer-events: none; background: rgba(14,116,144,.95);
  color: #fff; font-size: 11px; padding: 8px 10px; border-radius: 6px;
  line-height: 1.7; white-space: nowrap; z-index: 10; display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hover-tip .t-date { color: var(--lingshi-light); font-weight: 600; }
.hover-tip .t-up { color: #ff8a80; }
.hover-tip .t-down { color: #a5d6a7; }
.cross-x, .cross-y { position: absolute; pointer-events: none; background: rgba(14,116,144,.5); display: none; z-index: 5; }

/* ===== 用户中心 tabs 颜色 ===== */
#userTabs button { background: transparent; color: #5a6872; }
#userTabs button.active { background: var(--lingshi-primary); color: #fff; }

/* ============================================================
 * 零时科技 v2.4 · 科技公司元素 + 可视化
 * ============================================================ */

/* ===== Hero 科技背景 ===== */
.hero-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d2b22 0%, #123a2e 40%, var(--lingshi-primary) 100%);
}
.hero-banner .hero-left, .hero-banner .hero-search { position: relative; z-index: 2; }
.hero-banner .hero-right { position: absolute; top: 26px; right: 28px; text-align: right; z-index: 2; }
.hero-banner .hero-brand { color: #fff; text-shadow: 0 0 20px rgba(159,225,203,.5); }
.hero-banner .hero-slogan { color: var(--lingshi-light); }
.hero-banner .hero-sub { color: rgba(255,255,255,.75); }
.hero-status-label { color: rgba(255,255,255,.6); }
.hero-status-val { color: var(--lingshi-light); }
.hero-uptime { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 6px; letter-spacing: 1px; }
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(159,225,203,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,225,203,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 40%, transparent 100%);
}
.hero-bg-glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.hero-bg-glow.glow-1 { width: 320px; height: 320px; background: rgba(8,145,178,.35); top: -80px; right: 10%; animation: glowFloat 9s ease-in-out infinite; }
.hero-bg-glow.glow-2 { width: 260px; height: 260px; background: rgba(14,116,144,.4); bottom: -90px; left: 5%; animation: glowFloat 11s ease-in-out infinite reverse; }
.hero-bg-glow.glow-3 { width: 180px; height: 180px; background: rgba(159,225,203,.22); top: 40%; left: 45%; animation: glowFloat 7s ease-in-out infinite; }
@keyframes glowFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-18px) scale(1.12); } }
.hero-bg-line {
  position: absolute; height: 1px; width: 40%; left: -40%; top: 58%; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--lingshi-light), transparent);
  opacity: .5; animation: heroScan 7s linear infinite; pointer-events: none;
}
@keyframes heroScan { 0% { left: -40%; } 100% { left: 110%; } }
.hero-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hero-tag {
  font-size: 10px; color: var(--lingshi-light); border: 1px solid rgba(159,225,203,.4);
  background: rgba(159,225,203,.08); padding: 3px 10px; border-radius: 12px;
  letter-spacing: 1px; backdrop-filter: blur(2px);
}

/* ===== 市场速览可视化区 ===== */
.viz-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 1100px) { .viz-row { grid-template-columns: 1fr; } }
.viz-card { padding: 14px 16px; }
.viz-card canvas { display: block; }
.viz-donut-wrap { position: relative; width: 150px; height: 150px; margin: 4px auto 10px; }
.viz-donut-center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; font-size: 11px; color: #8a97a8;
}
.viz-donut-center b { font-size: 20px; color: var(--lingshi-dark); }
.viz-legend { display: flex; justify-content: center; gap: 14px; font-size: 11px; color: #5a6872; flex-wrap: wrap; }
.viz-legend .lg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.viz-kpi { display: flex; flex-direction: column; gap: 10px; }
.viz-kpi-item {
  background: linear-gradient(135deg, rgba(14,116,144,.05), rgba(8,145,178,.08));
  border: 1px solid var(--lingshi-border); border-radius: 10px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.viz-kpi-item .v-label { font-size: 11px; color: #8a97a8; }
.viz-kpi-item .v-num { font-size: 17px; font-weight: 800; color: var(--lingshi-dark); }

/* ===== 全局科技元素 ===== */
body { background-color: var(--lingshi-bg); background-image:
  radial-gradient(rgba(14,116,144,.05) 1px, transparent 1px);
  background-size: 22px 22px; }
.card { transition: box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: 0 6px 24px rgba(14,116,144,.10); }
.home-entry { position: relative; overflow: hidden; }
.home-entry::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(159,225,203,.18), transparent);
  transition: left .5s ease; pointer-events: none;
}
.home-entry:hover::after { left: 100%; }
.btn-sm, .hero-search button { position: relative; overflow: hidden; }
.btn-sm:hover, .hero-search button:hover { box-shadow: 0 0 18px rgba(14,116,144,.35); }
.sidebar__footer-link:first-child::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lingshi-secondary); margin-right: 7px; vertical-align: 1px;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.k-value { background: linear-gradient(135deg, var(--lingshi-dark), var(--lingshi-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header { box-shadow: 0 1px 0 rgba(14,116,144,.08); }

/* ===== 大盘指数栏 ===== */
.index-bar { display: grid; gap: 10px; }
.index-item {
  background: linear-gradient(135deg, var(--zt-surface, #111827), var(--zt-bg, #0b1120));
  border: 1px solid var(--lingshi-border); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: all .18s ease;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.index-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(14,116,144,.12); border-color: var(--lingshi-secondary); }
.index-item.active { border-color: var(--lingshi-primary); box-shadow: 0 0 0 2px rgba(14,116,144,.18); }
.index-item .name { font-size: 12px; color: #5a6872; }
.index-item .chg { font-size: 11px; margin-top: 2px; }
.index-item .price { font-size: 18px; font-weight: 800; color: var(--lingshi-dark); }
.index-item .red { color: #d32f2f !important; }
.index-item .green { color: #2e7d32 !important; }


/* ===== 合作伙伴区 ===== */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.partner-item {
  background: linear-gradient(135deg, var(--zt-surface, #111827), var(--zt-bg, #0b1120)); border: 1px solid var(--lingshi-border);
  border-radius: 12px; padding: 16px 14px; text-align: center; transition: all .2s ease;
}
.partner-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(14,116,144,.12); border-color: var(--lingshi-secondary); }
.partner-item .p-icon { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 8px; }
.partner-item b { display: block; font-size: 13px; color: var(--lingshi-dark); }
.partner-item span { font-size: 11px; color: #8a97a8; display: block; margin-top: 3px; line-height: 1.5; }

/* ===== 广告位 ===== */
.ad-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 1100px) { .ad-row { grid-template-columns: 1fr; } }
.ad-banner { border-radius: 12px; overflow: hidden; border: 1px solid var(--lingshi-border); min-height: 120px; cursor: pointer; transition: box-shadow .25s ease; }
.ad-banner:hover { box-shadow: 0 8px 24px rgba(14,116,144,.16); }


/* ===== 左侧导航可折叠分组 ===== */
.menu-group__title { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.menu-group__title:hover { color: var(--lingshi-primary); }
.nav-arrow { font-size: 10px; color: #9aa7b5; transition: transform .2s; }
.menu-group__body { overflow: hidden; }


/* ===== 系统框架卡片 ===== */
.framework-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fw-item {
  display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--zt-surface, #111827), var(--zt-bg, #0b1120)); border: 1px solid var(--lingshi-border);
  border-radius: 12px; transition: all .2s ease;
}
.fw-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(14,116,144,.12); border-color: var(--lingshi-secondary); }
.fw-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.fw-info { flex: 1; min-width: 0; }
.fw-info b { display: block; font-size: 13px; color: var(--lingshi-dark); }
.fw-info span { font-size: 11px; color: #8a97a8; display: block; margin-top: 2px; line-height: 1.4; }
.fw-stat { font-size: 12px; font-weight: 800; color: var(--lingshi-primary); white-space: nowrap; }


/* ===== 量化平台展示卡 ===== */
.quant-platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.qp-item {
  display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--zt-surface, #111827), var(--zt-bg, #0b1120)); border: 1px solid var(--lingshi-border);
  border-radius: 12px; transition: all .2s ease;
}
.qp-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(14,116,144,.12); border-color: var(--lingshi-secondary); }
.qp-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(14,116,144,.08); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.qp-item b { display: block; font-size: 13px; color: var(--lingshi-dark); }
.qp-item span { font-size: 11px; color: #8a97a8; display: block; margin-top: 2px; }


/* ===== 登录态导航控制 ===== */
.need-login[style*="display: none"] { display: none !important; }

/* ================================================================
   【视觉升级层】网页设计优化 · 全局动效 / 渐变 / 阴影 / 交互
   ================================================================ */

/* 1. 全局过渡与滚动条 */
* { transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--lingshi-secondary), var(--lingshi-dark)); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
html { scroll-behavior: smooth; }

/* 2. 卡片：悬浮抬起 + 渐变描边 */
.card {
  position: relative;
  border: 1px solid rgba(14,116,144,.12);
  box-shadow: 0 2px 8px rgba(21,94,117,.04), 0 0 0 1px rgba(255,255,255,.5) inset;
  transition: transform .25s cubic-bezier(.2,.7,.3,1.2), box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14,116,144,.12), 0 2px 6px rgba(21,94,117,.06);
  border-color: rgba(8,145,178,.35);
}

/* 3. 数据统计 KPI */
.index-item .price { transition: transform .3s ease, text-shadow .3s ease; }
.index-item:hover .price { transform: scale(1.08); text-shadow: 0 0 12px rgba(14,116,144,.35); }
.index-item .name { letter-spacing: .5px; }
.index-item .chg.up { color: #e53935; font-weight: 700; }
.index-item .chg.down { color: var(--lingshi-primary); font-weight: 700; }

/* 4. Hero 科技感：动态光斑 + 网格 */
.hero-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0d2b22 0%, var(--lingshi-primary) 45%, var(--lingshi-secondary) 100%) !important;
}
.hero-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(159,225,203,.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(255,255,255,.12) 0%, transparent 40%),
    radial-gradient(circle at 60% 10%, rgba(8,145,178,.35) 0%, transparent 35%);
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: .6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.06); }
}
.hero-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9) 0%, transparent 75%);
}

/* 5. 侧边导航：激活态渐变条 */
.menu-item { position: relative; }
.menu-item.active::before {
  content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--lingshi-light), var(--lingshi-secondary));
  box-shadow: 0 0 8px rgba(8,145,178,.5);
}
.menu-item:hover { background: linear-gradient(90deg, rgba(14,116,144,.06), rgba(8,145,178,.02)); }
.menu-group__title:hover .nav-arrow { transform: rotate(-180deg); }

/* 6. 按钮 */
.btn-sm {
  position: relative; overflow: hidden;
  box-shadow: 0 3px 8px rgba(14,116,144,.15);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-sm:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 5px 14px rgba(14,116,144,.25); }
.btn-sm:active { transform: translateY(0); }

/* 7. 滚动入场动画 */
.fade-up { opacity: 0; transform: translateY(18px); }
.fade-up.in-view { opacity: 1; transform: translateY(0); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1.1); }

/* 8. 表格行 hover */
.table tbody tr:hover { background: linear-gradient(90deg, rgba(14,116,144,.05), rgba(8,145,178,.02)); }

/* 9. 徽章发光 */
.badge {
  background: linear-gradient(135deg, rgba(14,116,144,.14), rgba(8,145,178,.2));
  box-shadow: 0 0 0 1px rgba(14,116,144,.12) inset;
}
.menu-item__badge { animation: badgePulse 2.5s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { opacity: 1; } 50% { opacity: .65; } }

/* 10. 响应式 */
@media (max-width: 900px) {
  .viz-row { grid-template-columns: 1fr; }
  .framework-grid { grid-template-columns: 1fr 1fr; }
  .hero-banner .hero-right { display: none; }
}
@media (max-width: 600px) {
  .framework-grid, .quant-platform-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Token 商城货架（F-FE1-P1 动态货架 · 2026-08-28） ===== */
.mall-overview-chips { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--zt-text-2, #94a3b8); }
.mall-overview-chips b { color: var(--zt-primary, #06b6d4); font-size: 14px; }
.mall-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pack-card {
  position: relative; background: var(--zt-surface, #111827); border: 1px solid var(--zt-border, rgba(148,163,184,.18));
  border-radius: 14px; padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pack-card:hover { transform: translateY(-4px); border-color: var(--zt-primary, #06b6d4); box-shadow: 0 10px 26px rgba(6,182,212,.22); }
.pack-card.pack-vip { border-color: rgba(139,92,246,.45); background: linear-gradient(160deg, rgba(139,92,246,.10), var(--zt-surface, #111827) 45%); }
.pack-tag { position: absolute; top: 12px; right: 12px; font-size: 10px; padding: 3px 10px; border-radius: 9999px; color: #fff; background: var(--zt-primary, #06b6d4); letter-spacing: 1px; }
.pack-icon { font-size: 30px; line-height: 1; }
.pack-name { font-size: 15px; font-weight: 800; color: var(--zt-text, #f8fafc); line-height: 1.4; }
.pack-price { display: flex; align-items: baseline; gap: 4px; }
.pack-price-currency { font-size: 13px; color: var(--zt-primary, #06b6d4); font-weight: 700; }
.pack-price-num { font-size: 30px; font-weight: 800; color: var(--zt-primary, #06b6d4); line-height: 1; }
.pack-price-period { font-size: 12px; color: var(--zt-text-2, #94a3b8); }
.pack-original { font-size: 11px; color: var(--zt-text-3, #64748b); text-decoration: line-through; }
.pack-benefits { display: flex; flex-direction: column; gap: 6px; min-height: 66px; }
.pack-benefit-item { font-size: 12px; color: var(--zt-text-2, #94a3b8); line-height: 1.5; }
.pack-btn {
  margin-top: auto; padding: 10px 0; border: none; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: 1px; color: #fff;
  background: linear-gradient(135deg, var(--zt-primary, #06b6d4), var(--zt-secondary, #0891b2));
  box-shadow: 0 6px 18px rgba(6,182,212,.25); transition: transform .15s ease, box-shadow .15s ease;
}
.pack-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6,182,212,.35); }
.pack-btn-gray { background: var(--zt-surface, #111827); color: var(--zt-text-2, #94a3b8); border: 1px solid var(--zt-border, rgba(148,163,184,.18)); box-shadow: none; }

/* ============================================================
 * 3.14 行情分析显示层对齐后台：补回 v2.4 重构时丢失的布局类
 * （v2.4 起缺失导致 canvas 无宽度约束 → K线缩成 300px 小图、
 *   报价条/自选/搜索/五档样式塌陷；本段按 tokens 暗色体系重建）
 * ============================================================ */

/* ----- 图表区两栏布局 + K线容器（对齐后台 .kline-box：canvas 撑满容器） ----- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.kline-box { position: relative; height: 560px; background: var(--zt-bg, #0b1120); border: 1px solid var(--lingshi-border); border-radius: 10px; overflow: hidden; }
/* 2026-09-06 清晰度修复：canvas 显式铺满容器（位图由 resize 按 devicePixelRatio 重设），
   修复内联 height:100% 与容器实际高度不一致造成的拉伸模糊 */
.kline-box canvas { display: block; width: 100%; height: 100%; }

/* ----- 股票看盘头部：自选 chips / 搜索框 / 热门演示股 ----- */
.watchlist { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.watchlist .watch-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--zt-light, rgba(34, 211, 238, 0.14)); border: 1px solid var(--lingshi-border); font-size: 12px; cursor: pointer; }
.watchlist .watch-item:hover { border-color: var(--lingshi-primary); }
.watchlist .watch-item.active { border-color: var(--lingshi-primary); background: rgba(6,182,212,.14); }
.watchlist .w-name { color: var(--zt-text, #e2e8f0); font-weight: 600; }
.watchlist .w-price { font-variant-numeric: tabular-nums; }
.watchlist .w-del { color: #94a3b8; cursor: pointer; padding: 0 2px; }
.watchlist .w-del:hover { color: #d32f2f; }
.search-box { display: flex; gap: 8px; margin-top: 8px; }
.search-box input { flex: 1; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--lingshi-border); background: var(--zt-bg, #0b1120); color: var(--zt-text, #e2e8f0); font-size: 13px; outline: none; }
.search-box input:focus { border-color: var(--lingshi-primary); }
.search-box button { padding: 9px 18px; border: none; border-radius: 8px; background: var(--lingshi-primary); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.demo-stocks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.demo-stocks .demo-tag { padding: 3px 10px; border-radius: 9999px; font-size: 11px; background: var(--zt-light, rgba(34, 211, 238, 0.14)); color: var(--lingshi-primary); cursor: pointer; }

/* ----- 报价条（quote-strip）+ 红涨绿跌全局色 ----- */
.quote-strip { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.quote-strip .qp { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.quote-strip .qc { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-strip .q-label { color: #8a97a8; font-size: 11px; }
.quote-strip .q-val { color: var(--zt-text, #e2e8f0); font-size: 12px; font-variant-numeric: tabular-nums; }
.red { color: #d32f2f; }
.green { color: #2e7d32; }

/* ----- 技术图例（chart-legend） ----- */
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 2px 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-legend .ma5 { color: #f9a825; }
.chart-legend .ma10 { color: #1e88e5; }
.chart-legend .ma20 { color: #d81b60; }
.chart-legend .ma60 { color: #22d3ee; }
.chart-legend .ma240 { color: #8d6e63; }
.chart-legend .vol { color: #94a3b8; }
.chart-legend .macd-dif { color: #f9a825; }
.chart-legend .macd-dea { color: #1e88e5; }
.chart-legend .kdj-k { color: #f9a825; }
.chart-legend .kdj-d { color: #1e88e5; }
.chart-legend .kdj-j { color: #d81b60; }
.chart-legend .rsi-6 { color: #f9a825; }
.chart-legend .rsi-12 { color: #1e88e5; }
.chart-legend .rsi-24 { color: #d81b60; }
.chart-legend .boll-mid { color: #f9a825; }
.chart-legend .boll-up { color: #1e88e5; }
.chart-legend .boll-low { color: #22d3ee; }
.draw-hint { color: #f59e0b; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); padding: 2px 10px; border-radius: 9999px; }

/* ----- 五档盘口表格 ----- */
.depth-head { font-size: 12px; color: #8a97a8; margin: 8px 0 4px; }
.depth-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.depth-table td { padding: 4px 6px; border-bottom: 1px dashed var(--lingshi-border); }
.depth-table .depth-label { color: #8a97a8; width: 44px; }
.depth-table .ask { color: #2e7d32; }

/* ----- 板块/题材列表（首页热门板块 + 板块与题材分析 Tab 列表） ----- */
.board-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.board-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 8px; }
.board-list .board-row:hover { background: var(--zt-light, rgba(34, 211, 238, 0.14)); }
.b-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--zt-text, #f8fafc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-chg { font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-vol { font-size: 11px; color: var(--zt-text-2, #94a3b8); white-space: nowrap; }

/* ----- 行业板块 / 概念题材 全景卡片列表 ----- */
.board-search { margin-left: auto; width: 170px; padding: 6px 10px; font-size: 12px;
  border: 1px solid var(--zt-border, rgba(148, 163, 184, 0.18)); border-radius: 8px; background: var(--zt-bg, #0b1120);
  color: var(--zt-text, #f8fafc); outline: none; }
.board-search:focus { border-color: var(--lingshi-primary); }
.board-cards { gap: 6px; padding: 2px; }
.board-card { display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.board-card:hover { background: var(--zt-light, rgba(34, 211, 238, 0.14)); border-color: var(--zt-border, rgba(148, 163, 184, 0.18)); }
.bc-rank { flex: 0 0 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--zt-text-3, #64748b);
  background: rgba(128,128,128,.14); border-radius: 6px; }
.bc-rank.top { color: #fff; background: linear-gradient(135deg, var(--lingshi-primary), var(--lingshi-secondary)); }
.bc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bc-name { font-size: 13px; font-weight: 600; color: var(--zt-text, #f8fafc);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-breadth { display: flex; align-items: center; gap: 8px; }
.bc-bar { flex: 0 0 120px; height: 5px; border-radius: 3px; background: rgba(128,128,128,.18);
  overflow: hidden; display: inline-block; }
.bc-bar i { display: block; height: 100%; border-radius: 3px; }
.bc-bar i.up { background: var(--zt-up, #dc2626); }
.bc-bar i.down { background: var(--zt-down, #16a34a); }
.bc-breadth-txt { font-size: 10px; color: var(--zt-text-3, #64748b); white-space: nowrap; }
.bc-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bc-chg { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bc-leader { font-size: 10px; color: var(--zt-text-2, #94a3b8); max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   AI 研报中心 · 研报正文排版（4.25）：.zt-report 为后端研报 HTML 根节点
   结论卡/三灯表/宏观读数表等 Markdown 表格的暗色主题样式
   ============================================================ */
.zt-report { font-size: 14px; }
.zt-report h2 { font-size: 18px; font-weight: 700; color: #f1f5f9; margin: 18px 0 10px; padding-left: 10px; border-left: 3px solid #06b6d4; line-height: 1.4; }
.zt-report h3 { font-size: 15px; font-weight: 600; color: #e5e7eb; margin: 14px 0 8px; }
.zt-report p { margin: 8px 0; line-height: 1.9; color: #cbd5e1; }
.zt-report ul { margin: 8px 0 8px 4px; padding-left: 18px; }
.zt-report li { margin: 5px 0; line-height: 1.8; color: #cbd5e1; }
.zt-report blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid #06b6d4; background: rgba(6, 182, 212, 0.06); border-radius: 6px; color: #94a3b8; font-size: 13px; line-height: 1.8; }
.zt-report blockquote p { margin: 4px 0; color: #94a3b8; }
.zt-report table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; table-layout: auto; display: block; overflow-x: auto; }
.zt-report thead th { background: rgba(6, 182, 212, 0.12); color: #e5e7eb; font-weight: 600; text-align: left; padding: 8px 10px; border: 1px solid rgba(148, 163, 184, 0.25); white-space: nowrap; }
.zt-report tbody td { padding: 8px 10px; border: 1px solid rgba(148, 163, 184, 0.18); color: #cbd5e1; line-height: 1.7; vertical-align: top; }
.zt-report tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.zt-report tbody tr:hover { background: rgba(6, 182, 212, 0.05); }
.zt-report strong { color: #f1f5f9; }

/* ============================================================
   研报正文 · 结构化排版 v2（4.27，王睿拍板「模版过于简单」升级）：
   hero 头卡 / 定调 chip / 一页结论三卡 / 分节卡片 / 口径脚注卡。
   后端 _rich_report_article 确定性装配，本段只负责呈现；浅色主题
   （用户中心）由 user_center.html 内 .uc-report 作用域覆盖。
   ============================================================ */
.zt-report-v2 h1 { font-size: 21px; font-weight: 800; color: #f8fafc; line-height: 1.45; margin: 2px 0 6px; letter-spacing: 0.2px; }
.zt-report-v2 .zt-hero { position: relative; border: 1px solid rgba(6, 182, 212, 0.28); background: linear-gradient(135deg, rgba(6, 182, 212, 0.10), rgba(124, 58, 237, 0.10)); border-radius: 14px; padding: 16px 18px; margin: 0 0 14px; overflow: hidden; }
.zt-report-v2 .zt-hero::after { content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 70%); pointer-events: none; }
.zt-report-v2 .zt-series { font-size: 12px; color: #67e8f9; letter-spacing: 0.6px; margin-bottom: 6px; font-weight: 600; }
.zt-report-v2 .zt-meta { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.zt-report-v2 .zt-subject { font-size: 12.5px; color: #b6c2d4; margin-top: 4px; line-height: 1.7; }
.zt-report-v2 .zt-chip { position: absolute; top: 14px; right: 14px; padding: 4px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; }
.zt-chip-good { background: rgba(26, 138, 79, 0.18); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.45); }
.zt-chip-neutral { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.45); }
.zt-chip-bad { background: rgba(216, 57, 43, 0.16); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.45); }
.zt-chip-na { background: rgba(217, 119, 6, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.42); }
.zt-report-v2 .zt-verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 14px; }
.zt-report-v2 .zt-label { font-size: 13px; font-weight: 700; color: #94a3b8; letter-spacing: 0.5px; margin: 14px 0 8px; padding-left: 9px; border-left: 3px solid #64748b; }
@media (max-width: 680px) { .zt-report-v2 .zt-verdicts { grid-template-columns: 1fr; } }
.zt-report-v2 .zt-verdict { border: 1px solid rgba(148, 163, 184, 0.20); border-top: 3px solid #06b6d4; border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.025); }
.zt-report-v2 .zt-verdict.zt-v2 { border-top-color: #0d9488; }
.zt-report-v2 .zt-verdict.zt-v3 { border-top-color: #7c3aed; }
.zt-report-v2 .zt-v-n { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: rgba(6, 182, 212, 0.16); color: #67e8f9; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.zt-report-v2 .zt-v2 .zt-v-n { background: rgba(13, 148, 136, 0.16); color: #5eead4; }
.zt-report-v2 .zt-v3 .zt-v-n { background: rgba(124, 58, 237, 0.16); color: #c4b5fd; }
.zt-report-v2 .zt-v-t { font-size: 13px; color: #cbd5e1; line-height: 1.75; }
.zt-report-v2 .zt-sec { border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 14px; padding: 14px 16px 12px; margin: 0 0 12px; background: rgba(255, 255, 255, 0.02); break-inside: avoid; }
.zt-report-v2 .zt-sec-h { font-size: 15.5px; font-weight: 700; color: #f1f5f9; margin: 0 0 6px; padding-left: 9px; border-left: 3px solid #06b6d4; line-height: 1.45; }
.zt-report-v2 .zt-sec-n { display: inline-block; font-size: 11.5px; color: #67e8f9; font-weight: 800; margin-right: 7px; letter-spacing: 0.5px; opacity: 0.9; }
.zt-report-v2 .zt-sec h3 { margin-top: 10px; }
.zt-report-v2 .zt-foot { background: rgba(148, 163, 184, 0.05); border-style: dashed; }
.zt-report-v2 .zt-foot .zt-sec-h { font-size: 13.5px; color: #94a3b8; border-left-color: #64748b; }
.zt-report-v2 .zt-foot p, .zt-report-v2 .zt-foot li { font-size: 12.5px; color: #94a3b8; }
.zt-report-v2 hr { border: none; border-top: 1px dashed rgba(148, 163, 184, 0.25); margin: 14px 0; }
.zt-report-v2 code { background: rgba(6, 182, 212, 0.10); border: 1px solid rgba(6, 182, 212, 0.22); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; color: #67e8f9; }
