/* ==========================================================================
   M6游艺 · 共享样式表 /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, h6,
p, ul, ol, li, figure, blockquote, dl, dd, fieldset { margin: 0; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* ---------- 2 · 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --c-ink-900: #061A2E;
  --c-ink-800: #0B2B4A;
  --c-ice-600: #1D6FA5;
  --c-ice-300: #5FD3E8;
  --c-violet-500: #B26CFF;
  --c-amber-400: #F2B84B;
  --c-snow: #EAF7FB;
  --c-grey-300: #C7D7E2;
  --c-teal-800: #0F3D3A;
  --c-pink-400: #FF6B9A;

  /* 语义色 */
  --c-text: #0A2338;
  --c-text-soft: #35586F;
  --c-text-on-dark: #EAF7FB;
  --c-text-on-dark-soft: rgba(234, 247, 251, .72);
  --c-line: rgba(29, 111, 165, .18);
  --c-line-dark: rgba(95, 211, 232, .22);
  --c-surface: #FFFFFF;

  /* 字体 */
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 字号尺度 */
  --fs-display: clamp(2.6rem, 7vw, 5.4rem);
  --fs-h1: clamp(2rem, 4.4vw, 3.2rem);
  --fs-h2: clamp(1.55rem, 2.6vw, 2.15rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-body: clamp(.95rem, .95vw, 1.05rem);
  --fs-sm: .875rem;
  --fs-xs: .75rem;

  /* 布局 */
  --shell: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --radius-panel: 30px 8px 30px 8px;
  --radius-chip: 10px 3px 10px 3px;
  --shadow-panel: 0 30px 70px -52px rgba(6, 26, 46, .9);
}

/* ---------- 3 · 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-snow);
  background-image:
    radial-gradient(58rem 40rem at 88% -12%, rgba(95, 211, 232, .20), transparent 68%),
    radial-gradient(52rem 38rem at -12% 22%, rgba(178, 108, 255, .12), transparent 66%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.024em;
  line-height: 1.22;
  color: var(--c-ink-900);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1rem; letter-spacing: -.01em; }

p { max-width: 68ch; }

::selection {
  background: rgba(242, 184, 75, .38);
  color: var(--c-ink-900);
}

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

#main-content { scroll-margin-top: 7rem; }

/* ---------- 4 · 通用工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  top: .8rem;
  left: .8rem;
  z-index: 200;
  padding: .7rem 1.15rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-ink-900);
  background: var(--c-amber-400);
  border-radius: var(--radius-chip);
  transform: translateY(-220%);
  transition: transform .22s ease;
}
.skip-link:focus { transform: translateY(0); }

.mono,
.meta-mono {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.meta-mono {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-ice-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--c-ink-900);
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.85;
  color: #23455f;
  max-width: 60ch;
}

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(90deg, rgba(29, 111, 165, .38), rgba(95, 211, 232, .16) 48%, transparent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .62rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  border-radius: 8px 3px 8px 3px;
  background: rgba(29, 111, 165, .12);
  color: #14547d;
  border: 1px solid rgba(29, 111, 165, .26);
}
.tag--violet {
  background: rgba(178, 108, 255, .15);
  color: #6f34c2;
  border-color: rgba(178, 108, 255, .38);
}
.tag--amber {
  background: rgba(242, 184, 75, .2);
  color: #8d5d05;
  border-color: rgba(242, 184, 75, .5);
}

/* ---------- 5 · 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .64rem 1.1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  border-radius: 12px 4px 12px 4px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--accent {
  color: #fff;
  background: linear-gradient(120deg, #B26CFF, #7c46d6);
  box-shadow: 0 14px 30px -18px rgba(178, 108, 255, .95);
}
.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -16px rgba(178, 108, 255, .95);
}
.btn--ghost {
  color: var(--c-ice-300);
  border-color: rgba(95, 211, 232, .45);
  background: rgba(95, 211, 232, .07);
}
.btn--ghost:hover {
  color: var(--c-ink-900);
  background: var(--c-ice-300);
  border-color: var(--c-ice-300);
}
.btn--quiet {
  color: var(--c-ice-600);
  padding-inline: .3rem;
  border-radius: 4px;
}
.btn--quiet:hover { color: var(--c-violet-500); }

/* ---------- 6 · 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--c-ink-900);
  color: var(--c-text-on-dark);
  border-bottom: 1px solid var(--c-line-dark);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header[data-scrolled] {
  box-shadow: 0 22px 48px -30px rgba(2, 10, 20, .95);
  background: #04121f;
}

/* 上层：品牌说明带 */
.header-top {
  background:
    linear-gradient(90deg, #061A2E 0%, #082340 58%, #0A2A47 100%);
  border-bottom: 1px solid rgba(95, 211, 232, .14);
}
.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding-block: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
}
.header-top__line {
  display: flex;
  align-items: center;
  gap: .55rem;
  max-width: none;
  color: var(--c-ice-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-top__mark {
  color: var(--c-amber-400);
  font-size: .62rem;
  animation: none;
}
.header-top__meta {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: none;
}
.header-top__ver { color: rgba(234, 247, 251, .52); }
.header-top__help {
  color: var(--c-text-on-dark);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(178, 108, 255, .6);
  transition: color .2s ease, border-color .2s ease;
}
.header-top__help:hover {
  color: var(--c-violet-500);
  border-bottom-color: var(--c-violet-500);
}

/* 下层：品牌 + 主导航 */
.header-main { position: relative; }
.header-main__inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-block: .85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  flex: none;
}
.brand__glyph {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  color: var(--c-ink-900);
  background: linear-gradient(150deg, #7FE3F4 0%, #FFFFFF 46%, #B26CFF 100%);
  border-radius: 15px 4px 15px 4px;
  box-shadow: 0 0 0 1px rgba(95, 211, 232, .55), 0 12px 26px -14px rgba(95, 211, 232, .9);
}
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--c-text-on-dark);
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(95, 211, 232, .8);
}

