/* ============================================================
 * 数据驾驶舱 · 公共样式（大屏深色 · 科技蓝 × 农业绿）
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #061021;
  --bg2: #0a1830;
  --panel: rgba(13, 32, 62, .55);
  --line: rgba(64, 144, 255, .22);
  --txt: #dbeaff;
  --txt2: #7fa3c8;
  --cyan: #3ec6ff;
  --green: #3ddba9;
  --amber: #ffb75d;
  --violet: #a08bff;
  --pink: #ff7fa8;
  --gold: #ffd76e;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(62, 198, 255, .10), transparent 60%),
    radial-gradient(1000px 420px at 10% 110%, rgba(61, 219, 169, .07), transparent 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 55%, #071527 100%);
}

/* ---------- 页头 ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 28px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(62,198,255,.06), transparent 40%, transparent 60%, rgba(61,219,169,.05));
}
.header .title-wrap { display: flex; align-items: center; gap: 16px; }
.header .logo-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(62,198,255,.25), rgba(61,219,169,.18));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex: none;
}
.header h1 {
  font-size: 22px; letter-spacing: 2px; font-weight: 600;
  background: linear-gradient(90deg, #f2f9ff 0%, #b3dcff 55%, #8cead0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header .subtitle { font-size: 12px; color: var(--txt2); margin-top: 4px; letter-spacing: 1px; }
.header .period-tag {
  font-size: 11px; color: var(--cyan);
  border: 1px solid rgba(62,198,255,.4); border-radius: 999px;
  padding: 3px 12px; margin-left: 14px; white-space: nowrap;
}

.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  padding: 8px 20px; border-radius: 8px; font-size: 13px; color: var(--txt2);
  border: 1px solid transparent; text-decoration: none; transition: all .25s;
}
.nav a:hover { color: var(--cyan); border-color: rgba(62,198,255,.35); }
.nav a.active {
  color: #04101f; font-weight: 600;
  background: linear-gradient(135deg, var(--cyan), #35d9b0);
  box-shadow: 0 0 14px rgba(62,198,255,.45);
}

/* ---------- 布局 ---------- */
.wrap { max-width: 1680px; margin: 0 auto; padding: 20px 24px 40px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }

.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 1280px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-6, .col-7, .col-8 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .grid > * { grid-column: span 12 !important; }
  .header h1 { font-size: 17px; }
  .kpi-num { font-size: 26px !important; }
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px 12px;
  backdrop-filter: blur(4px);
  overflow: hidden;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.panel.in { opacity: 1; transform: none; }
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.panel::before {
  top: 0; left: 0;
  border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan);
  border-top-left-radius: 10px;
}
.panel::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--green); border-right: 2px solid var(--green);
  border-bottom-right-radius: 10px;
}
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.p-head h3 {
  font-size: 15px; font-weight: 600; letter-spacing: 1px; padding-left: 12px; position: relative;
}
.p-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  box-shadow: 0 0 8px rgba(62,198,255,.8);
}
.p-head .tag { font-size: 11px; color: var(--txt2); white-space: nowrap; }
.p-body { width: 100%; }
.src-note { font-size: 11px; color: rgba(127,163,200,.75); padding: 6px 2px 0; line-height: 1.5; }

/* ---------- KPI 卡片 ---------- */
.kpi-band { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1280px) { .kpi-band { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .kpi-band { grid-template-columns: repeat(2, 1fr); } }
.kpi-card {
  position: relative; border-radius: 10px; padding: 14px 16px 12px;
  background: linear-gradient(150deg, rgba(23,52,95,.55), rgba(10,26,50,.55));
  border: 1px solid var(--line); overflow: hidden;
}
.kpi-card::after {
  content: ""; position: absolute; right: -22px; top: -22px; width: 74px; height: 74px;
  border-radius: 50%; background: radial-gradient(circle, currentColor, transparent 70%); opacity: .16;
}
.kpi-num { font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-unit { font-size: 13px; font-weight: 400; margin-left: 4px; opacity: .85; }
.kpi-label { font-size: 13px; color: var(--txt); margin-top: 6px; }
.kpi-year { font-size: 11px; color: var(--txt2); margin-top: 3px; }
.c-cyan { color: var(--cyan); } .c-green { color: var(--green); }
.c-amber { color: var(--amber); } .c-violet { color: var(--violet); }
.c-gold { color: var(--gold); } .c-pink { color: var(--pink); }

/* ---------- 徽章 / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; color: var(--txt); padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(62,198,255,.30);
  background: linear-gradient(120deg, rgba(62,198,255,.10), rgba(61,219,169,.08));
  line-height: 1.5;
}
.chip.warm { border-color: rgba(255,183,93,.35); background: linear-gradient(120deg, rgba(255,183,93,.10), rgba(255,127,168,.08)); }
.chip.green { border-color: rgba(61,219,169,.35); background: linear-gradient(120deg, rgba(61,219,169,.10), rgba(62,198,255,.08)); }

/* ---------- 统计卡阵列 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  border: 1px dashed rgba(127,163,200,.30); border-radius: 10px; padding: 12px 14px;
  background: rgba(8,20,40,.45); transition: transform .25s, border-color .25s;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(62,198,255,.5); }
.stat-card .ico { font-size: 20px; }
.stat-card .t { font-size: 12px; color: var(--txt2); margin-top: 6px; }
.stat-card .v { font-size: 15px; font-weight: 600; color: var(--cyan); margin-top: 4px; line-height: 1.45; }
.stat-card .d { font-size: 11px; color: var(--txt2); margin-top: 4px; line-height: 1.5; }

/* ---------- 模块入口（总览页） ---------- */
.mod-enter {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12px; color: var(--cyan); text-decoration: none;
  border: 1px solid rgba(62,198,255,.35); border-radius: 999px; padding: 6px 16px;
  transition: all .25s;
}
.mod-enter:hover { background: rgba(62,198,255,.12); box-shadow: 0 0 12px rgba(62,198,255,.3); }

/* ---------- 阶段时间轴（总览页） ---------- */
.timeline { display: flex; gap: 0; align-items: stretch; }
.stage {
  flex: 1; position: relative; padding: 14px 18px 12px 24px;
  border-left: 2px solid rgba(62,198,255,.35);
}
.stage::before {
  content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.stage:nth-child(2)::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.stage:nth-child(3)::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.stage .st-name { font-size: 15px; font-weight: 600; }
.stage .st-span { font-size: 12px; color: var(--cyan); margin-left: 8px; }
.stage .st-desc { font-size: 12px; color: var(--txt2); margin-top: 6px; line-height: 1.6; }
@media (max-width: 900px) { .timeline { flex-direction: column; } .stage { border-left-width: 2px; } }

/* ---------- 图表容器高度 ---------- */
.h240 { height: 240px; } .h260 { height: 260px; } .h280 { height: 280px; }
.h300 { height: 300px; } .h320 { height: 320px; } .h200 { height: 200px; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 26px; padding: 16px 24px 26px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--txt2); line-height: 1.9;
}
.footer b { color: #a9c6e4; }

::selection { background: rgba(62,198,255,.35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(64,144,255,.30); border-radius: 4px; }
