/* ==========================================================================
   博王中国站 · /assets/site.css
   共享外壳：刊头 / 页脚 / 排版 / 基础组件
   节奏刻度线 · 深墨蓝 × 电光青 × 暖橙
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #0B1F33;
  --cyan: #00E5C3;
  --orange: #FF7A3D;
  --paper: #F5F7F5;
  --sand: #E7ECE7;
  --graphite: #22303C;
  --teal: #067A66;
  --mist: #8FF3E2;
  --line: #C3CEC9;
  --red: #E5484D;

  --ink-05: rgba(11, 31, 51, 0.05);
  --ink-12: rgba(11, 31, 51, 0.12);
  --ink-64: rgba(11, 31, 51, 0.64);
  --paper-64: rgba(245, 247, 245, 0.64);
  --paper-80: rgba(245, 247, 245, 0.8);
  --hairline-light: rgba(195, 206, 201, 0.28);
  --hairline-dark: rgba(195, 206, 201, 0.22);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-17: 1.0625rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-29: 1.8125rem;
  --fs-35: 2.1875rem;
  --fs-42: 2.625rem;

  --shell: min(1240px, calc(100% - 2.5rem));
  --ruler: 72px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 6px 6px 0 var(--line);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --focus: var(--teal);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5,
p, figure, blockquote,
dl, dd, pre { margin: 0; }

ul, ol { margin: 0; padding: 0; }

ul[class], ol[class] { list-style: none; }

img, svg, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; }

a { color: var(--teal); text-underline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: var(--fs-17);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  margin: 0;
}

.h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--graphite);
  max-width: 38ch;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
  flex: none;
}

.note {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--ink-64);
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

/* ---------- 4. 焦点与跳转 ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 200;
  transform: translateY(-240%);
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
  font-weight: 700;
  font-size: var(--fs-14);
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}

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

/* ---------- 5. 刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  --focus: var(--cyan);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--cyan);
}

.site-header::before {
  content: "";
  display: block;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 2px, transparent 2px 28px);
  opacity: 0.5;
}

.progress-bar {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 3;
}

.masthead { position: relative; }

.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem 1rem;
  padding-block: 0.85rem 0.6rem;
  transition: padding-block 0.22s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 2.1rem;
  flex: none;
}

.brand__mark i {
  display: block;
  width: 5px;
  background: var(--cyan);
}

.brand__mark i:nth-child(1) { height: 40%; }
.brand__mark i:nth-child(2) { height: 100%; background: var(--paper); }
.brand__mark i:nth-child(3) { height: 66%; background: var(--orange); }
.brand__mark i:nth-child(4) { height: 26%; }

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--paper);
  transition: color 0.18s var(--ease);
}

.brand__line {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}

.brand:hover .brand__name,
.brand:focus-visible .brand__name { color: var(--cyan); }

.status-badge {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.7rem;
  border: 2px solid rgba(195, 206, 201, 0.45);
  border-radius: 999px;
  background: rgba(0, 229, 195, 0.07);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}

.status-badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 195, 0.18);
  animation: badge-pulse 2.6s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.utility { justify-self: end; }

.utility__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility__item + .utility__item { border-left: 1px solid var(--hairline-dark); }

.utility__link {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.utility__link:hover,
.utility__link:focus-visible { color: var(--cyan); }

.utility__link[aria-current="page"] { color: var(--orange); }

/* 导航 */
.navbar {
  width: var(--shell);
  margin-inline: auto;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hairline-dark);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  flex: none;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { color: var(--mist); }

.nav { display: none; }

.nav[data-open="true"] {
  display: block;
  animation: nav-drop 0.2s var(--ease) both;
}

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

.nav__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
}

.nav__item { border-bottom: 1px solid var(--hairline-dark); }

.nav__link {
  display: block;
  padding: 0.9rem 0.85rem;
  border-left: 3px solid transparent;
  color: var(--paper);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--cyan);
  color: var(--ink);
  border-left-color: var(--orange);
}

