/* ============================================================================
   NovaAero GEO — ATC Console / 低空监视终端 视觉系统 v5.0
   ----------------------------------------------------------------------------
   - 纯前端样式：所有 PHP 模板、functions.php、JS 均保持原样
   - 全部 class 钩子与 CSS 变量名沿用原版，仅重定义取值与质感
   - 亮色 = 航空 sectional 航图（羊皮纸 × 藏青 × 信号红）
   - 暗色 = 夜间雷达终端（近黑绿 × 磷光绿 × 琥珀告警）
   - 动效：雷达波束 / 扫描线 / 流动航线 / 呼吸状态灯，均支持降级
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. 设计令牌 —— 航图模式（默认浅色）
   ---------------------------------------------------------------------------- */
:root {
  /* 表面：航图纸 */
  --nv-bg: #f0ebdc;
  --nv-bg-alt: #e7e1cd;
  --bg-card: #faf7ec;
  --bg-card-hover: #fffdf4;
  --bg-elevated: #fffdf6;

  /* 文本：藏青墨 */
  --fg: #1c2b4d;
  --fg-dim: #45548a;
  --muted: #8b8fa3;

  /* 品牌：信号红 + 藏青 + 航图青 */
  --nv-accent: #d8402a;
  --nv-accent2: #1c2b4d;
  --nv-accent3: #0e7f76;
  --gold: #b8860b;
  --glow: rgba(216, 64, 42, 0.16);

  /* 描边 */
  --border: #cfc8ad;
  --border-hover: #d8402a;
  --hairline: #ddd6bd;

  /* 语义色 */
  --success: #1e7a4f;
  --warning: #a86a08;
  --danger: #c22f1c;

  /* 几何 */
  --nv-radius: 4px;
  --nv-radius-sm: 2px;
  --max-width: 1200px;
  --nav-height: 70px;

  /* 字体 */
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  /* 阴影：硬投影，图纸钉感 */
  --shadow-sm: 2px 2px 0 rgba(28, 43, 77, 0.10);
  --shadow-md: 5px 5px 0 rgba(28, 43, 77, 0.12);
  --shadow-lg: 10px 10px 0 rgba(28, 43, 77, 0.14);
  --card-hover-shadow: 7px 7px 0 rgba(216, 64, 42, 0.20);

  /* 链接与焦点 */
  --nv-link-color: #b52f1b;
  --nav-active-color: #d8402a;
  --focus-border: #d8402a;
  --focus-ring: 0 0 0 3px rgba(216, 64, 42, 0.22);

  /* 表面细节 */
  --nav-bg: rgba(240, 235, 220, 0.90);
  --nav-mobile-bg: rgba(240, 235, 220, 0.98);
  --nav-hover-bg: rgba(28, 43, 77, 0.07);
  --nav-bg-solid: #e7e1cd;
  --input-bg: #fffdf6;
  --scrollbar-track: #e7e1cd;
  --table-head-bg: #e7e1cd;
  --footer-shadow: none;
  --breadcrumb-sep: #9aa49b;

  /* 装饰层 */
  --grid-line: rgba(28, 43, 77, 0.070);
  --blob-1: rgba(216, 64, 42, 0.06);
  --blob-2: rgba(14, 127, 118, 0.07);
  --hero-glow: rgba(216, 64, 42, 0.10);
  --logo-icon-shadow: 2px 2px 0 rgba(28, 43, 77, 0.25);
  --nv-logo-gradient: linear-gradient(135deg, #d8402a, #d8402a);
  --nv-stat-gradient: linear-gradient(180deg, #1c2b4d, #1c2b4d);
  --gradient: linear-gradient(120deg, #d8402a 20%, #f07a2e);
  --gradient-2: linear-gradient(135deg, #1c2b4d, #3a4f8f);
  --gradient-3: linear-gradient(135deg, #0e7f76, #35b3a8);
  --gradient-hover: linear-gradient(120deg, #b52f1b, #d8402a);

  /* 徽章：航图图章 */
  --badge-bg: #ece5cd;
  --badge-color: #3c4b80;
  --badge-border: #c9c1a2;
  --badge-success-bg: #ddefe0;
  --badge-success-border: #93c7a2;
  --badge-warning-bg: #f6ead0;
  --badge-warning-border: #dfc084;
  --badge-danger-bg: #f8e0d8;
  --badge-danger-border: #e3a695;
  --badge-neutral-bg: #ece5cd;
  --badge-neutral-border: #c9c1a2;

  /* 取证进度 */
  --progress-done-bg: #ddefe0;
  --progress-done-border: #93c7a2;
  --progress-current-bg: #f8ddd4;
  --progress-current-color: #b52f1b;
  --progress-current-shadow: none;

  /* 清除筛选 */
  --filter-clear-bg: #f8e0d8;
  --filter-clear-hover-bg: #efc4b7;
  --filter-clear-border: #e3a695;

  /* 主题切换按钮 */
  --toggle-bg: #fffdf6;
  --toggle-border: #cfc8ad;
  --toggle-hover-bg: #ece5cd;
  --toggle-icon-color: #45548a;

  /* 其他 */
  --code-bg: #e7e1cd;
}

[data-theme="light"] { color-scheme: light; }

/* ----------------------------------------------------------------------------
   2. 设计令牌 —— 雷达模式（暗色，夜间终端）
   ---------------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;

  --nv-bg: #060f0a;
  --nv-bg-alt: #08130d;
  --bg-card: #0b1a12;
  --bg-card-hover: #0f2218;
  --bg-elevated: #10241a;

  /* 磷光绿荧光 */
  --fg: #b8f5cf;
  --fg-dim: #6fbf8f;
  --muted: #48765c;

  --nv-accent: #46f08b;
  --nv-accent2: #0a1a11;
  --nv-accent3: #2bd9c0;
  --gold: #ffb224;
  --glow: rgba(70, 240, 139, 0.22);

  --border: #1d3d2a;
  --border-hover: #46f08b;
  --hairline: #12301e;

  --success: #46f08b;
  --warning: #ffb224;
  --danger: #ff5d47;

  --shadow-sm: 0 0 12px rgba(70, 240, 139, 0.10);
  --shadow-md: 0 0 24px rgba(70, 240, 139, 0.14);
  --shadow-lg: 0 0 48px rgba(70, 240, 139, 0.18);
  --card-hover-shadow: 0 0 32px rgba(70, 240, 139, 0.22);

  --nv-link-color: #7df7ae;
  --nav-active-color: #46f08b;
  --focus-border: #46f08b;
  --focus-ring: 0 0 0 3px rgba(70, 240, 139, 0.28);

  --nav-bg: rgba(6, 15, 10, 0.88);
  --nav-bg-solid: #08130d;
  --nav-mobile-bg: rgba(6, 15, 10, 0.98);
  --nav-hover-bg: rgba(70, 240, 139, 0.08);
  --input-bg: #08130d;
  --scrollbar-track: #060f0a;
  --table-head-bg: #0c1d13;
  --footer-shadow: none;
  --breadcrumb-sep: #3d6a4e;

  --grid-line: rgba(70, 240, 139, 0.055);
  --blob-1: rgba(70, 240, 139, 0.07);
  --blob-2: rgba(43, 217, 192, 0.06);
  --hero-glow: rgba(70, 240, 139, 0.14);
  --logo-icon-shadow: 0 0 14px rgba(70, 240, 139, 0.55);
  --nv-logo-gradient: linear-gradient(135deg, #46f08b, #2bd9c0);
  --nv-stat-gradient: linear-gradient(180deg, #b8f5cf, #b8f5cf);
  --gradient: linear-gradient(120deg, #46f08b, #2bd9c0);
  --gradient-2: linear-gradient(135deg, #b8f5cf, #46f08b);
  --gradient-3: linear-gradient(135deg, #2bd9c0, #7df7dd);
  --gradient-hover: linear-gradient(120deg, #2bd976, #46f08b);

  --badge-bg: #0d2116;
  --badge-color: #8fe7b2;
  --badge-border: #245138;
  --badge-success-bg: #0a2416;
  --badge-success-border: #2a7a4d;
  --badge-warning-bg: #241a06;
  --badge-warning-border: #8a6414;
  --badge-danger-bg: #260d08;
  --badge-danger-border: #8a3222;
  --badge-neutral-bg: #0d2116;
  --badge-neutral-border: #245138;

  --progress-done-bg: #0a2416;
  --progress-done-border: #2a7a4d;
  --progress-current-bg: #2a1a06;
  --progress-current-color: #ffb224;
  --progress-current-shadow: 0 0 10px rgba(255, 178, 36, 0.35);

  --filter-clear-bg: #260d08;
  --filter-clear-hover-bg: #3d1710;
  --filter-clear-border: #8a3222;

  --toggle-bg: #0b1a12;
  --toggle-border: #1d3d2a;
  --toggle-hover-bg: #12301e;
  --toggle-icon-color: #6fbf8f;

  --code-bg: #0c1d13;
}

/* ----------------------------------------------------------------------------
   3. 基础重置与排版
   ---------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--nv-bg);
  color: var(--fg);
  font-family: var(--font-family, "Inter", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* 雷达扫描线（暗色） */
[data-theme="dark"] body {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(70, 240, 139, 0.022) 0 1px,
    transparent 1px 3px
  );
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fg);
  line-height: 1.3;
  margin: 0 0 0.7em;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }

a {
  color: var(--nv-link-color);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
a:hover { color: var(--nv-accent); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.3em; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 2em 0; }

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

code { background: var(--code-bg); padding: 0.15em 0.4em; border-radius: var(--nv-radius-sm); }

pre {
  background: var(--code-bg);
  padding: 1em 1.2em;
  border: 1px solid var(--border);
  border-radius: var(--nv-radius);
  overflow-x: auto;
  line-height: 1.6;
}

blockquote {
  margin: 1.6em 0;
  padding: 0.6em 1.2em;
  border-left: 3px solid var(--nv-accent);
  background: var(--bg-card);
  color: var(--fg-dim);
  font-size: 1.02em;
  border-radius: 0 var(--nv-radius) var(--nv-radius) 0;
}

table { border-collapse: collapse; width: 100%; }

::selection { background: var(--nv-accent); color: var(--nv-accent2); }

:focus-visible {
  outline: 2px solid var(--focus-border);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
  border: 2px solid var(--scrollbar-track);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

body.admin-bar .navbar.sticky-nav { top: 32px; }

/* ----------------------------------------------------------------------------
   4. 工具类
   ---------------------------------------------------------------------------- */
.text-muted { color: var(--muted) !important; }
.text-center { text-align: center !important; }
.small-text { font-size: 0.82rem; }
.mb-2 { margin-bottom: 0.6rem !important; }
.mb-3 { margin-bottom: 1.2rem !important; }
.description { color: var(--fg-dim); }

.screen-reader-text {
  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.screen-reader-text:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  z-index: 9999;
  background: var(--fg);
  color: var(--nv-bg);
  padding: 10px 18px;
  border-radius: var(--nv-radius);
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ----------------------------------------------------------------------------
   5. 全局氛围层：坐标网格 + 流动航线（header.php .bg-decoration）
   ---------------------------------------------------------------------------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 90% -8%, var(--blob-1), transparent 62%),
    radial-gradient(34rem 28rem at -10% 38%, var(--blob-2), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
}

.bg-decoration::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.04'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 流动航线：横穿全站的虚线航路 */
.bg-decoration::before {
  content: "";
  position: absolute;
  top: 22%;
  left: -10%;
  width: 120%;
  height: 220px;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    90deg,
    var(--nv-accent) 0 10px,
    transparent 10px 22px
  );
  background-size: 44px 1px;
  background-repeat: repeat-x;
  background-position: 0 60px;
  transform: rotate(-4deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  animation: nova-route 30s linear infinite;
}

[data-theme="dark"] .bg-decoration::before {
  opacity: 0.65;
  filter: drop-shadow(0 0 5px var(--glow));
}

@keyframes nova-route {
  from { background-position-x: 0; }
  to   { background-position-x: 880px; }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

.glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 24px var(--hero-glow), 0 0 60px var(--glow);
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   6. 导航栏 —— 塔台频率条
   ---------------------------------------------------------------------------- */
.navbar {
  position: relative;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.navbar.sticky-nav { position: sticky; top: 0; }
.navbar.solid-nav { background: var(--nv-bg); }

/* 塔台刻度条 */
.navbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--fg) 0 1px,
    transparent 1px 14px
  );
  opacity: 0.35;
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 96px;
  height: 3px;
  background: var(--nv-accent);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-right: auto;
}

.nav-logo:hover { color: var(--fg); }

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--nv-logo-gradient);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: var(--logo-icon-shadow);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

[data-theme="dark"] .logo-icon { color: #04140b; }

.logo-image { border-radius: var(--nv-radius-sm); }

/* 主导航 */
.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li { margin: 0; }

.navbar .nav-links a {
  position: relative;
  display: block;
  padding: 8px 13px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-dim);
  border-radius: var(--nv-radius-sm);
}

.navbar .nav-links a:hover {
  color: var(--fg);
  background: var(--nav-hover-bg);
}

.navbar .nav-links li.current-menu-item > a,
.navbar .nav-links li.active > a,
.navbar .nav-links a.active {
  color: var(--nav-active-color);
  font-weight: 800;
}

.navbar .nav-links li.current-menu-item > a::after,
.navbar .nav-links li.active > a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  background: var(--nv-accent);
}

/* 主题切换 */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--toggle-border);
  border-radius: 50%;
  background: var(--toggle-bg);
  color: var(--toggle-icon-color);
  cursor: pointer;
  transition: all 0.18s ease;
}

.theme-toggle:hover {
  background: var(--toggle-hover-bg);
  color: var(--fg);
  transform: rotate(18deg);
}

.theme-toggle svg { width: 17px; height: 17px; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
html:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  background: transparent;
  border: 1px solid var(--toggle-border);
  border-radius: var(--nv-radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------------------
   7. 按钮 —— 终端按键
   ---------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1.5px solid transparent;
  border-radius: var(--nv-radius-sm);
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease,
    color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--nv-bg);
  box-shadow: 4px 4px 0 var(--glow);
}

.btn-primary:hover {
  background: var(--nv-accent);
  border-color: var(--nv-accent);
  color: #fff;
  box-shadow: 2px 2px 0 var(--glow);
  transform: translate(2px, 2px);
}

[data-theme="dark"] .btn-primary { color: #04140b; }
[data-theme="dark"] .btn-primary:hover { color: #04140b; }

.btn-secondary {
  background: transparent;
  border-color: var(--fg);
  color: var(--fg);
}

.btn-secondary:hover {
  background: var(--fg);
  color: var(--nv-bg);
}

.btn-outline {
  background: transparent;
  border-color: var(--fg);
  color: var(--fg);
}

.btn-outline:hover { background: var(--fg); color: var(--nv-bg); }

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.82rem;
}

/* ----------------------------------------------------------------------------
   8. Hero —— 罗盘玫瑰 + 雷达波束
   ---------------------------------------------------------------------------- */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.main { min-height: 60vh; }

.hero {
  position: relative;
  padding: 5rem 0 3.4rem;
  text-align: left;
  overflow: hidden;
}

/* 右侧罗盘玫瑰 */
.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: 520px;
  height: 520px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%231c2b4d' stroke-width='1'%3E%3Ccircle cx='200' cy='200' r='190' opacity='.35'/%3E%3Ccircle cx='200' cy='200' r='150' opacity='.25'/%3E%3Ccircle cx='200' cy='200' r='110' opacity='.2'/%3E%3Cpath d='M200 10v40M200 350v40M10 200h40M350 200h40' opacity='.4'/%3E%3Cpath d='M200 90l24 110-24 110-24-110z' fill='%231c2b4d' opacity='.12'/%3E%3Cpath d='M90 200l110-24 110 24-110 24z' opacity='.25'/%3E%3Ccircle cx='200' cy='200' r='4' fill='%23d8402a' stroke='none'/%3E%3Ccircle cx='305' cy='130' r='5' fill='%23d8402a' stroke='none' opacity='.8'/%3E%3Ccircle cx='120' cy='270' r='5' fill='%230e7f76' stroke='none' opacity='.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.8;
}

[data-theme="dark"] .hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%2346f08b' stroke-width='1'%3E%3Ccircle cx='200' cy='200' r='190' opacity='.3'/%3E%3Ccircle cx='200' cy='200' r='150' opacity='.22'/%3E%3Ccircle cx='200' cy='200' r='110' opacity='.18'/%3E%3Cpath d='M200 10v40M200 350v40M10 200h40M350 200h40' opacity='.35'/%3E%3Cpath d='M200 90l24 110-24 110-24-110z' fill='%2346f08b' opacity='.12'/%3E%3Cpath d='M90 200l110-24 110 24-110 24z' opacity='.22'/%3E%3Ccircle cx='200' cy='200' r='4' fill='%2346f08b' stroke='none'/%3E%3Ccircle cx='305' cy='130' r='5' fill='%23ffb224' stroke='none'/%3E%3Ccircle cx='120' cy='270' r='5' fill='%232bd9c0' stroke='none'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 10px rgba(70, 240, 139, 0.25));
}

/* 雷达波束（暗色专属，旋转扫掠） */
[data-theme="dark"] .hero::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(70, 240, 139, 0.20) 0deg 34deg,
    transparent 34deg 360deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0 62%, transparent 72%);
  mask-image: radial-gradient(circle, #000 0 62%, transparent 72%);
  animation: nova-sweep 5.5s linear infinite;
}

@keyframes nova-sweep {
  to { transform: rotate(360deg); }
}

.hero-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--nv-accent);
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--nv-radius-sm);
  background: var(--bg-card);
  z-index: 1;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--nv-accent);
  border-radius: 50%;
  animation: nova-blink 1.6s ease-in-out infinite;
}

