:root {
  --bg0:#04060b; --bg1:#0b1422; --panel:rgba(12,24,42,.78); --panel2:rgba(14,30,52,.92);
  --line:rgba(125,168,220,.18); --line2:rgba(125,168,220,.34);
  --blue:#38bdf8; --blue2:#2f8cff; --blue3:#1677ff;
  --sky:#7dd3fc; --text:#d7e3f0; --muted:#7f94ac;
  --yellow:#facc15; --red:#ff4d5e; --green:#8fc31f; --purple:#a78bfa;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { background:var(--bg0); }
body {
  font-family:"PingFang SC","Microsoft YaHei","Segoe UI",Arial,sans-serif;
  color:var(--text); font-size:14px; min-height:100vh;
  background:
    radial-gradient(1100px 560px at 14% -10%, rgba(31,111,198,.28), transparent 65%),
    radial-gradient(1000px 480px at 86% -8%, rgba(47,211,154,.10), transparent 60%),
    radial-gradient(120% 100% at 50% -10%, #0b1422 0%, #06090f 52%, #04060b 100%) fixed;
}
body::before {
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    linear-gradient(rgba(125,168,220,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,168,220,.035) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%);
}
.wrap { position:relative; z-index:1; width:min(1720px, calc(100% - 40px)); margin:0 auto; }
.cockpit-wrap { width:100%; max-width:none; padding:0 24px; flex:1; display:flex; flex-direction:column; min-width:0; }
a { text-decoration:none; color:inherit; }
button, input, select { font-family:inherit; }
.cockpit-header { display:flex; align-items:center; justify-content:space-between; padding:8px 0 6px; gap:16px; flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:14px; }
.logo-seal {
  width:50px; height:50px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:23px; font-weight:800; color:#fff; position:relative;
  background:linear-gradient(145deg, #1b7fe8 0%, #0f5ec2 55%, #0b4a9c 100%);
  box-shadow:0 0 20px rgba(47,140,255,.55), inset 0 0 12px rgba(255,255,255,.18);
  border:1px solid rgba(125,200,255,.5);
}
.logo-seal::after { content:""; position:absolute; inset:4px; border-radius:9px; border:1px dashed rgba(125,200,255,.45); }
.brand-name { font-size:25px; font-weight:700; letter-spacing:2px; color:#fff; text-shadow:0 0 18px rgba(56,189,248,.6); }
.brand-sub { font-size:11px; letter-spacing:3px; color:var(--muted); margin-top:2px; font-family:Consolas,monospace; }
.hd-right { display:flex; align-items:center; gap:24px; font-size:12.5px; color:var(--muted); flex-wrap:wrap; }
.hd-right b { color:var(--sky); font-weight:600; }
.live { display:flex; align-items:center; gap:7px; color:#6fe3a8; font-size:12px; }
.live .dot { width:8px; height:8px; border-radius:50%; background:#6fe3a8; box-shadow:0 0 8px #6fe3a8; animation:pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.kpis { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; margin:2px 0 10px; }
.kpi {
  position:relative; background:linear-gradient(180deg, rgba(20,42,70,.9), rgba(10,22,40,.9));
  border:1px solid var(--line); border-radius:10px; padding:10px 18px 9px; overflow:hidden;
}
.kpi::before { content:""; position:absolute; left:0; top:0; right:0; height:2px; background:linear-gradient(90deg, transparent, var(--kc,#38bdf8), transparent); }
.kpi::after { content:""; position:absolute; right:-30px; top:-40px; width:150px; height:150px; border-radius:50%; background:radial-gradient(circle, var(--kc,#38bdf8) 0%, transparent 68%); opacity:.12; }
.kpi .lbl { font-size:12.5px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.kpi .num { font-size:33px; font-weight:700; color:#fff; font-family:Consolas,"Segoe UI",monospace; margin-top:4px; letter-spacing:1px; text-shadow:0 0 14px rgba(56,189,248,.4); }
.kpi .sub { font-size:11.5px; color:var(--muted); margin-top:3px; }
.kpi .sub b { color:var(--green); font-weight:600; }
.kpi .sub b.up { color:var(--red); }
.panel {
  position:relative; background:var(--panel); border:1px solid var(--line); border-radius:10px;
  padding:13px 15px; box-shadow:0 8px 30px rgba(0,0,0,.28), inset 0 0 40px rgba(22,68,120,.06);
}
.panel::before, .panel::after { content:""; position:absolute; width:10px; height:10px; pointer-events:none; }
.panel::before { left:-1px; top:-1px; border-left:2px solid var(--blue3); border-top:2px solid var(--blue3); border-radius:3px 0 0 0; }
.panel::after { right:-1px; top:-1px; border-right:2px solid var(--blue3); border-top:2px solid var(--blue3); border-radius:0 3px 0 0; }
.c-lb, .c-rb { position:absolute; width:10px; height:10px; pointer-events:none; }
.c-lb { left:-1px; bottom:-1px; border-left:2px solid var(--blue3); border-bottom:2px solid var(--blue3); border-radius:0 0 0 3px; }
.c-rb { right:-1px; bottom:-1px; border-right:2px solid var(--blue3); border-bottom:2px solid var(--blue3); border-radius:0 0 3px 0; }
.panel-title { display:flex; align-items:center; gap:9px; font-size:14.5px; font-weight:600; color:#eaf4ff; margin-bottom:10px; }
.panel-title::before { content:""; width:4px; height:15px; border-radius:2px; background:linear-gradient(180deg, var(--blue), var(--blue3)); box-shadow:0 0 8px rgba(47,140,255,.7); }
.panel-title .tag { margin-left:auto; font-size:11px; color:var(--muted); font-weight:400; font-family:Consolas,monospace; }
.main-grid { flex:1; display:grid; grid-template-columns:minmax(230px,300px) minmax(0,1fr) minmax(250px,300px); grid-template-rows:minmax(0,1fr); gap:14px; align-items:stretch; min-height:0; }
.main-grid > * { min-width:0; }
.main-grid > div:last-child { display:flex; flex-direction:column; min-height:0; }
.main-grid > div:last-child .panel { flex:1; }
.rank-row { display:flex; align-items:center; gap:8px; padding:4.6px 0; }
.rank-no { width:20px; height:20px; flex:none; border-radius:5px; display:flex; align-items:center; justify-content:center;
  font-family:Consolas,monospace; font-size:11px; font-weight:700; color:#9fb6cf; background:rgba(125,168,220,.10); border:1px solid rgba(125,168,220,.22); }
.rank-row:nth-child(2) .rank-no { color:#0b1422; background:linear-gradient(145deg,#ffe066,#facc15); border-color:#facc15; }
.rank-row:nth-child(3) .rank-no { color:#eaf4ff; background:linear-gradient(145deg,#9fb6cf,#6f8aa6); border-color:#9fb6cf; }
.rank-row:nth-child(4) .rank-no { color:#eaf4ff; background:linear-gradient(145deg,#c98a5e,#a96f43); border-color:#c98a5e; }
.rank-name { width:52px; font-size:12px; color:#b7cde3; flex:none; }
.rank-track { flex:1; height:11px; background:rgba(125,168,220,.10); border-radius:3px; overflow:hidden; }
.rank-fill { height:100%; border-radius:3px; background:linear-gradient(90deg,#1677ff,#38bdf8 70%,#7dd3fc); box-shadow:0 0 8px rgba(56,189,248,.45); }
.rank-val { width:30px; text-align:right; font-family:Consolas,monospace; font-size:12px; color:#eaf4ff; font-weight:700; }
.map-panel { padding:13px 16px; display:flex; flex-direction:column; }
.map-wrap { position:relative; flex:1; min-height:300px; }
.map-wrap #map { width:100%; height:100%; }
.map-legend { position:absolute; right:12px; bottom:8px; z-index:5; display:flex; flex-direction:column; gap:4px; font-size:10.5px; color:var(--muted); }
.map-legend .bar { width:130px; height:8px; border-radius:4px; background:linear-gradient(90deg,#123a66,#1e6bb8,#38bdf8,#facc15,#ff7a5c); }
.map-legend .labels { display:flex; justify-content:space-between; }
.map-note { position:absolute; left:8px; bottom:8px; z-index:5; font-size:11px; color:var(--muted); }
.map-note b { color:var(--sky); }
.due-row { display:flex; align-items:center; gap:9px; padding:5px 2px; border-bottom:1px dashed rgba(125,168,220,.12); }
.due-row:last-child { border-bottom:0; }
.due-badge { flex:none; width:46px; text-align:center; border-radius:6px; padding:4px 0; font-size:11px; line-height:1.25;
  background:rgba(47,140,255,.13); border:1px solid rgba(56,189,248,.35); color:var(--blue); }
.due-badge b { display:block; font-size:15px; font-family:Consolas,monospace; }
.due-badge.warn { background:rgba(250,204,21,.10); border-color:rgba(250,204,21,.4); color:#ffd76a; }
.due-badge.urgent { background:rgba(255,77,94,.12); border-color:rgba(255,77,94,.45); color:#ff8795; }
.due-main { flex:1; min-width:0; }
.due-title { display:block; max-width:100%; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#cfe0f0; }
.due-meta { display:flex; gap:8px; margin-top:2px; font-size:10.5px; color:var(--muted); }
.due-meta .city { color:var(--blue); }
.due-meta .est { color:var(--yellow); }
.donut-wrap { display:flex; align-items:center; gap:14px; }
.donut-wrap svg { flex:none; }
.lg { flex:1; min-width:0; }
.lg-row { display:flex; align-items:center; gap:7px; font-size:11.5px; margin-bottom:5px; color:#a8bed6; }
.lg-dot { width:8px; height:8px; border-radius:2px; flex:none; }
.lg-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lg-val { font-family:Consolas,monospace; color:#eaf4ff; }
.lg-pct { width:42px; text-align:right; color:var(--muted); font-family:Consolas,monospace; }
.ticker { margin-top:10px; overflow:hidden; white-space:nowrap; }
.ticker-track { display:inline-block; animation:marquee 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state:paused; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.tk-item { display:inline-flex; align-items:center; gap:9px; padding:0 22px; border-right:1px solid rgba(125,168,220,.14); font-size:12.5px; color:#c8daec; }
.tk-item .badge { flex:none; font-size:10.5px; color:#ffb4bd; background:rgba(255,77,94,.13); border:1px solid rgba(255,77,94,.4); padding:1px 6px; border-radius:3px; font-weight:600; }
.tk-item .city { color:var(--blue); font-size:11.5px; }
.tk-item .dl { color:var(--yellow); font-family:Consolas,monospace; font-size:11.5px; }

/* 诚广诚信工具箱：原首页前 4 张工具卡片融合到底部 */
.tools-strip { margin-top:12px; }
.tools-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.tool-mini {
  display:flex; align-items:center; gap:11px; padding:10px 14px; border-radius:9px;
  background:linear-gradient(180deg, rgba(20,42,70,.75), rgba(10,24,44,.75));
  border:1px solid var(--line); transition:border-color .15s, box-shadow .15s, transform .15s;
  min-width:0;
}
.tool-mini:hover { border-color:var(--blue3); box-shadow:0 0 14px rgba(47,140,255,.28); transform:translateY(-1px); }
.tm-ico { flex:none; width:34px; height:34px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  font-size:17px; background:rgba(47,140,255,.12); border:1px solid rgba(56,189,248,.28); }
.tm-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tm-title { font-size:13px; font-weight:600; color:#eaf4ff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tm-desc { font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tm-arrow { flex:none; color:var(--blue); font-size:16px; opacity:.7; transition:opacity .15s; }
.tool-mini:hover .tm-arrow { opacity:1; }
.crumbs { color:var(--muted); font-size:13px; margin:14px 0 12px; }
.crumbs a { color:var(--blue); }
.filters { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.filters label { font-size:12.5px; color:var(--muted); }
.filters select, .filters input {
  background:rgba(10,22,40,.9); border:1px solid var(--line); color:#d7e3f0; border-radius:6px;
  padding:7px 10px; font-size:13px; outline:none; min-width:110px;
}
.filters select:focus, .filters input:focus { border-color:var(--blue3); }
.btn {
  background:linear-gradient(145deg,#1b7fe8,#0f5ec2); color:#fff; border:0; border-radius:6px;
  padding:8px 18px; font-size:13px; cursor:pointer; box-shadow:0 0 12px rgba(47,140,255,.3);
}
.btn:hover { filter:brightness(1.12); }
.list-row { display:flex; align-items:center; gap:10px; padding:10px 4px; border-bottom:1px dashed rgba(125,168,220,.12); }
.list-row:last-child { border-bottom:0; }
.list-row .title { flex:1; min-width:0; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#cfe0f0; }
.list-row .title:hover { color:var(--blue); }
.badge { flex:none; font-size:11px; color:#ffb4bd; background:rgba(255,77,94,.13); border:1px solid rgba(255,77,94,.4); padding:1px 7px; border-radius:3px; font-weight:600; }
.badge-zfcg { color:#7dd3fc; background:rgba(56,189,248,.12); border-color:rgba(56,189,248,.42); }
.badge-qycg { color:#d3c4ff; background:rgba(167,139,250,.14); border-color:rgba(167,139,250,.45); }
.tag { flex:none; font-size:11px; padding:1px 7px; border-radius:3px; }
.t-region { color:var(--blue); background:rgba(47,140,255,.12); border:1px solid rgba(56,189,248,.28); }
.t-industry { color:var(--purple); background:rgba(167,139,250,.10); border:1px solid rgba(167,139,250,.25); }
.t-time { flex:none; font-size:11.5px; color:var(--muted); font-family:Consolas,monospace; }
.t-deadline { flex:none; font-size:11.5px; color:var(--yellow); font-family:Consolas,monospace; }
.t-deadline.past { color:var(--red); }
.pager { display:flex; align-items:center; justify-content:center; gap:8px; padding:16px 0 4px; }
.pager a { min-width:32px; height:32px; border:1px solid var(--line); border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:13px; background:rgba(10,22,40,.9); color:#a8bed6; padding:0 10px; }
.pager a.on { background:var(--blue3); color:#fff; border-color:var(--blue3); }
.pager a:hover { border-color:var(--blue); }
.pager .disabled { opacity:.35; pointer-events:none; }
.empty { text-align:center; color:var(--muted); padding:36px 0; font-size:13px; }
.detail-layout { display:grid; grid-template-columns:1fr 330px; gap:16px; margin-bottom:28px; }
.detail { padding:26px 30px; }
.detail h1 { font-size:21px; line-height:1.55; color:#f0f7ff; }
.detail-meta { display:flex; flex-wrap:wrap; gap:8px 24px; color:var(--muted); font-size:12.5px; padding:12px 0 16px; border-bottom:1px solid var(--line); margin:12px 0 18px; }
.detail-meta b { color:var(--sky); font-weight:600; }
.kv { width:100%; border-collapse:collapse; margin-bottom:20px; }
.kv td { border:1px solid rgba(125,168,220,.16); padding:9px 14px; font-size:13.5px; color:#d5e3f1; }
.kv td.k { background:rgba(125,168,220,.06); color:var(--muted); width:150px; white-space:nowrap; }
.kv td.hl { color:var(--yellow); }
.attach { display:flex; align-items:center; gap:12px; background:rgba(125,168,220,.06); border:1px dashed rgba(125,168,220,.35); border-radius:8px; padding:13px 16px; margin-top:18px; flex-wrap:wrap; }
.attach .f-ico { font-size:24px; }
.attach .f-name { font-weight:600; font-size:14px; color:#eaf4ff; }
.attach .btn { margin-left:auto; }
.btn-ghost { display:inline-block; border:1px solid var(--blue3); color:var(--blue); padding:8px 18px; border-radius:6px; font-size:13px; margin-left:10px; }
.btn-ghost:hover { background:rgba(47,140,255,.12); }
.side-item { padding:9px 0; border-bottom:1px dashed rgba(125,168,220,.12); font-size:13px; line-height:1.55; color:#cfe0f0; }
.side-item:last-child { border-bottom:0; }
.side-item .d { color:var(--muted); font-size:12px; margin-top:3px; }
.side-item:hover { color:var(--blue); }
footer { margin-top:10px; padding:8px 0 12px; text-align:center; color:var(--muted); font-size:12px; line-height:1.9; border-top:1px solid rgba(125,168,220,.10); }
footer a { color:#8fb8dc; }

/* ===== 微信公众号：右上角悬浮入口 ===== */
.wx-hover { position: relative; display: inline-flex; }
.wx-btn {
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  color: #bfd8ee; font-size: 12px; padding: 4px 11px;
  border: 1px solid rgba(125,168,220,.28); border-radius: 999px;
  background: rgba(56,189,248,.07); transition: all .2s ease; white-space: nowrap;
}
.wx-btn:hover, .wx-hover:hover .wx-btn {
  color: #fff; border-color: rgba(56,189,248,.65);
  background: rgba(56,189,248,.16); box-shadow: 0 0 14px rgba(56,189,248,.28);
}
.wx-btn svg { display: block; }
.wx-pop {
  position: absolute; right: 0; top: calc(100% + 12px); width: 214px;
  padding: 15px 14px 13px; text-align: center;
  background: linear-gradient(160deg, rgba(9,24,46,.99), rgba(11,34,62,.96));
  border: 1px solid rgba(56,189,248,.38); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,.55), 0 0 26px rgba(56,189,248,.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .22s ease; z-index: 100;
}
.wx-hover:hover .wx-pop, .wx-hover:focus-within .wx-pop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.wx-pop-qr {
  display: block; width: 122px; height: 122px; margin: 0 auto 10px;
  background: #fff; padding: 6px; border-radius: 8px;
  box-shadow: 0 0 18px rgba(56,189,248,.42);
}
.wx-pop-qr img { width: 110px; height: 110px; object-fit: cover; border-radius: 5px; display: block; }
.wx-pop-name { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.wx-pop-desc { color: #9fc3e0; font-size: 11px; margin-top: 5px; line-height: 1.65; }

/* ===== 微信公众号：页脚关注卡片 ===== */
.wx-card {
  position: relative; margin: 18px auto 0; width: 400px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 20px 26px;
  background: linear-gradient(135deg, rgba(9,24,46,.95), rgba(11,34,62,.9));
  border: 1px solid rgba(56,189,248,.30); border-radius: 14px;
  box-shadow: 0 0 28px rgba(56,189,248,.14), inset 0 0 26px rgba(56,189,248,.05);
}
.wx-card .c-lb, .wx-card .c-rb { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.wx-card .c-lb { left: -1px; top: -1px; border-left: 2px solid #38bdf8; border-top: 2px solid #38bdf8; border-radius: 4px 0 0 0; }
.wx-card .c-rb { right: -1px; bottom: -1px; border-right: 2px solid #38bdf8; border-bottom: 2px solid #38bdf8; border-radius: 0 0 4px 0; }
.wx-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #0c5fa8; color: #fff; font-size: 11px; letter-spacing: 2px;
  padding: 3px 14px; border-radius: 999px; border: 1px solid rgba(56,189,248,.6);
  box-shadow: 0 0 12px rgba(56,189,248,.5); white-space: nowrap;
}
.wx-qr {
  width: 108px; height: 108px; flex: 0 0 auto;
  background: #fff; padding: 6px; border-radius: 10px;
  box-shadow: 0 0 18px rgba(56,189,248,.5);
}
.wx-qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.wx-info .wx-name { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.wx-info .wx-desc { color: #9fc3e0; font-size: 12px; margin-top: 7px; line-height: 1.75; }
.wx-info .wx-id {
  display: inline-block; margin-top: 9px; color: #38bdf8; font-size: 11.5px;
  border: 1px solid rgba(56,189,248,.4); padding: 3px 11px; border-radius: 999px;
  background: rgba(56,189,248,.08);
}
.notice { background:rgba(250,204,21,.08); border:1px solid rgba(250,204,21,.35); color:#ffd76a; border-radius:8px; padding:10px 16px; font-size:12.5px; margin-bottom:12px; }
.notice.error { background:rgba(255,77,94,.08); border-color:rgba(255,77,94,.4); color:#ff9aa4; }

/* 驾驶舱：固定设计宽度 + JS 等比缩放，任何窗口比例都不换行、地图始终居中 */
.stage { width:100%; display:flex; flex-direction:column; min-height:100vh; }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns:1fr; }
}
/* 6 张 KPI 始终一行；窄屏时压缩卡片内部间距而不是换行 */
@media (max-width: 1400px) {
  .kpi { padding:9px 12px; }
  .kpi .lbl { font-size:11.5px; }
  .kpi .num { font-size:26px; }
  .kpi .sub { font-size:10.5px; }
}
@media (max-height: 900px) {
  .main-grid > div:last-child .panel:last-child { display:none; }
  .map-wrap { min-height:0; }
  .tm-desc { display:none; }
  .tools-strip .panel-title { margin-bottom:7px; }
  .tool-mini { padding:7px 12px; }
}
@media (max-height: 1000px) {
  .ticker { display:none; }
}
@media (max-height: 820px) {
  footer { display:none; }
}
