/* ==========================================================================
   半岛体赛事 · 共享外壳样式  /assets/site.css
   1 Reset · 2 Tokens · 3 中文排版 · 4 容器与网格 · 5 通用组件
   6 命令栏头部 · 7 页脚 · 8 工具类 · 9 响应式 · 10 动效与可访问性
   ========================================================================== */

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

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

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

ul, ol { margin: 0; padding: 0; }

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

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

img { height: auto; }

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

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

/* ----------------------------------------------------------------- 2 Tokens */
:root {
  --abyss-900: #08192B;
  --abyss-700: #11314A;
  --signal-500: #23E0C4;
  --signal-100: #C8F7EE;
  --sunset-500: #FF7A45;
  --sunset-100: #FFE0D2;
  --chart-600: #6E8296;
  --chart-300: #B9C7D4;
  --paper-50: #F7F9FB;
  --ink-900: #101820;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-num: "Archivo Narrow", "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --header-h: 78px;
  --header-h-compact: 58px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --shadow-soft: 0 18px 40px -32px rgba(8, 25, 43, .55);
  --hairline-dark: rgba(200, 247, 238, .14);
  --hairline-light: rgba(17, 49, 74, .12);

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------ 3 基础与排版 */
body {
  background-color: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink-900);
}

h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 25px); }
h4 { font-size: 17px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

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

strong, b { font-weight: 700; }

::selection {
  background: var(--signal-100);
  color: var(--abyss-900);
}

.num,
.stat__value,
[data-num] {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}

/* ---------------------------------------------------------- 4 容器与网格 */
.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap { width: min(100% - 56px, var(--wrap)); }
}

.section { padding-block: clamp(56px, 7vw, var(--space-6)); }
.section--tight { padding-block: clamp(32px, 4vw, var(--space-5)); }

.section--dark {
  background-color: var(--abyss-900);
  color: var(--paper-50);
}

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

.section--deep {
  background-color: var(--abyss-700);
  color: var(--paper-50);
}

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

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

.section-head { max-width: 760px; }

.section-head--wide { max-width: 900px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--chart-600);
}

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

.section--dark .eyebrow,
.section--deep .eyebrow { color: var(--signal-500); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 14px;
  color: var(--ink-900);
}

.section--dark .section-title,
.section--deep .section-title { color: var(--paper-50); }

.section-lead {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--abyss-700);
}

.section--dark .section-lead,
.section--deep .section-lead { color: var(--chart-300); }

.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.85;
}

.prose p { margin-bottom: 1.15em; }

.prose a {
  color: var(--abyss-700);
  text-decoration: underline;
  text-decoration-color: var(--signal-500);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.prose a:hover { color: var(--abyss-900); }

.section--dark .prose,
.section--deep .prose { color: var(--chart-300); }

.section--dark .prose a,
.section--deep .prose a {
  color: var(--signal-500);
  text-decoration-color: var(--signal-500);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, var(--space-3));
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--split { grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

/* ------------------------------------------------------------ 5 通用组件 */
.btn {
  --btn-bg: var(--abyss-900);
  --btn-fg: var(--paper-50);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s var(--ease-out);
}

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

.btn--signal { --btn-bg: var(--signal-500); --btn-fg: var(--abyss-900); }
.btn--signal:hover { --btn-bg: var(--signal-100); }

.btn--sunset { --btn-bg: var(--sunset-500); --btn-fg: #3D1400; }
.btn--sunset:hover { --btn-bg: var(--sunset-100); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--paper-50);
  --btn-bd: rgba(200, 247, 238, .34);
}
.btn--outline:hover {
  --btn-bg: rgba(35, 224, 196, .12);
  --btn-bd: var(--signal-500);
}

.btn--sm { padding: 8px 15px; font-size: 12.5px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background-color: var(--signal-100);
  color: var(--abyss-900);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--signal { background-color: var(--signal-100); color: var(--abyss-900); }
.tag--sunset { background-color: var(--sunset-100); color: #7A2E0B; }
.tag--chart { background-color: rgba(185, 199, 212, .3); color: var(--abyss-700); }

.section--dark .tag--chart,
.section--deep .tag--chart {
  background-color: rgba(110, 130, 150, .26);
  color: var(--chart-300);
}

.section--dark .tag--signal,
.section--deep .tag--signal {
  background-color: rgba(35, 224, 196, .16);
  color: var(--signal-500);
  border-color: rgba(35, 224, 196, .4);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--chart-600);
}

.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--chart-300);
}

.crumbs a { color: var(--chart-600); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--abyss-900); border-bottom-color: var(--signal-500); }