.nav__link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  --focus: var(--cyan);
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  display: block;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 2px, transparent 2px 28px);
  opacity: 0.5;
}

.footer__inner {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(2.2rem, 5vw, 3.6rem) 1.6rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 229, 195, 0.45);
  margin: 0;
}

@supports not (-webkit-text-stroke: 1px #000) {
  .footer__wordmark { color: rgba(0, 229, 195, 0.28); }
}

.footer__tagline {
  margin: 0;
  max-width: 24ch;
  font-size: var(--fs-15);
  line-height: 1.65;
  color: var(--paper-80);
}

.footer__badge {
  margin: 0;
  padding: 0.3rem 0.7rem;
  border: 2px solid rgba(195, 206, 201, 0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

.footer__heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.footer__links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper);
  font-size: var(--fs-15);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer__link::before {
  content: "";
  width: 8px;
  height: 2px;
  flex: none;
  background: var(--line);
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible { color: var(--cyan); }

.footer__link:hover::before,
.footer__link:focus-visible::before {
  width: 16px;
  background: var(--orange);
}

.footer__contact {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 2px solid var(--hairline-light);
}

.footer__contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.footer__contact-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-word;
}

.footer__note {
  margin: 1.1rem 0 0;
  max-width: 62ch;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--paper-64);
}

.footer__bottom {
  margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  justify-content: space-between;
}

.footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal-link {
  color: var(--paper-80);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer__legal-link:hover,
.footer__legal-link:focus-visible { color: var(--cyan); }

.footer__copy,
.footer__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--paper-64);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 2px solid rgba(195, 206, 201, 0.5);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

/* ---------- 7. 通用布局 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell--narrow {
  width: min(820px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.band { padding-block: clamp(2.4rem, 6vw, 5rem); }

.band--dark {
  background: var(--ink);
  color: var(--paper);
  --focus: var(--cyan);
}

.band--dark h2,
.band--dark h3,
.band--dark .display { color: var(--paper); }

.band--dark .lede { color: var(--paper-80); }

.band--dark .note { color: var(--paper-64); }

.band--sand { background: var(--sand); }

.band--paper { background: var(--paper); }

.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.ruler {
  display: none;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ruler::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 18px);
}

.ruler__item {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-64);
}

.ruler__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

.band--dark .ruler__item { color: var(--paper-64); }

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.8rem);
}

.grid--2,
.grid--3,
.grid--5-7 { grid-template-columns: 1fr; }

/* ---------- 8. 通用组件 ---------- */
.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
}

.section-head__title { margin: 0; }

.section-head__note {
  margin: 0;
  max-width: 46ch;
  font-size: var(--fs-15);
  color: var(--ink-64);
}

.band--dark .section-head__note { color: var(--paper-64); }

.prose {
  max-width: 38rem;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  margin-top: 1.9em;
}

.prose h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.4rem);
  margin-top: 1.6em;
}

.prose ul,
.prose ol { padding-left: 1.25em; }

.prose ul { list-style: square; }

.prose li + li { margin-top: 0.35em; }

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.prose strong { color: var(--ink); }

.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 1rem;
  color: var(--ink-64);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.8rem 1.45rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-15);
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--accent {
  background: var(--orange);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--cyan);
}

.btn--dark:hover,
.btn--dark:focus-visible { box-shadow: 6px 6px 0 var(--cyan); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink-12);
  color: var(--ink);
  box-shadow: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--sand);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.tag--accent { background: var(--orange); }
.tag--cyan { background: var(--cyan); }

.tag--ghost {
  background: transparent;
  border-color: rgba(195, 206, 201, 0.6);
  color: var(--paper);
}

