:root {
  --bg: #0e1218;
  --panel: #151b23;
  --panel-2: #1b232d;
  --line: #26303c;
  --text: #e6edf3;
  --muted: #8b98a9;
  --accent: #4c8dff;
  --up: #ef5350;
  --down: #26a69a;
  --warn: #e3b341;
  --ok: #3fb950;
  --bad: #f85149;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 28px;
  height: 68px;
  background: rgba(14, 18, 24, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.3px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand small {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a.on { background: rgba(76, 141, 255, 0.14); color: #a9c6ff; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 22px 22px 70px; }

h1 { font-size: 21px; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; color: #cbd6e4; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; }
.metric {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
}
.metric .k { font-size: 11.5px; color: var(--muted); letter-spacing: 0.2px; }
.metric .v { font-size: 23px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.metric .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.metric.good .v { color: var(--up); }
.metric.bad .v { color: var(--down); }

.verdict { display: flex; flex-direction: column; gap: 8px; }
.verdict div {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  border-left: 3px solid var(--muted);
  background: var(--panel-2);
}
.verdict .ok { border-left-color: var(--ok); }
.verdict .warn { border-left-color: var(--warn); }
.verdict .bad { border-left-color: var(--bad); }

form .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 11px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 11.5px; color: var(--muted); }
.field small { font-size: 10.5px; color: #6f7d8d; line-height: 1.35; }
input[type="number"], input[type="text"], input[type="date"], select {
  width: 100%;
  background: #0b1016;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(76,141,255,.18); }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.field.check > span { color: var(--text); font-size: 12.5px; }

fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0 0 14px; }
legend { padding: 0 7px; font-size: 12px; color: #a9c6ff; letter-spacing: .3px; }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #06101f; border: 1px solid var(--accent);
  padding: 8px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 650;
  cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); font-weight: 500; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.warn { background: transparent; color: var(--warn); border-color: #4a3d1c; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.chip {
  font-size: 12px; color: #c3cfdd; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  font-variant-numeric: tabular-nums;
}

table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px;
  padding: 7px 9px; border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; background: var(--panel); z-index: 1;
}
table.data td { padding: 6px 9px; border-bottom: 1px solid #1d2530; white-space: nowrap; }
table.data tbody tr:hover td { background: #1a2129; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.scroll.tall { max-height: 640px; }

.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid; }
.grade-a { color: #ffd166; border-color: #5c4a17; background: rgba(255,209,102,.10); }
.grade-b { color: #8fb7ff; border-color: #24406e; background: rgba(76,141,255,.12); }
.grade-w { color: var(--muted); border-color: var(--line); }

.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }

.note {
  border-left: 3px solid var(--accent);
  background: rgba(76, 141, 255, 0.07);
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #bcc9d9;
  margin: 0 0 14px;
}
.note.warn { border-left-color: var(--warn); background: rgba(227, 179, 65, 0.07); }

.chart-box { position: relative; }
.chart-svg { display: block; width: 100%; }
.chart-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 13px; }

.ctip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .08s;
  background: rgba(10, 14, 19, .96); border: 1px solid #2f3b49; border-radius: 8px;
  padding: 7px 9px; font-size: 11.5px; min-width: 118px; z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.ctip-h { color: #9fb0c4; margin-bottom: 4px; font-size: 11px; }
.ctip-r { display: flex; justify-content: space-between; gap: 12px; line-height: 1.6; }
.ctip-r span { color: #8b98a9; }
.ctip-r b { font-weight: 600; font-variant-numeric: tabular-nums; }
.crosshair-line { stroke: #566579; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }

details { border: 1px solid var(--line); border-radius: 10px; padding: 0; background: var(--panel); }
details > summary {
  cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 13.5px;
  list-style: none; color: #cbd6e4;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; color: var(--muted); }
details[open] > summary::before { content: "▾ "; }
details > .body { padding: 0 16px 16px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 12.5px; }
.kv .k { color: var(--muted); }
.kv .v { font-variant-numeric: tabular-nums; }

.rowline { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.stack { display: flex; flex-direction: column; gap: 12px; }

footer {
  border-top: 1px solid var(--line);
  color: #6f7d8d;
  font-size: 11.5px;
  padding: 14px 22px 28px;
  text-align: center;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

@media (max-width: 1080px) {
  .side { grid-template-columns: 1fr; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .wrap { padding: 16px 14px 60px; }
}

/* ===================== 小白版组件 ===================== */
.tierbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.tierbar.compact { margin-bottom: 12px; }
.tier {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .12s, background .12s;
}
.tier:hover { border-color: #3b5a86; text-decoration: none; }
.tier.on { border-color: var(--accent); background: rgba(76, 141, 255, .10); }
.tier b { display: block; font-size: 15px; }
.tier small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.45; margin-top: 2px; }
.tier .tier-link { display: inline-block; margin-top: 6px; font-size: 11.5px; color: var(--accent); }
.tier.on .tier-link { display: none; }

.market-card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin-bottom: 16px;
}
.market-num { font-size: 40px; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.market-txt b { display: block; font-size: 14px; }
.market-txt small { color: var(--muted); font-size: 12px; }
.market-flag {
  margin-left: auto;
  color: var(--warn);
  border: 1px solid #4a3d1c;
  background: rgba(227, 179, 65, .08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
}

.picks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pick {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pick-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pick-code { font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.pick-when { color: var(--muted); font-size: 12px; }
.pick-px {
  margin-left: auto; font-size: 18px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pick-px small { font-size: 12px; margin-left: 6px; font-weight: 500; }
.pick-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin: 12px 0; }
.rlabel { font-size: 11.5px; color: var(--muted); letter-spacing: .4px; margin-bottom: 5px; }
.reasons { margin: 0; padding-left: 18px; }
.reasons li { font-size: 13px; line-height: 1.75; }
.pick-foot {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.pick-foot b { color: #d5e0ee; }

.empty-big {
  text-align: center;
  background: var(--panel);
  border: 1px dashed #33414f;
  border-radius: var(--radius);
  padding: 44px 22px;
  margin-bottom: 16px;
}
.empty-icon { font-size: 38px; line-height: 1; margin-bottom: 8px; }
.empty-big h2 { margin: 0 0 10px; font-size: 18px; }
.empty-big p { color: var(--muted); font-size: 13px; max-width: 640px; margin: 6px auto; }

.scoreline { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }

.bigcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bigcard {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.biglbl { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bignum { font-size: 38px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bignum span { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.bignum.up { color: var(--up); }
.bignum.down { color: var(--down); }
.bigsub { font-size: 12px; color: var(--muted); margin-top: 6px; }

.verdict-note {
  border-left: 4px solid var(--muted);
  background: var(--panel-2);
  border-radius: 0 10px 10px 0;
  padding: 12px 15px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.verdict-note.ok { border-left-color: var(--ok); }
.verdict-note.warn { border-left-color: var(--warn); }
.verdict-note.bad { border-left-color: var(--bad); }

table.data tr.current td { background: #1a222c; }

.linkcard { display: block; color: inherit; text-decoration: none; margin: 0; transition: border-color .12s; }
.linkcard:hover { border-color: #3b5a86; text-decoration: none; }
.linkcard h2 { margin-bottom: 6px; }
.linkcard p { margin: 0 0 10px; line-height: 1.65; }
.linkcard-go { color: var(--accent); font-size: 12.5px; }

@media (max-width: 900px) {
  .tierbar { grid-template-columns: 1fr; }
  .pick-body { grid-template-columns: 1fr; gap: 14px; }
  .market-num { font-size: 32px; }
  .bignum { font-size: 30px; }
}

.pick.soft { opacity: .92; border-style: dashed; }
.pick-warn {
  margin: 8px 0 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(227, 179, 65, .08);
  border: 1px solid #4a3d1c;
  color: #e2c675;
  font-size: 12.5px;
  line-height: 1.6;
}
.soft-note {
  background: var(--panel-2);
  border: 1px dashed #33414f;
  border-radius: var(--radius);
  padding: 12px 15px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.soft-note b { color: var(--text); }

.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.step b { display: block; color: var(--text); font-size: 13px; margin-bottom: 3px; }
.discover-hero { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; font-size: 23px; font-weight: 650; }
.discover-hero small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 7px; }
.hero-ok { background: rgba(63, 185, 80, .10); border: 1px solid #24502c; }
.hero-none { background: rgba(227, 179, 65, .08); border: 1px solid #4a3d1c; }
table.data tr.hit td { background: rgba(63, 185, 80, .07); }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; } }

.updating-bar {
  background: rgba(227, 179, 65, .10);
  border-bottom: 1px solid #4a3d1c;
  color: #e2c675;
  font-size: 12.5px;
  padding: 8px 22px;
  line-height: 1.6;
}
.updating-bar b { color: #f0cf7a; }

/* 历史扳机页 */
.statrow { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 18px; }
.stat { background:#141a22; border:1px solid #1f2937; border-radius:10px; padding:10px 14px; min-width:104px; }
.stat b { display:block; font-size:19px; }
.stat small { color:#8b98a8; font-size:11.5px; }
.hist-wrap { display:flex; gap:16px; align-items:flex-start; }
.hist-dates { width:186px; max-height:74vh; overflow:auto; display:flex; flex-direction:column; gap:2px;
  border-right:1px solid #1f2937; padding-right:8px; }
.hist-day { display:flex; justify-content:space-between; gap:6px; padding:6px 8px; border-radius:7px;
  color:#c9d4e3; text-decoration:none; font-size:12.5px; }
.hist-day:hover { background:#141a22; }
.hist-day.on { background:#1c2634; color:#fff; }
.hist-main { flex:1; min-width:0; }
.hist-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.hist-head h2 { margin:0; font-size:17px; }

/* ===== v2 ===== */
:root {
  --v2-bg: #0b0f14;
  --v2-card: #121821;
  --v2-card2: #161d28;
  --v2-line: #232c3a;
  --v2-text: #e6edf6;
  --v2-muted: #8b98a8;
  --v2-accent: #4c8dff;
  --v2-up: #ff5c5c;
  --v2-down: #2fbf71;
}

body { background: var(--v2-bg); color: var(--v2-text); }

.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.page-head h1 { font-size: 22px; margin: 0; letter-spacing: .3px; }
.page-head .lead { color: var(--v2-muted); font-size: 13px; }

/* KPI 卡片 */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi {
  background: linear-gradient(180deg, var(--v2-card2), var(--v2-card));
  border: 1px solid var(--v2-line); border-radius: 12px; padding: 14px 16px;
}
.kpi .k { font-size: 11.5px; color: var(--v2-muted); letter-spacing: .4px; }
.kpi .v { font-size: 24px; font-weight: 680; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 11.5px; color: var(--v2-muted); margin-top: 3px; }
.kpi.up .v { color: var(--v2-up); }
.kpi.down .v { color: var(--v2-down); }

/* 日期条 */
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 14px; }
.daystrip::-webkit-scrollbar { height: 8px; }
.daystrip::-webkit-scrollbar-thumb { background: #2a3442; border-radius: 8px; }
.daypill {
  flex: 0 0 auto; min-width: 92px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--v2-line); background: var(--v2-card);
  display: flex; flex-direction: column; gap: 2px; line-height: 1.25;
  color: var(--v2-text); transition: all .12s ease;
}
.daypill:hover { border-color: #36445a; background: var(--v2-card2); text-decoration: none; transform: translateY(-1px); }
.daypill.on { border-color: var(--v2-accent); background: rgba(76,141,255,.14); box-shadow: 0 0 0 1px rgba(76,141,255,.25) inset; }
.daypill .d { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.daypill .m { font-size: 11px; color: var(--v2-muted); }

/* 表格 */
.tbl-v2 { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl-v2 thead th {
  position: sticky; top: 0; z-index: 1;
  background: #0f151d; color: var(--v2-muted); font-weight: 550; font-size: 11.5px;
  letter-spacing: .4px; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--v2-line);
  white-space: nowrap;
}
.tbl-v2 tbody td { padding: 10px 12px; border-bottom: 1px solid #1a2230; vertical-align: middle; }
.tbl-v2 tbody tr:hover td { background: #141b25; }
.tbl-v2 tbody tr:last-child td { border-bottom: none; }
.tbl-v2 .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-v2 a { color: #7fb0ff; }
.tbl-v2 .nm { color: var(--v2-text); }

.card-v2 { background: var(--v2-card); border: 1px solid var(--v2-line); border-radius: 14px; overflow: hidden; }
.card-v2 .hd { padding: 12px 16px; border-bottom: 1px solid var(--v2-line); display: flex; align-items: center; gap: 10px; }
.card-v2 .hd h2 { margin: 0; font-size: 14px; font-weight: 600; }
.card-v2 .bd { padding: 0; }
.tbl-scroll { max-height: 560px; overflow: auto; }
.tbl-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.tbl-scroll::-webkit-scrollbar-thumb { background: #2a3442; border-radius: 8px; }

/* 收益徽章 */
.pill { display: inline-block; min-width: 62px; text-align: right; padding: 3px 8px; border-radius: 7px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill.p-up { color: #ff8a8a; background: rgba(255,92,92,.12); }
.pill.p-down { color: #5fd39a; background: rgba(47,191,113,.12); }
.pill.p-flat { color: #a5b2c2; background: #1b2330; }

/* 迷你条（最大浮盈） */
.minibar { position: relative; height: 6px; width: 88px; background: #1b2330; border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; }
.minibar > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #2fbf71, #4c8dff); border-radius: 4px; }
.minibar.dn > i { background: linear-gradient(90deg, #ff5c5c, #b23b3b); }

.empty-v2 { padding: 46px 20px; text-align: center; }
.empty-v2 .ic { font-size: 30px; opacity: .8; }
.empty-v2 h3 { margin: 10px 0 6px; font-size: 15px; font-weight: 600; }
.empty-v2 p { margin: 0; color: var(--v2-muted); font-size: 13px; }

.sec-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.sec-title h2 { margin: 0; font-size: 15px; font-weight: 650; }
.sec-title .hint { color: var(--v2-muted); font-size: 12px; }
.sec-title .sp { flex: 1; }

.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--v2-line); color: var(--v2-muted); }


/* 年月筛选 */
.filters { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 0 0 12px; }
.fgroup { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flabel { font-size: 11.5px; color: var(--v2-muted); letter-spacing: .4px; margin-right: 2px; }
.fchip {
  font-size: 12.5px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--v2-line);
  background: var(--v2-card); color: var(--v2-text); transition: all .12s ease;
}
.fchip:hover { border-color: #36445a; background: var(--v2-card2); text-decoration: none; }
.fchip.on { border-color: var(--v2-accent); background: rgba(76,141,255,.16); color: #a9c6ff; }


/* 规则条 */
.rule-strip {
  display: flex; gap: 12px; align-items: flex-start;
  background: #101720; border: 1px solid var(--v2-line); border-left: 3px solid var(--v2-accent);
  border-radius: 10px; padding: 11px 14px; margin: 0 0 20px;
}
.rule-strip .rs-t { font-size: 11px; color: var(--v2-accent); letter-spacing: .5px; padding-top: 2px; white-space: nowrap; }
.rule-strip .rs-body { font-size: 12.5px; color: #a9b7c9; line-height: 1.65; }
.rule-strip b { color: var(--v2-text); font-weight: 600; }

/* 顶部导航：大一些 */
.topbar { backdrop-filter: blur(8px); }
.nav { gap: 6px; }
.nav a {
  font-size: 15px; padding: 9px 18px; border-radius: 10px; font-weight: 500; letter-spacing: .2px;
}
.nav a.on { font-weight: 650; }
.brand small { font-size: 12px; }


/* 搜索框 */
.searchbar { display: flex; gap: 8px; max-width: 560px; }
.searchbar input {
  flex: 1; background: #0f151d; color: var(--v2-text); border: 1px solid var(--v2-line);
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px; outline: none;
}
.searchbar input:focus { border-color: var(--v2-accent); box-shadow: 0 0 0 3px rgba(76,141,255,.12); }
.searchbar .btn { border-radius: 10px; padding: 10px 18px; }

/* 个股页头部卡统一 */
.stock-head, .stock-title { border-radius: 14px; }
.chip { border-radius: 8px; }


/* 搜索下拉（combo） */
.combo { position: relative; max-width: 640px; }
.combo-input {
  width: 100%; background: #0f151d; color: var(--v2-text); border: 1px solid var(--v2-line);
  border-radius: 12px; padding: 13px 16px; font-size: 15px; outline: none;
}
.combo-input:focus { border-color: var(--v2-accent); box-shadow: 0 0 0 3px rgba(76,141,255,.14); }
.combo-panel {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
  background: #121821; border: 1px solid var(--v2-line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45); max-height: 430px; overflow: auto;
}
.combo-panel::-webkit-scrollbar { width: 8px; }
.combo-panel::-webkit-scrollbar-thumb { background: #2a3442; border-radius: 8px; }
.combo-meta {
  position: sticky; top: 0; background: #0f151d; color: var(--v2-muted);
  font-size: 11.5px; padding: 7px 14px; border-bottom: 1px solid var(--v2-line);
}
.combo-item {
  display: grid; grid-template-columns: 90px 1fr 46px 70px 74px; align-items: center;
  gap: 8px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid #1a2230;
}
.combo-item:last-child { border-bottom: none; }
.combo-item:hover, .combo-item.on { background: #17202c; }
.combo-item.on { box-shadow: inset 2px 0 0 var(--v2-accent); }
.ci-code { font-size: 12.5px; color: #7fb0ff; }
.ci-name { font-size: 13.5px; color: var(--v2-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-today { font-size: 12px; }
.ci-px { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; color: #c9d4e3; }
.ci-chg { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.combo-empty { padding: 18px 14px; color: var(--v2-muted); font-size: 13px; text-align: center; }
.combo-hint { margin-top: 10px; }


/* 任务进度条 */
.jobbar {
  display: flex; align-items: center; gap: 10px; position: relative;
  background: #101720; border: 1px solid var(--v2-line); border-radius: 10px;
  padding: 10px 14px 14px; margin: 0 0 18px; font-size: 12.5px; color: var(--v2-muted);
}
.jobbar.on { border-color: rgba(76,141,255,.45); color: #a9c6ff; }
.jobbar.err { border-color: #6b2b2b; color: #ff9a9a; }
.jb-dot { width: 8px; height: 8px; border-radius: 50%; background: #3a4757; flex: 0 0 auto; }
.jobbar.on .jb-dot { background: var(--v2-accent); animation: jbpulse 1.1s infinite; }
.jobbar.err .jb-dot { background: #ff5c5c; }
@keyframes jbpulse { 0%{opacity:.35} 50%{opacity:1} 100%{opacity:.35} }
.jb-text { color: inherit; }
.jb-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.jb-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #1b2330; border-radius: 0 0 10px 10px; overflow: hidden; }
.jb-line > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2f7bff, #4c8dff); transition: width .35s ease; }


/* 登录页 */
.login-wrap { min-height: calc(100vh - 160px); display: flex; align-items: center; justify-content: center; }
.login-card {
  width: 360px; background: linear-gradient(180deg, #161d28, #121821);
  border: 1px solid var(--v2-line); border-radius: 16px; padding: 30px 26px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.login-brand { font-size: 26px; font-weight: 700; letter-spacing: .5px; text-align: center; }
.login-sub { text-align: center; color: var(--v2-muted); font-size: 12px; margin-top: 6px; }
.login-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.login-field > span { font-size: 11.5px; color: var(--v2-muted); letter-spacing: .4px; }
.login-field input {
  background: #0f151d; color: var(--v2-text); border: 1px solid var(--v2-line);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; outline: none;
}
.login-field input:focus { border-color: var(--v2-accent); box-shadow: 0 0 0 3px rgba(76,141,255,.14); }
.login-btn {
  width: 100%; margin-top: 20px; padding: 12px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--v2-accent); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 2px;
}
.login-btn:hover { filter: brightness(1.08); }
.login-foot { margin-top: 16px; text-align: center; color: #6f7d8d; font-size: 11.5px; }
