/* ==========================================================================
   版本赛场 / 全站共享样式 · /assets/site.css
   赛场指挥中心：蓝图网格 + 双层导航 + 玻璃与实色并置
   ========================================================================== */

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

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

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

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

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

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

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

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

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

/* 2. Tokens
   ---------------------------------------------------------------------- */
:root {
  --navy-900: #071A2F;
  --navy-800: #0D2742;
  --navy-700: #123354;
  --mist: #F3F7FC;
  --blue: #2F7BFF;
  --blue-soft: rgba(47, 123, 255, 0.16);
  --orange: #FF6B1A;
  --orange-bright: #FF8340;
  --orange-soft: rgba(255, 107, 26, 0.16);
  --teal: #14C7A5;
  --sand: #D6B25E;
  --graphite: #1B2A3D;
  --ink-muted: #4A5C72;
  --line: #BCD0E6;
  --line-soft: rgba(188, 208, 230, 0.55);
  --line-dark: rgba(188, 208, 230, 0.16);
  --white: #FFFFFF;

  --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-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --wrap: 1240px;
  --pad-x: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 1.6vw, 24px);
  --section-y: clamp(56px, 7vw, 104px);
  --shadow-panel: 0 18px 40px -24px rgba(7, 26, 47, 0.45);
  --ease-out: cubic-bezier(0.22, 0.68, 0.28, 1);
}

/* 3. 中文排版与基础文本
   ---------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--graphite);
  background-color: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.35; }
h4 { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; }

p { max-width: 68ch; }
p + p { margin-top: 0.85em; }

strong { font-weight: 700; color: var(--navy-900); }

::selection { background: var(--orange); color: var(--navy-900); }

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

.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--orange); }

/* 4. 布局基础
   ---------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.section--dark {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(to right, rgba(188, 208, 230, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(188, 208, 230, 0.05) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  color: var(--mist);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section--dark p { color: rgba(243, 247, 252, 0.78); }

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

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

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

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

/* 5. 通用文字组件
   ---------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--ink-muted);
}

.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(20px, 3vw, 36px);
  background: linear-gradient(90deg, var(--line), rgba(188, 208, 230, 0));
}

/* 6. 按钮
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: var(--navy-900);
  box-shadow: 0 8px 20px -12px rgba(255, 107, 26, 0.9);
}

.btn--primary:hover { background: var(--orange-bright); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-900);
}

.btn--ghost:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.btn--quiet {
  background: rgba(47, 123, 255, 0.12);
  border-color: rgba(188, 208, 230, 0.35);
  color: var(--mist);
}

.btn--quiet:hover {
  background: rgba(47, 123, 255, 0.26);
  color: var(--white);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* 7. 内容面板与标签
   ---------------------------------------------------------------------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2vw, 28px);
  box-shadow: var(--shadow-panel);
}

.panel--glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(188, 208, 230, 0.22);
  color: var(--mist);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.tag--live {
  border-color: rgba(20, 199, 165, 0.5);
  background: rgba(20, 199, 165, 0.1);
  color: #0B8E76;
}

/* 8. 面包屑
   ---------------------------------------------------------------------- */
.breadcrumb {
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(243, 247, 252, 0.72);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

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

.breadcrumb__link { color: var(--blue); }

.breadcrumb__link:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

.breadcrumb__sep { color: var(--line); }

.breadcrumb__current {
  color: var(--graphite);
  font-weight: 600;
}

/* 9. 图片容器基础规则（共享头部/页脚不放图，供页面阶段使用）
   ---------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background-color: var(--mist);
  background-image:
    linear-gradient(135deg, rgba(47, 123, 255, 0.14), rgba(7, 26, 47, 0.08) 62%),
    repeating-linear-gradient(90deg, rgba(188, 208, 230, 0.7) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(188, 208, 230, 0.7) 0 1px, transparent 1px 32px);
}

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

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

.media--framed::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(188, 208, 230, 0.8);
  border-radius: 2px;
  pointer-events: none;
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* 10. 跳过链接
   ---------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease;
}

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

/* ==========================================================================
   11. 页头：双层指挥台
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--mist);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(to right, rgba(188, 208, 230, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(188, 208, 230, 0.06) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-position: center top;
  transition: box-shadow 0.25s ease;
}

.site-header[data-scrolled] {
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.95);
}

/* 阅读进度轨 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  background: rgba(188, 208, 230, 0.14);
  pointer-events: none;
}

.scroll-rail__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--orange));
  transition: width 0.1s linear;
}

/* 上层 */
.header-top { border-bottom: 1px solid var(--line-dark); }

.header-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  padding-block: 14px;
  transition: padding-block 0.25s ease;
}

.site-header[data-scrolled] .header-top__inner { padding-block: 9px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 2px;
  border-radius: var(--radius-sm);
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 178, 94, 0.55);
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(47, 123, 255, 0.38), rgba(7, 26, 47, 0.28));
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
}

.brand__mark::before {
  left: 8px;
  right: 8px;
  top: 19px;
  height: 2px;
  background: var(--orange);
  transform: skewY(-22deg);
}

.brand__mark::after {
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--teal);
  opacity: 0.9;
  transform: skewX(-22deg);
}

.brand:hover .brand__mark {
  border-color: var(--orange);
  background: linear-gradient(145deg, rgba(47, 123, 255, 0.5), rgba(7, 26, 47, 0.3));
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--white);
}

.brand__sub {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: rgba(243, 247, 252, 0.56);
}

.header-utility {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 30ch;
  padding-left: 18px;
  border-left: 1px solid var(--line-dark);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: rgba(243, 247, 252, 0.64);
}

