/* ===== 变量 ===== */
:root {
  --void-ink: #080C14;
  --deep-navy-panel: #101E40;
  --cream-paper: #F2EBDD;
  --fluorescent-green: #00FF88;
  --gold-highlight: #F5B84B;
  --signal-red: #FF4D4D;
  --muted-ice: #9FB4C7;
  --text-bright: #E7EDF5;
  --hairline: #233044;

  --font-display: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-cn: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Courier New', monospace;

  --container-padding: clamp(1rem, 4vw, 2.5rem);
  --header-z: 200;
  --progress-z: 300;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(245, 184, 75, 0.05), transparent),
    radial-gradient(ellipse 70% 50% at 105% 0%, rgba(0, 255, 136, 0.03), transparent),
    var(--void-ink);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cn);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-bright);
}

p {
  margin: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--fluorescent-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border-radius: 0;
}

::selection {
  background: var(--fluorescent-green);
  color: var(--void-ink);
}

/* ===== 焦点状态 ===== */
:focus-visible {
  outline: 2px solid var(--fluorescent-green);
  outline-offset: 2px;
}

#main-content {
  scroll-margin-top: 96px;
}

#main-content:focus {
  outline: none;
}

[id] {
  scroll-margin-top: 96px;
}

/* ===== 容器与工具类 ===== */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.75rem);
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline) 0%, transparent 100%);
  margin-block: 3rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 跳过链接 ===== */
.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--fluorescent-green);
  color: #001208;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-cn);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.24s ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  position: relative;
  padding: 0.8125rem 1.75rem 0.8125rem 2rem;
  background: var(--fluorescent-green);
  color: #001208;
  font-family: var(--font-cn);
  font-size: 0.9375rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.24s ease-out, color 0.24s ease-out, border-color 0.24s ease-out;
}

.btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  transform: skewX(-14deg);
  opacity: 0.35;
}

.btn-primary {
  background: var(--fluorescent-green);
  color: #001208;
}

.btn-primary:hover {
  background: #5dffb4;
}

.btn-ghost {
  background: transparent;
  color: var(--text-bright);
  border-color: var(--hairline);
  clip-path: none;
}

.btn-ghost::before {
  background: var(--fluorescent-green);
}

.btn-ghost:hover {
  border-color: var(--fluorescent-green);
  color: var(--fluorescent-green);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 标签 ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-ice);
  border: 1px solid var(--hairline);
  padding: 0.25rem 0.625rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag--green {
  border-color: rgba(0, 255, 136, 0.45);
  color: var(--fluorescent-green);
}

.tag--gold {
  border-color: rgba(245, 184, 75, 0.45);
  color: var(--gold-highlight);
}

.tag--red {
  border-color: rgba(255, 77, 77, 0.45);
  color: var(--signal-red);
}

/* ===== 页头 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: rgba(8, 12, 20, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35, 48, 68, 0.65);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(8, 12, 20, 0.98);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--fluorescent-green), var(--gold-highlight));
  z-index: var(--progress-z);
  pointer-events: none;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0 0.875rem;
}

.masthead-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

.masthead-signature {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-ice);
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.masthead-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  grid-column: 2;
  justify-self: center;
  text-decoration: none;
  line-height: 1;
}

.brand-display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.02em;
  color: var(--text-bright);
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-cn);
  font-size: clamp(0.75rem, 1.4vw, 0.9375rem);
  font-weight: 800;
  color: var(--muted-ice);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.masthead-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  grid-column: 3;
  justify-self: end;
  margin: 0;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gold-highlight);
  border: 1px solid var(--hairline);
  padding: 0.375rem 0.75rem;
  background: rgba(16, 30, 64, 0.65);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fluorescent-green);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.45); }
  50% { opacity: 0.55; box-shadow: 0 0 6px 2px rgba(0, 255, 136, 0.28); }
}

/* ===== 主导航 ===== */
.primary-nav {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(16, 30, 64, 0.22), transparent);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  display: flex;
}

.nav-item + .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--hairline);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  color: var(--text-bright);
  font-family: var(--font-cn);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.24s ease-out;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--fluorescent-green);
  opacity: 0.65;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: -1px;
  height: 2px;
  background: var(--fluorescent-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease-out;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--fluorescent-green);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 0.4375rem 0.75rem;
  color: var(--text-bright);
  font-family: var(--font-cn);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.24s ease-out, color 0.24s ease-out;
}