@keyframes nova-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero h1 {
  position: relative;
  max-width: 700px;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  z-index: 1;
}

.hero p {
  position: relative;
  max-width: 600px;
  font-size: 1.02rem;
  color: var(--fg-dim);
  z-index: 1;
}

.gradient-text,
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .gradient-text,
[data-theme="dark"] .text-gradient {
  filter: drop-shadow(0 0 14px rgba(70, 240, 139, 0.35));
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  z-index: 1;
}

/* 栏目页 mini hero（archive 模板内联样式覆盖） */
.hero[style*="text-align:left"] { padding: 1.6rem 0 1.8rem; }
.hero h1[style*="2.2rem"] { font-size: 2.1rem !important; letter-spacing: -0.03em !important; }

/* ----------------------------------------------------------------------------
   9. 数据统计条 —— 雷达读数面板
   ---------------------------------------------------------------------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2.4rem;
  background: var(--bg-card);
  border: 1.5px solid var(--fg);
  border-radius: var(--nv-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.stat-item {
  position: relative;
  padding: 22px 18px;
  border-right: 1px dashed var(--border);
}

.stat-item:last-child { border-right: 0; }

.stat-item::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: nova-blink 2.2s ease-in-out infinite;
}

.stat-item:nth-child(2)::after { animation-delay: 0.4s; }
.stat-item:nth-child(3)::after { animation-delay: 0.8s; }
.stat-item:nth-child(4)::after { animation-delay: 1.2s; }
.stat-item:nth-child(5)::after { animation-delay: 1.6s; }

.stat-num {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--nv-stat-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .stat-num {
  filter: drop-shadow(0 0 8px rgba(70, 240, 139, 0.4));
}

.stat-label {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 侧栏统计变体 */
.stats-highlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stats-highlight .stats-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stats-highlight .stats-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.stats-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--nv-link-color);
}

