/* =============================================================
   豪利777官网 · 共享样式表  /assets/site.css
   数字档案室 × 赛博展柜 · 深靛蓝 / 电光青 / 暖橙
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

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

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

button { background: none; border: 0; cursor: pointer; }

[hidden] { display: none !important; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --ink: #0B1B3A;
  --ink-2: #101F44;
  --ink-3: #1E3A6E;
  --cyan: #28E0D0;
  --orange: #FF8A3D;
  --white: #F5FAFF;
  --mist: #A9C6D8;
  --blue: #2B8CFF;
  --amber: #FFD166;

  /* 语义 */
  --bg: var(--ink);
  --text: rgba(245, 250, 255, .86);
  --text-strong: var(--white);
  --text-dim: var(--mist);
  --line: rgba(169, 198, 216, .16);
  --line-strong: rgba(169, 198, 216, .3);

  /* 字体 */
  --font-display: "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Noto Sans SC", monospace;

  /* 尺寸 */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --shadow-card: 0 26px 50px -32px rgba(2, 7, 20, .95);
  --shadow-pop: 0 20px 44px -20px rgba(2, 7, 20, .85);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(169, 198, 216, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 198, 216, .04) 1px, transparent 1px),
    radial-gradient(80% 60% at 8% -8%, rgba(43, 140, 255, .18), transparent 62%),
    radial-gradient(60% 50% at 100% 0%, rgba(40, 224, 208, .10), transparent 60%),
    radial-gradient(70% 55% at 50% 108%, rgba(255, 138, 61, .09), transparent 62%);
  background-size: 96px 96px, 96px 96px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: rgba(40, 224, 208, .3); color: var(--white); }

.mono {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .02em;
  color: var(--cyan);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: .008em;
  color: var(--white);
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: .02em;
  color: var(--white);
}

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.35vw, 17.5px);
  color: var(--mist);
}

/* ---------- 4. 布局 ---------- */
.shell {
  width: min(1320px, 100% - 2 * clamp(16px, 4.5vw, 56px));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.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)); }

.divider-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(40, 224, 208, .45) 22%,
    rgba(43, 140, 255, .38) 55%,
    rgba(255, 138, 61, .28) 78%,
    transparent);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease,
              transform .22s ease, box-shadow .22s ease;
}

.btn--solid {
  background: linear-gradient(118deg, var(--cyan), #35b8ff 72%, #7fd0ff);
  color: #042034;
  box-shadow: 0 12px 28px -16px rgba(40, 224, 208, .95);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(40, 224, 208, .95);
}

.btn--quiet {
  border-color: var(--line-strong);
  color: var(--mist);
  background: rgba(255, 255, 255, .025);
}

.btn--quiet:hover {
  border-color: rgba(40, 224, 208, .55);
  color: var(--white);
  background: rgba(40, 224, 208, .08);
}

.btn--warm {
  background: linear-gradient(118deg, var(--orange), var(--amber));
  color: #3d1700;
  box-shadow: 0 12px 28px -18px rgba(255, 138, 61, .95);
}

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

/* ---------- 6. 标签与胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .025);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.tag--cyan { background: var(--cyan); border-color: transparent; color: #05292c; font-weight: 700; }
.tag--amber { background: var(--amber); border-color: transparent; color: #3a2600; font-weight: 700; }
.tag--warm { background: var(--orange); border-color: transparent; color: #3d1700; font-weight: 700; }

/* ---------- 7. 卡片 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(30, 58, 110, .55), rgba(16, 31, 68, .88));
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(140deg, rgba(40, 224, 208, .16), transparent 46%, rgba(255, 138, 61, .12));
  transition: opacity .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 224, 208, .45);
  box-shadow: 0 30px 54px -30px rgba(2, 7, 20, 1);
}

.card:hover::after { opacity: 1; }

.card__meta {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.card__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
}

.card__text {
  font-size: 14.5px;
  color: var(--mist);
}

/* ---------- 8. 图片容器（页面阶段放置 <img> / <svg>） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(43, 140, 255, .26), transparent 56%),
    radial-gradient(90% 120% at 100% 100%, rgba(255, 138, 61, .18), transparent 58%),
    linear-gradient(160deg, rgba(30, 58, 110, .7), rgba(16, 31, 68, .95));
}

.media-frame > img,
.media-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(6, 14, 32, .9));
}

/* ---------- 9. 面包屑与正文 ---------- */
.breadcrumb { padding-top: 20px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(169, 198, 216, .82);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__sep { opacity: .45; }
.breadcrumb__link { transition: color .2s ease; }
.breadcrumb__link:hover { color: var(--cyan); }

.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 2.1em;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.24;
  letter-spacing: .02em;
  color: var(--white);
}

.prose h3 {
  margin-top: 1.7em;
  font-size: 1.05rem;
  color: var(--white);
}

.prose p,
.prose li { color: rgba(245, 250, 255, .8); }

.prose ul { list-style: none; }

.prose li {
  position: relative;
  padding-left: 1.35em;
  margin-top: .5em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan);
  opacity: .85;
}

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

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

