/* ==========================================================================
   杏悦地址 · 共享站点样式 /assets/site.css
   夜归站台：深墨绿轨道 + 月光米白正文 + 杏子橙落点 + 电子蓝通道
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --apricot: #E8833A;
  --apricot-deep: #C4601B;
  --apricot-soft: #F7CFA6;
  --moon: #FAF5EC;
  --moon-deep: #EFE4D2;
  --pine: #17342C;
  --pine-2: #2E5044;
  --blue: #2F6BE4;
  --blue-soft: #A9C4FF;
  --ink: #101511;
  --line: #D6CCBB;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-display);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --rail-w: 280px;
  --topbar-h: 70px;

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 26px -20px rgba(23, 52, 44, .5);
  --shadow-lift: 0 20px 44px -28px rgba(23, 52, 44, .6);

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

/* ---------- 2. 基础重置与排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--moon);
}

body {
  margin: 0;
  background-color: var(--moon);
  background-image:
    radial-gradient(58rem 40rem at 6% -12%, rgba(247, 207, 166, .52), rgba(247, 207, 166, 0) 62%),
    radial-gradient(46rem 34rem at 102% 2%, rgba(47, 107, 228, .08), rgba(47, 107, 228, 0) 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--pine);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.4vw, 76px); }
h2 { font-size: clamp(26px, 3.4vw, 52px); }
h3 { font-size: clamp(20px, 2.1vw, 28px); }
h4 { font-size: 19px; }
h5, h6 { font-size: 16px; }

a { color: var(--apricot-deep); text-decoration: none; }
a:hover { color: var(--apricot); }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

[hidden] { display: none !important; }

::selection { background: var(--apricot-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.rail :focus-visible,
.section--deep :focus-visible,
.site-footer :focus-visible,
.panel--deep :focus-visible { outline-color: var(--blue-soft); }

#main-content { scroll-margin-top: calc(var(--topbar-h) + 14px); }

/* ---------- 3. 辅助类 ---------- */
.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;
}

.dash { height: 0; border-top: 1px dashed var(--line); margin-block: 22px; }
.rule { height: 1px; border: 0; background: var(--line); margin-block: 24px; }

.num,
.mono { font-family: var(--font-mono); letter-spacing: .06em; }

.label-road {
  font-size: .78em;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.stack > * + * { margin-top: var(--stack-gap, 16px); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--apricot-deep);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--apricot);
}

.lead {
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--pine-2);
}

.section--deep .lead,
.panel--deep .lead { color: rgba(250, 245, 236, .82); }

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.section { padding-block: clamp(46px, 6.5vw, 96px); }
.section--tight { padding-block: clamp(28px, 3.5vw, 52px); }
.section--pale { background: var(--moon-deep); }

.section--deep {
  background: var(--pine);
  color: rgba(250, 245, 236, .82);
  border-radius: var(--radius-lg);
  margin-inline: clamp(0px, 1.6vw, 18px);
}

.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4 { color: var(--moon); }

.section--deep a { color: var(--blue-soft); }
.section--deep a:hover { color: var(--moon); }

/* ---------- 5. Bento 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}

.grid-12 > * { min-width: 0; }

.col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 12; }

@media (min-width: 700px) {
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
  .col-5 { grid-column: span 6; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
}

@media (min-width: 1000px) {
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
}

/* ---------- 6. 面板 / 分区块 ---------- */
.panel {
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius-md);
  background: var(--moon);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.panel--pale { background: var(--moon-deep); }

.panel--deep {
  background: var(--pine);
  border-color: var(--pine-2);
  color: rgba(250, 245, 236, .82);
}

.panel--deep h1,
.panel--deep h2,
.panel--deep h3 { color: var(--moon); }

.panel--door {
  position: relative;
  background: var(--moon);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 36px);
  box-shadow:
    0 6px 0 0 var(--moon-deep),
    0 6px 0 1px var(--line),
    var(--shadow-lift);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.panel--door:hover,
.panel--door:focus-within {
  transform: translateY(-4px);
  box-shadow:
    0 10px 0 0 var(--moon-deep),
    0 10px 0 1px var(--line),
    0 30px 50px -30px rgba(23, 52, 44, .68);
}