/* ----------------------------------------------------------------------------
   10. 区块与标题 —— 坐标线
   ---------------------------------------------------------------------------- */
.section { padding: 3.4rem 0 0.6rem; }

.section-header {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0 8px,
    transparent 8px 14px
  );
}

.section-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: -11px;
  width: 64px;
  height: 3px;
  background: var(--nv-accent);
}

.section-title {
  position: relative;
  font-size: 1.44rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  padding-left: 16px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 4px;
  background: var(--nv-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 50% 50%);
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  white-space: nowrap;
}

.section-link:hover { color: var(--nv-accent); }

/* ----------------------------------------------------------------------------
   11. 卡片系统 —— 终端面板
   ---------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 16px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--nv-radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, background-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 18px;
  width: 34px;
  height: 5px;
  background: var(--fg);
  transition: background-color 0.2s ease, width 0.25s ease;
}

.card:hover {
  transform: translate(-2px, -3px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--card-hover-shadow);
}

.card:hover::before {
  background: var(--nv-accent);
  width: 56px;
}

@media (hover: none), (pointer: coarse) {
  .card:hover { transform: none; }
}

.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }

.card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--nv-radius-sm);
  border: 1px solid var(--hairline);
  margin-bottom: 14px;
  background: var(--nv-bg-alt);
  filter: saturate(0.95) contrast(1.03);
}

[data-theme="dark"] .card-cover { filter: saturate(0.85) contrast(1.05) brightness(0.92); }

.card-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.card-title a { color: inherit; }
.card:hover .card-title { color: var(--nv-accent); }

.card-subtitle {
  font-size: 0.84rem;
  color: var(--fg-dim);
  line-height: 1.65;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.card.text-center { text-align: center; padding: 26px 16px; }
.card.text-center .stat-num { font-size: 2rem; }

/* ----------------------------------------------------------------------------
   12. 徽章 —— 终端图章
   ---------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--badge-color);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--nv-radius-sm);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.badge-lg {
  min-height: 28px;
  padding: 3px 12px;
  font-size: 0.74rem;
}

.badge-success {
  color: var(--success);
  background: var(--badge-success-bg);
  border-color: var(--badge-success-border);
}

.badge-warning {
  color: var(--warning);
  background: var(--badge-warning-bg);
  border-color: var(--badge-warning-border);
}

.badge-neutral {
  color: var(--muted);
  background: var(--badge-neutral-bg);
  border-color: var(--badge-neutral-border);
}

.badge-stock { color: var(--fg-dim); }
.badge-tag { cursor: default; }

/* ----------------------------------------------------------------------------
   13. 时间线 —— 航迹回放
   ---------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 0 18px 26px;
  border-bottom: 1px dashed var(--border);
  transition: background-color 0.18s ease;
}

.timeline-item:hover { background: var(--nav-hover-bg); }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 26px;
  width: 10px;
  height: 10px;
  background: var(--nv-bg);
  border: 2px solid var(--nv-accent);
  transform: rotate(45deg);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 42px;
  bottom: -4px;
  width: 1px;
  background: repeating-linear-gradient(
    180deg,
    var(--border) 0 4px,
    transparent 4px 8px
  );
}

.timeline-item:last-child::after { display: none; }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--nv-accent);
  padding-top: 4px;
}

.timeline-body { min-width: 0; }

.timeline-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
  margin: 0 0 6px;
}

.timeline-title a { color: var(--fg); }
.timeline-title a:hover { color: var(--nv-accent); }

.timeline-cover {
  float: right;
  width: 120px;
  height: 80px;
  object-fit: cover;
  margin: 0 0 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--nv-radius-sm);
}

.timeline-body > p,
.timeline-body > *:not(h3):not(.card-meta):not(.timeline-cover) {
  font-size: 0.86rem;
  color: var(--fg-dim);
}

/* ----------------------------------------------------------------------------
   14. 筛选控制台 —— 雷达查询终端
   ---------------------------------------------------------------------------- */
