/* ==========================================================================
   心博赛场 · 共享站点套件 (site.css)
   深海蓝 / 夜航蓝 / 奶油纸 / 跑道橙 / 荧光青绿
   ========================================================================== */

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

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

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

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

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

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

button { background: none; border: 0; padding: 0; }

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

/* ---- 2. 变量 ------------------------------------------------------------ */
:root {
  --deep: #0B2239;
  --night: #123A5A;
  --cream: #F6EEDF;
  --bone: #FFF9EF;
  --ink: #231A14;
  --track: #F26A2E;
  --amber: #FFB25B;
  --mint: #35F2B0;
  --mist: #9FD9CE;
  --slate: #3F5A66;

  --line: rgba(35, 26, 20, .14);
  --line-strong: rgba(35, 26, 20, .28);
  --line-dark: rgba(159, 217, 206, .28);
  --ink-soft: rgba(35, 26, 20, .68);
  --bone-soft: rgba(255, 249, 239, .76);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", "Impact",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Menlo",
    "Liberation Mono", monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- 3. 基础排版 -------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 16.5px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.005em;
}

p { text-wrap: pretty; }

::selection {
  background: var(--track);
  color: var(--bone);
}

:focus-visible {
  outline: 3px solid var(--track);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- 4. 容器 / 区块 ----------------------------------------------------- */
.container {
  width: min(1220px, 100% - clamp(36px, 9vw, 128px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(52px, 7.5vw, 104px);
  position: relative;
}

.section--tight {
  padding-block: clamp(32px, 4.5vw, 60px);
}

.on-dark {
  background-color: var(--deep);
  color: var(--bone);
}

.on-dark .lede,
.on-dark .prose { color: var(--bone-soft); }

.on-dark .section-title { color: var(--bone); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--track);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

.on-dark .eyebrow { color: var(--amber); }

.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.015em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--deep);
}

.lede {
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 62ch;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(28px, 4vw, 52px);
}

.on-dark .rule { background: var(--line-dark); }

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

.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
}

/* ---- 5. Skip link ------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--deep);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  transition: top .22s var(--ease);
}

.skip-link:focus {
  top: 0;
  outline-offset: -4px;
}

/* ---- 6. 头部 ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease),
              box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 14px 30px -24px rgba(11, 34, 57, .85);
}

.header-rail {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding-block: 13px;
}

/* 品牌 */
.brand {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--deep);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--deep);
  transition: color .3s var(--ease);
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .13em;
  color: var(--slate);
  transition: color .3s var(--ease);
}

/* 中间进度细线 */
.header-rail__line {
  display: block;
  flex: 1 1 auto;
  min-width: 40px;
  height: 3px;
  border-radius: 3px;
  background: rgba(35, 26, 20, .12);
  overflow: hidden;
}

.header-rail__progress {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--track), var(--amber));
  transition: width .1s linear;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  flex: 0 0 auto;
}

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

.site-nav__link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.site-nav__link::before { content: none; }

.site-nav__link:hover {
  background: rgba(11, 34, 57, .08);
  border-color: rgba(11, 34, 57, .16);
}

.site-nav__link[aria-current="page"] {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--bone);
  box-shadow: inset 0 -2px 0 var(--track);
}

.site-nav__entries {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 胶囊 */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .16s var(--ease);
}

.pill:active { transform: translateY(2px); }

.pill--ghost {
  border-color: var(--line-strong);
  color: var(--deep);
  background: transparent;
}

.pill--ghost:hover { background: rgba(11, 34, 57, .07); }

.pill--accent {
  background: var(--track);
  border-color: var(--track);
  color: #1B120C;
}

.pill--accent:hover { background: var(--amber); border-color: var(--amber); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 5;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}

.nav-toggle:hover { background: rgba(11, 34, 57, .07); }

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}

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

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

