/* ============================================================
   亿万电竞官网 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

/* ---------- 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, dl, dd, figure, figcaption, blockquote, fieldset {
  margin: 0;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink-950: #050810;
  --ink-900: #070B14;
  --ink-800: #0E1524;
  --ink-700: #12303A;
  --paper: #F2F5F7;
  --cream: #E8E2D4;
  --cyan: #25F4E6;
  --orange: #FF5A36;
  --violet: #A79BFF;
  --lime: #C8FF57;
  --steel: #93A1B5;

  --edge: rgba(147, 161, 181, 0.28);
  --edge-soft: rgba(147, 161, 181, 0.14);

  --font-display: "Oswald", "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
html { font-size: 100%; }

body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(37, 244, 230, 0.07), transparent 42%),
    radial-gradient(circle at 92% 88%, rgba(167, 155, 255, 0.06), transparent 46%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 5. 跳至正文 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background-color: var(--cyan);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background-color: var(--ink-800);
  border-bottom: 1px solid var(--edge);
}

/* 6.1 顶部版本条 */
.header-strip {
  background-color: var(--ink-950);
  border-bottom: 1px solid var(--edge-soft);
}

.header-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 7px var(--gutter);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.header-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.header-strip__item--end { margin-left: auto; }

.header-strip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(37, 244, 230, 0.16);
  animation: strip-pulse 2.6s ease-in-out infinite;
}

@keyframes strip-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(37, 244, 230, 0.16);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 0 7px rgba(37, 244, 230, 0);
  }
}

/* 6.2 刊头 */
.masthead {
  padding: clamp(16px, 2.6vw, 30px) 0 clamp(12px, 2vw, 22px);
  text-align: center;
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead__eyebrow {
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--cyan);
  text-transform: uppercase;
}

.masthead__brand {
  display: inline-block;
  margin-top: 0.16em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6.4vw, 70px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  transition: color 0.22s var(--ease);
}

.masthead__brand:hover { color: var(--cyan); }

.masthead__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0.9em;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--steel);
}

.masthead__meta > span:first-child { color: var(--violet); }

.masthead__sep {
  display: inline-block;
  width: 38px;
  height: 1px;
  background-color: var(--edge);
}

/* 6.3 栏目导航 */
.navbar {
  border-top: 1px solid var(--edge-soft);
  background-color: rgba(5, 8, 16, 0.55);
}

.navbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 58px;
}

.site-nav {
  grid-column: 2;
  grid-row: 1;
}

.navbar__cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.nav-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  transition: background-color 0.18s var(--ease);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 28px);
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--steel);
  transition: color 0.18s var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background-color: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}

.site-nav__list a:hover { color: var(--paper); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-nav__list a[aria-current="page"] { color: var(--paper); }
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  background-color: var(--orange);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.62em 1.15em;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background-color: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background-color: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
}

.btn--primary:hover {
  background-color: var(--paper);
  border-color: var(--paper);
}

.btn--ghost {
  border-color: rgba(37, 244, 230, 0.5);
  color: var(--cyan);
}

.btn--ghost:hover {
  background-color: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

.btn--quiet {
  padding-inline: 0.4em;
  border-color: transparent;
  color: var(--steel);
}

.btn--quiet:hover { color: var(--paper); }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background-color: var(--ink-950);
  border-top: 1px solid var(--edge);
  color: var(--steel);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-image: linear-gradient(90deg, var(--cyan), rgba(37, 244, 230, 0) 52%, var(--violet));
  opacity: 0.8;
}

.site-footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-footer__top {
  position: relative;
  z-index: 1;
  padding-block: clamp(34px, 5vw, 62px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(22px, 4vw, 48px);
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-brand__line {
  margin-top: 10px;
  max-width: 22ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

.footer-brand__mono {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--violet);
}

.footer-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--edge-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-list a {
  display: inline-block;
  color: var(--steel);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--paper);
  transform: translateX(3px);
}

.footer-address {
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel);
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(147, 161, 181, 0.82);
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px dashed rgba(147, 161, 181, 0.45);
  border-radius: var(--radius);
  background-color: transparent;
  font-size: 12px;
  line-height: 1.6;
  color: var(--paper);
  text-align: left;
  word-break: break-all;
  transition:
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.copy-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.copy-chip[data-copied="true"] {
  border-style: solid;
  border-color: var(--lime);
  background-color: rgba(200, 255, 87, 0.08);
  color: var(--lime);
}

.site-footer__base {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--edge-soft);
  background-color: rgba(7, 11, 20, 0.86);
}

.site-footer__base-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* ---------- 9. 章节 ---------- */
.section {
  position: relative;
  padding-block: clamp(38px, 5.5vw, 76px);
}

.section--ink { background-color: var(--ink-800); }
.section--edge { border-top: 1px solid var(--edge); }
.section--tight { padding-block: clamp(22px, 3vw, 38px); }

.section--paper {
  background-color: var(--cream);
  color: var(--ink-900);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: clamp(18px, 3vw, 32px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge-soft);
}

.section--paper .section__head { border-bottom-color: rgba(7, 11, 20, 0.18); }

