/* ==========================================================================
   卡卡湾电投指南 · 共享样式表  /assets/site.css
   结构：1 重置 · 2 变量 · 3 中文排版 · 4 顶部条 · 5 侧边轨道导航 · 6 页脚
        7 通用容器与网格 · 8 基础组件 · 9 图片容器 · 10 动效与响应式
   ========================================================================== */

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

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

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

ol, ul { list-style: none; }

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --cream: #F5F0E6;
  --cream-soft: #FBF8F1;
  --sand: #E8E3D6;
  --ink: #0E2A3A;
  --ink-2: #143B52;
  --teal: #17C3B2;
  --teal-ink: #0F6F6A;
  --orange: #FF7A2F;
  --rust: #C8452E;
  --slate: #6C7A82;

  --line: rgba(14, 42, 58, 0.14);
  --line-strong: rgba(14, 42, 58, 0.32);
  --line-invert: rgba(245, 240, 230, 0.16);

  --rail-w: 236px;
  --rail-gap: 40px;
  --topbar-h: 64px;

  --r-s: 6px;
  --r-m: 14px;
  --r-l: 26px;

  --dur: 260ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-display: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;

  --shadow-1: 0 1px 0 rgba(14, 42, 58, 0.06);
  --shadow-2: 0 20px 44px -30px rgba(14, 42, 58, 0.5);
}

@media (min-width: 1080px) {
  :root { --topbar-h: 72px; }
}

/* ---------- 3. 中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--cream);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

strong { font-weight: 600; }

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

.t-display {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.t-1 {
  font-family: var(--font-display);
  font-weight: 250;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.t-2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.t-3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 34em;
}

.prose p { max-width: 34em; }

.prose p + p { margin-top: 0.9em; }

.prose a {
  color: var(--teal-ink);
  border-bottom: 1px solid rgba(15, 111, 106, 0.35);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

#main-content { scroll-margin-top: calc(var(--topbar-h) + 20px); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-s);
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}

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

/* ---------- 4. 顶部条 ---------- */
.site-header { position: relative; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 240, 230, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
}

.brand-mark-line {
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--teal) 0 50%, var(--orange) 50% 100%);
  transform: rotate(38deg);
  transition: transform var(--dur-slow) var(--ease);
}

.brand:hover .brand-mark-line,
.brand:focus-visible .brand-mark-line { transform: rotate(142deg); }

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-line {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.brand-descriptor {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate);
  line-height: 1.4;
  white-space: nowrap;
}

.cta-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.cta-quick:hover {
  background: var(--rust);
  color: var(--cream);
}

.cta-quick-meta {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(14, 42, 58, 0.16);
}

.cta-quick:hover .cta-quick-meta { background: rgba(245, 240, 230, 0.24); }

.rail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail-toggle:hover { border-color: var(--teal); background: rgba(23, 195, 178, 0.1); }

.rail-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.rail-toggle-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width 120ms linear;
}

/* ---------- 5. 侧边轨道导航 ---------- */
.rail {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  z-index: 58;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 22px 34px;
  overflow-y: auto;
  background: var(--ink);
  color: var(--cream);
  transform: translateX(-102%);
  transition: transform var(--dur-slow) var(--ease);
}

.rail[data-open="true"] { transform: translateX(0); }

.rail-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-kicker {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--teal);
}

.rail-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.rail-note {
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.55);
  max-width: 30em;
}

.rail-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(23, 195, 178, 0.55), rgba(245, 240, 230, 0.14));
}

.rail-item { position: relative; }

.rail-link {
  display: grid;
  grid-template-columns: 12px 26px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 6px;
  border-radius: var(--r-s);
  color: rgba(245, 240, 230, 0.7);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--cream);
  background: rgba(23, 195, 178, 0.12);
}

.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  justify-self: center;
  background: rgba(245, 240, 230, 0.3);
  box-shadow: 0 0 0 4px var(--ink);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rail-link:hover .rail-dot { background: var(--teal); }

.rail-index {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 230, 0.4);
  transition: color var(--dur) var(--ease);
}

.rail-label {
  position: relative;
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.rail-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--dur) var(--ease);
}

.rail-link:hover .rail-label::after,
.rail-link:focus-visible .rail-label::after,
.rail-link[aria-current="page"] .rail-label::after { width: 100%; }

.rail-link[aria-current="page"] {
  color: var(--cream);
  background: rgba(23, 195, 178, 0.14);
}

.rail-link[aria-current="page"] .rail-dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 6px rgba(255, 122, 47, 0.28);
}

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

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line-invert);
}

.rail-foot-label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(245, 240, 230, 0.45);
  margin-top: 6px;
}

.rail-utility {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-utility-link {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.74);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.rail-utility-link:hover {
  color: var(--teal);
  border-color: rgba(23, 195, 178, 0.5);
}

.rail-foot-text {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.6);
  word-break: break-all;
}

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 56;
  background: rgba(14, 42, 58, 0.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
}

.site-header[data-nav-open="true"] .rail-scrim {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1079px) {
  body.is-nav-open { overflow: hidden; }
}

