/* ==========================================================================
   axis-zongheng.com.cn — /assets/site.css
   共享外壳：纵向轨道头部、页脚、中文排版、基础组件
   ========================================================================== */

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

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

html,
body { margin: 0; padding: 0; }

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

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

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

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

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

a { color: inherit; }

table { width: 100%; border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #0B1A2B;
  --ink-700: #16293E;
  --ink-500: #3C4E63;
  --orange: #FF6A2B;
  --orange-ink: #FF8A57;
  --orange-soft: #FFE3D3;
  --celadon: #2E9B7C;
  --celadon-soft: #DCF0E8;
  --paper: #F7F2E8;
  --paper-2: #EFE9DC;
  --rule: #C8C0AF;
  --yellow: #F2C744;

  --rail-w: 96px;
  --page-max: 1180px;
  --gutter: clamp(18px, 4vw, 56px);

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

  --fs-h1: clamp(28px, 4.6vw, 48px);
  --fs-h2: clamp(22px, 2.8vw, 36px);
  --fs-h3: clamp(17px, 1.5vw, 21px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-mono: 12px;

  --dur: 180ms;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --shadow-lift: 0 10px 28px rgba(11, 26, 43, .12);
}

/* ---------- 3. Base typography ---------- */
body {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(200, 192, 175, .20) 0 1px,
    transparent 1px 120px
  );
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: .04em;
  color: var(--ink-900);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 68ch; }

strong { font-weight: 700; }

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

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

#main-content {
  display: block;
  min-height: 40vh;
}

#main-content:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink-500);
  margin: 0;
}

.rule-h {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--rule);
}

.grid-lines {
  background-image:
    repeating-linear-gradient(90deg, rgba(200, 192, 175, .40) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(200, 192, 175, .24) 0 1px, transparent 1px 88px);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(11, 26, 43, .28);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 6. Header / 纵向轨道 ---------- */
.site-header {
  position: relative;
  z-index: 90;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0 18px;
  background: var(--ink-900);
  color: var(--paper);
  border-right: 1px solid rgba(200, 192, 175, .22);
  overflow: hidden;
}

.site-header[data-scrolled] .rail {
  box-shadow: 10px 0 30px rgba(11, 26, 43, .16);
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  padding: 0 6px;
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 242, 232, .34);
  border-radius: 2px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--paper);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail__brand:hover .rail__mark,
.rail__brand:focus-visible .rail__mark {
  border-color: var(--orange);
  background: rgba(255, 106, 43, .14);
  color: var(--yellow);
}

.rail__brandtext {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rail__wordmark {
  writing-mode: vertical-rl;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1;
  color: var(--paper);
}

.rail__tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(200, 192, 175, .82);
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.rail__nav::-webkit-scrollbar { width: 0; height: 0; }

.rail__list {
  display: flex;
  flex-direction: column;
}

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  text-decoration: none;
  color: rgba(247, 242, 232, .66);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: transparent;
  transition: background-color var(--dur) var(--ease);
}

.rail__link:hover {
  color: var(--paper);
  background: rgba(247, 242, 232, .06);
}

.rail__link:hover::before { background: var(--orange); }

.rail__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 106, 43, .12);
}

.rail__link[aria-current="page"]::before { background: var(--orange); }

.rail__link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  color: var(--paper);
}

.rail__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(200, 192, 175, .7);
  transition: color var(--dur) var(--ease);
}

.rail__link:hover .rail__idx { color: var(--yellow); }

.rail__link[aria-current="page"] .rail__idx { color: var(--orange); }

.rail__label {
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
}

.rail__meta {
  width: 100%;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(200, 192, 175, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rail__metaLabel {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: rgba(200, 192, 175, .7);
}

.rail__phone {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--paper);
  white-space: nowrap;
}

.rail__cta {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 8px 4px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--ink-900);
  background: var(--orange);
  border-radius: 2px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.rail__cta:hover,
.rail__cta:focus-visible {
  background: var(--yellow);
  color: var(--ink-900);
}

/* 遮罩 */
.rail-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(11, 26, 43, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

/* 移动端唤出按钮 */
.nav-toggle {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  width: 64px;
  height: 60px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--ink-900);
  color: var(--paper);
  border: 1px solid rgba(247, 242, 232, .24);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(11, 26, 43, .28);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--orange);
  color: var(--yellow);
}

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

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

.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1;
  color: currentColor;
}

.nav-toggle[data-open] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }

.nav-toggle[data-open] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle[data-open] {
  background: var(--orange);
  color: var(--ink-900);
  border-color: var(--orange);
}

/* 阅读进度 */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  background: transparent;
}

.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .scroll-meter { left: var(--rail-w); }
}

/* ---------- 7. 移动端抽屉 ---------- */
@media (max-width: 1023px) {
  body { padding-left: 0; }

  .rail-scrim { display: block; }

  .rail-scrim[data-open] {
    opacity: 1;
    pointer-events: auto;
  }

  .rail {
    inset: 0 auto 0 0;
    width: min(330px, 88vw);
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    transform: translateX(-102%);
    visibility: hidden;
    box-shadow: 14px 0 44px rgba(11, 26, 43, .32);
    transition: transform 220ms var(--ease), visibility 0s linear 220ms;
  }

  .rail[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 220ms var(--ease), visibility 0s linear 0s;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0;
  }

  .rail__mark { width: 44px; height: 44px; font-size: 19px; }

  .rail__brandtext { align-items: flex-start; gap: 3px; }

  .rail__wordmark {
    writing-mode: horizontal-tb;
    font-size: 18px;
    letter-spacing: .2em;
  }

  .rail__tag { display: block; }

  .rail__nav {
    flex: 1 1 auto;
    border-top: 1px solid rgba(200, 192, 175, .22);
    padding-top: 6px;
  }

  .rail__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 15px 6px;
    border-bottom: 1px solid rgba(200, 192, 175, .14);
  }

  .rail__link::before {
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
  }

  .rail__idx {
    width: 24px;
    font-size: 11px;
  }

  .rail__label {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: .08em;
  }

  .rail__meta {
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0 0;
  }

  .rail__metaLabel { font-size: 10px; }

  .rail__phone {
    font-size: 19px;
    letter-spacing: .02em;
  }

  .rail__cta {
    padding: 12px 10px;
    font-size: 15px;
    letter-spacing: .1em;
  }

  .nav-toggle { display: flex; }

  body.is-nav-open { overflow: hidden; }
}

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

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