/* ---------- 10. 头部 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -110px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #042034;
  font-size: 13px;
  font-weight: 700;
  transition: top .18s ease;
}

.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: linear-gradient(180deg, rgba(11, 27, 58, .97), rgba(11, 27, 58, .9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  padding-block: 14px;
}

/* 品牌印记 */
.brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark__glyph {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid rgba(40, 224, 208, .32);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(40, 224, 208, .22), rgba(43, 140, 255, .14) 55%, rgba(255, 138, 61, .22));
  transition: transform .3s ease;
}

.brand-mark__glyph i {
  display: block;
  border-radius: 2px;
  background: var(--mist);
  opacity: .55;
}

.brand-mark__glyph i:nth-child(1) { background: var(--cyan); opacity: 1; }
.brand-mark__glyph i:nth-child(4) { background: var(--orange); opacity: 1; }

.brand-mark:hover .brand-mark__glyph { transform: rotate(-6deg); }

.brand-mark__text { display: flex; flex-direction: column; }

.brand-mark__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--white);
}

.brand-mark__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(40, 224, 208, .78);
}

/* 版本胶囊 */
.version-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline: auto;
  padding: 8px 16px 8px 14px;
  border: 1px solid rgba(40, 224, 208, .22);
  border-radius: var(--pill);
  background: linear-gradient(100deg, rgba(40, 224, 208, .12), rgba(43, 140, 255, .06) 58%, rgba(255, 138, 61, .1));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
}

.version-strip__pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(40, 224, 208, .55);
  animation: pulse-dot 2.6s ease-out infinite;
}

.version-strip__key { color: rgba(169, 198, 216, .85); }
.version-strip__num { font-weight: 700; color: var(--cyan); }
.version-strip__sep { width: 1px; height: 12px; background: rgba(169, 198, 216, .3); }
.version-strip__note { color: rgba(169, 198, 216, .8); }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(40, 224, 208, .5); }
  70% { box-shadow: 0 0 0 9px rgba(40, 224, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 224, 208, 0); }
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .03);
  transition: border-color .22s ease, background-color .22s ease;
}

.nav-toggle:hover { border-color: rgba(40, 224, 208, .55); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  border-top: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 2px;
  background: var(--orange);
}

/* 第二层导航 */
.site-nav {
  border-top: 1px solid rgba(169, 198, 216, .12);
  background: linear-gradient(90deg, rgba(16, 31, 68, .92), rgba(11, 27, 58, .92));
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 5px;
}