.filter-bar {
  position: relative;
  margin: 1.8rem 0 1rem;
  padding: 20px 18px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--fg);
  border-radius: var(--nv-radius);
  box-shadow: var(--shadow-md);
}

.filter-bar::before {
  content: "QUERY / 检索终端";
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 1px 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--nv-bg);
  background: var(--fg);
  border-radius: var(--nv-radius-sm);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nv-accent);
  min-width: 52px;
}

.filter-input,
.filter-select {
  flex: 1;
  min-width: 180px;
  height: 42px;
  padding: 0 13px;
  font-size: 0.88rem;
  color: var(--fg);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--nv-radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}

.filter-clear {
  margin-left: auto;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--danger);
  background: var(--filter-clear-bg);
  border: 1px solid var(--filter-clear-border);
  border-radius: var(--nv-radius-sm);
  cursor: pointer;
}

.filter-clear:hover { background: var(--filter-clear-hover-bg); }

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed var(--border);
  border-radius: var(--nv-radius);
  margin: 1rem 0;
}

/* ----------------------------------------------------------------------------
   15. 面包屑 —— 航线回溯
   ---------------------------------------------------------------------------- */
.breadcrumb {
  padding: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.breadcrumb a { color: var(--fg-dim); }
.breadcrumb a:hover { color: var(--nv-accent); }
.breadcrumb-sep { margin: 0 8px; color: var(--breadcrumb-sep); }

/* ----------------------------------------------------------------------------
   16. 数据表 —— 监视清单
   ---------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  font-size: 0.88rem;
  background: var(--bg-card);
  border: 1.5px solid var(--fg);
  border-radius: var(--nv-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table th {
  text-align: left;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nv-bg);
  background: var(--fg);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px dashed var(--hairline);
  vertical-align: middle;
}

.data-table tbody tr { transition: background-color 0.15s ease; }
.data-table tbody tr:hover { background: var(--nav-hover-bg); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table a { color: var(--fg); font-weight: 700; }
.data-table a:hover { color: var(--nv-accent); }

.cert-row td:first-child a::before {
  content: "▸ ";
  color: var(--nv-accent);
}

/* ----------------------------------------------------------------------------
   17. 详情页 —— 目标档案
   ---------------------------------------------------------------------------- */
.detail-header {
  position: relative;
  padding: 2.4rem 0 1.8rem;
  border-bottom: 2px solid var(--fg);
  margin-bottom: 2.2rem;
}

.detail-header::before {
  content: "TARGET FILE / 目标档案";
  position: absolute;
  top: 16px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--nv-bg);
  background: var(--nv-accent);
  padding: 4px 10px 4px 13px;
  border-radius: var(--nv-radius-sm);
}

