:root { --bg:#0f1420; --card:#1a2233; --fg:#e8ecf4; --mut:#8a94a8; --acc:#4f8cff; --red:#ff5d5d; --green:#2ecc8f; }
* { box-sizing:border-box; margin:0; padding:0; }
body { background:var(--bg); color:var(--fg); font:14px/1.6 "Microsoft YaHei",system-ui,sans-serif; padding:24px; }
h1 { font-size:20px; margin-bottom:4px; }
h3 { margin-bottom:8px; font-size:15px; }
.sub { color:var(--mut); margin-bottom:20px; font-size:12px; }
.card { background:var(--card); border-radius:10px; padding:16px; margin-bottom:16px; }
form { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; }
.dyn { display:contents; }
label { display:flex; flex-direction:column; font-size:12px; color:var(--mut); gap:4px; }
input,select { background:#0d1322; color:var(--fg); border:1px solid #2a3550; border-radius:6px; padding:6px 8px; width:130px; }
input:invalid { border-color:var(--red); }
button { background:var(--acc); color:#fff; border:0; border-radius:6px; padding:8px 20px; cursor:pointer; font-size:14px; }
button:disabled { opacity:.5; cursor:wait; }
button.ghost { background:#2a3550; padding:4px 10px; font-size:12px; }
#status { margin-left:8px; color:var(--mut); }
.hint { color:var(--mut); font-size:12px; margin-top:8px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; }
.kpi { background:#0d1322; border-radius:8px; padding:12px; }
.kpi .v { font-size:20px; font-weight:600; }
.kpi .k { font-size:12px; color:var(--mut); }
.pos { color:var(--red); } .neg { color:var(--green); } /* A股红涨绿跌 */
#chart { width:100%; height:420px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th,td { padding:6px 10px; text-align:right; border-bottom:1px solid #2a3550; }
th:first-child,td:first-child { text-align:left; }
th { color:var(--mut); font-weight:400; }
.warn { color:#ffb84d; font-size:12px; margin-top:8px; white-space:pre-wrap; }
.hidden { display:none; }
.pager { display:flex; gap:12px; align-items:center; margin-top:10px; color:var(--mut); font-size:12px; }
.ok { color:var(--green); } .bad { color:var(--red); }