.primary-nav { margin-left: auto; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.primary-nav__link {
  position: relative;
  display: block;
  padding: .55rem .72rem;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(234, 247, 251, .78);
  border-radius: var(--radius-chip);
  transition: color .2s ease, background-color .2s ease;
}
.primary-nav__link:hover {
  color: var(--c-text-on-dark);
  background: rgba(95, 211, 232, .1);
}
.primary-nav__link[aria-current="page"] {
  color: var(--c-ice-300);
  background: rgba(29, 111, 165, .32);
}
.primary-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .72rem;
  right: .72rem;
  bottom: .22rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-amber-400), var(--c-violet-500));
}

.header-cta {
  flex: none;
  padding: .58rem .92rem;
  font-size: .84rem;
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
  padding: .48rem .72rem;
  color: var(--c-ice-300);
  border: 1px solid rgba(95, 211, 232, .38);
  border-radius: var(--radius-chip);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { background: rgba(95, 211, 232, .12); }
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
}
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 20px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .18s ease;
}
.site-header[data-open] .nav-toggle {
  color: var(--c-ink-900);
  background: var(--c-ice-300);
  border-color: var(--c-ice-300);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7 · 页脚 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(3rem, 7vw, 6rem);
  color: var(--c-text-on-dark);
  background:
    radial-gradient(120% 150% at 12% 0%, #0B2B4A 0%, #061A2E 56%, #04101D 100%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .55;
  background-image:
    linear-gradient(115deg, transparent 47.6%, rgba(95, 211, 232, .16) 48.4%, transparent 49.2%),
    linear-gradient(64deg, transparent 67.4%, rgba(178, 108, 255, .14) 68.2%, transparent 69%),
    linear-gradient(-24deg, transparent 29.6%, rgba(95, 211, 232, .1) 30.4%, transparent 31.2%),
    linear-gradient(150deg, transparent 82.4%, rgba(234, 247, 251, .07) 83.2%, transparent 84%);
  background-size: 380px 380px, 520px 520px, 300px 300px, 440px 440px;
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-ice-300) 22%, var(--c-violet-500) 60%, transparent);
  opacity: .85;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr .85fr .85fr 1.35fr;
  gap: clamp(1.6rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4.4rem) clamp(1.6rem, 3vw, 2.6rem);
}

