/* ============================================================
   短线量化 · 因子进化台 —— 移动优先暗色霓虹主题
   ============================================================ */

:root {
  --bg: #05060c;
  --bg-2: #0a0d18;
  --panel: rgba(18, 22, 38, 0.72);
  --panel-2: rgba(26, 31, 52, 0.66);
  --stroke: rgba(120, 160, 255, 0.14);
  --stroke-hi: rgba(120, 200, 255, 0.34);
  --txt: #e8eefb;
  --txt-dim: #8f9cba;
  --txt-mute: #5d6987;
  --cyan: #24e6ff;
  --magenta: #ff3fb4;
  --violet: #8a6bff;
  --lime: #3dffa8;
  --amber: #ffbf3d;
  --red: #ff5470;
  --radius: 16px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { min-height: 100vh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px); }

/* ---------- 背景光效 ---------- */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  filter: blur(70px); opacity: 0.5;
}
.aurora span {
  position: absolute; display: block; border-radius: 50%;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  width: 62vw; height: 62vw; left: -18vw; top: -14vh;
  background: radial-gradient(circle, rgba(36,230,255,0.62), transparent 68%);
}
.aurora span:nth-child(2) {
  width: 56vw; height: 56vw; right: -20vw; top: 26vh;
  background: radial-gradient(circle, rgba(255,63,180,0.48), transparent 68%);
  animation-delay: -9s;
}
.aurora span:nth-child(3) {
  width: 50vw; height: 50vw; left: 16vw; bottom: -16vh;
  background: radial-gradient(circle, rgba(138,107,255,0.44), transparent 68%);
  animation-delay: -17s;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(6vw, -5vh, 0) scale(1.16); }
}

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,180,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,180,255,0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 12px) 16px 12px;
  background: linear-gradient(180deg, rgba(5,6,12,0.96), rgba(5,6,12,0.72) 70%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.logo {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 18px rgba(36,230,255,0.5), inset 0 0 12px rgba(255,255,255,0.42);
}
.brand-txt h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0.4px; }
.brand-txt p  { margin: 1px 0 0; font-size: 11px; color: var(--txt-mute); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--stroke); color: var(--txt-dim);
  transition: all .18s;
}
.icon-btn:active { transform: scale(0.92); color: var(--cyan); border-color: var(--stroke-hi); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 提示条 ---------- */
.banner {
  margin: 0 16px 10px; padding: 11px 14px; border-radius: 12px;
  font-size: 12.5px; position: relative; z-index: 5;
  background: rgba(255,191,61,0.10); border: 1px solid rgba(255,191,61,0.32);
  color: #ffd98a;
}
.banner.err { background: rgba(255,84,112,0.10); border-color: rgba(255,84,112,0.34); color: #ff9fb1; }
.hidden { display: none !important; }

/* ---------- 页面 ---------- */
main { position: relative; z-index: 4; padding: 0 14px; }
.page { display: none; animation: rise .32s ease; }
.page.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- KPI ---------- */
.kpi-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px;
}
.kpi {
  position: relative; overflow: hidden;
  padding: 13px 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--stroke);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}
.kpi-label { display: block; font-size: 11px; color: var(--txt-mute); letter-spacing: 0.4px; }
.kpi-value {
  display: block; margin-top: 4px;
  font-size: 21px; font-weight: 700; letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff, #9fd8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi-value.warn { background: linear-gradient(135deg, #ffd0d8, var(--red)); -webkit-background-clip: text; background-clip: text; }
.kpi-value.up   { background: linear-gradient(135deg, #c8ffe8, var(--lime)); -webkit-background-clip: text; background-clip: text; }
.kpi-value.down { background: linear-gradient(135deg, #ffd0d8, var(--red)); -webkit-background-clip: text; background-clip: text; }

/* ---------- 卡片 ---------- */
.card {
  margin-bottom: 12px; padding: 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--stroke);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.32);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 11px;
}
.card-head h2 {
  margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 7px;
}
.card-head h2::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
}
.tag {
  font-size: 10.5px; padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  background: rgba(36,230,255,0.09); border: 1px solid rgba(36,230,255,0.22);
  color: #9fe8ff;
}

/* ---------- 图表 ---------- */
.chart { width: 100%; height: 216px; }
.chart.tall { height: 300px; }

/* ---------- 防守指标 ---------- */
.defense-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.defense {
  padding: 11px 12px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--stroke);
}
.d-label { font-size: 11px; color: var(--txt-mute); }
.d-value {
  margin: 3px 0 2px; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--cyan);
}
.d-value.good { color: var(--lime); }
.d-value.bad  { color: var(--red); }
.d-note { font-size: 10.5px; color: var(--txt-mute); line-height: 1.35; }