.card {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.card--sand {
  background: var(--sand);
  box-shadow: var(--shadow-soft);
}

.card--sand:hover { box-shadow: 8px 8px 0 var(--line); }

.card--dark {
  background: var(--ink);
  color: var(--paper);
  --focus: var(--cyan);
}

.card--dark h3 { color: var(--paper); }

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin: 0 0 0.6rem;
}

.card--dark .card__meta { color: var(--cyan); }

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--fs-15);
}

.table th,
.table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.table tbody tr:nth-child(even) { background: var(--sand); }

.table tbody tr:last-child td { border-bottom: 0; }

.table .is-num {
  font-family: var(--font-mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.panel {
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.panel > summary::-webkit-details-marker { display: none; }

.panel > summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--teal);
}

.panel[open] > summary {
  background: var(--sand);
  border-bottom: 2px solid var(--ink);
}

.panel[open] > summary::after { content: "–"; }

.panel__body {
  padding: 1rem 1.1rem 1.2rem;
  font-size: var(--fs-15);
  line-height: 1.75;
}

.crumbs { margin-bottom: 1.2rem; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-64);
}

.crumbs__item[aria-current="page"] { color: var(--ink); }

.crumbs__link {
  color: var(--ink-64);
  text-decoration: none;
}

.crumbs__link:hover,
.crumbs__link:focus-visible { color: var(--teal); }

.crumbs__sep {
  color: var(--line);
  font-family: var(--font-mono);
}

/* 媒体容器（页面阶段放置内联 SVG 或占位块） */
.media {
  position: relative;
  display: block;
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink-05) 0 1px, transparent 1px 12px),
    var(--sand);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  isolation: isolate;
}

.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--std { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--flat { box-shadow: none; }

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* ---------- 9. 显现与响应式 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 480px) {
  :root { --shell: calc(100% - 1.75rem); }
  .brand__line { font-size: 0.65rem; letter-spacing: 0.1em; }
  .utility__link { padding: 0.3rem 0.4rem; font-size: 0.75rem; }
}

@media (min-width: 560px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .masthead__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 2.5vw, 2.2rem);
    padding-block: 1rem 0.7rem;
  }

  .status-badge {
    grid-column: auto;
    justify-self: center;
  }

  .footer__contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .grid--5-7 { grid-template-columns: 5fr 7fr; }

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

  .ruler { display: block; }

  .navbar { border-top: 1px solid var(--hairline-dark); }

  .nav-toggle { display: none; }

  .nav,
  .nav[data-open="true"] {
    display: block;
    border-top: 0;
    animation: none;
  }

  .nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
    padding: 0;
  }

  .nav__item { border-bottom: 0; }

  .nav__link {
    padding: 0.85rem clamp(0.6rem, 1.4vw, 1.15rem);
    border-left: 0;
    border-top: 3px solid transparent;
    font-size: 1rem;
    letter-spacing: 0.06em;
    position: relative;
  }

  .nav__link:hover,
  .nav__link:focus-visible { border-left-color: transparent; }

  .nav__link[aria-current="page"] {
    border-left-color: transparent;
    border-top-color: var(--cyan);
  }

  .footer__top {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.55fr);
    gap: clamp(2rem, 4vw, 3.4rem);
  }

  .footer__brand {
    padding-right: 2rem;
    border-right: 1px solid var(--hairline-dark);
  }

  .footer__contact-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .site-header[data-compact="true"] .brand__line { display: none; }
  .site-header[data-compact="true"] .masthead__inner { padding-block: 0.5rem 0.4rem; }
}

.site-header[data-compact="true"] .status-badge {
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
}

@media (max-width: 640px) {
  .table th:first-child,
  .table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 2px 0 0 var(--line);
  }

  .table thead th:first-child { background: var(--ink); }
  .table tbody tr:nth-child(even) td:first-child { background: var(--sand); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .status-badge__dot { animation: none; }

  .card:hover { transform: none; }

  .btn:hover,
  .btn:focus-visible { transform: none; }
}
