/* ==========================================================================
   月博登录中心 · 站内索引  —  共享样式 /assets/site.css
   设计基调：月相银灰基底 + 深海蓝结构 + 琥珀金索引高亮，粗边框硬阴影
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --moon: #C9CED6;
  --abyss: #0B2545;
  --abyss-light: #143A66;
  --amber: #D99A2B;
  --amber-light: #F2D9A6;
  --warm: #F7F3EC;
  --mist: #7BA6A1;
  --light-gray: #E8EAED;
  --silver: #DCE1E6;
  --ink: #0A1622;

  --shell: 1240px;
  --gutter: 24px;
  --border-w: 3px;
  --rule-w: 1px;

  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-mid: 6px 6px 0 rgba(10, 22, 34, 0.18);
  --shadow-soft: 4px 4px 0 rgba(10, 22, 34, 0.14);

  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--moon);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--abyss);
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.05rem; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.4em; }

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

a {
  color: var(--abyss-light);
  text-decoration: none;
  border-bottom: var(--rule-w) solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

a:hover { color: var(--amber); border-bottom-color: var(--amber); }

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

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

/* ---------- 4. 容器 ---------- */
.shell {
  width: min(var(--shell), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: var(--border-w) solid var(--ink);
  border-radius: 2px;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   6. 页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--abyss);
  color: var(--moon);
  border-bottom: var(--border-w) solid var(--ink);
  box-shadow: 0 6px 0 rgba(10, 22, 34, 0.14);
}

.header-shell {
  position: relative;
  width: min(var(--shell), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 10px 0;
}

/* 品牌锁标 */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 4px 0;
  color: var(--warm);
  text-decoration: none;
  border-bottom: none;
}

.brand-lockup:hover { color: var(--amber); border-bottom-color: transparent; }

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--ink);
  overflow: hidden;
}

.brand-mark__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--abyss);
  transform: translateX(42%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.brand-lockup:hover .brand-mark__disc { transform: translateX(14%); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-text__name {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
}

.brand-text__line {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  color: var(--amber);
}

/* 移动端切换按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  color: var(--warm);
  border: 2px solid var(--moon);
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover {
  background: var(--abyss-light);
  border-color: var(--amber);
  color: var(--amber);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
}

.nav-toggle__label { white-space: nowrap; }

/* 导航面板 */
.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  padding: 14px;
  background: var(--abyss);
  border: var(--border-w) solid var(--ink);
  border-top: 4px solid var(--amber);
  box-shadow: var(--shadow-hard);
}

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

.site-nav__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-nav__list li + li { margin-top: 0; }

.site-nav__link {
  display: block;
  padding: 11px 12px;
  color: var(--moon);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: var(--border-w) solid transparent;
  transition: color 0.16s ease, background-color 0.16s ease,
              border-color 0.16s ease, transform 0.16s ease;
}

.site-nav__link:hover {
  color: var(--warm);
  background: var(--abyss-light);
  border-bottom-color: var(--abyss-light);
  transform: translateX(2px);
}

.site-nav__link[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.site-nav__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.util-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--moon);
  border: var(--rule-w) solid rgba(201, 206, 214, 0.5);
  border-radius: 2px;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.util-link:hover {
  color: var(--amber);
  border-color: var(--amber);
  border-bottom-color: var(--amber);
}

.util-link--accent {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.util-link--accent:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--ink);
}

/* 顶部滚动进度金线 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ==========================================================================
   7. 页脚
   ========================================================================== */
.site-footer {
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(40px, 6vw, 64px);
  background: var(--ink);
  color: var(--moon);
  border-top: var(--border-w) solid var(--amber);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-block: 0 48px;
}

.footer-brand__lockup {
  display: inline-block;
  padding-bottom: 6px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--warm);
  text-decoration: none;
  border-bottom: var(--border-w) solid var(--amber);
}

