/* ==========================================================================
   王者赏金赛 — 共享站点样式 /assets/site.css
   蓝图网格骨架 · 左右分置导航 · 专题研究板组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

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

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

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0D10;
  --ink-2: #131820;
  --ink-3: #1A2230;
  --line: #2A3442;
  --line-soft: rgba(42, 52, 66, 0.62);

  --paper: #F4EFE4;
  --paper-dim: #C9C2B5;

  --amber: #F2A13B;
  --amber-hi: #FFC46B;
  --cyan: #35D6C4;
  --violet: #6B3FA0;
  --violet-soft: #A97FE0;
  --lime: #B7F04A;
  --red: #FF5C5C;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --shell: 1320px;
  --radius: 3px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(42, 52, 66, 0.30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 52, 66, 0.30) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: center top;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 0.98; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.26; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

a { color: var(--cyan); text-underline-offset: 0.18em; }

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

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -160%);
  padding: 0.72rem 1.4rem;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 13, 16, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.site-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--amber) 0 16%,
    var(--violet) 16% 28%,
    transparent 28%);
  pointer-events: none;
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transition: width 0.12s linear;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.4vw, 2.25rem);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  min-height: 78px;
  transition: min-height 0.22s ease, padding 0.22s ease;
}
.site-header.is-compact .header-shell {
  min-height: 60px;
  padding-block: 0.45rem;
}

/* 品牌署名 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.18s ease;
}
.brand:hover { color: var(--amber-hi); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--amber);
  background: linear-gradient(150deg,
    rgba(242, 161, 59, 0.18),
    rgba(107, 63, 160, 0.22));
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.brand:hover .brand__mark {
  background: var(--amber);
  border-color: var(--amber-hi);
  color: var(--ink);
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.brand__name {
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__latin {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
}

/* 蓝图刻度尺 */
.header-rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1 1 auto;
  min-width: 0;
  padding-block: 0.5rem;
}
.header-rule__ticks {
  position: relative;
  flex: 1 1 auto;
  min-width: 40px;
  height: 10px;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 1px,
    transparent 1px 32px);
}
.header-rule__ticks::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, var(--line), rgba(242, 161, 59, 0.55));
}
.header-rule__tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