.header-utility__dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(20, 199, 165, 0.4);
  border-radius: 999px;
  background: rgba(20, 199, 165, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
  white-space: nowrap;
}

.status-chip__led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: led-pulse 2.4s ease-in-out infinite;
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(20, 199, 165, 0.55); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(20, 199, 165, 0); }
}

.status-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(243, 247, 252, 0.48);
  white-space: nowrap;
}

/* 下层导轨 */
.header-nav {
  border-top: 1px solid var(--line-dark);
  background: rgba(13, 39, 66, 0.72);
}

.header-nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  min-height: 54px;
}

.nav-label {
  flex: 0 0 auto;
  padding-right: 18px;
  border-right: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(243, 247, 252, 0.38);
  white-space: nowrap;
}

.nav { flex: 1 1 auto; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(243, 247, 252, 0.78);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out);
}

.nav__link:hover {
  color: var(--white);
  background: rgba(47, 123, 255, 0.14);
}

.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--white);
  background: rgba(47, 123, 255, 0.2);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--orange);
}

.nav__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(214, 178, 94, 0.78);
  transform: translateY(-4px);
}

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

/* 移动端切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid rgba(188, 208, 230, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(47, 123, 255, 0.12);
  color: var(--mist);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover { background: rgba(47, 123, 255, 0.26); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.5px) 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(-4.5px) rotate(-45deg); }

/* ==========================================================================
   12. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: 6px;
  color: var(--mist);
  background-color: var(--navy-900);
  background-image:
    radial-gradient(120% 90% at 88% 0%, rgba(47, 123, 255, 0.24), rgba(7, 26, 47, 0) 62%),
    radial-gradient(90% 80% at 0% 100%, rgba(20, 199, 165, 0.14), rgba(7, 26, 47, 0) 66%),
    linear-gradient(to right, rgba(188, 208, 230, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(188, 208, 230, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--sand) 32%, var(--blue) 64%, rgba(47, 123, 255, 0) 92%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.2fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.footer-brand { min-width: 0; }

.footer-brand__word {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--white);
}

.footer-brand__word::before {
  content: "";
  width: 8px;
  height: 22px;
  background: var(--orange);
  transform: skewY(-14deg);
}

.footer-brand__meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(214, 178, 94, 0.72);
}

.footer-intro {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(243, 247, 252, 0.68);
}

.footer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed rgba(188, 208, 230, 0.2);
}

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

.footer-status__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(243, 247, 252, 0.42);
}

.footer-status__value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.footer-col { min-width: 0; }

.footer-col__title {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(188, 208, 230, 0.2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sand);
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: rgba(243, 247, 252, 0.74);
  transition: color 0.2s ease;
}

.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.22s var(--ease-out);
}

.footer-link:hover { color: var(--white); }
.footer-link:hover::before { width: 12px; }

.contact-list {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 10px;
  border-bottom: 1px dashed rgba(188, 208, 230, 0.18);
}

.contact-row:last-child { border-bottom: 0; }

.contact-row__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(243, 247, 252, 0.42);
}

.contact-row__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.copy-btn {
  padding: 2px 8px;
  border: 1px solid rgba(188, 208, 230, 0.32);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(243, 247, 252, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

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

.copy-btn[data-copied="true"] {
  border-color: rgba(20, 199, 165, 0.7);
  background: rgba(20, 199, 165, 0.14);
  color: var(--teal);
}

.copy-btn[data-copied="false"] {
  border-color: rgba(255, 107, 26, 0.7);
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(24px, 3.4vw, 40px);
  padding-block: 18px;
  border-top: 1px solid rgba(188, 208, 230, 0.16);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(243, 247, 252, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(243, 247, 252, 0.45);
}

.footer-legal__link {
  color: rgba(243, 247, 252, 0.62);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal__link:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.footer-legal__icp { color: rgba(243, 247, 252, 0.4); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(188, 208, 230, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(243, 247, 252, 0.76);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.to-top:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--navy-900);
}

/* ==========================================================================
   13. 滚动显现协议
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ==========================================================================
   14. 响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .header-utility { display: none; }
  .header-status { margin-left: auto; }
  .nav__link { padding: 9px 11px; font-size: 13px; }
  .nav-label { padding-right: 12px; letter-spacing: 0.14em; }
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-intro { max-width: 52ch; }
}

@media (max-width: 900px) {
  .header-top__inner { flex-wrap: wrap; gap: 12px; }
  .header-status { gap: 10px; }
  .status-meta { display: none; }
  .header-nav__inner { flex-wrap: wrap; min-height: 0; padding-block: 10px; gap: 12px; }
  .nav-label { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    flex-basis: 100%;
    display: none;
  }
  .site-header[data-open] .nav { display: block; }
  .nav__list {
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line-dark);
  }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 10px;
    font-size: 15px;
  }
  .nav__link::after { display: none; }
  .nav__idx { order: 2; transform: none; }
}

@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__mark::before { top: 16px; left: 7px; right: 7px; }
  .brand__mark::after { left: 16px; top: 7px; bottom: 7px; }
  .brand__name { font-size: 17px; }
  .brand__sub { font-size: 10px; }
  .status-chip { font-size: 10px; padding: 5px 10px; }
  .header-status .btn--sm { padding: 7px 11px; font-size: 11px; }
  .section { padding-block: clamp(40px, 9vw, 64px); }
  .footer-status { gap: 16px; }
  .footer-legal { gap: 10px; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .status-chip { display: none; }
}

/* ==========================================================================
   15. 减少动态
   ========================================================================== */
@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;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-rail__bar { transition: none; }
}
