/* ============================================================
   完美体育 · 共享样式表 /assets/site.css
   深靛冰面 + 切角面板 + 等宽索引
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色板 */
  --ink: #0A1633;
  --ink-soft: #0d1f42;
  --ice: #7FD4FF;
  --ice-deep: #184A7A;
  --neon: #2BF5D0;
  --amber: #FF7A2F;
  --amber-hi: #FF9057;
  --ice-white: #EAF4FF;
  --silver: #9FB3CC;
  --void: #050B18;
  --mint: #B8FFF0;

  /* 线与面 */
  --line: rgba(127, 212, 255, .20);
  --line-strong: rgba(43, 245, 208, .55);
  --surface: rgba(24, 74, 122, .55);
  --surface-2: rgba(5, 11, 24, .92);

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --shell-max: 1240px;
  --cut: 20px;
  --cut-sm: 12px;
  --gap: 24px;

  /* 动效 */
  --dur: 160ms;
  --dur-slow: 360ms;
  --ease: cubic-bezier(.3, .9, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100%;
  color: var(--ice-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(127, 212, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 212, 255, .045) 1px, transparent 1px),
    radial-gradient(1200px 620px at 84% -12%, rgba(43, 245, 208, .10), transparent 62%),
    radial-gradient(980px 560px at 4% 18%, rgba(24, 74, 122, .55), transparent 66%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ice-white);
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6.4vw, 76px); }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }

p { max-width: 38em; }

strong { font-weight: 700; color: var(--ice-white); }

code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }

::selection {
  background: var(--neon);
  color: var(--void);
}

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 120;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--void);
  background: var(--neon);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: top var(--dur) var(--ease);
}

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

/* ---------- 5. 布局 ---------- */
#main-content {
  display: block;
  padding-top: 112px;
}

.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.section__title {
  margin: 0;
}

.section__lede {
  max-width: 36em;
  margin-top: 12px;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.75;
}

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

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

.grid-aside > .col-index {
  grid-column: 1 / span 2;
  position: sticky;
  top: 110px;
  align-self: start;
}

.grid-aside > .col-main {
  grid-column: 3 / span 10;
  min-width: 0;
}

/* ---------- 6. 文字元件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--neon);
  transform: skewX(-32deg);
}

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

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(127, 212, 255, .14);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.tag--neon {
  color: var(--void);
  background: var(--neon);
}

.tag--amber {
  color: var(--void);
  background: var(--amber);
}

.data-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--neon);
  background: rgba(43, 245, 208, .10);
  border-left: 2px solid var(--neon);
}

.rule-slash {
  height: 3px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, var(--neon), var(--ice) 42%, rgba(127, 212, 255, 0) 100%);
  transform: skewX(-28deg) scaleY(.4);
  transform-origin: left center;
}

/* ---------- 7. 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ice-white);
  text-decoration: none;
  background: rgba(127, 212, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn:hover {
  color: var(--mint);
  background: rgba(43, 245, 208, .16);
  box-shadow: inset 0 0 0 1px rgba(184, 255, 240, .8);
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--neon);
}

.btn--accent {
  color: var(--void);
  background: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber);
}

.btn--accent:hover {
  color: var(--void);
  background: var(--amber-hi);
  box-shadow: inset 0 0 0 1px var(--mint);
}

.btn--ghost {
  color: var(--ice);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover {
  color: var(--ice-white);
  background: rgba(127, 212, 255, .12);
  box-shadow: inset 0 0 0 1px var(--ice);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--mint);
  text-decoration: none;
  background-image: linear-gradient(var(--neon), var(--neon));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: color var(--dur) var(--ease), background-size var(--dur) var(--ease);
}

.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover {
  color: var(--ice-white);
  background-size: 100% 2px;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- 8. 面板与数据元件 ---------- */
.panel {
  position: relative;
  padding: 26px 24px;
  background:
    linear-gradient(158deg, rgba(24, 74, 122, .78), rgba(10, 22, 51, .94));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.panel:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.panel--cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.panel--ice {
  background: linear-gradient(158deg, rgba(127, 212, 255, .20), rgba(24, 74, 122, .82));
  box-shadow: inset 0 0 0 1px rgba(127, 212, 255, .38);
}

.panel__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
}

.panel__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
}

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

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ice-white);
  font-variant-numeric: tabular-nums;
}

.stat__value--neon { color: var(--neon); }
.stat__value--amber { color: var(--amber); }

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------- 9. 图片容器（页面阶段放图用） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 86% at 18% 8%, rgba(127, 212, 255, .30), transparent 62%),
    linear-gradient(152deg, var(--ice-deep), var(--void));
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.08);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(5, 11, 24, .30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 11, 24, .30) 1px, transparent 1px);
  background-size: 32px 32px;
}

.media-frame__label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 16px 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--void);
  background: var(--neon);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

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

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

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

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--ice);
}