.nav-toggle:hover {
  border-color: var(--fluorescent-green);
  color: var(--fluorescent-green);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s ease-out, opacity 0.24s ease-out;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4.5rem);
  position: relative;
  background:
    linear-gradient(180deg, rgba(16, 30, 64, 0.35), transparent 30%),
    var(--void-ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--fluorescent-green) 0%, var(--fluorescent-green) 50%, var(--gold-highlight) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 140px) 100%, 140px 100%);
  opacity: 0.8;
}

.footer-primary {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-tagline {
  margin-top: 0.75rem;
  font-family: var(--font-cn);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-highlight);
  letter-spacing: 0.18em;
}

.footer-trust {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted-ice);
  max-width: 38ch;
}

.footer-col-title {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-ice);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-nav-list,
.footer-contact-list {
  margin: 0;
  padding: 0;
}

.footer-nav-link {
  display: inline-block;
  padding: 0.425rem 0;
  color: var(--text-bright);
  font-family: var(--font-cn);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.24s ease-out;
}

.footer-nav-link:hover {
  color: var(--fluorescent-green);
}

.footer-address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-ice);
}

.footer-contact-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-ice);
  line-height: 1.6;
}

.copy-value {
  margin-top: 1rem;
  background: none;
  border: 1px dashed var(--hairline);
  padding: 0.4375rem 0.75rem;
  color: var(--fluorescent-green);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.24s ease-out, color 0.24s ease-out, box-shadow 0.24s ease-out;
}

.copy-value:hover {
  border-color: var(--fluorescent-green);
  color: var(--text-bright);
}

.copy-value.is-copied {
  border-style: solid;
  border-color: var(--fluorescent-green);
  color: var(--gold-highlight);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.footer-meta {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(16, 30, 64, 0.28);
  padding: 0.875rem 0;
}

.footer-meta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-ice);
}

.footer-meta-divider {
  color: var(--hairline);
}

.footer-copy {
  margin-left: auto;
  color: var(--text-bright);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  padding: 1.5rem 0 2.5rem;
}

.footer-legal a {
  color: var(--muted-ice);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.24s ease-out;
}

.footer-legal a:hover {
  color: var(--fluorescent-green);
}

.footer-legal-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--signal-red);
  letter-spacing: 0.08em;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 30, 64, 0.92);
  border: 1px solid var(--hairline);
  color: var(--fluorescent-green);
  font-size: 1.375rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out, border-color 0.3s ease-out;
}

.back-to-top:hover {
  border-color: var(--fluorescent-green);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== 面包屑 ===== */
.breadcrumbs {
  padding: 1.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-ice);
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  color: var(--hairline);
  font-size: 0.75rem;
}

.breadcrumbs-link {
  color: var(--muted-ice);
  text-decoration: none;
  transition: color 0.24s ease-out;
}

.breadcrumbs-link:hover {
  color: var(--fluorescent-green);
}

.breadcrumbs-item[aria-current="page"] {
  color: var(--text-bright);
}

/* ===== 页面页眉 ===== */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
}

.page-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fluorescent-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.page-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-ice);
  max-width: 62ch;
}

/* ===== 正文 ===== */
.prose {
  color: var(--text-bright);
  font-size: 1rem;
  line-height: 1.8;
}

.prose > p {
  margin: 0 0 1.25rem;
}

.prose h2 {
  font-family: var(--font-cn);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 3rem 0 1rem;
  color: var(--text-bright);
}

.prose h3 {
  font-family: var(--font-cn);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.prose a {
  color: var(--fluorescent-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--cream-paper);
  color: #2B211B;
  border-left: 4px solid var(--gold-highlight);
  font-family: var(--font-cn);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* ===== 面板与批注 ===== */
.panel {
  background: rgba(16, 30, 64, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 1.5rem;
  position: relative;
}

@supports not (backdrop-filter: blur(1px)) {
  .panel {
    background: rgba(16, 30, 64, 0.92);
  }
}

.panel + .panel {
  margin-top: 1.25rem;
}

.card {
  background: rgba(16, 30, 64, 0.5);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 1.5rem;
  transition: border-color 0.24s ease-out;
}

.card:hover {
  border-color: rgba(0, 255, 136, 0.4);
}

.paper-note {
  position: relative;
  background: var(--cream-paper);
  color: #2B211B;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  border-left: 4px solid var(--gold-highlight);
  font-size: 0.875rem;
  line-height: 1.7;
}

.paper-note::after {
  content: "";
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(43, 33, 27, 0.18);
  border-right: 1px solid rgba(43, 33, 27, 0.18);
}

/* ===== 数字与统计 ===== */
.stat-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  font-variant-numeric: tabular-nums;
}

.stat-display--green {
  color: var(--fluorescent-green);
}

.stat-display--gold {
  color: var(--gold-highlight);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-ice);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== 图片容器 ===== */
.figure-container {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(35, 48, 68, 0.35) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(35, 48, 68, 0.35) 25%, transparent 25%),
    var(--deep-navy-panel);
  background-size: 24px 24px;
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 9;
}

.figure-container::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.625rem 0.875rem;
  background: rgba(8, 12, 20, 0.82);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-ice);
}

