/* ==========================================================================
   久赢平台 · 全站共享样式 /assets/site.css
   高原天光 × 精密索引：直角、细线、网格、经幡色带
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote,
dl, dt, dd, details, summary, table, fieldset {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1418;
  --paper: #FBFCFB;
  --cyan: #0E3B4A;
  --teal: #1F6E7E;
  --gold: #C79A3E;
  --gold-deep: #8A6A1F;
  --ochre: #A8452E;
  --pine: #2E8B7A;
  --mist: #DDE5E6;
  --steel: #63737A;
  --sand: #F1EEE4;
  --sand-soft: rgba(241, 238, 228, 0.6);
  --body-text: #22323A;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", ui-monospace, "Courier New", monospace;

  --w-page: 1200px;
  --w-narrow: 820px;
  --pad: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2.4vw, 32px);
  --sp-section: clamp(56px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grid-cell: 24px;
  --line: 1px solid var(--mist);
  --header-h: 0px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.2vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.4; }
h4 { font-size: 17px; font-weight: 700; line-height: 1.5; }

p { overflow-wrap: break-word; }

strong, b { font-weight: 700; }

::selection { background: var(--cyan); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.header-utility :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--paper);
}

/* ---------- 4. 通用布局 ---------- */
.container {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container--narrow { max-width: var(--w-narrow); }

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

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

.texture-grid {
  background-image:
    linear-gradient(to right, rgba(14, 59, 74, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 59, 74, 0.05) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.6em; }
.prose ul, .prose ol { margin-top: 0.8em; display: grid; gap: 0.5em; }
.prose li { padding-left: 1.4em; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: var(--teal);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
}

.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(11, 20, 24, 0.08); }

.header-utility {
  background: var(--ink);
  color: var(--paper);
}

.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.header-utility__brand {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: rgba(251, 252, 251, 0.92);
}

.header-utility__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: rgba(251, 252, 251, 0.62);
}

.header-utility__sep {
  width: 1px;
  height: 12px;
  background: rgba(251, 252, 251, 0.28);
}

.header-utility__link {
  color: var(--paper);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(199, 154, 62, 0.9);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.header-utility__link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-main {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--cyan);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--steel);
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 28px);
}

.nav__item { display: flex; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 24px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover { color: var(--cyan); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}

.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; flex: 0 0 auto; }
.nav__actions .btn { padding: 11px 18px; font-size: 13px; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--mist);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(14, 59, 74, 0.04); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { top: 9px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

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

/* 阅读进度 */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--teal) 55%, var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ---------- 7. Footer ---------- */
.site-footer {
  margin-top: var(--sp-section);
  background: var(--ink);
  color: rgba(251, 252, 251, 0.78);
}

.footer-band {
  display: flex;
  height: 4px;
}

.footer-band__seg { height: 100%; flex: 1 1 0; }
.footer-band__seg--cyan { flex-grow: 4; background: var(--cyan); }
.footer-band__seg--teal { background: var(--teal); }
.footer-band__seg--gold { background: var(--gold); }
.footer-band__seg--ochre { background: var(--ochre); }
.footer-band__seg--pine { background: var(--pine); }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid rgba(251, 252, 251, 0.14);
}

.footer-slogan {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.14em;
  color: rgba(251, 252, 251, 0.55);
}

.footer-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(251, 252, 251, 0.14);
  border: 1px solid rgba(251, 252, 251, 0.14);
}

.footer-mini__item { background: var(--ink); }

.footer-mini__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 18px 16px;
  transition: background 0.18s var(--ease);
}

.footer-mini__link:hover { background: rgba(31, 110, 126, 0.24); }
.footer-mini__link:focus-visible { background: rgba(31, 110, 126, 0.24); }

.footer-mini__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--gold);
}

.footer-mini__val {
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 56px);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: rgba(251, 252, 251, 0.45);
  margin-bottom: 16px;
}

.footer-list { display: grid; gap: 10px; }

.footer-list__item { display: block; }