/* ---- 7. 按钮 ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .16s var(--ease),
              box-shadow .2s var(--ease);
}

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

.btn--primary {
  background: var(--track);
  color: #1B120C;
  box-shadow: 0 6px 0 rgba(11, 34, 57, .1);
}

.btn--primary:hover { background: var(--amber); }

.btn--dark {
  background: var(--deep);
  color: var(--bone);
}

.btn--dark:hover { background: var(--night); }

.btn--light {
  background: var(--bone);
  color: var(--deep);
}

.btn--light:hover { background: var(--mist); }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--deep);
  background: rgba(11, 34, 57, .06);
}

.on-dark .btn--outline {
  border-color: var(--line-dark);
  color: var(--bone);
}

.on-dark .btn--outline:hover {
  background: rgba(255, 249, 239, .1);
  border-color: var(--mist);
}

/* ---- 8. 标签 / 状态 ----------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(11, 34, 57, .2);
  background: rgba(255, 249, 239, .65);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.4;
  color: var(--deep);
  white-space: nowrap;
}

.on-dark .chip {
  border-color: var(--line-dark);
  background: rgba(159, 217, 206, .1);
  color: var(--mist);
}

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--slate);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(63, 90, 102, .16);
  flex: 0 0 auto;
}

.status--done { color: #0C6B4C; }

.status--done::before {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(53, 242, 176, .32);
}

.status--next { color: var(--track); }

.status--next::before {
  background: var(--track);
  box-shadow: 0 0 0 3px rgba(242, 106, 46, .22);
}

.on-dark .status { color: var(--mist); }
.on-dark .status--done { color: var(--mint); }
.on-dark .status--next { color: var(--amber); }

/* ---- 9. 网格 / 卡片 ----------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.card {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.2vw, 28px);
}

.card--night {
  background: var(--night);
  border-color: var(--line-dark);
  color: var(--bone);
}

.card--night .card__title,
.card--night h3 { color: var(--bone); }

.card--stripe { border-left: 4px solid var(--track); }

.card__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep);
}

.card__text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.card--night .card__text { color: var(--bone-soft); }

/* ---- 10. 图片容器 ------------------------------------------------------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--night);
  background-image:
    linear-gradient(135deg, rgba(53, 242, 176, .16), transparent 58%),
    linear-gradient(315deg, var(--deep), var(--night));
  isolation: isolate;
}

.media > img,
.media > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(11, 34, 57, 0) 55%, rgba(11, 34, 57, .55));
}

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

.media__placeholder {
  position: absolute;
  inset: auto auto 16px 18px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 249, 239, .72);
}

.media__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--slate);
}

/* ---- 11. 面包屑 / 正文 -------------------------------------------------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--slate);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-inline: 9px;
  color: var(--mist);
}

.breadcrumbs a {
  color: var(--deep);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--track);
  border-bottom-color: var(--track);
}

.on-dark .breadcrumbs,
.on-dark .breadcrumbs a { color: var(--mist); }

.prose {
  max-width: 70ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.78;
  color: var(--ink);
}

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

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--deep);
  letter-spacing: -.005em;
}

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

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

.prose ol { list-style: decimal; }

.prose li + li { margin-top: .45em; }

.prose a {
  color: var(--night);
  border-bottom: 1px solid var(--track);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

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

.prose strong { color: var(--deep); }

.on-dark .prose h2,
.on-dark .prose h3,
.on-dark .prose strong { color: var(--bone); }

.on-dark .prose a { color: var(--mist); }

/* ---- 12. 滚动显现 ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- 13. 页脚 ----------------------------------------------------------- */
.site-footer {
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-strip {
  height: 20px;
  background-color: var(--deep);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(53, 242, 176, .5) 0 2px,
    transparent 2px 26px
  );
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .78fr) minmax(0, .78fr) minmax(0, 1.3fr);
  gap: clamp(26px, 4vw, 58px);
  padding-block: clamp(40px, 5.5vw, 74px) clamp(28px, 3.6vw, 46px);
}

.footer__brandline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--deep);
  max-width: 15ch;
}

.footer__brandline::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--track), var(--amber));
}

.footer__meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--slate);
}