/* ---------- 选股列表 ---------- */
.signal-meta { font-size: 11.5px; color: var(--txt-dim); margin-bottom: 9px; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 2px; border-bottom: 1px solid rgba(120,160,255,0.07);
}
.pick:last-child { border-bottom: none; }
.pick-rank {
  width: 25px; height: 25px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: rgba(138,107,255,0.16); color: #c3b2ff;
  border: 1px solid rgba(138,107,255,0.3);
}
.pick:nth-child(1) .pick-rank { background: rgba(255,191,61,0.16); color: var(--amber); border-color: rgba(255,191,61,0.36); }
.pick:nth-child(2) .pick-rank { background: rgba(36,230,255,0.14); color: var(--cyan); border-color: rgba(36,230,255,0.34); }
.pick:nth-child(3) .pick-rank { background: rgba(61,255,168,0.13); color: var(--lime); border-color: rgba(61,255,168,0.32); }
.pick-code { font-weight: 650; font-size: 13.5px; letter-spacing: 0.3px; font-variant-numeric: tabular-nums; }
.pick-sub { font-size: 10.5px; color: var(--txt-mute); }
.pick-right { margin-left: auto; text-align: right; }
.pick-score { font-size: 13px; font-weight: 650; color: var(--cyan); font-variant-numeric: tabular-nums; }
.pick-bar { width: 56px; height: 3px; border-radius: 2px; margin-top: 4px; background: rgba(120,160,255,0.14); overflow: hidden; }
.pick-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }

/* ---------- 盘中快照 ---------- */
.phase-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--txt-mute); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(61,255,168,0.6);
}
.phase-dot.live {
  background: var(--lime);
  animation: pulse 1.8s ease-out infinite;
}
.phase-dot.closed { background: var(--txt-mute); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,255,168,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(61,255,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,255,168,0); }
}

.rt-meta { font-size: 11.5px; color: var(--txt-dim); margin-bottom: 9px; line-height: 1.6; }
.rt-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px;
}
.rt-stat {
  padding: 8px 9px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--stroke); text-align: center;
}
.rt-stat span { display: block; font-size: 10px; color: var(--txt-mute); }
.rt-stat b {
  display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums;
  color: var(--txt);
}
.rt-stat b.up { color: var(--lime); }
.rt-stat b.down { color: var(--red); }

