/* =========================================================
   亿博赛场 · 共享站点样式  /assets/site.css
   深墨蓝底 + 荧光青强调 + 琥珀金晋级 + 玫红警示 + 暖纸色面板
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 64px) + 20px);
}

body, h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote, address {
  margin: 0;
}
ul, ol { padding: 0; 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; }
[hidden] { display: none !important; }
[data-search-hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink-900: #0B1A2E;
  --ink-800: #12283F;
  --ink-700: #17324F;
  --cyan: #35E8D2;
  --cyan-soft: #A9F4EA;
  --amber: #F5B443;
  --rose: #FF4D7E;
  --paper: #F2E9DA;
  --paper-edge: #C9BFAE;
  --ink-text: #14202E;
  --mist: #7C8DA3;

  --fg: #E6EEF7;
  --fg-soft: #AFC0D2;

  --line: rgba(124, 141, 163, 0.28);
  --line-cyan: rgba(53, 232, 210, 0.20);

  /* 尺寸 */
  --header-h: 64px;
  --rail-w: 64px;
  --wrap: 1200px;
  --wrap-wide: 1440px;
  --gap: clamp(16px, 2.4vw, 28px);
  --pad-y: clamp(48px, 7vw, 96px);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-score: "Arial Narrow", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --radius: 2px;
  --shadow-paper: 0 22px 44px -28px rgba(0, 0, 0, 0.8);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-left: var(--rail-w);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 560px at 82% -10%, rgba(53, 232, 210, 0.10), transparent 62%),
    radial-gradient(880px 520px at 4% 16%, rgba(245, 180, 67, 0.07), transparent 64%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

strong { font-weight: 700; color: var(--cyan-soft); }

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

/* ---------- 4. 焦点与跳转 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.paper :focus-visible,
.panel--paper :focus-visible {
  outline-color: var(--ink-text);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}
.container--wide { max-width: var(--wrap-wide); }

.section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.section--tight { padding-top: calc(var(--pad-y) * 0.55); padding-bottom: calc(var(--pad-y) * 0.55); }

.grid { display: grid; gap: var(--gap); }
.stack > * + * { margin-top: var(--gap); }

/* ---------- 6. 文本层 ---------- */
.title-xl {
  font-size: clamp(30px, 5.4vw, 58px);
  font-style: italic;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.title-lg {
  font-size: clamp(24px, 3.4vw, 36px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.005em;
}
.title-md {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
}
.lede {
  max-width: 58ch;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.72;
  color: var(--fg-soft);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.score {
  font-family: var(--font-score);
  font-stretch: condensed;
  font-size: clamp(30px, 6vw, 62px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--cyan);
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-soft);
}
.prose h2, .prose h3, .prose h4 { color: var(--fg); }
.prose h2 { font-size: clamp(21px, 2.4vw, 27px); margin-top: 1.6em; }
.prose h3 { font-size: clamp(17px, 1.9vw, 20px); margin-top: 1.4em; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { display: grid; gap: 0.55em; margin-top: 1em; }
.prose ul li { position: relative; padding-left: 1.25em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  background: var(--cyan);
}
.prose ol { counter-reset: prose-ol; }
.prose ol li { position: relative; padding-left: 1.8em; counter-increment: prose-ol; }
.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}
.paper .prose { color: rgba(20, 32, 46, 0.82); }
.paper .prose h2, .paper .prose h3, .paper .prose h4 { color: var(--ink-text); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cyan); color: var(--ink-900); }
.btn--primary:hover { background: var(--cyan-soft); }
.btn--amber { background: var(--amber); color: var(--ink-900); }
.btn--amber:hover { background: #FFC863; }
.btn--ghost { border-color: rgba(53, 232, 210, 0.5); color: var(--cyan); }
.btn--ghost:hover { background: rgba(53, 232, 210, 0.12); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(124, 141, 163, 0.55);
}
.breadcrumb a { color: var(--fg-soft); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }

/* ---------- 9. 面板与标签 ---------- */
.paper {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper);
  color: var(--ink-text);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
}
.paper h2, .paper h3, .paper h4 { color: var(--ink-text); }
.paper a { color: var(--ink-text); border-bottom: 1px solid rgba(20, 32, 46, 0.35); }
.paper a:hover { border-bottom-color: var(--ink-text); }
.paper--stack::before {
  content: "";
  position: absolute;
  inset: 7px -7px -7px 7px;
  z-index: -1;
  background: rgba(242, 233, 218, 0.42);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
}

.panel {
  padding: clamp(18px, 2.6vw, 28px);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--cyan { border-color: rgba(53, 232, 210, 0.42); }
.panel--amber { border-color: rgba(245, 180, 67, 0.42); }

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(53, 232, 210, 0.07);
  border: 1px solid rgba(53, 232, 210, 0.42);
  border-radius: var(--radius);
}
.index-tag--amber {
  color: var(--amber);
  background: rgba(245, 180, 67, 0.08);
  border-color: rgba(245, 180, 67, 0.45);
}
.index-tag--rose {
  color: var(--rose);
  background: rgba(255, 77, 126, 0.08);
  border-color: rgba(255, 77, 126, 0.45);
}

.color-band {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 40%,
    var(--amber) 40% 76%,
    var(--rose) 76% 100%
  );
}
.section-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- 10. 表格 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  min-height: 40px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  background: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 232, 210, 0.35);
}
.data-table tbody tr:nth-child(even) { background: rgba(169, 244, 234, 0.05); }
.data-table tbody tr:hover { background: rgba(53, 232, 210, 0.10); }
.data-table caption {
  padding: 0 0 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* ---------- 11. 图片容器 ---------- */
.figure {
  display: block;
  margin: 0;
}
.figure__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }

/* ---------- 12. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
}

.header-bar {
  background: rgba(11, 26, 46, 0.96);
  border-bottom: 1px solid var(--line-cyan);
}
.header-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  max-width: var(--wrap-wide);
  height: 64px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.4vw, 28px);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--cyan);
  color: var(--ink-900);
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}
.brand__name {
  font-size: 16px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--fg);
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.brand--wide .brand__name { font-size: 17px; }

/* 主栏目导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.site-nav__head { display: none; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.site-nav__item { display: block; }
.site-nav__link {
  display: block;
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-nav__link:hover {
  color: var(--cyan-soft);
  background: rgba(53, 232, 210, 0.08);
}
.site-nav__link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--cyan);
  font-weight: 700;
}

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-soft);
  border: 1px solid rgba(124, 141, 163, 0.4);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.tool-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(53, 232, 210, 0.08);
}
.tool-btn--accent {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-900);
  font-weight: 700;
}
.tool-btn--accent:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  color: var(--cyan);
  border: 1px solid rgba(53, 232, 210, 0.42);
  border-radius: var(--radius);
}
.nav-toggle:hover { background: rgba(53, 232, 210, 0.1); }
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* 站内搜索 */
.site-search {
  padding: 14px clamp(14px, 2.4vw, 28px) 16px;
  background: var(--ink-800);
  border-top: 1px solid var(--line-cyan);
}
.site-search__label {
  display: block;
  max-width: var(--wrap-wide);
  margin: 0 auto 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.site-search__field {
  max-width: var(--wrap-wide);
  margin: 0 auto;
}
.site-search__input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--ink-900);
  color: var(--fg);
  font-size: 15px;
  border: 1px solid rgba(124, 141, 163, 0.45);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-search__input::placeholder { color: var(--mist); }
.site-search__input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 232, 210, 0.18);
}
.site-search__hint {
  max-width: var(--wrap-wide);
  margin: 8px auto 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mist);
}

/* 左侧轮次竖条 */
.round-rail {
  position: fixed;
  left: 0;
  top: var(--header-h);
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: var(--rail-w);
  padding: 14px 0 18px;
  background: linear-gradient(180deg, rgba(18, 40, 63, 0.97), rgba(11, 26, 46, 0.97));
  border-right: 1px solid var(--line-cyan);
}
.round-rail__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mist);
  writing-mode: vertical-rl;
}
.round-rail__track {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}
.round-rail__track::-webkit-scrollbar { display: none; }