.figure-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 栅格 ===== */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.layout-editorial {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr) minmax(0, 1fr);
  gap: 0 2rem;
}

/* ===== 折叠面板 ===== */
.accordion {
  border: 1px solid var(--hairline);
  background: rgba(16, 30, 64, 0.25);
}

.accordion-header {
  margin: 0;
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-bright);
  font-family: var(--font-cn);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: color 0.24s ease-out;
}

.accordion-trigger:hover {
  color: var(--fluorescent-green);
}

.accordion-trigger::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.375rem;
  line-height: 1;
  color: var(--fluorescent-green);
  transition: transform 0.24s ease-out;
}

.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.25rem;
  border-bottom: 1px solid transparent;
  transition: max-height 0.35s ease-out, opacity 0.35s ease-out, padding 0.35s ease-out;
}

.accordion-content.is-open {
  max-height: 800px;
  opacity: 1;
  padding: 0 1.25rem 1.25rem;
  border-bottom-color: var(--hairline);
}

.accordion-content p {
  color: var(--muted-ice);
  font-size: 0.9375rem;
}

.accordion-header + .accordion-content.is-open {
  padding-top: 1.25rem;
}

/* ===== 标签页 ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  border-bottom: 1px solid var(--hairline);
}

.tab {
  position: relative;
  background: transparent;
  border: none;
  padding: 0.8125rem 1.375rem;
  font-family: var(--font-cn);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted-ice);
  cursor: pointer;
  transition: color 0.24s ease-out;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  bottom: -1px;
  height: 2px;
  background: var(--fluorescent-green);
  transform: scaleX(0);
  transition: transform 0.24s ease-out;
}

.tab:hover {
  color: var(--text-bright);
}

.tab[aria-selected="true"] {
  color: var(--fluorescent-green);
}

.tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tab-panel {
  padding: 1.5rem;
  background: rgba(16, 30, 64, 0.25);
  border: 1px solid var(--hairline);
  border-top: none;
}

.tab-panel[hidden] {
  display: none;
}

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 560px;
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.table-wrap th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-ice);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(16, 30, 64, 0.4);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

/* ===== 响应式 ===== */
@media (max-width: 64rem) {
  .footer-primary {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .layout-editorial {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 48rem) {
  .masthead {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    padding: 1.125rem 0 0.75rem;
  }

  .masthead-left {
    grid-column: 1;
    justify-self: start;
  }

  .masthead-signature {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .masthead-brand {
    grid-column: 2;
    justify-self: center;
  }

  .brand-display {
    font-size: 1.625rem;
  }

  .brand-sub {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  .masthead-meta {
    grid-column: 3;
    justify-self: end;
  }

  .version-badge {
    padding: 0.3125rem;
    border-color: transparent;
    background: transparent;
  }

  .version-text {
    display: none;
  }

  .status-dot {
    width: 8px;
    height: 8px;
  }

  .primary-nav {
    border: none;
    background: transparent;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
  }

  .primary-nav[data-open] .nav-list {
    position: absolute;
    top: 100%;
    left: calc(var(--container-padding) * -1);
    right: calc(var(--container-padding) * -1);
    display: flex;
    background: rgba(8, 12, 20, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    animation: navDropdownIn 0.24s ease-out;
  }

  @keyframes navDropdownIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-item {
    width: 100%;
  }

  .nav-item + .nav-item::before,
  .nav-link::after {
    display: none;
  }

  .nav-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0.25rem;
    border-top: 1px solid var(--hairline);
    font-size: 0.9375rem;
  }

  .footer-primary {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .footer-meta-inner {
    gap: 0.5rem 1rem;
    font-size: 0.6875rem;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }

  .footer-legal {
    gap: 0.75rem 1.25rem;
    padding: 1.25rem 0 2rem;
  }

  .footer-legal-note {
    margin-left: 0;
    width: 100%;
  }

  .grid-12 {
    gap: 1rem;
  }

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

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ===== 减少动效 ===== */
@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;
  }

  .status-dot {
    animation: none;
  }

  .primary-nav[data-open] .nav-list {
    animation: none;
  }
}
