/* 九章量化 品牌样式 */
:root {
  --bg: #0a0e17;
  --bg-soft: #111824;
  --card: #141c2b;
  --border: #1f2a3c;
  --text: #e8edf4;
  --muted: #8a97ab;
  --brand: #2f81f7;
  --brand-2: #14b8a6;
  --gold: #d4a64a;
  --danger: #f85149;
  --ok: #3fb950;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,23,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-size: 15px; color: #fff; font-weight: 900;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14.5px; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  transition: all .15s;
}
.btn:hover { border-color: var(--brand); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #1f6fe0); border: none; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }

/* Hero */
.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 380px at 70% -10%, rgba(47,129,247,.16), transparent 60%);
}
.hero h1 { font-size: 46px; line-height: 1.18; margin: 0 0 18px; font-weight: 800; }
.hero h1 .accent { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 卡片 / 网格 */
.section { padding: 64px 0; }
.section h2 { font-size: 30px; margin: 0 0 10px; font-weight: 800; }
.section .sub { color: var(--muted); margin: 0 0 36px; font-size: 15.5px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: #2c3a52; }
.card .ico { width: 44px; height: 44px; border-radius: 11px; background: rgba(47,129,247,.12);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* 文档型页面（风险/隐私/协议）*/
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: 34px; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 34px 0 12px; color: var(--text); }
.doc p, .doc li { color: #c4cfde; font-size: 15px; }
.doc ul { padding-left: 22px; }
.doc .notice {
  background: rgba(212,166,74,.08); border: 1px solid rgba(212,166,74,.3);
  border-radius: 12px; padding: 18px 20px; color: #e9d4a8; margin: 24px 0; font-size: 14.5px;
}

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
/* 盈亏/方向配色(中国习惯:红=盈/涨/买,绿=亏/跌/卖)。状态语义(连通/健康)请用 .ok/.bad */
.pos { color: #f87171; }
.neg { color: #34d399; }
.ok  { color: #3fb950; }
.bad { color: #f85149; }
.chip-ok { background: rgba(63,185,80,.15); color: var(--ok); }
.chip-off { background: rgba(248,81,73,.15); color: var(--danger); }
.chip-role { background: rgba(47,129,247,.15); color: var(--brand); margin-right: 4px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 13.5px; margin-top: 40px; }
.footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer a { color: var(--muted); display: block; margin: 6px 0; }
.footer a:hover { color: var(--text); }
.disclaimer { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.7; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; z-index: 100; }
.modal-mask.show { display: grid; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; width: 380px; max-width: 92vw; }
.modal h3 { margin: 0 0 4px; font-size: 20px; }
.modal .muted { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; padding: 11px 13px; border-radius: 9px; background: var(--bg-soft);
  border: 1px solid var(--border); color: var(--text); font-size: 14px;
}
.input:focus { outline: none; border-color: var(--brand); }
.form-err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 10px; }

/* 工具类 */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; }
.mt-4 { margin-top: 16px; } .mb-2 { margin-bottom: 8px; }
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 34px; }
}

/* ===================== 科技感主题增强（全页面统一皮肤）===================== */
:root { --cy:#22d3ee; --pp:#a78bfa; }
/* 暗色科技底：双色径向辉光 + 细网格(顶部渐隐) */
body {
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(167,139,250,.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
body::before{ content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.28;
  background-image:linear-gradient(rgba(40,60,90,.16) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(40,60,90,.16) 1px,transparent 1px);
  background-size:42px 42px; mask-image:radial-gradient(circle at 50% 0%,#000 55%,transparent 100%); }
/* 卡片：渐变 + 霓虹描边 + 辉光 */
.card{
  background:linear-gradient(160deg, rgba(22,30,46,.94), rgba(13,18,30,.94));
  border-color:rgba(60,80,120,.35);
  box-shadow:0 8px 30px rgba(0,0,0,.35);
}
.card:hover{ border-color:rgba(34,211,238,.5);
  box-shadow:0 0 0 1px rgba(34,211,238,.22), 0 12px 36px rgba(0,0,0,.45); }
/* 标题辉光 */
h1, h2 { text-shadow:0 0 18px rgba(34,211,238,.22); }
/* 表格：大写 sticky 表头 + 等宽数字 + 行 hover */
th{ text-transform:uppercase; letter-spacing:.5px; font-size:11.5px;
  position:sticky; top:0; background:rgba(15,22,34,.9); backdrop-filter:blur(4px); }
td{ font-variant-numeric:tabular-nums; }
tbody tr:hover{ background:rgba(34,211,238,.05); }
/* 按钮/芯片辉光 */
.btn:hover{ border-color:var(--cy); box-shadow:0 0 0 1px rgba(34,211,238,.2); }
.chip-ok{ box-shadow:0 0 8px rgba(63,185,80,.22); }
/* 科技感滚动条 */
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-thumb{ background:rgba(80,100,140,.4); border-radius:8px; }
::-webkit-scrollbar-thumb:hover{ background:rgba(34,211,238,.5); }

/* 控制台 iframe 内嵌页：全宽铺满（独立官网页不受影响）。
   !important 覆盖各页内联的 max-width:1000/1180px。*/
.embedded .container{ max-width:100% !important; }

/* 卡片霓虹顶条：与工作台/作战指挥中心一致——全站 .card 统一观感 */
.card{ position:relative; }
.card::before{ content:""; position:absolute; left:0; right:0; top:0; height:2px;
  background:linear-gradient(90deg, var(--cy), var(--pp)); opacity:.55;
  border-radius:14px 14px 0 0; }
/* 表格类卡片(padding:0)顶条贴合圆角 */
.card[style*="padding:0"]::before{ border-radius:14px 14px 0 0; }