.footer-brand__lockup:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.footer-brand__note {
  margin: 20px 0 0;
  max-width: 32ch;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(201, 206, 214, 0.78);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--amber);
}

.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__list li + li { margin-top: 0; }

.footer-col__link {
  font-size: 0.94rem;
  color: var(--moon);
  text-decoration: none;
  border-bottom: var(--rule-w) solid transparent;
}

.footer-col__link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact__title {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--amber);
}

.footer-contact__row {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(201, 206, 214, 0.86);
}

.footer-contact__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--mist);
  padding-top: 2px;
}

.footer-contact__value { word-break: break-word; }

.footer-contact__value:first-of-type { font-family: var(--font-mono); font-size: 0.8rem; }

.footer-contact__note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(201, 206, 214, 0.6);
}

.footer-base {
  border-top: var(--rule-w) solid rgba(201, 206, 214, 0.22);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 20px 0 28px;
}

.footer-icp,
.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(201, 206, 214, 0.68);
}

/* ==========================================================================
   8. 通用组件
   ========================================================================== */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  border: var(--border-w) solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.16s ease, color 0.16s ease;
}

.btn:hover { border-bottom-color: var(--ink); }

.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: var(--shadow-mid);
}

.btn--primary:hover {
  background: var(--amber-light);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--abyss);
  box-shadow: var(--shadow-soft);
}

.btn--ghost:hover {
  background: var(--abyss);
  color: var(--warm);
  border-bottom-color: var(--ink);
  transform: translate(-2px, -2px);
}

/* 面包屑 */
.crumbs {
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
}

.crumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs__list li + li { margin-top: 0; }

.crumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--abyss);
}

.crumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--amber);
}

.crumbs__link {
  color: inherit;
  text-decoration: none;
  border-bottom: var(--rule-w) solid transparent;
}

.crumbs__link:hover { color: var(--amber); border-bottom-color: var(--amber); }

.crumbs__current { color: var(--mist); }

/* 正文容器 */
.prose {
  max-width: 68ch;
  font-size: 1rem;
  color: #22303e;
}

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

.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.7em;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  border-top: var(--border-w) solid var(--ink);
}

.prose h3 { margin-top: 1.8em; }

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

.prose a { border-bottom: 2px solid var(--amber); }

/* 章节 */
.section { padding: clamp(44px, 8vw, 92px) 0; }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--amber);
}

.section__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--amber);
}

.section__title {
  margin: 0 0 0.4em;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.section__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.02rem;
  color: #2c3e52;
}

/* 海报式标题 */
.display {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: clamp(2.6rem, 9vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--abyss);
}

.display__accent { color: var(--amber); }

/* 网格 */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.4vw, 30px);
}

/* 卡片 */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--warm);
  border: var(--border-w) solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow-mid);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--amber);
}

.card__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--mist);
}

.card__title {
  margin: 0 0 0.5em;
  font-size: 1.18rem;
}

.card__text {
  margin: 0 0 1em;
  font-size: 0.94rem;
  color: #2b3a4a;
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* 索引卡 */
.index-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px 16px;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--silver);
  border: var(--border-w) solid var(--ink);
  border-left: 10px solid var(--amber);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-left-color 0.18s ease, box-shadow 0.18s ease;
}

.index-card:nth-child(even) { background: var(--warm); }

.index-card:hover {
  transform: translate(0, -3px);
  background: var(--amber-light);
  border-left-color: var(--abyss);
  box-shadow: var(--shadow-mid);
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.index-card__num {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding: 3px 8px;
  background: var(--amber-light);
  border: var(--rule-w) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--abyss);
}

.index-card__title {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--abyss);
}

.index-card__text {
  grid-column: 2;
  margin: 0;
  font-size: 0.92rem;
  color: #33465b;
}

.index-card__tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* 公告带 */
.notice-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--warm);
  border: var(--border-w) solid var(--ink);
  border-top: 6px solid var(--amber);
  border-radius: 2px;
  box-shadow: var(--shadow-mid);
}

