/* ============================================================
   斗球中心 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   色彩：暖纸白 × 深空墨蓝 × 球场绿 × 电光橙 × 荧光黄
   ============================================================ */

:root {
  --ink: #0B1220;
  --ink-2: #17233A;
  --paper: #F6F1E4;
  --paper-2: #EAE2D0;
  --card: #FFFCF4;
  --green: #00A45A;
  --green-deep: #00693C;
  --orange: #FF5A1F;
  --beacon: #E9FF3D;
  --cyan: #35E0D0;
  --slate: #4A5A72;
  --line: rgba(11, 18, 32, 0.14);
  --line-ink: rgba(246, 241, 228, 0.16);
  --shadow: 0 2px 0 rgba(11, 18, 32, 0.06);
  --shadow-lift: 0 12px 26px -16px rgba(11, 18, 32, 0.5);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 2px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.24;
}

h1 { font-weight: 900; font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.01em; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--beacon);
  outline-offset: 3px;
}

/* ---------- 容器与栅格 ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}

.editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}

.note-col { grid-column: 1 / 3; }
.body-col { grid-column: 4 / 13; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.stack-sm { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--beacon);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; }

/* ============================================================
   页头：双层信息导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-ink);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green), var(--orange) 62%, var(--beacon));
  transition: transform 0.1s linear;
}

.nav-top {
  background: var(--ink);
  border-bottom: 1px solid var(--line-ink);
}

.nav-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 0;
  transition: padding 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 228, 0.6);
}

.util-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.util-btn {
  padding: 7px 12px;
  border: 1px solid var(--line-ink);
  color: rgba(246, 241, 228, 0.78);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.util-btn:hover { border-color: var(--beacon); color: var(--beacon); }

.util-btn[aria-pressed="true"] {
  background: var(--beacon);
  border-color: var(--beacon);
  color: var(--ink);
}

.util-btn--link { display: inline-block; }

.nav-main {
  position: relative;
  background: var(--ink);
  padding: 6px 0;
  transition: padding 0.2s ease;
}

.nav-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-main-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(246, 241, 228, 0.6);
}

.main-nav { flex: 1 1 auto; }

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(246, 241, 228, 0.8);
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 5px;
  width: 22px;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s ease;
}

.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-ink);
  background: rgba(246, 241, 228, 0.04);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transition: transform 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] {
  border-color: var(--beacon);
  color: var(--beacon);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { bottom: 4px; transform: rotate(-45deg); }

/* 滚动收细状态 */
.site-header[data-condensed] .nav-top-inner { padding: 4px 0; }
.site-header[data-condensed] .brand-tagline { display: none; }
.site-header[data-condensed] .nav-main { padding: 0; }
.site-header[data-condensed] .nav-link { padding: 8px 4px; font-size: 14px; }

/* 右侧纵向收藏浮签 */
.quick-collect {
  position: fixed;
  top: 112px;
  right: 0;
  z-index: 120;
  padding: 14px 9px;
  writing-mode: vertical-rl;
  letter-spacing: 0.24em;
  font-size: 13px;
  font-weight: 700;
  background: var(--ink-2);
  color: var(--beacon);
  border: 1px solid var(--beacon);
  border-right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, top 0.2s ease, background 0.18s ease, color 0.18s ease;
}

.site-header[data-condensed] .quick-collect {
  top: 78px;
  opacity: 1;
  pointer-events: auto;
}

.quick-collect:hover { background: var(--beacon); color: var(--ink); }

.quick-collect[aria-pressed="true"] {
  background: var(--beacon);
  color: var(--ink);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(246, 241, 228, 0.78);
  padding: clamp(48px, 7vw, 88px) 0 32px;
  border-top: 1px solid var(--line-ink);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line-ink);
}

.footer-brand-link {
  display: inline-block;
  padding-bottom: 4px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--paper);
  border-bottom: 3px solid var(--green);
}