.footer__col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer__col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--track);
  flex: 0 0 auto;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}

.footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  transition: color .2s var(--ease);
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--track);
  transition: width .24s var(--ease);
}

.footer__link:hover { color: var(--deep); }
.footer__link:hover::after { width: 100%; }

.footer__contact {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer__contact-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
}

.footer__contact-row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--slate);
  padding-top: 3px;
}

.footer__contact-row dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.footer__bottom {
  border-top: 1px solid var(--line);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--slate);
}

.footer__icp { color: var(--slate); }

/* ---- 14. 平板 ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-nav__link { padding: 7px 10px; font-size: 13.5px; }
  .site-nav { gap: 8px; }
}

/* ---- 15. 移动端头部与全屏导航 ------------------------------------------- */
@media (max-width: 1024px) {
  html { scroll-padding-top: 84px; }

  .header-rail {
    gap: 12px;
    padding-block: 12px;
  }

  .header-rail__line { height: 2px; min-width: 24px; }

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(76px + env(safe-area-inset-top, 0px)) clamp(22px, 7vw, 46px) 44px;
    margin: 0;
    background: var(--deep);
    color: var(--bone);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .28s var(--ease), transform .28s var(--ease),
                visibility .28s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    counter-reset: navnum;
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(255, 249, 239, .14);
  }

  .site-nav__item:first-child {
    border-top: 1px solid rgba(255, 249, 239, .14);
  }

  .site-nav__link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 2px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--bone);
    font-family: var(--font-display);
    font-size: clamp(19px, 4.6vw, 24px);
    font-weight: 600;
    letter-spacing: .03em;
    box-shadow: none;
  }

  .site-nav__link::before {
    counter-increment: navnum;
    content: counter(navnum, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--mint);
    opacity: .8;
  }

  .site-nav__link:hover {
    background: none;
    border-color: transparent;
    color: var(--amber);
  }

  .site-nav__link[aria-current="page"] {
    background: none;
    color: var(--amber);
    box-shadow: none;
  }

  .site-nav__link[aria-current="page"]::before {
    color: var(--track);
    opacity: 1;
  }

  .site-nav__entries {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 30px;
  }

  .site-nav__entries .pill {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
  }

  .site-nav__entries .pill--ghost {
    color: var(--bone);
    border-color: rgba(255, 249, 239, .38);
  }

  .site-nav__entries .pill--ghost:hover {
    background: rgba(255, 249, 239, .1);
  }

  /* 展开时头部同色，形成整块深色面板 */
  html.nav-open,
  html.nav-open body { overflow: hidden; }

  html.nav-open .site-header {
    background: var(--deep);
    border-bottom-color: transparent;
    box-shadow: none;
  }

  html.nav-open .brand__mark {
    background: var(--bone);
    color: var(--deep);
  }

  html.nav-open .brand__name { color: var(--bone); }
  html.nav-open .brand__sub { color: var(--mist); }

  html.nav-open .nav-toggle {
    color: var(--bone);
    border-color: rgba(255, 249, 239, .35);
    background: transparent;
  }

  html.nav-open .nav-toggle:hover { background: rgba(255, 249, 239, .1); }

  html.nav-open .header-rail__line { background: rgba(255, 249, 239, .2); }

  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px clamp(20px, 5vw, 44px);
  }

  .footer__brand { grid-column: 1 / -1; }
}

/* ---- 16. 手机 ----------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-block: 36px 30px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .media { border-radius: var(--radius-md); }
  .card { border-radius: var(--radius-md); }
}

@media (max-width: 560px) {
  .brand__mark {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 15px;
  }

  .brand__name { font-size: 17px; }

  .brand__sub {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .nav-toggle {
    padding: 8px 12px;
    gap: 7px;
  }

  .nav-toggle__label { font-size: 11px; }

  .footer__contact-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

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

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

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-nav {
    transition: opacity .001ms linear, visibility .001ms linear;
    transform: none !important;
  }

  .header-rail__progress { transition: none !important; }
}
