/* Global Demand Eye · 工具页共享样式 */
:root { --navy:#0f2540; --navy2:#1a4a7a; --red:#c0392b; --bg:#f5f6f8; --ink:#1a1d24;
        --muted:#5c6b7d; --line:#e2e8f0; --green:#27ae60; --amber:#e8a13c; }
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--ink); line-height:1.7; }
.container { max-width:1100px; margin:0 auto; padding:0 24px; }

nav { position:sticky; top:0; z-index:50; background:rgba(15,37,64,.97); backdrop-filter:blur(8px); }
nav .container { display:flex; align-items:center; justify-content:space-between; height:54px; }
nav .logo { color:#fff; font-weight:800; font-size:16px; text-decoration:none; letter-spacing:.5px; }
nav .logo span { color:#ff9a8a; }
nav .links { display:flex; align-items:center; gap:0; }
nav .links > a, .dropbtn { color:rgba(255,255,255,.75); text-decoration:none; font-size:13.5px; margin-left:20px; transition:color .2s; cursor:pointer; }
nav .links > a:hover, .dropbtn:hover, .dropbtn.on { color:#fff; }
.dropdown { position:relative; }
.dropdown-menu { display:none; position:absolute; right:0; top:100%; background:#fff; border-radius:10px; box-shadow:0 8px 28px rgba(0,0,0,.22); padding:8px; min-width:190px; z-index:60; }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display:block; }
.dropdown-menu a { display:block; color:var(--ink); text-decoration:none; font-size:13.5px; padding:9px 14px; border-radius:7px; margin:0; white-space:nowrap; }
.dropdown-menu a:hover { background:#eef2f7; color:var(--navy); }
.dropdown-menu a.cur { background:#e8f0fa; color:var(--navy); font-weight:700; }
@media (max-width:720px){ nav .links > a { display:none; } .dropdown-menu { right:auto; left:0; } }

.page-head { background:linear-gradient(135deg,#0f2540,#1a4a7a 60%,#c0392b 130%); color:#fff; padding:38px 0 34px; margin-bottom:24px; }
.page-head h1 { font-size:26px; font-weight:800; margin-bottom:6px; }
.page-head p { font-size:13.5px; opacity:.85; max-width:720px; }
.page-head .src { display:inline-block; margin-top:12px; font-size:12px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); padding:3px 12px; border-radius:14px; }

.panel { background:#fff; border-radius:14px; box-shadow:0 1px 4px rgba(15,37,64,.08); padding:24px 26px; margin-bottom:18px; }
.panel h3 { font-size:16px; color:var(--navy); margin-bottom:14px; }
.panel h3 small { color:var(--muted); font-weight:400; font-size:12px; margin-left:8px; }

.controls { display:flex; gap:14px; flex-wrap:wrap; align-items:end; }
.fld label { font-size:12px; color:var(--muted); font-weight:600; display:block; margin-bottom:4px; }
.fld input, .fld select { padding:9px 12px; border:1.5px solid var(--line); border-radius:9px; font-size:14px; outline:none; background:#fff; min-width:120px; }
.fld input:focus, .fld select:focus { border-color:var(--navy2); }
.fld input[type=text] { min-width:200px; }
.btn { background:var(--red); color:#fff; border:none; padding:11px 26px; border-radius:9px; font-size:14.5px; font-weight:700; cursor:pointer; transition:.2s; }
.btn:hover { background:#a93226; } .btn:disabled { background:#999; cursor:wait; }
.btn.ghost { background:#eef2f7; color:var(--navy); font-size:13px; padding:9px 18px; }
.btn.ghost:hover { background:#dfe7f0; }

.status { font-size:13px; color:var(--muted); margin-top:14px; min-height:20px; }
.status .spin { display:inline-block; width:12px; height:12px; border:2px solid var(--navy2); border-top-color:transparent; border-radius:50%; animation:sp .8s linear infinite; vertical-align:-2px; margin-right:6px; }
@keyframes sp { to { transform:rotate(360deg); } }
.status.err { color:var(--red); }

table { width:100%; border-collapse:collapse; font-size:13.5px; }
thead th { background:var(--navy); color:#fff; padding:8px 10px; text-align:right; font-weight:600; white-space:nowrap; }
thead th:first-child, thead th:nth-child(2) { text-align:left; }
tbody td { padding:7px 10px; border-bottom:1px solid #eef1f5; text-align:right; font-variant-numeric:tabular-nums; }
tbody td:first-child, tbody td:nth-child(2) { text-align:left; }
tbody tr:hover { background:#f4f8fd; }
.tbl-wrap { max-height:480px; overflow:auto; border-radius:8px; }

.chart-box { position:relative; height:380px; margin:14px 0 4px; }

.kpi-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-bottom:4px; }
.kpi { background:#f6f8fb; border-radius:10px; padding:14px 16px; }
.kpi .n { font-size:20px; font-weight:800; color:var(--navy); }
.kpi .d { font-size:12px; color:var(--muted); margin-top:2px; }

.note { background:#fff5e6; border-left:4px solid var(--amber); padding:12px 16px; border-radius:0 10px 10px 0; margin-top:16px; font-size:13px; }
.note b { color:#b36a00; }
.note.green { background:#eef9f0; border-left-color:var(--green); } .note.green b { color:#1d7a46; }

footer { text-align:center; color:#9aa7b5; font-size:12px; margin-top:36px; padding:0 0 40px; }
footer a { color:#7d94ab; text-decoration:none; }
.up { color:#c0392b; font-weight:700; } .down { color:#27ae60; font-weight:700; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:880px){ .grid2 { grid-template-columns:1fr; } }