.detail-header .card-cover {
  max-width: 420px;
  margin-bottom: 18px;
}

.detail-header h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.3;
  max-width: 840px;
}

.detail-sub {
  font-size: 0.98rem;
  color: var(--fg-dim);
  max-width: 720px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.detail-grid.sidebar-left { grid-template-columns: 300px minmax(0, 1fr); }
.detail-grid.sidebar-left .detail-sidebar { order: -1; }
.detail-grid.sidebar-none { grid-template-columns: 1fr; }

.detail-main { min-width: 0; }

.detail-section {
  margin-bottom: 2.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--border);
}

.detail-section > h2 {
  position: relative;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 900;
  padding: 4px 26px 4px 12px;
  margin-bottom: 18px;
  color: var(--nv-bg);
  background: var(--fg);
  border-radius: var(--nv-radius-sm);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* 规格参数表 */
.detail-info-table {
  border: 1.5px solid var(--border);
  border-radius: var(--nv-radius);
  overflow: hidden;
  font-size: 0.88rem;
  background: var(--bg-card);
}

.detail-info-table th,
.detail-info-table td {
  padding: 12px 16px;
  border-bottom: 1px dashed var(--hairline);
  text-align: left;
  vertical-align: top;
}

.detail-info-table tr:last-child th,
.detail-info-table tr:last-child td { border-bottom: 0; }

.detail-info-table th {
  width: 34%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nv-accent);
  background: var(--nv-bg-alt);
}