/* 栏目索引 */
.site-nav { flex: 0 0 auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1.5vw, 1.35rem);
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.15rem;
  color: var(--paper-dim);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.site-nav__link:hover { color: var(--paper); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--amber); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.nav-toggle:hover {
  border-color: var(--amber);
  background: rgba(242, 161, 59, 0.1);
}
.nav-toggle__bars {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.16s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars:nth-of-type(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. 容器与章节 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.section {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.section--panel {
  background: rgba(19, 24, 32, 0.72);
  border-block: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* ---------- 7. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: linear-gradient(160deg,
    rgba(19, 24, 32, 0.96),
    rgba(11, 13, 16, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 30px -22px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 161, 59, 0.45);
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 1);
}
.card__eyebrow {
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.card__title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.card__body {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--paper-dim);
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn--amber:hover {
  background: var(--amber-hi);
  border-color: var(--amber-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(242, 161, 59, 0.7);
}
.btn--cyan {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--cyan:hover {
  background: rgba(53, 214, 196, 0.12);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber-hi);
  transform: translateY(-2px);
}

/* ---------- 10. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.tag--amber { color: var(--amber); border-color: rgba(242, 161, 59, 0.5); }
.tag--cyan { color: var(--cyan); border-color: rgba(53, 214, 196, 0.5); }
.tag--violet { color: var(--violet-soft); border-color: rgba(107, 63, 160, 0.7); }
.tag--lime { color: var(--lime); border-color: rgba(183, 240, 74, 0.45); }

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

.media__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(42, 52, 66, 0.55) 0 1px,
    transparent 1px 14px);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.75rem;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(to top,
    rgba(11, 13, 16, 0.94),
    rgba(11, 13, 16, 0));
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}

/* ---------- 12. 正文容器 ---------- */
.prose {
  max-width: 68ch;
  color: var(--paper-dim);
  font-size: 1.0625rem;
  line-height: 1.78;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2,
.prose h3 { color: var(--paper); margin-top: 1.9em; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.prose strong { color: var(--paper); font-weight: 700; }
.prose a { color: var(--cyan); }
.prose a:hover { color: var(--amber-hi); }
.prose li { position: relative; padding-left: 1.5rem; }
.prose li + li { margin-top: 0.55em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 9px;
  height: 1px;
  background: var(--amber);
}
.prose ol { counter-reset: prose-ol; }
.prose ol > li { counter-increment: prose-ol; }
.prose ol > li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--amber);
}
.prose blockquote {
  border-left: 2px solid var(--violet);
  padding-left: 1.1rem;
  color: var(--paper);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb { padding-block: 1rem; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.breadcrumb__link {
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.16s ease;
}
.breadcrumb__link:hover { color: var(--amber); }
.breadcrumb__sep { color: rgba(201, 194, 181, 0.4); }
.breadcrumb__current { color: var(--paper); }

/* ---------- 14. 小工具 ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- 15. 折叠面板 ---------- */
details {
  border-bottom: 1px solid var(--line);
  padding-block: 0.9rem;
}
summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--paper);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--amber);
}
details[open] summary::after { content: "–"; }
details > .prose,
details > p {
  margin-top: 0.8rem;
  color: var(--paper-dim);
  font-size: 0.9375rem;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(to bottom,
    rgba(19, 24, 32, 0) 0%,
    var(--ink-2) 22%,
    var(--ink-2) 100%);
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.9375rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 1px,
    transparent 1px 48px);
  pointer-events: none;
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2.5rem)
    clamp(1.5rem, 3vw, 2rem);
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.footer-col { min-width: 0; }

.footer-brand__latin {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.footer-brand__name {
  margin-top: 0.55rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.footer-brand__desc {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--paper-dim);
}
.footer-brand__meta {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 194, 181, 0.55);
}

.footer-col__title {
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer-col__list {
  display: grid;
  gap: 0.55rem;
}
.footer-link {
  position: relative;
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}
.footer-link:hover {
  color: var(--amber);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 0.85rem;
  font-size: 0.9375rem;
}
.footer-contact__term {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-contact__value {
  display: block;
  color: var(--paper);
  line-height: 1.55;
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--paper-dim);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  font-size: 0.8125rem;
}
.footer-copy { color: var(--paper-dim); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-left: auto;
}
.footer-legal__link {
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-legal__link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
.footer-icp {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(201, 194, 181, 0.6);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1200px) {
  .site-nav__link { font-size: 0.9rem; }
}

@media (max-width: 1080px) {
  .header-rule { display: none; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px #000;
  }
  .site-nav[data-open] { display: block; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem clamp(1rem, 3vw, 1.75rem) 1rem;
  }
  .site-nav__item { border-bottom: 1px solid var(--line-soft); }
  .site-nav__item:last-child { border-bottom: none; }
  .site-nav__link {
    display: block;
    padding: 0.95rem 0.25rem;
    font-size: 1rem;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--amber); }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.6rem;
    background: var(--amber);
    vertical-align: middle;
  }

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

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section__note { margin-left: 0; }
  .footer-legal { margin-left: 0; width: 100%; }
}

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

  .header-shell {
    min-height: 64px;
    padding-block: 0.6rem;
    gap: 0.6rem;
  }
  .site-header.is-compact .header-shell { min-height: 56px; }

  .brand__mark { width: 34px; height: 34px; font-size: 13px; }
  .brand__name { font-size: 1rem; }
  .brand__latin { font-size: 0.5625rem; letter-spacing: 0.14em; margin-top: 0.3rem; }

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

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-shell { padding-inline: 1rem; }
  .footer-brand__desc { max-width: none; }
}

@media (max-width: 380px) {
  .brand__latin { display: none; }
}

/* ---------- 18. 动效偏好 ---------- */
@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;
  }
  .card:hover,
  .btn:hover,
  .footer-link:hover { transform: none; }
}
