/* ==========================================================================
   万博俱乐部中文站 · 共享样式 /assets/site.css
   深靛蓝档案柜 + 纸白内页 + 暖铜金装订线
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --indigo: #12204A;
  --indigo-mid: #1B2C5C;
  --mist: #E6EAF2;
  --paper: #F7F4EE;
  --copper: #C08A3E;
  --copper-soft: #E4C38A;
  --celadon: #5E8C7A;
  --cinnabar: #B5483A;
  --line: #C9C3B8;
  --ink: #1E1E1E;

  --font-heading: "FZLanTingHeiS-B-GB", "方正兰亭黑", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-48: 3rem;
  --fs-72: 4.5rem;
  --fs-96: 6rem;

  --shell: 1320px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --shadow-lift: 0 22px 44px -34px rgba(18, 32, 74, 0.6);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5 {
  margin: 0 0 0.55em;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: inherit;
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--copper); color: var(--indigo); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 布局基座 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(52px, 7vw, 112px); }
.section--tight { padding-block: clamp(32px, 4vw, 64px); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 36px); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -84px;
  left: max(16px, calc((100vw - var(--shell)) / 2 + 24px));
  z-index: 300;
  padding: 12px 22px;
  background: var(--copper);
  color: var(--indigo);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  border-radius: 0 0 2px 2px;
  transition: top 0.24s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 5. 页头 ---------- */
.site-header {
  --header-h: 84px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--paper);
  background: transparent;
  border-bottom: 1px solid transparent;
  isolation: isolate;
  transition: background-color 0.36s var(--ease),
              border-color 0.36s var(--ease),
              box-shadow 0.36s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 32, 74, 0.88) 0%, rgba(18, 32, 74, 0.42) 62%, rgba(18, 32, 74, 0) 100%);
  transition: opacity 0.36s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--indigo);
  border-bottom-color: rgba(192, 138, 62, 0.42);
  box-shadow: 0 20px 40px -34px rgba(0, 0, 0, 0.92);
}
.site-header[data-scrolled="true"]::before { opacity: 0; }

.site-header[data-open="true"] {
  background: var(--indigo);
  border-bottom-color: rgba(192, 138, 62, 0.42);
}
.site-header[data-open="true"]::before { opacity: 0; }

.header__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(192, 138, 62, 0.16);
}
.header__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--copper) 0%, var(--copper-soft) 100%);
}

.header__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.brand:hover { color: var(--copper-soft); }

.brand__mark {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--copper);
  background: linear-gradient(140deg, rgba(192, 138, 62, 0.22), transparent 62%);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--copper);
  opacity: 0.92;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.07em;
}
.brand__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--copper-soft);
  transition: color 0.24s var(--ease);
}
.site-header[data-scrolled="true"] .brand__sub { color: rgba(228, 195, 138, 0.72); }

/* 服务台胶囊 */
.services-dock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 17px 9px 13px;
  border: 1px solid rgba(228, 195, 138, 0.46);
  border-radius: 999px;
  color: var(--copper-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 0.22s var(--ease),
              border-color 0.22s var(--ease),
              background-color 0.22s var(--ease),
              padding 0.26s var(--ease),
              font-size 0.26s var(--ease);
}
.services-dock:hover {
  color: var(--paper);
  border-color: var(--copper);
  background: rgba(192, 138, 62, 0.16);
}
.site-header[data-scrolled="true"] .services-dock {
  padding: 6px 14px 6px 11px;
  font-size: 11px;
}

.services-dock__glyph {
  position: relative;
  flex: none;
  width: 18px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}
.services-dock__glyph::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid currentColor;
  opacity: 0.85;
}

.services-dock__label { white-space: nowrap; }

/* 导航 */
.header__cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.6vw, 24px);
  min-width: 0;
}

.primary-nav { min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list__item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 11px;
  color: rgba(247, 244, 238, 0.84);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.22s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 6px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.26s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--copper-soft); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 移动端开关 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(228, 195, 138, 0.5);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--copper);
  background: rgba(192, 138, 62, 0.16);
}
.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease), top 0.26s var(--ease);
}
.nav-toggle__bar:nth-of-type(2) { top: 15px; }
.nav-toggle__bar:nth-of-type(3) { top: 21px; }
.nav-toggle__bar:nth-of-type(4) { top: 27px; }

.site-header[data-open="true"] .nav-toggle__bar:nth-of-type(2) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle__bar:nth-of-type(3) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bar:nth-of-type(4) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--indigo);
  color: rgba(247, 244, 238, 0.76);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper) 0 18%, rgba(192, 138, 62, 0.22) 18% 100%);
}

.footer__shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(24px, 3vw, 40px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.65fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(30px, 4vw, 54px);
  border-bottom: 1px solid rgba(201, 195, 184, 0.18);
}

.footer__brand .brand { color: var(--paper); }
.footer__brand .brand__sub { color: var(--celadon); }

.footer__motto {
  margin: 22px 0 10px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.footer__note {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(247, 244, 238, 0.58);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer__col-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 195, 184, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper-soft);
}

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

.footer__link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14.5px;
  color: rgba(247, 244, 238, 0.76);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--copper);
  transform: translateY(-50%);
  transition: width 0.2s var(--ease);
}
.footer__link:hover { color: var(--paper); padding-left: 16px; }
.footer__link:hover::before { width: 10px; }

.footer__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(26px, 4vw, 44px) 0;
  border-bottom: 1px solid rgba(201, 195, 184, 0.18);
}

.contact-card { min-width: 0; }

.contact-card__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--celadon);
}