.site-nav__list {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  color: rgba(245, 250, 255, .74);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-nav__link:hover {
  color: var(--white);
  background: rgba(40, 224, 208, .09);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: rgba(40, 224, 208, .7);
}

.site-nav__link[aria-current="page"] {
  color: var(--white);
  background: rgba(40, 224, 208, .14);
  border-color: rgba(40, 224, 208, .45);
}

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

/* 电脑收藏夹入口 */
.favorite-pin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 138, 61, .34);
  border-radius: var(--pill);
  background: linear-gradient(110deg, rgba(255, 138, 61, .12), rgba(255, 209, 102, .07));
  transition: border-color .22s ease, background-color .22s ease, transform .22s ease;
}

.favorite-pin:hover {
  border-color: rgba(255, 138, 61, .7);
  background: rgba(255, 138, 61, .18);
  transform: translateY(-1px);
}

.favorite-pin__tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.favorite-pin__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255, 209, 102, .88);
}

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--orange));
  opacity: .92;
  pointer-events: none;
}

/* 提示浮层 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  border: 1px solid rgba(40, 224, 208, .42);
  border-radius: var(--pill);
  background: rgba(16, 31, 68, .95);
  box-shadow: var(--shadow-pop);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--white);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast[data-visible] {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(40, 224, 208, .08), transparent 56%),
    radial-gradient(100% 100% at 100% 0%, rgba(255, 138, 61, .07), transparent 52%),
    linear-gradient(180deg, var(--ink-2), #08142c);
  color: var(--mist);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 198, 216, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 198, 216, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent 72%);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.15fr;
  gap: clamp(24px, 3.6vw, 48px);
  padding-block: clamp(44px, 6vw, 74px) clamp(26px, 4vw, 44px);
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.brand-mark--footer .brand-mark__name { font-size: 18px; }

.footer-brand__line {
  font-size: 14.5px;
  color: rgba(245, 250, 255, .82);
}

.footer-note {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(169, 198, 216, .78);
}

.footer-col { display: flex; flex-direction: column; }

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list { display: flex; flex-direction: column; gap: 2px; }

.footer-list__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(245, 250, 255, .72);
  transition: color .2s ease, transform .2s ease;
}

.footer-list__link:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 13.5px;
  color: rgba(245, 250, 255, .8);
  word-break: break-word;
}

.footer-contact__key {
  flex: 0 0 auto;
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(40, 224, 208, .8);
  padding-top: 2px;
}

.footer-col--contact .footer-note { margin-top: 12px; }

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(169, 198, 216, .14);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: rgba(169, 198, 216, .85);
}

.footer-base__icp { color: var(--mist); }

/* ---------- 12. 显现与筛选协议 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.22, .8, .28, 1);
}

.js-ready [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

[data-filter-item][data-filtered-out] { display: none; }

[data-filter][aria-pressed="true"] {
  border-color: rgba(40, 224, 208, .6);
  background: rgba(40, 224, 208, .16);
  color: var(--white);
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}

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

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    display: none;
    border-top: 1px solid var(--line);
  }

  .site-header[data-open] .site-nav {
    display: block;
    max-height: 72vh;
    overflow-y: auto;
  }

  .site-nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-block: 12px 20px;
  }

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

  .site-nav__link {
    border-radius: var(--r-sm);
    padding: 13px 16px;
    font-size: 15px;
  }

  .favorite-pin {
    justify-content: center;
    margin-top: 12px;
    padding: 13px 18px;
  }

  .header-actions .btn--quiet { display: none; }
}

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

@media (max-width: 760px) {
  .brand-mark__sub { display: none; }

  .version-strip {
    order: 3;
    flex-basis: 100%;
    margin-inline: 0;
    white-space: normal;
    justify-content: flex-start;
  }

  .version-strip__note { display: none; }
  .version-strip__sep { display: none; }

  .header-actions .btn { padding: 10px 16px; font-size: 13px; }
}

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

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

  .section__head { align-items: flex-start; }

  .display { font-size: clamp(2.2rem, 10vw, 3rem); }
}

@media (max-width: 420px) {
  .nav-toggle__text { display: none; }
  .footer-base { font-size: 11.5px; }
}

/* ---------- 14. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .btn:hover,
  .favorite-pin:hover { transform: none; }
}
