/* ==========================================================================
   NJFUer 数据台 / 统一样式
   奶油纸色 / 森林绿 / 衬线标题 / 细网格
   ========================================================================== */

:root {
  --g950: #07251e;
  --g900: #0c3d31;
  --g800: #0f5a49;
  --g700: #16705c;
  --g600: #1e8a70;
  --mint: #e7f4ee;
  --mint-2: #f1f9f5;
  --paper: #f7f8f3;
  --cream: #fdfbf3;
  --ink: #0b2a22;
  --body: #4c6157;
  --muted: #6b7f73;
  --line: rgba(11, 42, 34, 0.10);
  --line-strong: rgba(11, 42, 34, 0.16);
  --gold: #98651a;
  --gold-soft: #fbf0dc;
  --red: #b04a3f;
  --blue: #2c6390;
  --violet: #5852a3;
  --radius: 18px;
  --shadow-soft: 0 24px 50px -40px rgba(11, 42, 34, 0.55);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.ic {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -70px; z-index: 200;
  background: var(--g900); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 10px; text-decoration: none; font-size: .85rem;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid #2f9e7d; outline-offset: 2px; border-radius: 6px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--g900); color: rgba(234,255,246,.68); font-size: .73rem; letter-spacing: .03em; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar p { display: flex; align-items: center; gap: 9px; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #6fe3b4; box-shadow: 0 0 0 4px rgba(111,227,180,.15); animation: pulse 2.4s infinite; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { color: rgba(234,255,246,.7); text-decoration: none; transition: color .15s; }
.topbar-links a:hover { color: #fff; }
.topbar-links span { color: rgba(234,255,246,.52); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111,227,180,.18); }
  50% { box-shadow: 0 0 0 7px rgba(111,227,180,.02); }
}

/* ---------- 主导航 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 80;
  background: rgba(247,248,243,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.site-head.is-scrolled { background: rgba(247,248,243,.98); border-color: var(--line); box-shadow: 0 18px 36px -34px rgba(11,42,34,.65); }
.head-inner { height: 74px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(150deg, #1b7d66, #0b3027);
  color: #eafff4; display: grid; place-items: center;
  box-shadow: 0 10px 20px -14px rgba(12,61,49,.9);
}
.brand-mark .ic { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-size: 1.14rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-text small { font-size: .59rem; letter-spacing: .2em; font-weight: 600; color: var(--muted); margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 13px; border-radius: 10px; border: none; background: none;
  color: #2c4a3f; font-size: .93rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(15,90,73,.06); color: var(--g800); }
.nav-link.is-active { color: var(--g800); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--g700);
}
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-status {
  display: inline-flex; align-items: center; gap: 7px; font-size: .74rem;
  color: var(--body); border: 1px solid var(--line); background: rgba(255,255,255,.72);
  padding: 6px 11px; border-radius: 999px; margin-right: 2px;
}
.head-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #1e9e6f; }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: #2c4a3f; display: grid; place-items: center; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: rgba(15,90,73,.07); color: var(--g800); }
.menu-btn { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: .93rem; line-height: 1; text-decoration: none;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn .ic { width: 17px; height: 17px; }
.btn-sm { padding: 9px 14px; font-size: .82rem; border-radius: 10px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-primary { background: var(--g800); color: #fff; box-shadow: 0 14px 26px -20px rgba(12,61,49,.9); }
.btn-primary:hover { background: var(--g900); transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--g700); color: var(--g800); background: #fbfdfb; }
.btn-light { background: #f4fbf7; color: var(--g900); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-danger { background: #fff4f1; color: var(--red); border-color: #f3d3cc; }
.btn-danger:hover { background: #ffe9e3; }
.btn-block { width: 100%; }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  padding: 68px 0 36px;
  background:
    radial-gradient(900px 440px at 88% -12%, #e4f4ec 0%, rgba(228,244,236,0) 62%),
    radial-gradient(720px 380px at 3% -8%, #f1f8e9 0%, rgba(241,248,233,0) 58%),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(12,61,49,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,61,49,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .71rem; letter-spacing: .16em; font-weight: 700; color: var(--g700);
  text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #1e9e6f; animation: pulse 2.4s infinite; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 5.8vw, 5.1rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  margin: 18px 0 20px;
}
.hero h1 em {
  font-style: normal; color: var(--g800);
  background: linear-gradient(180deg, transparent 68%, rgba(30,138,112,.16) 68%);
}
.hero-lede { font-size: 1.03rem; line-height: 1.85; color: var(--body); max-width: 34em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: rgba(255,255,255,.72);
  padding: 6px 11px; border-radius: 999px; font-size: .74rem; color: #3d5a4e;
}
.chip .ic { width: 13px; height: 13px; color: var(--g700); }

/* 今日脉搏卡 */
.pulse-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 26px 26px 22px; box-shadow: 0 34px 70px -54px rgba(11,42,34,.8);
  overflow: hidden;
}
.pulse-card::after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(30,138,112,.14), transparent);
  pointer-events: none;
}
.pulse-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pulse-label { font-size: .72rem; letter-spacing: .14em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.pulse-live { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--g700); }
.pulse-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #1e9e6f; animation: pulse 2s infinite; }
.pulse-main { display: flex; align-items: flex-end; gap: 12px; margin: 14px 0 6px; }
.pulse-number { font-size: clamp(3.2rem, 5vw, 4.3rem); line-height: .95; font-weight: 800; letter-spacing: -.05em; color: var(--g900); font-variant-numeric: tabular-nums; }
.pulse-unit { font-size: .78rem; color: var(--muted); padding-bottom: 8px; }
.pulse-sub { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: .72rem; padding: 2px 7px; border-radius: 999px; }
.delta.up { color: #137a54; background: #e7f6ee; }
.delta.down { color: #b04a3f; background: #fdeceb; }
.delta.flat { color: var(--muted); background: #f0f3ee; }
.hour-bars { display: flex; align-items: flex-end; gap: 3px; height: 74px; margin: 20px 0 8px; }
.hour-bars span { flex: 1; min-width: 2px; height: 3px; border-radius: 3px 3px 1px 1px; background: #dcebe3; transition: height .5s ease; }
.hour-bars span.has { background: linear-gradient(180deg, #2a9277, #0f5a49); }
.hour-axis { display: flex; justify-content: space-between; font-size: .64rem; color: #8a9b91; font-family: var(--mono); }
.pulse-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pulse-foot b { display: block; font-size: 1.06rem; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.pulse-foot span { display: block; font-size: .68rem; color: var(--muted); margin-top: 2px; }

/* ---------- 数据条 ---------- */
.stats-strip {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.76); border: 1px solid var(--line);
  border-radius: 18px; margin-top: 40px; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.stats-strip .stat { padding: 20px 24px; border-right: 1px solid var(--line); }
.stats-strip .stat:last-child { border-right: 0; }
.stats-strip b { display: block; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; letter-spacing: -.03em; color: var(--g900); font-variant-numeric: tabular-nums; }
.stats-strip span { display: block; margin-top: 7px; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.stats-strip small { font-size: .64rem; color: #8a9b91; margin-left: 5px; }

/* ---------- 通用 section ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
.section-tint { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.14; letter-spacing: -.025em; font-weight: 700; margin: 10px 0 10px;
}
.section-head h2 em { font-style: normal; color: var(--g800); }
.section-head p { color: var(--body); font-size: .92rem; max-width: 46em; }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center p { margin: 0 auto; }

/* ---------- 分类 tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7);
  color: #3d5a4e; font-size: .8rem; font-weight: 600; cursor: pointer; transition: .16s;
}
.tab span { font-size: .68rem; color: var(--muted); font-family: var(--mono); }
.tab:hover { border-color: var(--g600); color: var(--g800); background: #fff; }
.tab.is-active { background: var(--g900); border-color: var(--g900); color: #fff; }
.tab.is-active span { color: rgba(255,255,255,.62); }

/* ---------- 站点矩阵 ---------- */
.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.site-card {
  --tint: #eef4ef; --accent: #0f7059;
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 20px 16px; text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}
.site-card:hover { transform: translateY(-3px); border-color: rgba(15,90,73,.28); box-shadow: 0 28px 48px -38px rgba(11,42,34,.7); }
.site-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); opacity: .75;
}
.site-top { display: flex; align-items: flex-start; gap: 12px; }
.site-ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.site-ico .ic { width: 20px; height: 20px; }
.site-title-wrap { min-width: 0; flex: 1; }
.site-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-name { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.site-flag {
  font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  background: var(--tint); color: var(--accent); letter-spacing: .04em;
}
.site-flag.is-new { background: #fdf1e3; color: var(--gold); }
.site-domain { display: block; margin-top: 3px; font-family: var(--mono); font-size: .67rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-desc {
  margin-top: 12px; color: var(--body); font-size: .8rem; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.64em;
}
.site-state {
  display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 600;
  color: var(--muted); margin-top: 10px;
}
.site-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b9c6bd; }
.site-state.is-live { color: #137a54; }
.site-state.is-live::before { background: #1e9e6f; box-shadow: 0 0 0 3px rgba(30,158,111,.12); }
.site-state.is-warm { color: var(--gold); }
.site-state.is-warm::before { background: #d2a04f; }
.site-state.is-idle::before { background: #c8bda9; }
.site-metrics { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.site-metric-row { display: flex; gap: 18px; }
.site-metric b { display: block; font-size: 1.22rem; line-height: 1; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.site-metric small { display: block; margin-top: 4px; font-size: .64rem; color: var(--muted); }
.site-spark { width: 118px; height: 40px; flex: none; }
.spark { width: 100%; height: 100%; overflow: visible; }
.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.site-open { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--g800); }
.site-open .ic { width: 12px; height: 12px; }
.site-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-detail { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--muted); text-decoration: none; }
.site-detail:hover { color: var(--g800); }
.site-detail .ic { width: 12px; height: 12px; }
.filter-empty { text-align: center; color: var(--muted); font-size: .9rem; padding: 32px 0; }

/* 官方入口卡（略深） */
.site-grid.is-official .site-card { background: linear-gradient(180deg, #fff, #fbfdf9); }

/* ---------- 小程序深色带 ---------- */
.mini-band {
  position: relative; background: var(--g900); color: #eafff4; overflow: hidden;
}
.mini-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(800px 360px at 82% -20%, rgba(64,190,148,.18), transparent 60%),
    linear-gradient(rgba(234,255,246,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,255,246,.045) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}
.mini-band .container { position: relative; z-index: 1; }
.mini-band .eyebrow { color: #7fe0b8; }
.mini-band h2 { color: #f2fff8; }
.mini-band h2 em { color: #8ce8c2; }
.mini-band p { color: rgba(234,255,246,.62); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.mini-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(234,255,246,.14);
  border-radius: 22px; padding: 24px; color: #eafff4; text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s;
}
.mini-card:hover { background: rgba(255,255,255,.085); border-color: rgba(140,232,194,.4); transform: translateY(-2px); }
.mini-head { display: flex; align-items: center; gap: 12px; }
.mini-ico { width: 46px; height: 46px; border-radius: 13px; background: rgba(140,232,194,.12); color: #8ce8c2; display: grid; place-items: center; }
.mini-ico .ic { width: 22px; height: 22px; }
.mini-name { font-size: 1.06rem; font-weight: 800; color: #f2fff8; }
.mini-type { font-size: .66rem; color: rgba(234,255,246,.5); letter-spacing: .08em; margin-top: 3px; }
.mini-big { display: flex; align-items: flex-end; gap: 9px; margin-top: 2px; }
.mini-big b { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: .9; letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; }
.mini-big span { font-size: .72rem; color: rgba(234,255,246,.55); padding-bottom: 5px; }
.mini-stats { display: flex; gap: 26px; margin-top: 4px; }
.mini-stats b { display: block; font-size: 1.02rem; color: #eafff4; font-variant-numeric: tabular-nums; }
.mini-stats small { display: block; font-size: .64rem; color: rgba(234,255,246,.5); margin-top: 3px; }
.mini-spark { margin-top: 6px; height: 52px; color: #8ce8c2; }
.mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(234,255,246,.12); font-size: .68rem; color: rgba(234,255,246,.5); }
.mini-foot a { color: #8ce8c2; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.mini-empty { text-align: center; padding: 26px; border: 1px dashed rgba(234,255,246,.22); border-radius: 18px; color: rgba(234,255,246,.6); font-size: .86rem; }

/* ---------- 趋势 ---------- */
.trend-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 18px; align-items: stretch; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  box-shadow: 0 24px 48px -44px rgba(11,42,34,.55);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-title { font-size: 1rem; font-weight: 800; color: var(--ink); }
.panel-sub { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.range-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #f7f9f5; }
.range-switch button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 999px;
  font-size: .7rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.range-switch button.is-active { background: #fff; color: var(--g800); box-shadow: 0 2px 8px rgba(11,42,34,.08); }
.chart-wrap { position: relative; margin-top: 6px; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; align-items: center; gap: 16px; font-size: .68rem; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5; background: var(--g900); color: #eafff4;
  border-radius: 10px; padding: 8px 10px; font-size: .69rem; line-height: 1.55;
  box-shadow: 0 14px 26px -14px rgba(0,0,0,.55); opacity: 0; transform: translate(-50%, -110%);
  transition: opacity .12s; white-space: nowrap;
}
.chart-tip.show { opacity: 1; }
.chart-tip b { color: #fff; }
.rank-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.rank-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; }
.rank-no { font-family: var(--mono); font-size: .7rem; color: #9aa9a0; }
.rank-name { font-size: .8rem; font-weight: 600; color: #2f4a3f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { grid-column: 2 / 4; height: 4px; border-radius: 4px; background: #edf2ec; overflow: hidden; margin-top: -4px; }
.rank-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2a9277, #9fd8bd); }
.rank-pv { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 页脚 ---------- */
.site-foot-wrap { background: #082d24; color: rgba(234,255,246,.66); padding: 56px 0 28px; }
.foot-main { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 32px; }
.foot-brand b { font-size: 1.1rem; color: #f2fff8; display: block; }
.foot-brand p { margin-top: 10px; font-size: .78rem; line-height: 1.8; max-width: 30em; color: rgba(234,255,246,.52); }
.foot-brand .brand-mark { margin-bottom: 12px; }
.foot-col h3 { font-size: .7rem; letter-spacing: .14em; color: rgba(234,255,246,.42); margin-bottom: 12px; text-transform: uppercase; font-weight: 700; }
.foot-col a { display: block; font-size: .8rem; color: rgba(234,255,246,.7); text-decoration: none; padding: 3px 0; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(234,255,246,.12);
  font-size: .68rem; color: rgba(234,255,246,.42);
}
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* ---------- 详情页 ---------- */
.detail-hero { padding: 34px 0 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--g800); }
.breadcrumb .ic { width: 12px; height: 12px; opacity: .6; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; }
.detail-title { display: flex; align-items: flex-start; gap: 16px; }
.detail-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--tint, var(--mint)); color: var(--accent, var(--g700)); flex: none; }
.detail-ico .ic { width: 27px; height: 27px; }
.detail-title h1 { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.03em; }
.detail-domain { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: 6px; }
.detail-desc { color: var(--body); font-size: .9rem; margin-top: 14px; max-width: 46em; }
.detail-actions { display: flex; gap: 8px; flex: none; padding-top: 6px; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 28px; }
.detail-stats .stat { background: #fff; padding: 16px 20px; }
.detail-stats b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.detail-stats span { display: block; font-size: .68rem; color: var(--muted); margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 18px; }
.detail-grid > *, .trend-grid > * { min-width: 0; }
.panel, .admin-panel { min-width: 0; }
.table-wrap { max-width: 100%; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.mini-chart { height: 220px; }
.bar-list { display: flex; flex-direction: column; gap: 11px; margin-top: 8px; }
.bar-item { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; align-items: center; gap: 10px; font-size: .76rem; }
.bar-item .label { color: #3d5a4e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-item .track { height: 6px; border-radius: 6px; background: #edf2ec; overflow: hidden; }
.bar-item .track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2a9277, #a6dcc4); }
.bar-item .num { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kv { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfdf9; }
.kv b { display: block; font-size: 1.05rem; color: var(--ink); }
.kv span { font-size: .68rem; color: var(--muted); }
.empty-note { color: var(--muted); font-size: .8rem; text-align: center; padding: 22px 0; }

/* ---------- 管理台 ---------- */
.admin-body { background: #f4f6f1; }
.admin-top { background: var(--g900); color: #eafff4; font-size: .72rem; }
.admin-top .container { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-top a { color: rgba(234,255,246,.7); text-decoration: none; }
.admin-top a:hover { color: #fff; }
.admin-main { padding: 34px 0 70px; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-title h1 { font-family: var(--display); font-size: 2.2rem; letter-spacing: -.03em; }
.admin-title p { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.admin-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; color: var(--g700); background: var(--mint); border: 1px solid #cfe9dc; padding: 5px 10px; border-radius: 999px; font-weight: 700; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.admin-tab {
  padding: 11px 14px; border: 0; background: none; font-size: .82rem; font-weight: 600;
  color: var(--muted); cursor: pointer; text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.admin-tab:hover { color: var(--g800); }
.admin-tab.is-active { color: var(--g900); border-bottom-color: var(--g700); }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { font-size: .98rem; font-weight: 800; }
.admin-panel-head p { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.admin-panel-body { padding: 20px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; font-size: .78rem; min-width: 840px; }
.data-table th { text-align: left; font-size: .65rem; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfdf9; white-space: nowrap; text-transform: uppercase; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fcfdfb; }
.cell-site { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.cell-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--mint); color: var(--g700); flex: none; }
.cell-ico .ic { width: 16px; height: 16px; }
.cell-site b { display: block; font-size: .82rem; color: var(--ink); }
.cell-site small { display: block; font-size: .66rem; color: var(--muted); font-family: var(--mono); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .63rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: #eef4ef; color: #3d5a4e; white-space: nowrap; }
.tag.green { background: #e7f6ee; color: #137a54; }
.tag.gold { background: #fdf1e3; color: var(--gold); }
.tag.gray { background: #f1f3ef; color: var(--muted); }
.tag.red { background: #fdeceb; color: var(--red); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #3d5a4e;
  font-size: .68rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.mini-btn:hover { border-color: var(--g600); color: var(--g800); }
.mini-btn.danger { color: var(--red); border-color: #f3d3cc; background: #fff7f5; }
.mini-btn .ic { width: 12px; height: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .7rem; font-weight: 700; color: #375247; letter-spacing: .02em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 9px 11px; background: #fff; color: var(--ink); font-size: .8rem;
}
.form-field textarea { min-height: 84px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--g600); box-shadow: 0 0 0 3px rgba(30,138,112,.1); }
.form-hint { font-size: .66rem; color: var(--muted); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.alert { padding: 11px 14px; border-radius: 10px; font-size: .78rem; margin-bottom: 16px; border: 1px solid; }
.alert.success { background: #edf9f2; border-color: #c8e9d7; color: #137a54; }
.alert.error { background: #fdf0ee; border-color: #f3cec8; color: var(--red); }
.code-box {
  background: #0b2a22; color: #b8f0d6; border-radius: 12px; padding: 14px 16px;
  font-family: var(--mono); font-size: .7rem; line-height: 1.7; white-space: pre-wrap;
  word-break: break-all; overflow: auto; max-height: 220px;
}
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(800px 400px at 80% 0%, #e4f4ec, transparent 65%), var(--paper); }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: 0 40px 80px -60px rgba(11,42,34,.8); }
.login-card h1 { font-family: var(--display); font-size: 2rem; letter-spacing: -.03em; margin: 14px 0 6px; }
.login-card p { font-size: .8rem; color: var(--muted); }
.login-form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.login-note { margin-top: 16px; font-size: .68rem; color: var(--muted); line-height: 1.7; text-align: center; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 0; }
  .head-status { display: none; }
  .site-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trend-grid, .detail-grid { grid-template-columns: 1fr; }
  .foot-main { grid-template-columns: 1.2fr repeat(2, .8fr); }
  .foot-col:last-child { display: none; }
}

@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .hero { padding: 44px 0 26px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(2.7rem, 9vw, 3.8rem); }
  .pulse-card { padding: 22px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat:nth-child(2) { border-right: 0; }
  .stats-strip .stat:nth-child(1), .stats-strip .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .head-inner { height: 66px; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mini-grid { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-head { flex-direction: column; }
  .detail-actions { padding-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-main { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .topbar-links span, .topbar-links a:not(:last-child) { display: none; }
  .site-grid { grid-template-columns: 1fr; }
  .site-spark { width: 96px; }
  .pulse-foot { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .pulse-foot b { font-size: .96rem; }
  .stats-strip .stat { padding: 16px 18px; }
  .stats-strip b { font-size: 1.4rem; }
  .section-head h2 { font-size: 1.8rem; }
  .hero-meta .chip:nth-child(n+4) { display: none; }
  .admin-title { flex-direction: column; align-items: flex-start; }
  .detail-title { gap: 12px; }
  .detail-ico { width: 48px; height: 48px; }
  .detail-ico .ic { width: 22px; height: 22px; }
  .detail-stats b { font-size: 1.25rem; }
  .bar-item { grid-template-columns: 1fr auto; }
  .bar-item .track { grid-column: 1 / -1; grid-row: 2; }
}

/* 移动端抽屉 */
.drawer-veil { position: fixed; inset: 0; background: rgba(7,37,30,.38); z-index: 90; opacity: 0; transition: opacity .2s; }
.drawer-veil.show { opacity: 1; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); z-index: 100;
  background: var(--paper); box-shadow: -30px 0 60px -30px rgba(0,0,0,.4);
  transform: translateX(105%); transition: transform .24s ease; padding: 20px; overflow-y: auto;
}
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 600; color: #2c4a3f; }
.drawer-nav a:hover { background: var(--mint); color: var(--g800); }
.drawer-nav .drawer-sub { font-size: .74rem; color: var(--muted); padding: 4px 10px 2px; letter-spacing: .1em; }

/* ---------- 矩阵工具条 / 搜索 / 排序 ---------- */
.matrix-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.search-box {
  display: inline-flex; align-items: center; gap: 8px; width: 230px;
  border: 1px solid var(--line-strong); background: #fff; border-radius: 10px;
  padding: 9px 12px; color: var(--muted);
}
.search-box .ic { width: 15px; height: 15px; color: var(--g700); }
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; font-size: .78rem; color: var(--ink); }
.search-box input::placeholder { color: #9aa9a0; }
.search-box:focus-within { border-color: var(--g600); box-shadow: 0 0 0 3px rgba(30,138,112,.1); }
.sort-select {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 10px;
  padding: 9px 30px 9px 11px; font-size: .76rem; color: #3d5a4e; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7f73' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.chip-dark { border-color: rgba(234,255,246,.22); background: rgba(255,255,255,.06); color: rgba(234,255,246,.78); }
.chip-dark .ic { color: #8ce8c2; }

/* ---------- 数据说明 ---------- */
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.note-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--mint); color: var(--g700); display: grid; place-items: center; margin-bottom: 14px; }
.note-ico .ic { width: 18px; height: 18px; }
.note-card h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -.01em; }
.note-card p { font-size: .8rem; line-height: 1.8; color: var(--body); }
.pc-only { display: inline; }

@media (max-width: 1080px) {
  .matrix-tools { width: 100%; }
  .search-box { flex: 1; width: auto; }
}
@media (max-width: 860px) {
  .note-grid { grid-template-columns: 1fr; }
  .matrix-tools { flex-wrap: wrap; }
  .pc-only { display: none; }
}
@media (max-width: 560px) {
  .search-box { width: 100%; }
  .sort-select { width: 100%; }
}

@media (max-width: 640px) {
  .admin-top .container { min-height: 0; padding: 7px 16px; display: block; font-size: .62rem; line-height: 1.6; }
  .admin-top .container > span { display: block; }
  .admin-top .container > span:last-child { margin-top: 2px; }
}