.footer-brand { min-width: 0; }
.brand--footer .brand__glyph {
  width: 2.2rem;
  height: 2.2rem;
  font-size: .82rem;
}
.brand--footer .brand__name { font-size: 1.05rem; }

.footer-tagline {
  margin-top: 1.1rem;
  max-width: 26ch;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(234, 247, 251, .8);
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .55rem;
  margin-top: 1.35rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(95, 211, 232, .88);
}
.footer-stats li {
  display: inline-flex;
  align-items: center;
  padding: .3rem .62rem;
  border: 1px solid rgba(95, 211, 232, .24);
  border-radius: var(--radius-chip);
  background: rgba(95, 211, 232, .06);
}

.footer-links__title {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-amber-400);
  margin-bottom: .95rem;
}
.footer-links__list li + li { margin-top: .55rem; }
.footer-links__list a {
  position: relative;
  display: inline-block;
  font-size: .92rem;
  color: rgba(234, 247, 251, .76);
  transition: color .2s ease;
}
.footer-links__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--c-ice-300);
  transition: width .25s ease;
}
.footer-links__list a:hover { color: var(--c-ice-300); }
.footer-links__list a:hover::after { width: 100%; }

.footer-contact {
  display: grid;
  align-content: start;
  gap: .8rem;
  min-width: 0;
}
.contact-row { display: grid; gap: .12rem; }
.contact-row__key {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(95, 211, 232, .72);
}
.contact-row__val {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--c-text-on-dark);
  overflow-wrap: anywhere;
}
.contact-row__val--mono {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

.footer-base {
  position: relative;
  border-top: 1px solid rgba(95, 211, 232, .16);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.4rem;
  padding-block: 1.1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: rgba(199, 215, 226, .72);
}
.footer-base__note { max-width: none; }

/* ---------- 8 · 堆叠面板 ---------- */
.panel {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-panel);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-panel);
}
.panel--ink {
  color: var(--c-text-on-dark);
  background: linear-gradient(160deg, #0B2B4A 0%, #061A2E 100%);
  border-color: rgba(95, 211, 232, .24);
}
.panel--ink h2,
.panel--ink h3 { color: var(--c-text-on-dark); }
.panel--tint {
  background:
    linear-gradient(170deg, rgba(95, 211, 232, .14), rgba(178, 108, 255, .08)),
    var(--c-surface);
}
.panel__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .22rem .58rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--c-ice-600);
  border: 1px solid rgba(29, 111, 165, .32);
  border-radius: 8px 3px 8px 3px;
}
.panel--ink .panel__index {
  color: var(--c-ice-300);
  border-color: rgba(95, 211, 232, .44);
  background: rgba(95, 211, 232, .08);
}
.panel__title {
  margin-top: .85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  letter-spacing: -.02em;
  line-height: 1.32;
}
.panel__body { margin-top: .85rem; }
.panel__body p + p { margin-top: .8rem; }