/* ---------- 7. 横向主题带 ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px clamp(16px, 2.4vw, 28px);
  border-radius: var(--radius-md);
  background: var(--moon-deep);
  border: 1px solid var(--line);
}

.band--deep {
  background: var(--pine);
  border-color: var(--pine-2);
  color: var(--moon);
}

.band--deep .band__label { color: rgba(250, 245, 236, .55); }

.band--apricot {
  background: var(--apricot-soft);
  border-color: rgba(196, 96, 27, .28);
  color: #4A2409;
}

.band__spacer { flex: 1 1 auto; }

.band__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pine-2);
}

/* ---------- 8. 标签与状态 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--moon-deep);
  color: var(--pine-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  white-space: nowrap;
}

.chip--apricot {
  background: var(--apricot-soft);
  border-color: transparent;
  color: #6B3208;
}

.chip--channel {
  background: rgba(47, 107, 228, .12);
  border-color: rgba(47, 107, 228, .3);
  color: var(--blue);
}

.section--deep .chip,
.panel--deep .chip {
  background: rgba(250, 245, 236, .08);
  border-color: rgba(250, 245, 236, .18);
  color: rgba(250, 245, 236, .82);
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  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--primary {
  background: var(--apricot);
  color: #241408;
  box-shadow: 0 12px 24px -18px rgba(232, 131, 58, .95);
}

.btn--primary:hover {
  background: var(--apricot-deep);
  color: var(--moon);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(196, 96, 27, .95);
}

.btn--channel {
  background: rgba(47, 107, 228, .14);
  border-color: rgba(47, 107, 228, .42);
  color: var(--blue-soft);
}

.btn--channel:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--line {
  background: transparent;
  border-color: rgba(250, 245, 236, .3);
  color: var(--moon-deep);
}

.btn--line:hover {
  border-color: var(--apricot);
  color: var(--apricot-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--pine);
}

.btn--ghost:hover {
  border-color: var(--apricot);
  color: var(--apricot-deep);
  transform: translateY(-2px);
}

.section--deep .btn--ghost,
.panel--deep .btn--ghost {
  border-color: rgba(250, 245, 236, .26);
  color: var(--moon);
}

.btn--block { width: 100%; }

/* ---------- 10. 跳跃链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--apricot);
  color: #241408;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: var(--shadow-lift);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: 14px; color: #241408; }

/* ---------- 11. 站台侧轨（页头） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  font-size: 15px;
}

.rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px clamp(14px, 3vw, 20px);
  background: var(--pine);
  color: var(--moon);
  border-bottom: 1px solid rgba(250, 245, 236, .1);
}

.rail__brand {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rail__lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--moon);
}

.rail__lockup:hover { color: var(--moon); }

.rail__mark {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--apricot), var(--apricot-deep) 72%);
  box-shadow: inset 0 0 0 1px rgba(250, 245, 236, .26);
}

.rail__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #2A1707;
  box-shadow: 0 0 0 4px rgba(250, 245, 236, .3);
}

.rail__wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.rail__tagline {
  display: none;
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: rgba(250, 245, 236, .55);
}

/* 移动端抽屉开关 */
.nav-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(250, 245, 236, .22);
  border-radius: 15px;
  background: rgba(250, 245, 236, .07);
  color: var(--moon);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--apricot); background: rgba(232, 131, 58, .16); }

.nav-toggle__bars {
  position: relative;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color var(--dur) var(--ease);
}

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

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

.site-header[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 抽屉容器（移动端） */
.rail__drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  max-height: 78vh;
  overflow-y: auto;
  padding: 12px clamp(14px, 3vw, 20px) 24px;
  background: var(--pine);
  border-bottom: 1px solid rgba(250, 245, 236, .14);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  box-shadow: 0 34px 54px -34px rgba(16, 21, 17, .9);
}

.site-header[data-open="true"] .rail__drawer { display: block; }

/* 站牌式栏目 */
.rail__nav { display: flex; flex-direction: column; }

.rail__nav-label {
  display: block;
  padding: 4px 12px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, .42);
}

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

.rail__list li { margin: 0; }

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 14px 6px 16px;
  border-radius: 14px;
  color: rgba(250, 245, 236, .74);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.rail-link:hover {
  background: rgba(250, 245, 236, .07);
  color: var(--moon);
}

.rail-link__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(250, 245, 236, .4);
  transition: color var(--dur) var(--ease);
}

.rail-link__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
}

.rail-link__bar {
  position: absolute;
  left: 1px;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--apricot);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.rail-link[aria-current="page"] {
  background: rgba(232, 131, 58, .15);
  color: var(--moon);
}

.rail-link[aria-current="page"] .rail-link__key { color: var(--apricot-soft); }
.rail-link[aria-current="page"] .rail-link__bar { transform: translateY(-50%) scaleY(1); }

/* 入口动作区 */
.rail__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px dashed rgba(250, 245, 236, .16);
}

.rail__meta {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-align: center;
  color: rgba(250, 245, 236, .46);
}