.round-chip {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 46px;
  padding: 6px 0;
  color: var(--fg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.round-chip:hover {
  color: var(--cyan-soft);
  background: rgba(53, 232, 210, 0.08);
  border-color: rgba(53, 232, 210, 0.28);
}
.round-chip__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--mist);
}
.round-chip__name {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}
.round-chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
}
.round-chip[aria-pressed="true"] .round-chip__idx { color: rgba(11, 26, 46, 0.7); }

.round-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--amber) 0 68%, rgba(124, 141, 163, 0.22) 0);
}
.round-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 0;
  border-radius: 50%;
  background: var(--ink-900);
}
.round-ring__num {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--amber);
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--ink-800);
  border-top: 1px solid var(--line-cyan);
}
.footer-band {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 38%,
    var(--amber) 38% 74%,
    var(--rose) 74% 100%
  );
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.6fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 32px);
}
.footer-brand__note {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-soft);
}
.footer-brand__data {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--amber);
  border: 1px solid rgba(245, 180, 67, 0.45);
  border-radius: var(--radius);
}
.footer-col__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-col__list {
  display: grid;
  gap: 8px;
}
.footer-col__list a {
  font-size: 13.5px;
  color: var(--fg-soft);
  transition: color 0.2s var(--ease);
}
.footer-col__list a:hover { color: var(--cyan); }

.footer-contact__list {
  display: grid;
  gap: 8px;
  font-style: normal;
}
.footer-contact__item {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--fg-soft);
  word-break: break-word;
}
.footer-contact__note {
  max-width: 36ch;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-base {
  border-top: 1px solid var(--line);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 32px) 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-base__links a { color: var(--mist); transition: color 0.2s var(--ease); }
.footer-base__links a:hover { color: var(--cyan); }

/* ---------- 14. 滚动交互件 ---------- */
.scroll-meter {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  top: var(--header-h);
  z-index: 80;
  height: 3px;
  background: rgba(53, 232, 210, 0.12);
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: var(--ink-800);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(53, 232, 210, 0.45);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s var(--ease), background-color 0.2s var(--ease);
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { background: rgba(53, 232, 210, 0.14); }

/* ---------- 15. 显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
.has-js.reduce-motion [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 96px;
    --rail-w: 0px;
  }

  body { padding-left: 0; }

  .header-bar__inner { height: 56px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: min(320px, 86vw);
    padding: calc(var(--header-h) + 16px) 22px 28px;
    background: var(--ink-800);
    border-left: 1px solid rgba(53, 232, 210, 0.24);
    box-shadow: -28px 0 52px -28px rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.32s var(--ease);
  }
  .site-nav[data-open] { transform: translateX(0); }

  .site-nav__head {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--mist);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
  }
  .site-nav__link {
    padding: 12px 14px;
    font-size: 16px;
    border-bottom: 1px solid rgba(124, 141, 163, 0.18);
  }

  .round-rail {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    height: 40px;
    padding: 0 clamp(14px, 2.4vw, 28px);
    background: var(--ink-800);
    border-right: 0;
    border-top: 1px solid var(--line-cyan);
  }
  .round-rail__caption {
    writing-mode: horizontal-tb;
    letter-spacing: 0.18em;
  }
  .round-rail__track {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .round-chip {
    flex-direction: row;
    gap: 6px;
    width: auto;
    padding: 5px 10px;
  }
  .round-chip__name {
    writing-mode: horizontal-tb;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .round-ring {
    width: 28px;
    height: 28px;
  }
  .round-ring::after { inset: 4px; }
  .round-ring__num { font-size: 9px; }
}

@media (max-width: 720px) {
  .data-table { min-width: 560px; }
  .footer-base__inner { justify-content: flex-start; }
  .footer-base__links { gap: 12px; }
}

@media (max-width: 640px) {
  .brand__line { display: none; }
  .brand__name { font-size: 15px; }
  .brand__mark { width: 30px; height: 30px; font-size: 16px; }
  .title-xl { letter-spacing: 0; }
}

@media (max-width: 480px) {
  .tool-btn--accent { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .site-nav { transition: none; }
}