.detail-info-table td { color: var(--fg); font-weight: 600; }
.detail-info-table.compact { margin-top: 12px; }
.detail-info-table.compact th { width: 42%; }

/* 正文 */
.entry-content { font-size: 0.95rem; line-height: 1.9; color: var(--fg); }
.entry-content p { margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dashed;
  text-decoration-color: var(--nv-accent);
}
.entry-content a:hover { text-decoration-style: solid; }
.entry-content img { border-radius: var(--nv-radius); border: 1px solid var(--border); }

/* 来源列表 */
.source-list { list-style: none; margin: 0; padding: 0; }

.source-list li {
  padding: 11px 0 11px 24px;
  border-bottom: 1px dashed var(--hairline);
  position: relative;
}

.source-list li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--nv-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.source-list a { color: var(--fg); font-size: 0.9rem; }
.source-list a:hover { color: var(--nv-accent); }

/* ----------------------------------------------------------------------------
   18. 详情侧栏 —— 仪表面板
   ---------------------------------------------------------------------------- */
.detail-sidebar { min-width: 0; }

.sidebar-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--nv-radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nv-accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.sidebar-card p { font-size: 0.86rem; margin: 0 0 8px; }

.sidebar-highlight {
  border-color: var(--nv-accent);
  box-shadow: var(--shadow-md);
}

.highlight-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}

.highlight-stat {
  position: relative;
  padding: 14px 10px;
  background: var(--nv-bg-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--nv-radius-sm);
  text-align: center;
  overflow: hidden;
}

.highlight-stat::before,
.highlight-stat::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--nv-accent);
  border-style: solid;
}

.highlight-stat::before {
  top: 3px; left: 3px;
  border-width: 2px 0 0 2px;
}

.highlight-stat::after {
  bottom: 3px; right: 3px;
  border-width: 0 2px 2px 0;
}

.highlight-num {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--nv-accent);
}

[data-theme="dark"] .highlight-num {
  text-shadow: 0 0 12px var(--glow);
}

.highlight-label {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.tag-cloud,
.sidebar-tags .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a,
.sidebar-tags a {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--fg-dim);
  background: var(--nv-bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--nv-radius-sm);
}

.tag-cloud a:hover,
.sidebar-tags a:hover {
  color: var(--nv-accent);
  border-color: var(--nv-accent);
  background: transparent;
}

.sidebar-related .related-list,
.related-list { list-style: none; margin: 0; padding: 0; }

.sidebar-related .related-item,
.related-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 0.86rem;
  line-height: 1.5;
}

.sidebar-related .related-item:last-child,
.related-item:last-child { border-bottom: 0; }

.sidebar-related .related-item a,
.related-item a { color: var(--fg); }
.sidebar-related .related-item a:hover,
.related-item a:hover { color: var(--nv-accent); }

.sidebar-related .related-index {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--nv-accent);
  margin-right: 6px;
}

.sidebar-related .related-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  margin-top: 2px;
}

.sidebar-meta .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 0.78rem;
}

.sidebar-meta .meta-row:last-child { border-bottom: 0; }
.sidebar-meta .meta-row span:first-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.share-buttons { display: flex; gap: 8px; }

.share-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--fg-dim);
  background: var(--nv-bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--nv-radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
}

.share-btn:hover {
  color: var(--nv-bg);
  background: var(--nv-accent);
  border-color: var(--nv-accent);
  transform: translateY(-2px);
}

.share-feedback {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.share-feedback.copied { color: var(--success); }
.sidebar-actions .action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* ----------------------------------------------------------------------------
   19. 事件详情 / 相关内容
   ---------------------------------------------------------------------------- */
.event-date-block {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg);
  padding: 9px 15px;
  background: var(--bg-card);
  border: 1.5px solid var(--fg);
  border-left: 4px solid var(--nv-accent);
  border-radius: var(--nv-radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}

.content-related {
  margin: 2.4rem 0;
  padding: 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--nv-accent);
  border-radius: var(--nv-radius);
  box-shadow: var(--shadow-sm);
}

.content-related-title { font-size: 1.05rem; font-weight: 900; margin: 0 0 12px; }
.content-related-list { margin: 0; padding-left: 1.1em; }
.content-related-list li { margin: 6px 0; font-size: 0.9rem; }
.related-content-wrap { margin: 2rem 0; }

/* ----------------------------------------------------------------------------
   20. 术语表
   ---------------------------------------------------------------------------- */
.glossary-item {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--nv-radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.glossary-item:hover {
  border-color: var(--nv-accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.glossary-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.glossary-item h3 a { color: var(--fg); }
.glossary-item h3 a:hover { color: var(--nv-accent); }

.glossary-abbr-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.glossary-abbr-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.glossary-abbr {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--nv-bg);
  background: var(--nv-accent);
  padding: 2px 10px;
  border-radius: var(--nv-radius-sm);
}

.glossary-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--fg-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------------------------
   21. 关于页 / 要点速览
   ---------------------------------------------------------------------------- */
.key-points {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--fg);
  border-radius: var(--nv-radius);
  padding: 26px;
  margin: 1.6rem 0;
  box-shadow: var(--shadow-md);
}

.key-points::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 22px;
  width: 40px;
  height: 6px;
  background: var(--nv-accent);
}

.key-points-title { font-size: 1.12rem; font-weight: 900; margin: 0 0 14px; }

.key-points-list { list-style: none; margin: 0; padding: 0; }

.key-points-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px dashed var(--hairline);
  font-size: 0.92rem;
}

.key-points-list li:last-child { border-bottom: 0; }