/* ---------- 12. 桌面端常驻侧轨 ---------- */
@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
    font-size: 17px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
  }

  .rail {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    height: 100%;
    padding: 28px 18px 22px;
    border-bottom: 0;
    border-right: 1px solid var(--pine-2);
  }

  .nav-toggle { display: none; }

  .rail__brand {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 10px 18px;
    border-bottom: 1px solid rgba(250, 245, 236, .12);
  }

  .rail__tagline { display: block; }

  .rail__drawer,
  .site-header[data-open="true"] .rail__drawer {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .rail__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
  }

  .rail__actions {
    grid-template-columns: 1fr;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed rgba(250, 245, 236, .16);
  }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--pine);
  color: rgba(250, 245, 236, .78);
  font-size: 15px;
  border-top: 1px solid var(--pine-2);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--apricot), rgba(232, 131, 58, .1) 46%, rgba(47, 107, 228, .5));
}

.footer__inner {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 84px) clamp(20px, 4vw, 48px) 0;
}

.footer__masthead {
  display: grid;
  gap: 22px;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(250, 245, 236, .14);
}

.footer__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__identity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer__mark {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--apricot), var(--apricot-deep) 72%);
}

.footer__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #2A1707;
  box-shadow: 0 0 0 5px rgba(250, 245, 236, .28);
}

.footer__wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .09em;
  color: var(--moon);
}

.footer__tagline {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: rgba(250, 245, 236, .55);
}

.footer__pitch { min-width: 0; }

.footer__lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(250, 245, 236, .88);
}

.footer__lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.5vw, 44px);
  padding-block: clamp(30px, 4vw, 52px);
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--apricot-soft);
}

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

.footer__list li { margin: 0; }

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14.5px;
  letter-spacing: .06em;
  color: rgba(250, 245, 236, .72);
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--moon);
  transform: translateX(5px);
}

.footer__link[aria-current="page"] { color: var(--apricot-soft); }

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

.contact-row { display: grid; gap: 3px; }

.contact-row__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, .44);
}

.contact-row__value {
  font-size: 14.5px;
  letter-spacing: .04em;
  color: var(--moon);
  overflow-wrap: anywhere;
}

.contact-row__value--channel { color: var(--blue-soft); }

.footer__note {
  margin: 0;
  padding: 13px 15px;
  border: 1px dashed rgba(169, 196, 255, .38);
  border-radius: var(--radius-sm);
  background: rgba(250, 245, 236, .06);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250, 245, 236, .74);
}

.footer__baseline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(250, 245, 236, .14);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(250, 245, 236, .54);
}

.footer__baseline p { margin: 0; }
.footer__legal { color: rgba(250, 245, 236, .7); }

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer__masthead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: end;
    column-gap: 52px;
  }

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

/* ---------- 14. 图片容器 ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--apricot-soft), var(--moon-deep) 58%, #E3D9C6);
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -30%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 131, 58, .55), rgba(232, 131, 58, 0) 68%);
  pointer-events: none;
}

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

.media--night {
  background: linear-gradient(150deg, #17342C, #224438 46%, #2F6BE4 155%);
}

.media--night::after {
  background: radial-gradient(circle, rgba(169, 196, 255, .5), rgba(169, 196, 255, 0) 68%);
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px;
  background: linear-gradient(to top, rgba(16, 21, 17, .74), rgba(16, 21, 17, 0));
  color: var(--moon);
  font-size: 13.5px;
  letter-spacing: .04em;
}

/* ---------- 15. 仪表板数值 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pine-2);
}

.section--deep .stat__num,
.panel--deep .stat__num { color: var(--moon); }

.section--deep .stat__label,
.panel--deep .stat__label { color: rgba(250, 245, 236, .55); }

/* ---------- 16. 面包屑与正文容器 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--pine-2);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.prose {
  max-width: 40em;
}

.prose p,
.prose li {
  color: var(--pine);
  line-height: 1.8;
}

.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul,
.prose ol { padding-left: 1.2em; }

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

.prose a:hover { text-decoration-color: var(--apricot); }

.section--deep .prose p,
.section--deep .prose li,
.panel--deep .prose p,
.panel--deep .prose li { color: rgba(250, 245, 236, .86); }

/* ---------- 17. 可访问分段切换 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--moon-deep);
}

.tab {
  appearance: none;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--pine-2);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tab:hover { color: var(--apricot-deep); }

.tab[aria-selected="true"] {
  background: var(--pine);
  color: var(--moon);
}

.tabpanel { padding-top: clamp(18px, 2.4vw, 30px); }

.section--deep .tablist,
.panel--deep .tablist {
  background: rgba(250, 245, 236, .07);
  border-color: rgba(250, 245, 236, .18);
}

.section--deep .tab,
.panel--deep .tab { color: rgba(250, 245, 236, .72); }

.section--deep .tab[aria-selected="true"],
.panel--deep .tab[aria-selected="true"] {
  background: var(--apricot);
  color: #241408;
}

/* ---------- 18. 滚动显现 ---------- */
html[data-enhanced="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

html[data-enhanced="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

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

  html[data-enhanced="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .panel--door:hover,
  .panel--door:focus-within { transform: none; }
}