.notice-band__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--mist);
}

.notice-band__text {
  margin: 0;
  font-size: 1rem;
  color: #22303e;
}

/* 旧版本对照轴 */
.axis {
  display: flex;
  flex-direction: column;
  background: var(--silver);
  border: var(--border-w) solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
}

.axis__head,
.axis__row {
  display: grid;
  grid-template-columns: 1fr;
}

.axis__head {
  background: var(--abyss);
  color: var(--warm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.axis__head > * { padding: 10px 16px; }

.axis__row { border-top: var(--rule-w) solid var(--light-gray); }

.axis__row:nth-child(odd) { background: rgba(123, 166, 161, 0.14); }

.axis__label {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--abyss);
  border-bottom: var(--rule-w) solid var(--light-gray);
}

.axis__value {
  padding: 12px 16px;
  font-size: 0.94rem;
  color: #243243;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: var(--rule-w) solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--abyss);
  white-space: nowrap;
}

.tag--amber { background: var(--amber-light); border-color: var(--amber); }
.tag--mist { background: var(--mist); border-color: var(--abyss); color: var(--warm); }
.tag--abyss { background: var(--abyss); border-color: var(--abyss); color: var(--warm); }
.tag--warm { background: var(--warm); }

/* 收藏锚点 */
.anchor-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--abyss);
  color: var(--warm);
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.anchor-chip:hover {
  background: var(--amber);
  color: var(--ink);
  border-bottom-color: var(--ink);
  transform: translateY(-2px);
}

.anchor-chip__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  animation: chipPulse 2.6s ease-out infinite;
}

.anchor-chip:hover .anchor-chip__dot { background: var(--ink); }

@keyframes chipPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 154, 43, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(217, 154, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 154, 43, 0); }
}

/* 图形容器 */
.figure-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--silver);
  border: var(--border-w) solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-mid);
}

.figure-frame > img,
.figure-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 14px;
  background: var(--abyss);
  color: var(--moon);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--flat { aspect-ratio: 4 / 3; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--moon { aspect-ratio: 1 / 1; border-radius: 50%; max-width: 380px; }
.figure-frame--ghost { box-shadow: none; border-style: dashed; }

/* 入场协议 */
[data-reveal] { opacity: 1; }

[data-reveal-ready="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-reveal-ready="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   9. 响应式
   ========================================================================== */
@media (min-width: 640px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .notice-band { grid-template-columns: 220px minmax(0, 1fr); gap: 26px; }

  .axis__head,
  .axis__row { grid-template-columns: 132px minmax(0, 1fr); }

  .axis__label {
    border-bottom: none;
    border-right: var(--rule-w) solid var(--light-gray);
  }
}

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

@media (min-width: 860px) {
  .footer-shell { grid-template-columns: 1fr 1.7fr 1.15fr; gap: 44px; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav,
  .site-nav[data-open] {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
  }

  .site-nav__link {
    padding: 9px 12px;
    border-bottom: var(--border-w) solid transparent;
  }

  .site-nav__link:hover {
    background: transparent;
    transform: none;
    border-bottom-color: var(--abyss-light);
    color: var(--warm);
  }

  .site-nav__link[aria-current="page"] { border-bottom-color: var(--amber); }

  .site-nav__utility { margin-left: 14px; }
}

@media (min-width: 940px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .grid--split {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .grid--offset > *:nth-child(even) { transform: translateY(28px); }

  .grid--offset > *:nth-child(even):hover { transform: translateY(25px); }
}

@media (min-width: 1100px) {
  :root { --gutter: 32px; }
}

/* ==========================================================================
   10. 无障碍与减少动效
   ========================================================================== */
@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;
  }

  .anchor-chip__dot { animation: none; }

  [data-reveal-ready="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .grid--offset > *:nth-child(even),
  .grid--offset > *:nth-child(even):hover { transform: none; }
}