/* ---------- 9 · 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}
.col-main { grid-column: span 8; min-width: 0; }
.col-aside { grid-column: span 4; min-width: 0; }
.col-wide { grid-column: 1 / -1; min-width: 0; }

/* ---------- 10 · 图片 / 视觉容器 ---------- */
.img-frame {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  min-height: 170px;
  border-radius: 26px 6px 26px 6px;
  background:
    radial-gradient(82% 82% at 22% 18%, rgba(95, 211, 232, .55), transparent 62%),
    radial-gradient(72% 72% at 82% 78%, rgba(178, 108, 255, .45), transparent 60%),
    linear-gradient(155deg, #0B2B4A 0%, #061A2E 72%);
}
.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .7;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(120deg, transparent 46.4%, rgba(234, 247, 251, .35) 47.6%, transparent 48.8%),
    linear-gradient(58deg, transparent 67.4%, rgba(234, 247, 251, .22) 68.4%, transparent 69.4%),
    linear-gradient(-38deg, transparent 21.4%, rgba(234, 247, 251, .18) 22.4%, transparent 23.4%);
  background-size: 240px 240px, 320px 320px, 200px 200px;
  pointer-events: none;
}
.img-frame img,
.img-frame svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame__caption {
  position: absolute;
  left: .9rem;
  bottom: .8rem;
  z-index: 3;
  padding: .22rem .55rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--c-snow);
  background: rgba(6, 26, 46, .62);
  border: 1px solid rgba(95, 211, 232, .32);
  border-radius: 8px 3px 8px 3px;
}

/* ---------- 11 · 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--c-text-soft);
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(29, 111, 165, .45);
}
.breadcrumb a {
  color: var(--c-ice-600);
  transition: color .2s ease;
}
.breadcrumb a:hover { color: var(--c-violet-500); }
.breadcrumb__item[aria-current="page"] { color: rgba(10, 35, 56, .82); }
.breadcrumb--light { color: rgba(234, 247, 251, .66); }
.breadcrumb--light a { color: var(--c-ice-300); }
.breadcrumb--light .breadcrumb__item[aria-current="page"] { color: var(--c-text-on-dark); }

/* ---------- 12 · 分段切换 ---------- */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .28rem;
  border: 1px solid rgba(29, 111, 165, .32);
  border-radius: 14px 5px 14px 5px;
  background: rgba(11, 43, 74, .06);
}
.segmented__btn {
  padding: .48rem 1rem;
  font-size: .86rem;
  font-weight: 600;
  color: var(--c-ice-600);
  border-radius: var(--radius-chip);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.segmented__btn:hover { background: rgba(29, 111, 165, .12); }
.segmented__btn[aria-selected="true"] {
  color: var(--c-text-on-dark);
  background: var(--c-ink-800);
  box-shadow: inset 0 0 0 1px rgba(95, 211, 232, .42);
}

/* ---------- 13 · 进场动效 ---------- */
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.22, .61, .36, 1), transform .65s cubic-bezier(.22, .61, .36, 1);
}
html[data-reveal-ready] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1020px) {
  .header-cta { display: none; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    margin-left: 0;
    padding: .5rem var(--gutter) 1.2rem;
    max-height: 72vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #08233E 0%, #061A2E 100%);
    border-top: 1px solid rgba(95, 211, 232, .24);
    box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .95);
  }
  .site-header[data-open] .primary-nav { display: block; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .18rem;
  }
  .primary-nav__link {
    padding: .78rem .85rem;
    font-size: .96rem;
    border: 1px solid transparent;
  }
  .primary-nav__link[aria-current="page"] {
    border-color: rgba(95, 211, 232, .3);
  }
  .primary-nav__link[aria-current="page"]::after { display: none; }
}

@media (max-width: 960px) {
  .col-main,
  .col-aside { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --radius-panel: 22px 6px 22px 6px; }

  .header-top__ver { display: none; }
  .header-top__inner {
    font-size: .68rem;
    letter-spacing: .1em;
  }
  .header-top__line { max-width: 52%; }

  .brand__glyph { width: 2.3rem; height: 2.3rem; font-size: .84rem; }
  .brand__name { font-size: 1.02rem; }
  .brand__sub { font-size: .55rem; letter-spacing: .2em; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-base__inner { justify-content: flex-start; font-size: .72rem; }
}

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

/* ---------- 15 · 减弱动效 ---------- */
@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-reveal-ready] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .skip-link { transition: none; }
  .footer-links__list a::after { transition: none; }
}