.contact-card__value {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper);
}
.contact-card__value--mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 13px;
  background: transparent;
  border: 1px solid rgba(192, 138, 62, 0.45);
  border-radius: 999px;
  color: var(--copper-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.2s var(--ease),
              background-color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.copy-btn:hover {
  color: var(--paper);
  background: rgba(192, 138, 62, 0.18);
  border-color: var(--copper);
}
.copy-btn[data-copied="true"] {
  color: var(--paper);
  background: var(--celadon);
  border-color: var(--celadon);
}
.copy-btn__label { white-space: nowrap; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-top: clamp(20px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(247, 244, 238, 0.48);
}
.footer__copy, .footer__icp { margin: 0; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__legal-link {
  color: rgba(247, 244, 238, 0.62);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__legal-link:hover {
  color: var(--copper-soft);
  border-bottom-color: var(--copper-soft);
}

/* ---------- 7. 通用文字与标签 ---------- */
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.45rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.6em; font-size: clamp(1.12rem, 2vw, 1.4rem); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { font-weight: 700; color: var(--indigo); }
.prose a {
  color: var(--indigo);
  border-bottom: 1px solid var(--copper);
  transition: color 0.2s var(--ease);
}
.prose a:hover { color: var(--copper); }
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--copper);
  color: rgba(30, 30, 30, 0.78);
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--celadon);
}

.coord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--copper { color: var(--copper); }
.tag--celadon { color: var(--celadon); }
.tag--cinnabar { color: var(--cinnabar); }

/* ---------- 8. 面板与分隔 ---------- */
.panel {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  background: var(--paper);
  border: 1px solid rgba(201, 195, 184, 0.6);
}
.panel--deep {
  background: var(--indigo);
  border-color: rgba(192, 138, 62, 0.28);
  color: rgba(247, 244, 238, 0.82);
}
.panel--deep h2, .panel--deep h3 { color: var(--paper); }
.panel--mist {
  background: var(--mist);
  border-color: rgba(18, 32, 74, 0.1);
}
.panel--raised { box-shadow: var(--shadow-lift); }

.stack-rule { position: relative; }
.stack-rule::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--copper) 0%, rgba(201, 195, 184, 0.4) 42%, transparent 100%);
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--copper);
  border: 1px solid var(--copper);
  color: var(--indigo);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.22s var(--ease),
              color 0.22s var(--ease),
              border-color 0.22s var(--ease),
              transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--copper-soft); border-color: var(--copper-soft); }

.btn--ghost {
  background: transparent;
  color: var(--copper-soft);
  border-color: rgba(192, 138, 62, 0.5);
}
.btn--ghost:hover {
  background: rgba(192, 138, 62, 0.16);
  color: var(--paper);
  border-color: var(--copper);
}

.btn--line {
  background: transparent;
  color: var(--indigo);
  border-color: var(--line);
}
.btn--line:hover {
  background: transparent;
  color: var(--indigo);
  border-color: var(--copper);
}

/* ---------- 10. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: inherit;
  opacity: 0.72;
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__link {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.crumbs__link:hover { color: var(--copper); border-bottom-color: currentColor; }
.crumbs__sep { color: var(--copper); opacity: 0.9; }

/* ---------- 11. 图片容器基础规则 ---------- */
.figure { margin: 0; position: relative; }

.figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(192, 138, 62, 0.3);
  background:
    radial-gradient(120% 120% at 12% 8%, rgba(192, 138, 62, 0.3), transparent 55%),
    linear-gradient(160deg, var(--indigo) 0%, var(--indigo-mid) 62%, #22336A 100%);
}
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(247, 244, 238, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 238, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}
.figure__media img,
.figure__media svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(30, 30, 30, 0.6);
}
.figure--tall .figure__media { aspect-ratio: 3 / 4; }
.figure--wide .figure__media { aspect-ratio: 21 / 9; }

/* ---------- 12. 动效协议 ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-toc][aria-current] { color: var(--copper); }

/* ---------- 13. 响应式：平板 ---------- */
@media (max-width: 1080px) {
  .site-header { --header-h: 68px; }

  .header__inner {
    grid-template-columns: 1fr auto;
    justify-content: space-between;
  }

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

  .header__cluster {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 26px;
    padding: 30px var(--gutter) 48px;
    background: var(--indigo);
    border-top: 1px solid rgba(192, 138, 62, 0.32);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease),
                transform 0.28s var(--ease),
                visibility 0.28s var(--ease);
  }

  .site-header[data-open="true"] .header__cluster {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav { order: 1; width: 100%; }
  .services-dock { order: 2; align-self: flex-start; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
  }
  .nav-list__item + .nav-list__item { border-top: 1px solid rgba(201, 195, 184, 0.14); }

  .nav-link {
    display: block;
    width: 100%;
    padding: 17px 0;
    font-size: 20px;
    letter-spacing: 0.06em;
  }
  .nav-link::after {
    left: 0;
    right: auto;
    bottom: 12px;
    width: 0;
    transform: none;
    transition: width 0.26s var(--ease);
  }
  .nav-link:hover::after,
  .nav-link:focus-visible::after,
  .nav-link[aria-current="page"]::after { width: 44px; }

  body.nav-open { overflow: hidden; }

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

/* ---------- 14. 响应式：手机 ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 92px; }
  body { font-size: 1rem; line-height: 1.76; }

  .brand__sub { display: none; }
  .brand__name { font-size: 16px; }

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

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .footer__contact { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer__note { max-width: none; }
}

@media (max-width: 560px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer__legal { gap: 14px; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- 15. 降低动效偏好 ---------- */
@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;
  }

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

  .btn:hover,
  .footer__link:hover { transform: none; padding-left: 0; }
}