.footer-closing {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
}

.footer-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 228, 0.5);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--beacon);
}

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

.footer-link {
  font-size: 14px;
  color: rgba(246, 241, 228, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover { color: var(--beacon); border-color: var(--beacon); }

.footer-subscribe {
  padding: 20px;
  background: var(--ink-2);
  border: 1px dashed var(--beacon);
}

.footer-subscribe-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.footer-subscribe-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
}

.footer-subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-contact {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line-ink);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--green);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 228, 0.5);
}

.contact-value { color: var(--paper); }

.copy-btn {
  padding: 3px 8px;
  border: 1px solid var(--line-ink);
  color: rgba(246, 241, 228, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.copy-btn:hover { border-color: var(--beacon); color: var(--beacon); }

.copy-btn.is-copied {
  background: var(--beacon);
  border-color: var(--beacon);
  color: var(--ink);
}

.footer-contact-note {
  font-size: 13px;
  color: rgba(246, 241, 228, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 228, 0.55);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.legal-links a:hover { color: var(--beacon); }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink-2);
  color: var(--beacon);
  border: 1px solid var(--beacon);
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.18s ease, color 0.18s ease;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover { background: var(--beacon); color: var(--ink); }

/* ============================================================
   区块与排印
   ============================================================ */
.section { padding: clamp(48px, 8vw, 112px) 0; }
.section--alt { background: var(--paper-2); }

.section--ink {
  background: var(--ink);
  color: rgba(246, 241, 228, 0.78);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.section-num {
  grid-column: 1 / 3;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 180px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(0, 164, 90, 0.16);
  -webkit-text-stroke: 1px rgba(0, 164, 90, 0.45);
}

.section--ink .section-num {
  color: rgba(53, 224, 208, 0.14);
  -webkit-text-stroke: 1px rgba(53, 224, 208, 0.4);
}

.section-title { grid-column: 3 / 13; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.lede {
  max-width: 38em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.8;
  color: var(--ink);
}

.section--ink .lede { color: rgba(246, 241, 228, 0.86); }

.prose { max-width: 40em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: 26px; }
.prose h3 { margin-top: 1.5em; font-size: 20px; }

.prose li {
  position: relative;
  padding-left: 1.3em;
}

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

.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
}

.prose a {
  color: var(--green-deep);
  border-bottom: 1px solid var(--green);
}

.prose a:hover { color: var(--orange); border-color: var(--orange); }

.section--ink .prose a { color: var(--cyan); border-color: var(--cyan); }

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.vertical-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--slate);
}

.section--ink .vertical-note { color: rgba(246, 241, 228, 0.55); }

.divider {
  border: 0;
  height: 1px;
  margin: clamp(24px, 4vw, 48px) 0;
  background: var(--line);
}

.section--ink .divider { background: var(--line-ink); }

/* ============================================================
   按钮与标签
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }

.btn--accent { background: var(--orange); color: var(--ink); }
.btn--accent:hover { background: #E44A12; color: #fff; }

.btn--beacon { background: var(--beacon); color: var(--ink); }
.btn--beacon:hover { background: var(--green); color: #fff; }

.btn--beacon[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

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

.btn--ghost[aria-pressed="true"] {
  background: var(--beacon);
  border-color: var(--beacon);
  color: var(--ink);
}

.btn--sm { padding: 9px 16px; font-size: 13px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.tag--orange { color: var(--orange); border-color: var(--orange); background: transparent; }
.tag--green { color: var(--green-deep); border-color: var(--green); background: transparent; }
.tag--beacon { color: var(--ink); background: var(--beacon); border-color: var(--beacon); }

/* ============================================================
   卡片
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0, 164, 90, 0.5);
}

.card-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.card-text { margin-top: 10px; font-size: 15px; line-height: 1.8; }

.card-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.card--ink {
  background: var(--ink-2);
  border-color: var(--line-ink);
  color: rgba(246, 241, 228, 0.8);
}

.card--ink .card-title { color: var(--paper); }
.card--ink .card-meta { color: rgba(246, 241, 228, 0.6); }

.tilt-a { transform: rotate(-1.2deg); }
.tilt-b { transform: rotate(0.8deg); }
.tilt-c { transform: rotate(-0.5deg); }

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(74, 90, 114, 0.5);
}

.breadcrumb a:hover { color: var(--green-deep); }

/* ============================================================
   筛选
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-btn:hover { border-color: var(--green); color: var(--green-deep); }

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--beacon);
  border-color: var(--ink);
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

.filter-item { transition: opacity 0.18s ease; }

/* ============================================================
   版本时间轴
   ============================================================ */
.timeline { margin: 0; }

.timeline-track {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto;
  padding: 6px 0 14px;
}

.timeline-node {
  position: relative;
  flex: 1 1 0;
  min-width: 220px;
  padding-top: 34px;
  opacity: 0.42;
  transition: opacity 0.4s ease;
}

.timeline-node.is-lit { opacity: 1; }

.timeline-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--slate);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.timeline-node.is-lit .timeline-dot {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 164, 90, 0.16);
}