.section--dark .crumbs,
.section--deep .crumbs { color: var(--chart-300); }
.section--dark .crumbs a,
.section--deep .crumbs a { color: var(--chart-300); }
.section--dark .crumbs a:hover,
.section--deep .crumbs a:hover { color: var(--paper-50); }

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

.stat__value {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--abyss-900);
}

.stat__label {
  font-size: 12px;
  letter-spacing: .09em;
  color: var(--chart-600);
}

.section--dark .stat__value,
.section--deep .stat__value { color: var(--paper-50); }

.section--dark .stat__label,
.section--deep .stat__label { color: var(--chart-300); }

.section--dark .stat--signal .stat__value,
.section--deep .stat--signal .stat__value { color: var(--signal-500); }

.section--dark .stat--sunset .stat__value,
.section--deep .stat--sunset .stat__value { color: var(--sunset-500); }

/* 回访评测卡 */
.log-card {
  position: relative;
  background-color: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px 22px 28px;
  box-shadow: var(--shadow-soft);
}

.log-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background-color: var(--signal-500);
}

.log-card--sunset::before { background-color: var(--sunset-500); }

.log-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.log-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
}

.log-card__meta {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--chart-600);
}

.log-card__body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.8;
  color: var(--abyss-700);
}

.log-card__more {
  display: none;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--abyss-700);
}

.log-card.is-open .log-card__body {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.log-card.is-open .log-card__more { display: block; }

.log-card__toggle { margin-top: 14px; }

/* 可折叠面板 */
.fold {
  background-color: var(--abyss-700);
  color: var(--paper-50);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fold__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  cursor: pointer;
}

.fold__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--signal-500);
  box-shadow: 0 0 0 4px rgba(35, 224, 196, .18);
}

.fold__body {
  display: grid;
  grid-template-rows: 1fr;
  padding-inline: 20px;
  transition: grid-template-rows .22s ease-out, opacity .22s ease-out;
}

.fold[data-collapsed="true"] .fold__body {
  grid-template-rows: 0fr;
  opacity: 0;
}

.fold__inner {
  overflow: hidden;
  padding-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--chart-300);
}

/* 行内文字开关 */
.link-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--signal-500);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--abyss-900);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.link-toggle:hover { border-bottom-color: var(--sunset-500); }

.link-toggle--on-dark { color: var(--paper-50); }

/* 图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background-color: var(--abyss-900);
  background-image: linear-gradient(150deg, var(--abyss-700), var(--abyss-900));
  aspect-ratio: 16 / 9;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(185, 199, 212, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 199, 212, .12) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 18px 14px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--paper-50);
  background-image: linear-gradient(to top, rgba(8, 25, 43, .88), rgba(8, 25, 43, 0));
}

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

/* 横向主题带 */
.theme-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 5vw, 64px);
  background-color: var(--abyss-900);
  color: var(--paper-50);
}

.theme-band::before,
.theme-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.theme-band::before {
  top: -70px;
  right: -60px;
  width: min(340px, 60vw);
  height: 220px;
  border-radius: 44px;
  background-color: rgba(35, 224, 196, .14);
  transform: rotate(-8deg);
}

.theme-band::after {
  bottom: -80px;
  left: 6%;
  width: min(260px, 50vw);
  height: 200px;
  border-radius: 38px;
  background-color: rgba(255, 122, 69, .13);
  transform: rotate(6deg);
}

.theme-band__inner { position: relative; }

.theme-band__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper-50);
  max-width: 26ch;
}

.theme-band .section-lead { color: var(--chart-300); }