.key-points-list li::before {
  content: "▣";
  position: absolute;
  left: 0;
  color: var(--nv-accent);
  font-size: 0.8rem;
}

.method-list { padding-left: 1.2em; }
.method-list li { margin: 8px 0; }

/* ----------------------------------------------------------------------------
   22. 联系表单 —— 通讯面板
   ---------------------------------------------------------------------------- */
.contact-form {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--fg);
  border-radius: var(--nv-radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.contact-form::before {
  content: "COMMS / 通讯频道";
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 1px 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--nv-bg);
  background: var(--fg);
  border-radius: var(--nv-radius-sm);
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nv-accent);
  margin-bottom: 7px;
}

.form-label .required { color: var(--danger); }

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--fg);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--nv-radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-textarea { resize: vertical; min-height: 130px; }

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}

.contact-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--nv-radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
}

.contact-feedback.success {
  color: var(--success);
  background: var(--badge-success-bg);
  border-color: var(--badge-success-border);
}

.contact-feedback.error {
  color: var(--danger);
  background: var(--badge-danger-bg);
  border-color: var(--badge-danger-border);
}

/* ----------------------------------------------------------------------------
   23. 404 —— 信号丢失
   ---------------------------------------------------------------------------- */
.error-page {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 24px;
  position: relative;
  overflow: hidden;
}

.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nova-glitch 3.2s ease-in-out infinite;
}

@keyframes nova-glitch {
  0%, 91%, 100% { transform: none; opacity: 1; }
  92% { transform: translateX(3px); opacity: 0.8; }
  94% { transform: translateX(-3px); opacity: 0.9; }
  96% { transform: none; opacity: 1; }
}

.lost-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23d8402a' stroke-width='2.5'%3E%3Ccircle cx='60' cy='60' r='52' stroke-dasharray='6 8'/%3E%3Ccircle cx='60' cy='60' r='34' opacity='.5'/%3E%3Cpath d='M60 14v12M60 94v12M14 60h12M94 60h12'/%3E%3Cpath d='M52 70 44 46l9 5 7-13 7 13 9-5-8 24z' fill='%23d8402a' stroke='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: nova-blink 2s ease-in-out infinite;
}

[data-theme="dark"] .lost-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%2346f08b' stroke-width='2.5'%3E%3Ccircle cx='60' cy='60' r='52' stroke-dasharray='6 8'/%3E%3Ccircle cx='60' cy='60' r='34' opacity='.5'/%3E%3Cpath d='M60 14v12M60 94v12M14 60h12M94 60h12'/%3E%3Cpath d='M52 70 44 46l9 5 7-13 7 13 9-5-8 24z' fill='%2346f08b' stroke='none'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 12px rgba(70, 240, 139, 0.5));
}

.error-content h1 { font-size: 1.5rem; }
.error-content p { color: var(--fg-dim); }

/* ----------------------------------------------------------------------------
   24. 分页 —— 频道旋钮
   ---------------------------------------------------------------------------- */
.navigation.pagination { margin: 2.6rem 0 1rem; }

.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg-dim);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  transition: all 0.18s ease;
}

.navigation.pagination .page-numbers:hover {
  border-color: var(--fg);
  color: var(--fg);
  transform: translateY(-2px);
}

