/* =========================================================
   9Z看台 · /assets/site.css
   共享外壳：重置、变量、中文排版、头部、页脚、通用组件
   ========================================================= */

/* ---------- 01 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

/* ---------- 02 变量 ---------- */
:root {
  --ink: #041F18;
  --deep: #0A3A2C;
  --forest: #14513F;
  --cyan: #27E3C6;
  --cyan-soft: #8BF5E4;
  --amber: #FFB020;
  --amber-deep: #C97A06;
  --paper: #F4F7F2;
  --metal: #93A69E;
  --alert: #FF5A4E;

  --line: 3px;
  --gap: clamp(16px, 2vw, 28px);
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1480px;

  --shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
  --shadow-cyan: 6px 6px 0 rgba(39, 227, 198, 0.22);
  --shadow-amber: 5px 5px 0 rgba(255, 176, 32, 0.28);

  --rail-w: 0px;

  --font-display: "Oswald", "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Noto Sans SC", monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --z-header: 60;
  --z-rail: 70;
  --z-top: 90;
  --z-skip: 999;
}

@media (min-width: 1240px) {
  :root { --rail-w: 88px; }
  :root.is-rail-open { --rail-w: 232px; }
}

/* ---------- 03 中文排版基线 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.012em;
  background: var(--ink);
  color: var(--paper);
  padding-left: var(--rail-w);
  transition: padding-left 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.012em;
}

p { text-wrap: pretty; }

::selection { background: var(--amber); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 04 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: var(--z-skip);
  padding: 12px 20px;
  background: var(--amber);
  color: #1A1200;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-amber);
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 05 左侧品牌轨道 ---------- */
.brand-rail { display: none; }

@media (min-width: 1240px) {
  .brand-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0 18px;
    background: linear-gradient(180deg, #0E4736 0%, var(--deep) 42%, var(--ink) 100%);
    border-right: var(--line) solid var(--forest);
    overflow: hidden;
    z-index: var(--z-rail);
    transition: width 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .brand-rail::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(39, 227, 198, 0.18) 1px, transparent 1px);
    background-size: 9px 9px;
    opacity: 0.45;
  }
}

.rail-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
}

.rail-brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  background: var(--cyan);
  padding: 5px 7px;
  letter-spacing: -0.02em;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.rail-brand__cn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--paper);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.rail-scale {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(39, 227, 198, 0.22);
  width: 58px;
}

.rail-scale__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--metal);
}

.rail-scale__ticks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.rail-scale__ticks li {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--forest);
  padding-left: 12px;
}

.rail-scale__ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: currentColor;
}

.rail-scale__ticks li.is-live {
  color: var(--amber);
  font-weight: 700;
}

.rail-scale__ticks li.is-live::before {
  width: 10px;
  height: 3px;
  background: var(--amber);
}

.rail-index {
  position: relative;
  z-index: 1;
  display: none;
  width: 100%;
  padding: 14px 16px 0;
  border-top: 1px solid rgba(39, 227, 198, 0.2);
}

.rail-index[hidden] { display: none !important; }

:root.is-rail-open .rail-index { display: block; }

.rail-index__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--metal);
  margin-bottom: 8px;
}

.rail-index__list {
  counter-reset: railsec;
  display: flex;
  flex-direction: column;
}

.rail-index__link {
  counter-increment: railsec;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--metal);
  border-bottom: 1px dashed rgba(147, 166, 158, 0.22);
  transition: color 0.16s ease;
}

.rail-index__link::before {
  content: counter(railsec, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--forest);
  letter-spacing: 0.04em;
  flex: none;
}

.rail-index__link:hover { color: var(--paper); }

.rail-index__link.is-current {
  color: var(--cyan);
  border-bottom-color: rgba(39, 227, 198, 0.4);
}

.rail-index__link.is-current::before { color: var(--amber); }

.rail-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail-version {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 2px solid var(--amber);
  padding: 2px 7px;
  background: rgba(255, 176, 32, 0.08);
}

/* ---------- 06 顶部双层导航 ---------- */
.header-body {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ink);
  border-bottom: var(--line) solid var(--cyan);
}

.header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px clamp(16px, 3vw, 32px);
  background: var(--deep);
  border-bottom: 1px solid rgba(39, 227, 198, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.strip-brand {
  color: var(--metal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--amber);
  white-space: nowrap;
  flex: none;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.55);
  animation: standPulse 8s ease-in-out infinite;
}

@keyframes standPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.5); opacity: 1; }
  50% { box-shadow: 0 0 0 9px rgba(255, 176, 32, 0); opacity: 0.62; }
}

.strip-utility {
  color: var(--metal);
  white-space: nowrap;
  flex: none;
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(16px, 3vw, 32px);
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-logo__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  background: var(--amber);
  padding: 5px 9px;
  letter-spacing: -0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 82% 100%, 0 100%);
  box-shadow: 4px 4px 0 rgba(39, 227, 198, 0.35);
}

.header-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.header-logo__text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--metal);
  margin-top: 3px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 22px);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 12px);
}

.primary-nav__list a {
  position: relative;
  display: block;
  padding: 10px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--paper);
  transition: color 0.16s ease;
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.primary-nav__list a:hover { color: var(--amber); }
.primary-nav__list a:hover::after { transform: scaleX(1); }

.primary-nav__list a[aria-current="page"] { color: var(--cyan); }
.primary-nav__list a[aria-current="page"]::after {
  background: var(--cyan);
  transform: scaleX(1);
}

.primary-nav__cta { flex: none; }