/* --------------------------------------------------------- 6 命令栏头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: var(--abyss-900);
  color: var(--paper-50);
  border-bottom: 1px solid var(--hairline-dark);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 10px;
  transition: min-height .22s ease-out, padding .22s ease-out;
}

@media (min-width: 768px) {
  .site-header__inner { width: min(100% - 56px, var(--wrap)); }
}

.site-header.is-compact .site-header__inner {
  min-height: var(--header-h-compact);
  padding-block: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background-color: var(--signal-500);
  color: var(--abyss-900);
  font-size: 14px;
  font-weight: 700;
  transition: top .18s ease-out;
}

.skip-link:focus { top: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--paper-50);
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px 6px 14px 6px;
  background-color: var(--signal-500);
  color: var(--abyss-900);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-4deg);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
}

.brand__sub {
  display: block;
  max-height: 1.6em;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .05em;
  color: var(--chart-300);
  transition: opacity .2s ease-out, max-height .22s ease-out;
}

.site-header.is-compact .brand__sub {
  opacity: 0;
  max-height: 0;
}

.cmd-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.cmd-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cmd-nav__item { display: block; }

.cmd-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--chart-300);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.cmd-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--signal-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease-out);
}

.cmd-nav__link:hover {
  color: var(--paper-50);
  background-color: rgba(35, 224, 196, .08);
}

.cmd-nav__link:hover::after { transform: scaleX(.45); }

.cmd-nav__link[aria-current="page"] {
  color: var(--paper-50);
  font-weight: 700;
}

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

.cmd-nav__index {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--chart-600);
  transition: color .18s ease;
}

.cmd-nav__link:hover .cmd-nav__index,
.cmd-nav__link[aria-current="page"] .cmd-nav__index { color: var(--signal-500); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background-color: transparent;
  border: 1px solid rgba(200, 247, 238, .3);
  border-radius: 10px;
  color: var(--paper-50);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--signal-500); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background-color: var(--signal-500);
  transition: transform .2s ease-out, opacity .2s ease-out;
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { letter-spacing: .06em; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background-image: linear-gradient(90deg, var(--signal-500), var(--sunset-500));
  transition: width .12s linear;
}

/* ----------------------------------------------------------------- 7 页脚 */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 72px) 28px;
  background-color: var(--abyss-900);
  color: var(--chart-300);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -200px;
  z-index: -1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background-image: radial-gradient(circle at 32% 32%, rgba(35, 224, 196, .16), rgba(35, 224, 196, 0) 62%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline-dark);
}

@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1.75fr; gap: 48px; }
}

.footer-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px 5px 12px 5px;
  background-color: var(--signal-500);
  color: var(--abyss-900);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  transform: rotate(-4deg);
}

.footer-brand__name {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--paper-50);
}

.footer-brand__line {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--chart-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 620px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col__title {
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--signal-500);
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-list a {
  color: var(--chart-300);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-list a:hover {
  color: var(--paper-50);
  border-bottom-color: var(--signal-500);
}

.footer-list--plain { color: var(--chart-300); }

.footer-base {
  display: grid;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  line-height: 1.85;
}

.footer-contact { color: var(--chart-300); }

.footer-note { color: rgba(185, 199, 212, .82); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-dark);
  font-size: 12.5px;
  color: rgba(185, 199, 212, .8);
}

.footer-legal__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal__links a {
  color: var(--paper-50);
  border-bottom: 1px solid rgba(35, 224, 196, .5);
}

.footer-legal__links a:hover { border-bottom-color: var(--sunset-500); }

/* --------------------------------------------------------------- 8 工具类 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background-color: var(--abyss-900);
  color: var(--signal-500);
  border: 1px solid rgba(35, 224, 196, .42);
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background-color: var(--abyss-700); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- 9 响应式 */
@media (max-width: 1140px) {
  .cmd-nav__link { padding: 10px 9px; font-size: 12.5px; }
  .cmd-nav__link::after { left: 9px; right: 9px; }
  .cmd-nav__index { display: none; }
}

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

  .header-tools .btn--outline { display: none; }

  .cmd-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    display: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 6px 16px 20px;
    background-color: var(--abyss-900);
    border-bottom: 1px solid var(--hairline-dark);
    box-shadow: 0 26px 44px -26px rgba(8, 25, 43, .95);
  }

  .site-header[data-open] .cmd-nav,
  [data-nav][data-open] { display: block; }

  .cmd-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .cmd-nav__link {
    padding: 14px 6px;
    border-bottom: 1px solid rgba(200, 247, 238, .08);
    border-radius: 0;
    font-size: 14px;
  }

  .cmd-nav__link::after {
    left: 6px;
    right: auto;
    width: 26px;
    bottom: 8px;
  }

  .cmd-nav__index { display: inline; font-size: 12px; }

  .site-header.is-compact .site-header__inner {
    min-height: var(--header-h);
    padding-block: 10px;
  }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .brand__sub { display: none; }
  .brand__mark { width: 36px; height: 36px; font-size: 17px; border-radius: 12px 5px 12px 5px; }
  .brand__name { font-size: 15.5px; }
  .to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; }
}

/* ----------------------------------------------- 10 聚焦、动效、可访问性 */
:focus-visible {
  outline: 2px solid var(--signal-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.section--dark :focus-visible,
.section--deep :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--signal-500);
  outline-offset: 3px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }

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

  .to-top { transform: none; }
  .btn:hover { transform: none; }
}