.navigation.pagination .page-numbers.current {
  background: var(--nv-accent);
  border-color: var(--nv-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navigation.pagination .page-numbers.current { color: #04140b; }

.navigation.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ----------------------------------------------------------------------------
   25. 页脚 —— 塔台黑匣
   ---------------------------------------------------------------------------- */
.footer {
  position: relative;
  margin-top: 5rem;
  background-color: var(--nv-accent2);
  background-image:
    linear-gradient(rgba(240, 235, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 235, 220, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  color: #e3ddc8;
  border-top: 4px solid var(--nv-accent);
}

.footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 140px;
  height: 4px;
  background: var(--nv-bg);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.2rem 24px 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-grid.footer-cols-2 { grid-template-columns: 1.6fr 1fr; }
.footer-grid.footer-cols-4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5f0e0;
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.82rem;
  color: #b8b29a;
  max-width: 280px;
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8a33d;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #3a4a75;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 8px 0; }
.footer a { color: #ddd6bd; font-size: 0.86rem; }
.footer a:hover { color: #fff; }

.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.footer-social .social-link {
  display: inline-flex;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c9c2a8;
  border: 1px solid #3a4a75;
  border-radius: var(--nv-radius-sm);
  transition: all 0.18s ease;
}

.footer-social .social-link:hover {
  color: #fff;
  border-color: var(--nv-accent);
  background: var(--nv-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.6rem;
  padding-top: 16px;
  border-top: 1px dashed #3a4a75;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #a8a28a;
}

.footer-bottom a { color: #cfc8ad; }
.footer-bottom a:hover { color: #fff; }
.footer-hint { color: #a8a28a; font-size: 0.74rem; }

[data-theme="dark"] .footer {
  color: #8fe7b2;
  background-image:
    linear-gradient(rgba(70, 240, 139, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 240, 139, 0.06) 1px, transparent 1px);
}
[data-theme="dark"] .footer-brand { color: #d6ffe6; }
[data-theme="dark"] .footer-desc { color: #6fbf8f; }
[data-theme="dark"] .footer h4 { color: #ffb224; border-bottom-color: #1d3d2a; }
[data-theme="dark"] .footer a { color: #b8f5cf; }
[data-theme="dark"] .footer a:hover { color: #fff; }
[data-theme="dark"] .footer-social .social-link { color: #8fe7b2; border-color: #1d3d2a; }
[data-theme="dark"] .footer-social .social-link:hover { color: #04140b; background: var(--nv-accent); border-color: var(--nv-accent); }
[data-theme="dark"] .footer-bottom { color: #48765c; border-top-color: #1d3d2a; }
[data-theme="dark"] .footer-bottom a { color: #6fbf8f; }
[data-theme="dark"] .footer-hint { color: #48765c; }
[data-theme="dark"] .footer::before { background: var(--nv-bg); }

/* ----------------------------------------------------------------------------
   26. 搜索页 / 通用
   ---------------------------------------------------------------------------- */
.page-head {
  padding: 2.4rem 0 1.2rem;
  border-bottom: 2px solid var(--fg);
  margin-bottom: 2rem;
}

.page-head h1 { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }

.search .page-container > article {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--nv-radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 14px;
}

/* ----------------------------------------------------------------------------
   27. 评论
   ---------------------------------------------------------------------------- */
.comments-area { margin: 2.5rem 0; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }

.comment-list .comment {
  padding: 16px 0;
  border-bottom: 1px dashed var(--hairline);
}

.comment-list .comment-body { font-size: 0.9rem; }

.comment-list .comment-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.comment-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nv-accent);
  margin-bottom: 6px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  max-width: 560px;
  padding: 11px 13px;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--nv-radius-sm);
}

.comment-form .submit {
  width: auto;
  max-width: none;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--nv-bg);
  background: var(--fg);
  border: 1.5px solid var(--fg);
  border-radius: var(--nv-radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.comment-form .submit:hover {
  background: var(--nv-accent);
  border-color: var(--nv-accent);
  color: #fff;
}

.form-table { width: 100%; }

/* ----------------------------------------------------------------------------
   28. JS 注入组件
   ---------------------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--nv-accent);
  z-index: 999;
  box-shadow: 0 0 8px var(--glow);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--nv-bg);
  background: var(--fg);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
    background-color 0.18s ease;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--nv-accent); color: #fff; }

/* ----------------------------------------------------------------------------
   29. 入场动效
   ---------------------------------------------------------------------------- */
.fade-in,
.fade-in-delay-1,
.fade-in-delay-2,
.fade-in-delay-3 {
  opacity: 0;
  animation: nova-rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in { animation-delay: 0.05s; }
.fade-in-delay-1 { animation-delay: 0.16s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.46s; }

@keyframes nova-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------------
   30. 响应式
   ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero::before { width: 380px; height: 380px; opacity: 0.5; }
  [data-theme="dark"] .hero::after { width: 380px; height: 380px; }
}

@media (max-width: 860px) {
  .navbar .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: var(--nav-mobile-bg);
    border-bottom: 1.5px solid var(--fg);
    box-shadow: var(--shadow-md);
  }

  .navbar .nav-links.open { display: flex; }
  .navbar .nav-links a { padding: 12px 10px; }
  .navbar .nav-links li.current-menu-item > a::after { display: none; }
  .nav-toggle { display: flex; }

  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .stat-item { padding: 16px 12px; }
  .stat-item:nth-child(3n) { border-right: 0; }
  .stat-item:nth-child(n+4) { border-top: 1px dashed var(--border); }

  .detail-grid,
  .detail-grid.sidebar-left { grid-template-columns: 1fr; }
  .detail-grid.sidebar-left .detail-sidebar { order: 0; }

  .timeline-item { grid-template-columns: 84px 1fr; gap: 12px; }
  .timeline-cover { float: none; width: 100%; height: auto; margin: 0 0 10px; }

  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .page-container { padding: 0 16px; }
  .hero { padding: 3.2rem 0 2.2rem; }
  .hero::before { width: 280px; height: 280px; right: -34%; }
  [data-theme="dark"] .hero::after { width: 280px; height: 280px; right: -34%; }
  .hero h1 { font-size: 1.9rem; }

  .card-grid-3,
  .card-grid-auto { grid-template-columns: 1fr; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n) { border-right: 0; }
  .stat-item:nth-child(3) { border-right: 1px dashed var(--border); }

  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-label { min-width: 0; }
  .filter-input, .filter-select { min-width: 0; width: 100%; }
  .filter-clear { margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .detail-header::before { display: none; }
  .detail-info-table th { width: 40%; }

  .navigation.pagination .nav-links { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.7rem; }
  .hero-actions .btn { width: 100%; }
}

/* ----------------------------------------------------------------------------
   31. 动效降级
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in,
  .fade-in-delay-1,
  .fade-in-delay-2,
  .fade-in-delay-3 { opacity: 1; }
}

/* ----------------------------------------------------------------------------
   33. 动态 CSS 免疫层
   主题设置（functions.php nova_aero_dynamic_css）会在 wp_head 20 优先级注入
   :root 令牌与组件规则，覆盖旧版配色。本节用更高优先级把下列组件锁定到
   v5 设计系统，主题设置里的颜色项不再影响前端观感（设置页本身不受影响）。
   ---------------------------------------------------------------------------- */
body .reading-progress { background: var(--nv-accent); }

body .back-to-top {
  background: var(--nv-accent2);
  color: #f0ebdc;
  border: 1px solid rgba(240, 235, 220, 0.45);
  border-radius: var(--nv-radius-sm);
  box-shadow: var(--shadow-md);
}
body .back-to-top:hover {
  background: var(--nv-accent);
  color: #fff;
  transform: translateY(-3px);
}
[data-theme="dark"] body .back-to-top {
  color: #b8f5cf;
  border-color: rgba(70, 240, 139, 0.5);
}
[data-theme="dark"] body .back-to-top:hover {
  color: #04140b;
  border-color: var(--nv-accent);
}