.breadcrumb__link {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb__link:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.breadcrumb__current {
  color: var(--ice-white);
}

/* ---------- 11. 章节索引（data-spy） ---------- */
[data-spy] {
  display: block;
  padding: 7px 10px 7px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--silver);
  text-decoration: none;
  border-left: 2px solid rgba(127, 212, 255, .25);
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

[data-spy]:hover {
  color: var(--ice-white);
  border-left-color: var(--ice);
  background: rgba(127, 212, 255, .10);
}

[data-spy][data-active="true"] {
  color: var(--void);
  background: var(--neon);
  border-left-color: var(--neon);
  font-weight: 700;
}

/* ---------- 12. 显现 ---------- */
html[data-motion="on"] [data-reveal] {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}

html[data-motion="on"] [data-reveal="shown"] {
  opacity: 1;
}

/* ---------- 13. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 16px 20px 0;
  pointer-events: none;
  transition: padding var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] {
  padding-top: 8px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--ice));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.header-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 10px 16px 10px 20px;
  pointer-events: auto;
  background: rgba(10, 22, 51, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(127, 212, 255, .22),
              0 18px 48px -26px rgba(0, 0, 0, .92);
  clip-path: polygon(16px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 16px);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] .header-capsule {
  background: rgba(10, 22, 51, .60);
  box-shadow: inset 0 0 0 1px rgba(43, 245, 208, .34),
              0 14px 38px -24px rgba(0, 0, 0, .88);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ice-white);
  transition: color var(--dur) var(--ease);
}

.brand__mark::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 9px;
  background: var(--amber);
  transform: skewX(-20deg) translateY(-1px);
  transition: background-color var(--dur) var(--ease);
}

.brand:hover .brand__mark { color: var(--mint); }
.brand:hover .brand__mark::after { background: var(--neon); }

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--silver);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  color: var(--ice-white);
  background: rgba(127, 212, 255, .14);
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle:hover { background: rgba(43, 245, 208, .22); }

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--neon);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  margin-left: auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--ice-white);
  background: rgba(127, 212, 255, .14);
}

.site-nav__link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--neon);
}

.site-nav__link[aria-current="page"] {
  color: var(--void);
  background: var(--neon);
  font-weight: 700;
}

.header-utility__link {
  flex: 0 0 auto;
  margin-left: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--amber);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 47, .55);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.header-utility__link:hover {
  color: var(--void);
  background: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 112px);
  color: var(--silver);
  font-size: 14px;
  background-image:
    radial-gradient(92% 120% at 100% 0%, rgba(24, 74, 122, .62), transparent 62%),
    linear-gradient(180deg, var(--void), #03070f);
  border-top: 1px solid rgba(127, 212, 255, .16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .75fr .75fr .75fr 1.4fr;
  gap: 44px 28px;
  padding-block: clamp(44px, 6vw, 68px) 48px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.footer-brand__mark {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ice-white);
}

.footer-brand__line {
  max-width: 32ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-brand__line--dim {
  color: rgba(159, 179, 204, .72);
  font-size: 13px;
}

.footer-brand .btn { margin-top: 16px; }

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ice);
}

.footer-col__list {
  display: grid;
  gap: 9px;
}

.footer-col__link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--silver);
  text-decoration: none;
  background-image: linear-gradient(var(--neon), var(--neon));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color var(--dur) var(--ease), background-size var(--dur) var(--ease);
}

.footer-col__link:hover {
  color: var(--mint);
  background-size: 100% 1px;
}

.footer-contact__list {
  display: grid;
  gap: 12px;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--neon);
}

.footer-contact__value {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ice-white);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 22px 32px;
  border-top: 1px solid rgba(127, 212, 255, .14);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(159, 179, 204, .85);
}

.footer-icp {
  margin: 0;
  color: var(--ice);
}

.footer-bottom__meta {
  margin: 0;
}

.footer-note {
  flex: 1 1 300px;
  max-width: 46em;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: rgba(159, 179, 204, .7);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-brand__line { max-width: 46ch; }
}

@media (max-width: 1024px) {
  .site-nav__link { padding: 9px 10px; font-size: 13.5px; }
  .grid-aside { gap: 24px; }
  .grid-aside > .col-index { grid-column: 1 / span 3; }
  .grid-aside > .col-main { grid-column: 4 / span 9; }
}

@media (max-width: 960px) {
  #main-content { padding-top: 96px; }

  .site-header { padding: 12px 14px 0; }

  .header-capsule {
    gap: 12px;
    padding: 10px 12px 10px 16px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(5, 11, 24, .96);
    clip-path: none;
    border-radius: 14px;
  }

  .site-header[data-scrolled="true"] .header-capsule {
    background: rgba(5, 11, 24, .86);
  }

  .brand__tagline { display: none; }

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

  .header-utility__link {
    margin-left: 0;
    padding: 7px 10px;
    font-size: 10.5px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 12px;
    background: rgba(5, 11, 24, .98);
    box-shadow: inset 0 0 0 1px rgba(127, 212, 255, .22),
                0 24px 52px -22px rgba(0, 0, 0, .92);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  }

  .site-nav[data-open],
  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__item { display: block; }

  .site-nav__link {
    display: flex;
    justify-content: space-between;
    padding: 13px 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(127, 212, 255, .10);
  }

  .grid-aside { display: block; }
  .grid-aside > .col-index {
    position: static;
    margin-bottom: 24px;
  }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }

  .container { padding-inline: 18px; }

  #main-content { padding-top: 88px; }

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

  .section__head { margin-bottom: 24px; }

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

  .footer-brand,
  .footer-contact { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .media-frame { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
}

/* ---------- 16. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  html[data-motion="on"] [data-reveal] {
    opacity: 1;
    transition: none;
  }
}