.timeline-node--old .timeline-dot { border-style: dashed; }

.timeline-node-title { font-size: 17px; font-weight: 700; color: var(--ink); }

.timeline-node-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.section--ink .timeline-node-title { color: var(--paper); }
.section--ink .timeline-dot { background: var(--ink-2); }
.section--ink .timeline-node.is-lit .timeline-dot { background: var(--green); }

/* ============================================================
   适配矩阵表格
   ============================================================ */
.matrix-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
}

.matrix {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.matrix th,
.matrix td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.matrix thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.matrix tbody tr:nth-child(even) { background: var(--paper-2); }
.matrix td.is-ok { color: var(--green-deep); font-weight: 700; }
.matrix td.is-warn { color: var(--orange); font-weight: 700; }

/* ============================================================
   图片容器基础规则（页面阶段放置 img）
   ============================================================ */
.figure { margin: 0; }

.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-2), var(--ink) 62%);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(53, 224, 208, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 208, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
  pointer-events: none;
}

.figure-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 4 / 5; }

.figure-cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.section--ink .figure-cap { color: rgba(246, 241, 228, 0.6); }

.halftone {
  background-image: radial-gradient(rgba(0, 164, 90, 0.35) 1px, transparent 1.4px);
  background-size: 10px 10px;
}

/* ============================================================
   动效与浮层
   ============================================================ */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: min(90vw, 420px);
  margin: 0;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--beacon);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.9);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-helper {
  position: fixed;
  top: -1000px;
  left: -1000px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-subscribe { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 95; }
  .nav-main-label { display: block; position: relative; z-index: 95; }
  .brand-tagline { display: none; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: 132px var(--gutter) 48px;
    background: var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .main-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item { border-bottom: 1px solid var(--line-ink); }

  .nav-link,
  .site-header[data-condensed] .nav-link {
    display: block;
    padding: 18px 4px;
    font-size: 22px;
  }

  .nav-link::after {
    left: 4px;
    bottom: 12px;
    width: 28px;
    height: 4px;
  }

  .quick-collect { display: none; }

  .section-head { grid-template-columns: 1fr; }
  .section-num,
  .section-title { grid-column: 1 / -1; }

  .note-col,
  .body-col,
  .span-4,
  .span-6,
  .span-8 { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .legal-links { margin-left: 0; }
}

@media (max-width: 560px) {
  .util-cluster { gap: 6px; }
  .util-btn { padding: 6px 9px; font-size: 11px; }
  .util-btn--link { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .contact-list { flex-direction: column; gap: 12px; }
}

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

  html { scroll-behavior: auto; }

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

  .has-js [data-reveal].is-visible { transform: none; }

  .quick-collect,
  .to-top,
  .toast { transition: none; }
}