.footer-list__link {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(251, 252, 251, 0.8);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-list__link:hover {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

.footer-contact { display: grid; gap: 10px; }

.footer-contact__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: rgba(251, 252, 251, 0.45);
}

.footer-contact__val {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(251, 252, 251, 0.88);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 14px;
  max-width: 44ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(251, 252, 251, 0.5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(251, 252, 251, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: rgba(251, 252, 251, 0.5);
}

.footer-bottom__copy { margin: 0; }
.footer-bottom__legal { display: flex; gap: 18px; }
.footer-icp { color: rgba(251, 252, 251, 0.62); }

.footer-legal-link {
  color: rgba(251, 252, 251, 0.72);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(251, 252, 251, 0.24);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-legal-link:hover {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary { background: var(--cyan); color: var(--paper); }
.btn--primary:hover { background: var(--teal); }

.btn--line {
  border-color: var(--mist);
  color: var(--cyan);
  background: transparent;
}

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

.btn--ghost {
  padding-inline: 0;
  color: var(--cyan);
  background: transparent;
  border-color: transparent;
}

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

/* ---------- 9. 链接与标签 ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(14, 59, 74, 0.25);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover { color: var(--teal); border-bottom-color: var(--teal); }
.link-arrow:hover::after { transform: translateX(4px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: var(--steel);
  border: 1px solid currentColor;
  background: transparent;
}

.tag--gold {
  color: var(--gold-deep);
  border-color: rgba(199, 154, 62, 0.55);
  background: rgba(199, 154, 62, 0.1);
}

.tag--ochre {
  color: var(--ochre);
  border-color: rgba(168, 69, 46, 0.45);
  background: rgba(168, 69, 46, 0.07);
}

.tag--pine {
  color: #21685B;
  border-color: rgba(46, 139, 122, 0.45);
  background: rgba(46, 139, 122, 0.09);
}

.tag--teal {
  color: var(--teal);
  border-color: rgba(31, 110, 126, 0.4);
  background: rgba(31, 110, 126, 0.07);
}

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

/* ---------- 10. 章节头 / 网格 ---------- */
.section { padding-block: var(--sp-section); }

.section__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.section__index {
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: var(--gold);
}

.section__title { margin: 0; }

.section__title .section__sub {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.8;
  color: var(--steel);
}

.section__note {
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.08em;
  color: var(--steel);
}

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

.grid--asym {
  grid-template-columns: minmax(0, 62fr) minmax(0, 34fr);
  column-gap: 4%;
  row-gap: var(--gap);
  align-items: start;
}

/* ---------- 11. 卡片 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 0;
  transition: border-color 0.18s var(--ease);
}

.card:hover { border-color: var(--cyan); }

.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--steel);
}

.card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--body-text);
}

.card__foot { margin-top: auto; padding-top: 8px; }

.card--anchor {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--paper);
}

.card--anchor .card__label { color: var(--gold); }
.card--anchor .card__title { color: var(--paper); }
.card--anchor .card__text { color: rgba(251, 252, 251, 0.82); }
.card--anchor .link-arrow { color: var(--paper); border-bottom-color: rgba(251, 252, 251, 0.4); }

/* ---------- 12. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 18px;
  border-bottom: 1px solid var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: var(--steel);
}

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

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

.breadcrumbs__item:not(:first-child)::before {
  content: "/";
  color: #B9C6C8;
}

.breadcrumbs__link {
  color: var(--steel);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumbs__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- 13. 索引条 ---------- */
.rail { display: block; }

.rail__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: var(--steel);
}

.rail__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rail__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--cyan);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.rail__item:hover { border-color: var(--cyan); }

.rail__item.is-current {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--paper);
}

.rail__num {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--steel);
}

.rail__item.is-current .rail__num { color: var(--gold); }

/* ---------- 14. 时间轴 ---------- */
.timeline { position: relative; }

.timeline__track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.timeline__item {
  position: relative;
  flex: 1 0 220px;
  padding: 26px 24px 0 0;
  border-top: 1px solid var(--mist);
}

.timeline__node {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--gold);
}

.timeline__item.is-active .timeline__node { background: var(--pine); }

.timeline__stamp {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--steel);
}