/* 移动端导航开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  border: var(--line) solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--cyan);
  color: var(--ink);
}

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(39, 227, 198, 0.14);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: var(--z-top);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(39, 227, 198, 0.48);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.to-top:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(39, 227, 198, 0.62);
}

.to-top:active {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 rgba(39, 227, 198, 0.48);
}

/* ---------- 07 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: var(--line) solid var(--cyan);
  padding: clamp(36px, 5vw, 76px) var(--pad) 0;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.5fr;
  gap: clamp(24px, 4vw, 64px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: clamp(28px, 4vw, 56px);
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.footer-logo { display: inline-flex; align-items: center; gap: 10px; }

.footer-logo__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  background: var(--amber);
  padding: 6px 10px;
  letter-spacing: -0.03em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 78% 100%, 0 100%);
}

.footer-logo__cn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--paper);
}

.footer-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--metal);
  max-width: 30ch;
}

.footer-version {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-round {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border-left: 2px solid var(--forest);
  padding-left: 10px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(39, 227, 198, 0.24);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  display: inline-block;
  padding: 7px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--paper);
  border-bottom: 1px solid rgba(147, 166, 158, 0.14);
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-links a:hover {
  color: var(--amber);
  transform: translateX(4px);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-meta li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
}

.footer-meta__key {
  flex: none;
  width: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--metal);
  padding-top: 2px;
}

.footer-note {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--metal);
  border-left: var(--line) solid var(--amber);
  padding: 2px 0 2px 14px;
  max-width: 46ch;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(147, 166, 158, 0.24);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--metal);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: var(--metal);
  transition: color 0.16s ease;
}

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

.footer-watermark {
  position: absolute;
  right: -0.08em;
  bottom: -0.26em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(140px, 22vw, 300px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(39, 227, 198, 0.055);
  pointer-events: none;
  user-select: none;
}

/* ---------- 08 通用版式与按钮 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .eyebrow { color: var(--amber-deep); }
.section--paper .lede { color: var(--forest); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: currentColor;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--cyan-soft);
  max-width: 60ch;
}

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

.prose p { margin-bottom: 1em; max-width: 68ch; }

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--paper .prose a { color: var(--amber-deep); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.7;
  border: 2px solid currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 86% 100%, 0 100%);
}

.tag--version {
  color: var(--amber);
  background: rgba(255, 176, 32, 0.08);
  border-color: var(--amber);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.62);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.62);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.62);
}

.btn--amber {
  background: var(--amber);
  color: #1A1200;
  border-color: #1A1200;
  box-shadow: 4px 4px 0 rgba(39, 227, 198, 0.4);
}

.btn--amber:hover { box-shadow: 6px 6px 0 rgba(39, 227, 198, 0.55); }

.btn--cyan {
  background: var(--cyan);
  color: #04241D;
  border-color: #04241D;
  box-shadow: 4px 4px 0 rgba(4, 31, 24, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(39, 227, 198, 0.3);
}

.btn--ghost:hover { background: rgba(39, 227, 198, 0.1); }

/* 面包屑 */
.breadcrumb {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--metal);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a { color: var(--cyan); transition: color 0.16s ease; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb__sep { color: var(--forest); }

/* ---------- 09 网格与图片容器 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

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

.media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(39, 227, 198, 0.16), transparent 55%),
    linear-gradient(320deg, var(--forest), var(--ink) 78%);
  border: var(--line) solid rgba(39, 227, 198, 0.36);
  box-shadow: var(--shadow-cyan);
}

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

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 7px 12px;
  background: rgba(4, 31, 24, 0.84);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

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

/* 页面区块滚动定位 */
[data-section] { scroll-margin-top: clamp(110px, 16vh, 170px); }

/* ---------- 10 响应式 ---------- */
@media (max-width: 1239px) {
  body { padding-left: 0; }
  .brand-rail { display: none; }
}

@media (max-width: 1000px) {
  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9 { grid-column: span 12; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col--contact { grid-column: span 2; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .header-strip { font-size: 10.5px; letter-spacing: 0.06em; }
  .strip-utility { display: none; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    background: var(--deep);
    border-top: var(--line) solid var(--cyan);
    border-bottom: var(--line) solid var(--cyan);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.24s ease, opacity 0.18s ease, visibility 0.24s;
  }

  .primary-nav[data-open] {
    max-height: min(74vh, 640px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
    counter-reset: navitem;
  }

  .primary-nav__list li {
    counter-increment: navitem;
    border-bottom: 1px solid rgba(39, 227, 198, 0.14);
  }

  .primary-nav__list a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
    font-size: 21px;
    letter-spacing: 0.03em;
  }

  .primary-nav__list a::before {
    content: counter(navitem, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--cyan-soft);
    flex: none;
  }

  .primary-nav__list a::after { display: none; }

  .primary-nav__list a[aria-current="page"] {
    background: rgba(39, 227, 198, 0.09);
    box-shadow: inset 4px 0 0 var(--amber);
  }

  .primary-nav__cta {
    display: flex;
    width: calc(100% - 40px);
    margin: 14px 20px 20px;
  }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }

  .strip-brand { display: none; }
  .header-strip { justify-content: flex-start; gap: 0; }

  .header-logo__mark { font-size: 22px; padding: 4px 7px; }
  .header-logo__text { font-size: 15px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-col--contact { grid-column: span 1; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal { gap: 14px; }

  .to-top { width: 46px; height: 46px; font-size: 17px; }
}

/* ---------- 11 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .pulse-dot { animation: none; opacity: 1; box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.25); }
  .scroll-progress span { transition: none; }
}