.section__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.section--paper .section__index { color: #0E6E68; }

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.section--paper .section__title { color: var(--ink-900); }

.section__note {
  margin-left: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

.section--paper .section__note { color: #465065; }

/* ---------- 10. 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(242, 245, 247, 0.86);
}

.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(22px, 2.6vw, 30px);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: clamp(18px, 2vw, 22px);
}

.prose ul,
.prose ol { padding-left: 1.4em; }

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.prose strong { color: var(--paper); font-weight: 700; }

.prose code {
  padding: 0.1em 0.4em;
  border-radius: var(--radius);
  background-color: rgba(37, 244, 230, 0.1);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.section--paper .prose { color: #2A3242; }
.section--paper .prose h2,
.section--paper .prose h3,
.section--paper .prose strong { color: var(--ink-900); }
.section--paper .prose a { color: #0E6E68; }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  border-bottom: 1px solid var(--edge-soft);
  background-color: rgba(14, 21, 36, 0.6);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb__list li + li::before {
  content: "/";
  color: rgba(147, 161, 181, 0.5);
}

.breadcrumb__list a {
  color: var(--steel);
  transition: color 0.18s var(--ease);
}

.breadcrumb__list a:hover { color: var(--cyan); }
.breadcrumb__list [aria-current="page"] { color: var(--paper); }

/* ---------- 12. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 28px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

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

/* ---------- 13. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background-color: var(--ink-800);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(37, 244, 230, 0.5);
  box-shadow:
    0 3px 0 -1px rgba(37, 244, 230, 0.35),
    0 18px 34px -24px rgba(0, 0, 0, 0.95);
}

.card--ink { background-color: var(--ink-950); }

.card--paper {
  background-color: var(--cream);
  border-color: rgba(7, 11, 20, 0.18);
  color: var(--ink-900);
}

.card--paper .card__title { color: var(--ink-900); }
.card--paper .card__meta { color: #465065; }

.card__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.card--paper .card__index { color: #0E6E68; }

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--paper);
}

.card__meta {
  font-size: 13px;
  line-height: 1.72;
  color: var(--steel);
}

/* ---------- 14. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); }
.tag--violet { color: var(--violet); }
.tag--lime { color: var(--lime); }
.tag--orange { color: var(--orange); }

.tag--solid {
  background-color: var(--paper);
  border-color: var(--paper);
  color: var(--ink-900);
}

/* ---------- 15. 图片容器 ---------- */
.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background-color: var(--ink-800);
  background-image:
    linear-gradient(135deg, rgba(37, 244, 230, 0.14), transparent 58%),
    repeating-linear-gradient(105deg, rgba(147, 161, 181, 0.1) 0 1px, transparent 1px 22px);
}

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

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

.figure__frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background-image: linear-gradient(135deg, transparent 50%, var(--cyan) 50%);
  opacity: 0.7;
  pointer-events: none;
}

.figure__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- 16. 斜切主题带 / 脉冲线 / 分隔线 ---------- */
.slash-band {
  position: relative;
  padding-block: clamp(18px, 2.6vw, 30px);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background-color: var(--ink-800);
  overflow: hidden;
}

.slash-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    105deg,
    rgba(37, 244, 230, 0.12) 0 2px,
    transparent 2px 28px
  );
  pointer-events: none;
}

.slash-band > * {
  position: relative;
  z-index: 1;
}

.pulse-line {
  width: 100%;
  height: 2px;
  background-image: linear-gradient(90deg, transparent 0%, var(--cyan) 35%, var(--violet) 58%, transparent 100%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pulse-slide 6s linear infinite;
}

@keyframes pulse-slide {
  from { background-position: -110% 0; }
  to { background-position: 210% 0; }
}

.rule {
  height: 1px;
  margin-block: clamp(20px, 3vw, 36px);
  border: 0;
  background-color: var(--edge);
}

.rule--dashed {
  height: 0;
  background: none;
  border-top: 1px dashed var(--edge);
}

/* ---------- 17. 滚动进度与返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  background-color: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(37, 244, 230, 0.5);
  border-radius: var(--radius);
  background-color: rgba(14, 21, 36, 0.92);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background-color: var(--cyan);
  color: var(--ink-900);
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(130px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .navbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding-block: 10px;
  }

  .nav-toggle { display: inline-flex; order: 1; }
  .navbar__cta { display: none; }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
    display: none;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--edge-soft);
  }

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

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

  .site-nav__list a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--edge-soft);
    font-size: 16px;
  }

  .site-nav__list a::after { display: none; }

  .site-nav__list a[aria-current="page"] {
    padding-left: 12px;
    border-left: 2px solid var(--orange);
    color: var(--cyan);
  }

  .masthead__meta { font-size: 10px; letter-spacing: 0.16em; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section__note { margin-left: 0; flex: 1 0 100%; }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 6; }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .header-strip__inner { font-size: 10px; letter-spacing: 0.1em; }
  .header-strip__item--end { margin-left: 0; }

  .masthead__brand { font-size: clamp(28px, 10vw, 40px); }
  .masthead__eyebrow { letter-spacing: 0.24em; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__base-in { font-size: 11px; }

  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 1; }

  .figure__frame { aspect-ratio: 4 / 3; }
  .figure__frame--tall { aspect-ratio: 3 / 4; }
  .figure__frame--square { aspect-ratio: 1 / 1; }
}

/* ---------- 19. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .header-strip__dot { animation: none; opacity: 1; }
  .pulse-line { animation: none; background-position: 0 0; }
  .card:hover,
  .card:focus-within { transform: none; }
  .footer-list a:hover { transform: none; }
  .btn:hover { transform: none; }
}