.timeline__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- 15. 标签页 ---------- */
.tabs { display: block; }

.tabs__list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--mist);
}

.tabs__tab {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--steel);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tabs__tab:hover { color: var(--cyan); }

.tabs__tab[aria-selected="true"] {
  color: var(--cyan);
  font-weight: 600;
  border-bottom-color: var(--cyan);
}

.tabs__panel { padding-top: var(--gap); }
.tabs__panel[hidden] { display: none; }

/* ---------- 16. 折叠问答 ---------- */
.faq { display: grid; border-top: 1px solid var(--mist); }

.faq__item { border-bottom: 1px solid var(--mist); }

.faq__summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  transition: color 0.18s var(--ease);
}

.faq__summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--gold);
}

.faq__item[open] .faq__summary { color: var(--cyan); }
.faq__item[open] .faq__summary::before { content: "–"; }
.faq__summary:hover { color: var(--cyan); }

.faq__body {
  padding: 0 0 22px 28px;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--body-text);
}

/* ---------- 17. 媒体容器 ---------- */
.media { margin: 0; }

.media__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mist);
  background: var(--sand);
}

.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14, 59, 74, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 59, 74, 0.06) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--landscape .media__frame { aspect-ratio: 16 / 9; }
.media--square .media__frame { aspect-ratio: 1 / 1; }
.media--portrait .media__frame { aspect-ratio: 3 / 4; }

.media--sky .media__frame {
  background:
    linear-gradient(118deg, #FBFCFB 0%, #EDF4F5 32%, #CFE2E6 62%, #9FC2CB 100%);
}

.media--sky .media__frame::after {
  background-image:
    linear-gradient(to right, rgba(14, 59, 74, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 59, 74, 0.05) 1px, transparent 1px),
    linear-gradient(to top, rgba(14, 59, 74, 0.06), transparent 55%);
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 18. 入场动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

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

/* ---------- 19. 平板 ---------- */
@media (max-width: 1023px) {
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
  .section__head { grid-template-columns: 48px minmax(0, 1fr); }
  .section__note { grid-column: 2 / -1; padding-top: 0; }
  .rail__item { writing-mode: horizontal-tb; }
}

/* ---------- 20. 移动 ---------- */
@media (max-width: 900px) {
  :root { --sp-section: clamp(48px, 11vw, 72px); }

  .header-utility__inner { min-height: 34px; gap: 12px; }
  .header-utility__brand { font-size: 10.5px; letter-spacing: 0.14em; }
  .header-utility__meta { font-size: 10.5px; letter-spacing: 0.1em; gap: 10px; }
  .header-utility__hours { display: none; }
  .header-utility__sep { display: none; }

  .header-main__inner { min-height: 60px; gap: 12px; }
  .brand__mark { width: 32px; height: 32px; font-size: 15px; }
  .brand__name { font-size: 16px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.18em; }

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

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    display: grid;
    gap: 0;
    padding: 0 var(--pad);
    background: var(--paper);
    border-top: 1px solid var(--mist);
    border-bottom: 1px solid var(--mist);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease), visibility 0.2s var(--ease);
  }

  .nav[data-open] {
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding-block: 6px 18px;
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item { border-bottom: 1px solid var(--mist); }

  .nav__link {
    display: block;
    padding: 15px 0;
    font-size: 16px;
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    padding-left: 12px;
    box-shadow: inset 2px 0 0 var(--cyan);
  }

  .nav__actions { display: flex; padding-top: 16px; }
  .nav__actions .btn { width: 100%; padding: 13px 18px; font-size: 14px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.78; }

  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .section__head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .section__index { padding-top: 0; }
  .section__note { grid-column: auto; padding-top: 0; }

  .footer-mini { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom__legal { gap: 14px; }

  .tabs__tab { padding: 12px 14px; font-size: 11px; }
  .faq__body { padding-left: 0; }

  .timeline__item { flex: 0 0 78%; }
}

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

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

  .progress__bar { transition: none; }
}

/* ---------- 22. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle,
  .progress { display: none !important; }

  body { background: #fff; color: #000; }
}