.rt-list { list-style: none; margin: 0; padding: 0; }
.rt-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px solid rgba(120,160,255,0.07);
}
.rt-item:last-child { border-bottom: none; }
.rt-code { font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; }
.rt-name { font-size: 10.5px; color: var(--txt-mute); }
.rt-right { margin-left: auto; text-align: right; }
.rt-px { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rt-chg { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rt-chg.up { color: var(--lime); }
.rt-chg.down { color: var(--red); }
.rt-chg.flat { color: var(--txt-mute); }
.rt-amt { font-size: 10px; color: var(--txt-mute); font-variant-numeric: tabular-nums; }

.rt-note {
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--stroke);
  font-size: 10.5px; color: var(--txt-mute); line-height: 1.6;
}

/* ---------- 策略列表 ---------- */
.strat-list { list-style: none; margin: 0; padding: 0; }
.strat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.strat-item:hover { background: var(--panel-2); }
.strat-item.active { background: var(--panel-2); border-color: var(--accent); }
.strat-rank {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--txt-mute);
  background: rgba(120,160,255,0.09);
}
.strat-rank.top { color: #06131a; background: linear-gradient(135deg, var(--lime), var(--cyan)); }
.strat-name { font-size: 13px; font-weight: 650; }
.strat-desc { font-size: 10px; color: var(--txt-mute); margin-top: 1px; }
.strat-nums { margin-left: auto; text-align: right; }
.strat-ret { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.strat-ret.up { color: var(--lime); }
.strat-ret.down { color: var(--red); }
.strat-sub { font-size: 10px; color: var(--txt-mute); font-variant-numeric: tabular-nums; }

/* ---------- 交易台 ---------- */
.order-side {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.side-btn {
  padding: 10px 0; border-radius: 10px; border: 1px solid var(--stroke);
  background: var(--panel-2); color: var(--txt-dim);
  font-size: 14px; font-weight: 650; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.side-btn.buy.active {
  background: rgba(61,255,168,.14); color: var(--lime);
  border-color: rgba(61,255,168,.5);
}
.side-btn.sell.active {
  background: rgba(255,86,120,.14); color: var(--red);
  border-color: rgba(255,86,120,.5);
}

.order-field { margin-bottom: 10px; }
.order-field label {
  display: block; font-size: 10.5px; color: var(--txt-mute);
  margin-bottom: 4px; letter-spacing: .04em;
}
.order-field input {
  width: 100%; box-sizing: border-box; padding: 10px 11px;
  border-radius: 9px; border: 1px solid var(--stroke);
  background: var(--panel-2); color: var(--txt);
  font-size: 15px; font-variant-numeric: tabular-nums;
  font-family: inherit;
}
.order-field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(80,140,255,.15);
}
.order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.order-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 4px 0 10px;
}
.order-quick button {
  padding: 7px 0; border-radius: 8px; border: 1px solid var(--stroke);
  background: transparent; color: var(--txt-dim); font-size: 11px;
  cursor: pointer;
}
.order-quick button:hover { background: var(--panel-2); color: var(--txt); }

.order-preview {
  padding: 9px 11px; border-radius: 9px; margin-bottom: 10px;
  background: rgba(120,160,255,.05); border: 1px dashed var(--stroke);
  font-size: 11.5px; color: var(--txt-dim); line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.order-preview b { color: var(--txt); }
.order-preview .bad { color: var(--red); }

.primary-btn {
  width: 100%; padding: 13px 0; border-radius: 11px; border: none;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  color: #06131a; font-size: 15px; font-weight: 750; cursor: pointer;
  letter-spacing: .02em;
}
.primary-btn:disabled { opacity: .45; cursor: not-allowed; }

.order-msg {
  margin-top: 9px; font-size: 12px; line-height: 1.6;
  min-height: 1em; word-break: break-all;
}
.order-msg.ok { color: var(--lime); }
.order-msg.err { color: var(--red); }

.risk-bars { display: flex; flex-direction: column; gap: 9px; margin-bottom: 10px; }
.risk-bar { font-size: 11px; color: var(--txt-dim); }
.risk-bar-head {
  display: flex; justify-content: space-between; margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.risk-bar-track {
  height: 7px; border-radius: 4px; overflow: hidden;
  background: rgba(120,160,255,.10);
}
.risk-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width .3s;
}
.risk-bar-fill.warn { background: linear-gradient(90deg, #ffb23d, var(--red)); }
.risk-bar-fill.over { background: var(--red); }
.risk-note { font-size: 10.5px; color: var(--txt-mute); line-height: 1.6; }

.pos-list, .ord-list { list-style: none; margin: 0; padding: 0; }
.pos-item, .ord-item {
  padding: 10px 2px; border-bottom: 1px solid rgba(120,160,255,.07);
}
.pos-item:last-child, .ord-item:last-child { border-bottom: none; }
.pos-head, .ord-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px;
}
.pos-code, .ord-code {
  font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums;
}
.pos-sub, .ord-sub { font-size: 10.5px; color: var(--txt-mute); }
.pos-nums {
  display: flex; gap: 12px; font-size: 11.5px;
  font-variant-numeric: tabular-nums; color: var(--txt-dim);
}
.pos-nums .up { color: var(--lime); }
.pos-nums .down { color: var(--red); }
.pos-right { margin-left: auto; text-align: right; }

.ord-item { display: flex; align-items: center; gap: 10px; }
.ord-badge {
  padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 650;
  flex: 0 0 auto;
}
.ord-badge.pending  { background: rgba(80,140,255,.16); color: #8fb6ff; }
.ord-badge.partial  { background: rgba(255,178,61,.16); color: #ffb23d; }
.ord-badge.filled   { background: rgba(61,255,168,.14); color: var(--lime); }
.ord-badge.cancelled{ background: rgba(140,160,190,.14); color: var(--txt-mute); }
.ord-badge.rejected { background: rgba(255,86,120,.14); color: var(--red); }
.ord-cancel {
  padding: 4px 10px; border-radius: 7px; font-size: 11px; cursor: pointer;
  border: 1px solid var(--stroke); background: transparent; color: var(--txt-dim);
}
.ord-cancel:hover { border-color: var(--red); color: var(--red); }

/* ---------- 表格 ---------- */
.table-scroll, .trade-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
th {
  text-align: left; padding: 7px 8px; font-weight: 600; font-size: 10.5px;
  color: var(--txt-mute); letter-spacing: 0.4px; text-transform: uppercase;
  border-bottom: 1px solid var(--stroke); white-space: nowrap;
}
td { padding: 8px; border-bottom: 1px solid rgba(120,160,255,0.06); white-space: nowrap; }
tbody tr:active { background: rgba(36,230,255,0.05); }
.pos { color: var(--lime); }
.neg { color: var(--red); }
.muted { color: var(--txt-mute); }

.badge {
  display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 9.5px;
  background: rgba(61,255,168,0.14); color: var(--lime); border: 1px solid rgba(61,255,168,0.3);
}
.badge.rej { background: rgba(120,140,180,0.12); color: var(--txt-mute); border-color: rgba(120,140,180,0.22); }

/* ---------- 分段控件 ---------- */
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--stroke); }
.seg-btn {
  border: none; background: transparent; color: var(--txt-mute);
  padding: 4px 11px; border-radius: 7px; font-size: 11px; cursor: pointer;
  transition: all .16s;
}
.seg-btn.active { background: rgba(36,230,255,0.14); color: var(--cyan); }

/* ---------- 表达式 ---------- */
.expr {
  margin: 0 0 8px; padding: 11px 12px; border-radius: 11px;
  background: rgba(4,8,18,0.72); border: 1px solid rgba(36,230,255,0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.65; color: #a8e8ff;
  white-space: pre-wrap; word-break: break-all;
  box-shadow: inset 0 0 26px rgba(36,230,255,0.06);
}
.expr-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--txt-dim); flex-wrap: wrap; }
.expr-meta b { color: var(--cyan); font-variant-numeric: tabular-nums; }

.cand-list { display: flex; flex-direction: column; gap: 8px; }
.cand {
  padding: 9px 11px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--stroke);
}
.cand-expr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; color: #9fdcff; word-break: break-all; line-height: 1.5;
}
.cand-meta { display: flex; gap: 12px; margin-top: 5px; font-size: 10.5px; color: var(--txt-mute); }
.cand-meta b { color: var(--txt-dim); }

/* ---------- 说明 ---------- */
.notes { margin: 0; padding-left: 17px; font-size: 12px; color: var(--txt-dim); line-height: 1.75; }
.notes li { margin-bottom: 5px; }
.notes li::marker { color: var(--cyan); }
.diag-meta { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--stroke); font-size: 11px; color: var(--txt-mute); }