.btn:active { transform: translateY(0); }

.btn--signal {
  background: var(--orange);
  color: var(--ink-900);
  border-color: var(--orange);
}

.btn--signal:hover {
  background: var(--orange-ink);
  border-color: var(--orange-ink);
  box-shadow: 0 8px 20px rgba(255, 106, 43, .28);
}

.btn--ink {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}

.btn--ink:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  box-shadow: 0 8px 20px rgba(11, 26, 43, .22);
}

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

.btn--line:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 242, 232, .42);
}

.btn--ghost:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ---------- 9. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.tag--orange {
  color: #7A2D08;
  background: var(--orange-soft);
  border-color: rgba(255, 106, 43, .38);
}

.tag--celadon {
  color: #1C6B55;
  background: var(--celadon-soft);
  border-color: rgba(46, 155, 124, .38);
}

/* ---------- 10. 卡片 ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow-lift);
}

.card--glass {
  background: rgba(247, 242, 232, .74);
  border: 1px solid rgba(247, 242, 232, .9);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 10px 30px rgba(11, 26, 43, .14);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-500);
}

.card__body { padding: 18px; }

/* ---------- 11. 图片容器（页面阶段使用） ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.media__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(200, 192, 175, .40) 0 1px,
    transparent 1px 12px
  );
}

.media__frame--wide { aspect-ratio: 21 / 9; }
.media__frame--tall { aspect-ratio: 4 / 5; }
.media__frame--square { aspect-ratio: 1 / 1; }

.media__img,
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.02);
}

.media__label {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-900);
  background: rgba(247, 242, 232, .74);
  border: 1px solid rgba(247, 242, 232, .9);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color var(--dur) var(--ease);
}

.media:hover .media__label { background: rgba(247, 242, 232, .96); }

.media__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-500);
  background: var(--paper);
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-500);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--rule);
  margin-right: 8px;
}

.breadcrumb__link {
  color: var(--ink-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.breadcrumb__current {
  color: var(--ink-900);
  font-weight: 500;
}

/* ---------- 13. 分区与网格 ---------- */
.section { padding-block: clamp(44px, 7vw, 96px); }

.section--tight { padding-block: clamp(26px, 4vw, 56px); }

.section--paper2 { background: var(--paper-2); }

.section--ink {
  background: var(--ink-900);
  color: var(--paper);
}

.section--ink .section-title,
.section--ink h2,
.section--ink h3 { color: var(--paper); }

.section--ink .section-note {
  color: rgba(247, 242, 232, .74);
  border-left-color: rgba(200, 192, 175, .45);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: end;
  gap: clamp(16px, 3vw, 36px);
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section-index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--orange);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.26;
  color: var(--ink-900);
  margin: 0;
  max-width: 22em;
}

.section-note {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--ink-500);
  border-left: 2px solid var(--rule);
  padding-left: 14px;
  margin: 0;
  max-width: 34ch;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 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)); }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-full { grid-column: 1 / -1; }

/* ---------- 14. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

/* ---------- 15. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-900);
  color: var(--paper);
  padding-bottom: clamp(26px, 4vw, 44px);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0 56px,
    var(--yellow) 56px 72px,
    var(--celadon) 72px 128px,
    var(--ink-700) 128px 176px
  );
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 64px);
  padding-top: clamp(38px, 6vw, 72px);
  padding-bottom: clamp(22px, 3vw, 36px);
}

.footer__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.footer__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(200, 192, 175, .8);
}

.footer__title {
  margin: 14px 0 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: .04em;
  color: var(--paper);
  max-width: 16em;
}

.footer__cta { margin-top: 24px; }

.footer__hours {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.7;
  color: rgba(200, 192, 175, .78);
  max-width: none;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}

.footer__col { min-width: 0; }

.footer__colTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--celadon);
}

.footer__colTitle::before {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  background: var(--celadon);
}

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

.footer__link {
  display: inline-block;
  width: fit-content;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 242, 232, .8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--yellow);
  border-bottom-color: rgba(242, 199, 68, .6);
}

.footer__contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid rgba(200, 192, 175, .22);
}

.footer__contactItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer__contactLabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(200, 192, 175, .8);
}

.footer__contactValue {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer__base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(200, 192, 175, .22);
}

.footer__brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--paper);
}

.footer__mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(200, 192, 175, .78);
}

.footer__legal { color: rgba(247, 242, 232, .62); }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1023px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .section-note { max-width: 46ch; }

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

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

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

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

  .span-2,
  .span-3 { grid-column: auto; }

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

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

  .footer__base {
    justify-content: flex-start;
    gap: 8px 20px;
  }

  .btn {
    width: 100%;
    padding: 14px 18px;
  }
}

/* ---------- 17. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .card:focus-within,
  .btn:hover { transform: none; }
}