@media (min-width: 1080px) {
  body { padding-left: calc(var(--rail-w) + var(--rail-gap)); }

  .rail {
    top: 0;
    bottom: auto;
    height: 100dvh;
    width: var(--rail-w);
    z-index: 50;
    padding: 34px 24px 28px;
    transform: none;
    transition: none;
  }

  .rail-scrim { display: none; }

  .rail-toggle { display: none; }
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-2);
  color: rgba(245, 240, 230, 0.82);
  border-top: 3px solid var(--teal);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.footer-logo:hover { color: var(--teal); }

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.62);
  max-width: 28em;
}

.footer-region {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border: 1px solid var(--line-invert);
  border-radius: 999px;
  color: rgba(245, 240, 230, 0.7);
}

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

.footer-group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 14.5px;
  color: rgba(245, 240, 230, 0.78);
  border-bottom: 1px solid transparent;
  display: inline-block;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cream);
  border-color: var(--orange);
}

.footer-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-invert);
}

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

.footer-contact-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: rgba(245, 240, 230, 0.5);
}

.footer-contact-value {
  color: var(--cream);
  word-break: break-all;
}

.footer-contact-note {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.55);
  max-width: 44em;
}

.copy-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px dashed rgba(245, 240, 230, 0.4);
  border-radius: 999px;
  color: rgba(245, 240, 230, 0.72);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.copy-chip:hover {
  color: var(--cream);
  border-color: var(--teal);
  background: rgba(23, 195, 178, 0.14);
}

.copy-chip[data-state="done"] {
  color: var(--ink);
  background: var(--teal);
  border-color: var(--teal);
  border-style: solid;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-invert);
  font-size: 12.5px;
  color: rgba(245, 240, 230, 0.6);
}

.footer-icp { letter-spacing: 0.04em; }

.footer-mark { color: rgba(245, 240, 230, 0.6); }

.to-top {
  font-size: 12.5px;
  padding: 6px 14px;
  border: 1px solid var(--line-invert);
  border-radius: 999px;
  color: rgba(245, 240, 230, 0.78);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

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

/* ---------- 7. 通用容器与网格 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 24px;
}

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--rust);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 250;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.section-lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
  max-width: 34em;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 30px);
}

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

.col-3, .col-4, .col-6, .col-8, .col-12 { grid-column: 1 / -1; }

@media (min-width: 720px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 3; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 6; }
  .col-12 { grid-column: span 6; }
}

@media (min-width: 1080px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

.tick-rule {
  height: 9px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 24px);
  background-repeat: repeat-x;
  background-position: bottom left;
}

/* ---------- 8. 基础组件 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

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

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb-item a:hover { color: var(--teal-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.btn-primary:hover {
  background: var(--rust);
  color: var(--cream);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-quiet {
  color: var(--teal-ink);
  border-color: transparent;
  padding-inline: 6px;
}

.btn-quiet:hover { border-color: rgba(15, 111, 106, 0.45); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2vw, 26px);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-2);
  transform: translateY(-4px);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
  white-space: nowrap;
}

.card-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.panel {
  padding: clamp(20px, 3vw, 34px);
  background: var(--sand);
  border-radius: var(--r-l);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate);
  background: transparent;
}

.tag-teal { color: var(--teal-ink); border-color: rgba(23, 195, 178, 0.6); background: rgba(23, 195, 178, 0.12); }
.tag-orange { color: var(--rust); border-color: rgba(255, 122, 47, 0.65); background: rgba(255, 122, 47, 0.14); }
.tag-rust { color: var(--rust); border-color: rgba(200, 69, 46, 0.5); background: rgba(200, 69, 46, 0.1); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate);
}

/* ---------- 9. 图片容器基础规则 ---------- */
.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.figure-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background-color: var(--ink);
  background-image:
    linear-gradient(140deg, rgba(14, 42, 58, 0.94) 0%, rgba(20, 59, 82, 0.9) 52%, rgba(15, 111, 106, 0.85) 100%),
    repeating-linear-gradient(to right, rgba(23, 195, 178, 0.18) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(23, 195, 178, 0.12) 0 1px, transparent 1px 40px);
}

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

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

.figure-frame--light {
  background-color: var(--cream-soft);
  background-image:
    linear-gradient(140deg, rgba(232, 227, 214, 0.9) 0%, rgba(245, 240, 230, 0.9) 100%),
    repeating-linear-gradient(to right, rgba(14, 42, 58, 0.1) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, rgba(14, 42, 58, 0.08) 0 1px, transparent 1px 32px);
}

.figure-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* ---------- 10. 动效保护 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

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

@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;
    scroll-behavior: auto !important;
  }

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

  .rail,
  .rail-scrim { transition: none; }

  .scroll-progress-bar { transition: none; }
}

/* 平板：轨道收起，顶部条全宽 */
@media (min-width: 640px) and (max-width: 1079px) {
  .topbar-inner { padding: 0 24px; }
  .brand-descriptor { display: block; }
}

/* 手机：压缩顶部条信息 */
@media (max-width: 639px) {
  body { font-size: 16px; }

  .topbar-inner { gap: 10px; padding: 0 16px; }

  .brand-descriptor { display: none; }

  .cta-quick { padding: 8px 12px; font-size: 13px; }

  .cta-quick-meta { display: none; }

  .rail-toggle-text { display: none; }

  .rail-toggle { padding: 9px 11px; }

  .container,
  .container-narrow { padding-inline: 18px; }

  .footer-inner { padding-inline: 18px; }
}