/* ---------- 任务控制 ---------- */
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.job-btn {
  padding: 11px 10px; border-radius: 12px; cursor: pointer; text-align: left;
  background: var(--panel-2); border: 1px solid var(--stroke);
  color: var(--txt); font-size: 12px; transition: all .16s;
}
.job-btn:active { transform: scale(0.97); border-color: var(--stroke-hi); }
.job-btn:disabled { opacity: 0.45; }
.job-btn b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.job-btn span { font-size: 10.5px; color: var(--txt-mute); }
.sched-meta { margin-top: 11px; font-size: 10.5px; color: var(--txt-mute); line-height: 1.7; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(7,9,17,0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--stroke);
}
.tab {
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--txt-mute); font-size: 10px; transition: color .18s;
  position: relative;
}
.tab svg { width: 21px; height: 21px; }
.tab.active { color: var(--cyan); }
.tab.active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2.5px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px var(--cyan);
}

/* ---------- 骨架 / 加载 ---------- */
.skeleton {
  background: linear-gradient(90deg, rgba(120,160,255,0.06) 25%, rgba(120,160,255,0.14) 50%, rgba(120,160,255,0.06) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: 6px; color: transparent !important;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- 大屏适配 ---------- */
@media (min-width: 720px) {
  main { max-width: 780px; margin: 0 auto; padding: 0 20px; }
  .kpi-row { grid-template-columns: repeat(4, 1fr); }
  .defense-grid { grid-template-columns: repeat(4, 1fr); }
  .chart { height: 260px; }
  .chart.tall { height: 340px; }
}
@media (min-width: 1100px) {
  main { max-width: 1000px; }
  .chart { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span, .page, .skeleton { animation: none; }
}
