/* ============================================================
   排列3服务 · /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 { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 三码主色 */
  --ink-900: #0B1F33;
  --ink: #0F2A44;
  --ink-mid: #1D4A6E;
  --orange: #FF6B35;
  --orange-soft: #FF9A73;
  --cyan: #28C2C6;
  --cyan-soft: #7ADBDD;
  /* 呼吸与矿物色 */
  --sand: #F4E9D8;
  --ivory: #FBF7EF;
  --stone: #6B7280;
  --moss: #5B7F6A;
  --clay: #B86B4B;

  /* 尺度 */
  --shell-max: 1200px;
  --gutter: 1rem;
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --shadow-1: 0 10px 28px rgba(11, 31, 51, .22);
  --shadow-2: 0 18px 44px rgba(11, 31, 51, .32);

  /* 字体 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  background: var(--ink);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
}
h1 { font-size: clamp(2rem, 4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
h4 { font-size: 1.05rem; }

a { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }

:focus-visible { outline: 3px solid var(--cyan-soft); outline-offset: 2px; border-radius: var(--r-xs); }
.panel--ivory :focus-visible,
.panel--sand :focus-visible { outline-color: var(--ink-mid); }

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

/* ---------- 4. 布局外壳 ---------- */
.wrap {
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(820px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.prose { max-width: 68ch; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: .35em; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 51, .93);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ivory);
  border-bottom: 1px solid rgba(122, 219, 221, .2);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0 33.33%,
    var(--cyan) 33.33% 66.66%,
    var(--sand) 66.66% 100%);
}

.skip-link {
  position: absolute;
  top: -4.5rem;
  left: var(--gutter);
  z-index: 200;
  padding: .6rem 1.1rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 3px; }

.header-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1.4rem;
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: .8rem .75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: background .18s ease;
}
.brand:hover .brand-mark { background: var(--orange-soft); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.02rem; font-weight: 800; letter-spacing: .01em; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-top: .12rem;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 190px;
  min-width: 150px;
  max-width: 270px;
}
.header-search::before {
  content: "";
  position: absolute;
  left: .72rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -6px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
}
.header-search::after {
  content: "";
  position: absolute;
  left: calc(.72rem + 9px);
  top: calc(50% + 2px);
  width: 5px;
  height: 1.5px;
  background: var(--cyan);
  transform: rotate(45deg);
  pointer-events: none;
}
.header-search__field {
  width: 100%;
  padding: .5rem .7rem .5rem 2rem;
  background: rgba(251, 247, 239, .07);
  border: 1px solid rgba(122, 219, 221, .32);
  border-radius: var(--r-sm);
  color: var(--ivory);
  font-size: .86rem;
  line-height: 1.4;
  transition: border-color .18s ease, background .18s ease;
}
.header-search__field::placeholder { color: rgba(244, 233, 216, .55); }
.header-search__field:hover { background: rgba(251, 247, 239, .1); }
.header-search__field:focus {
  border-color: var(--cyan);
  background: rgba(251, 247, 239, .13);
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 194, 198, .22);
}
.header-search__field::-webkit-search-decoration,
.header-search__field::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
  padding: .48rem .8rem;
  background: transparent;
  border: 1px solid rgba(122, 219, 221, .4);
  border-radius: var(--r-sm);
  color: var(--ivory);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.nav-toggle:hover { background: rgba(122, 219, 221, .12); border-color: var(--cyan); }
.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }

.primary-nav { margin-left: auto; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-link {
  position: relative;
  display: block;
  padding: .45rem .68rem;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(251, 247, 239, .78);
  text-decoration: none;
  border-radius: var(--r-xs);
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.nav-link:hover { color: var(--ivory); background: rgba(122, 219, 221, .12); }
.nav-link[aria-current="page"] { color: var(--ivory); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .68rem;
  right: .68rem;
  bottom: .05rem;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(122, 219, 221, .1);
  overflow: hidden;
}
.header-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-900);
  color: var(--sand);
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.5rem;
  margin-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0 33.33%,
    var(--cyan) 33.33% 66.66%,
    var(--sand) 66.66% 100%);
}
.footer-shell {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.35fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.brand--footer { margin-bottom: 1rem; }
.footer-note {
  font-size: .86rem;
  line-height: 1.7;
  color: rgba(244, 233, 216, .74);
  max-width: 32ch;
  margin-bottom: .5rem;
}
.footer-hours {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--cyan-soft);
  padding: .15rem .5rem;
  border: 1px solid rgba(122, 219, 221, .28);
  border-radius: var(--r-xs);
}
.footer-col__title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: .5rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid rgba(122, 219, 221, .2);
}
.footer-col__list { display: grid; gap: .5rem; }
.footer-col__list li { font-size: .9rem; line-height: 1.6; color: rgba(244, 233, 216, .82); }
.footer-col__list a {
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.footer-col__list a:hover { color: var(--cyan-soft); border-bottom-color: var(--cyan); }
.footer-key {
  display: inline-block;
  min-width: 2.6em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(122, 219, 221, .85);
  margin-right: .35rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  align-items: baseline;
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(122, 219, 221, .18);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: rgba(244, 233, 216, .6);
}
.footer-legal__item { margin: 0; }
.footer-legal__item--end { margin-left: auto; color: rgba(244, 233, 216, .45); }

/* ---------- 7. 堆叠面板 ---------- */
.panel {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.panel--ivory { background: var(--ivory); color: var(--ink); }
.panel--sand { background: var(--sand); color: var(--ink); }
.panel--sand::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: repeating-linear-gradient(90deg,
    var(--cyan) 0 20px,
    transparent 20px 28px,
    var(--orange) 28px 36px,
    transparent 36px 64px);
  opacity: .45;
}
.panel--ink { background: var(--ink); color: var(--ivory); }
.panel--deep { background: var(--ink-900); color: var(--sand); }

/* ---------- 8. 标签带 / 标题区 ---------- */
.label-band {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  padding-bottom: .55rem;
  margin-bottom: clamp(1rem, 2.4vw, 1.75rem);
  border-bottom: 1px solid rgba(107, 114, 128, .35);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.label-band__tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  background: var(--cyan);
  color: var(--ink-900);
  border-radius: var(--r-xs);
  letter-spacing: .1em;
}
.label-band__count {
  margin-left: auto;
  color: var(--stone);
  font-weight: 500;
  letter-spacing: .06em;
}
.panel--ink .label-band,
.panel--deep .label-band {
  color: var(--cyan-soft);
  border-bottom-color: rgba(122, 219, 221, .28);
}
.panel--ink .label-band__count,
.panel--deep .label-band__count { color: rgba(244, 233, 216, .6); }

.section-head { display: grid; gap: .55rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
.section-lede {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 60ch;
  color: var(--ink-mid);
}
.panel--ink .section-lede,
.panel--deep .section-lede { color: rgba(244, 233, 216, .82); }

/* ---------- 9. 网格 ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- 10. 专题研究板 ---------- */
.board {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.15rem 1.15rem 1.3rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(15, 42, 68, .1);
  border-top: 3px solid var(--cyan);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
}
.panel--sand .board { background: var(--ivory); }
.panel--ink .board,
.panel--deep .board {
  background: rgba(251, 247, 239, .07);
  border-color: rgba(122, 219, 221, .24);
  border-top-color: var(--cyan);
  color: var(--ivory);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.board--accent { border-top-color: var(--orange); }
.board--moss { border-top-color: var(--moss); }
.board--clay { border-top-color: var(--clay); }
.board__kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.panel--ink .board__kicker,
.panel--deep .board__kicker { color: var(--cyan-soft); }
.board__title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.board__body { font-size: .94rem; line-height: 1.7; opacity: .86; }

/* ---------- 11. 标签—条目双栏对照 ---------- */
.index-row {
  display: grid;
  grid-template-columns: minmax(84px, .32fr) 1fr;
  gap: .35rem 1rem;
  padding: .7rem 0;
  border-bottom: 1px dashed rgba(15, 42, 68, .18);
  font-size: .94rem;
  line-height: 1.65;
}
.index-row__key {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-top: .18rem;
}
.index-row__value { color: var(--ink); }
.panel--ink .index-row,
.panel--deep .index-row { border-bottom-color: rgba(122, 219, 221, .22); }
.panel--ink .index-row__key,
.panel--deep .index-row__key { color: var(--cyan-soft); }
.panel--ink .index-row__value,
.panel--deep .index-row__value { color: var(--ivory); }

/* ---------- 12. 版本角标 ---------- */
.version-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: .22rem .55rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  border-bottom-left-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(11, 31, 51, .2);
}

/* ---------- 13. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-soft); text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(40, 194, 198, .55);
}
.btn--ghost:hover { background: rgba(40, 194, 198, .14); color: var(--cyan-soft); text-decoration: none; }
.panel--ivory .btn--ghost,
.panel--sand .btn--ghost { color: var(--ink-mid); border-color: rgba(29, 74, 110, .45); }
.panel--ivory .btn--ghost:hover,
.panel--sand .btn--ghost:hover { background: rgba(29, 74, 110, .08); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--ink-mid); text-decoration: none; }
.btn--block { width: 100%; }

/* ---------- 14. 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.filter-btn {
  padding: .38rem .85rem;
  border: 1px solid rgba(15, 42, 68, .22);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.filter-btn:hover { border-color: var(--ink-mid); background: rgba(29, 74, 110, .08); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.panel--ink .filter-btn,
.panel--deep .filter-btn {
  border-color: rgba(122, 219, 221, .35);
  color: var(--cyan-soft);
}
.panel--ink .filter-btn:hover,
.panel--deep .filter-btn:hover { background: rgba(122, 219, 221, .14); }
.panel--ink .filter-btn[aria-pressed="true"],
.panel--deep .filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

/* ---------- 15. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .14rem .5rem;
  border: 1px solid rgba(40, 194, 198, .42);
  border-radius: var(--r-xs);
  background: rgba(40, 194, 198, .16);
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--orange { background: rgba(255, 107, 53, .14); color: #B8410E; border-color: rgba(255, 107, 53, .42); }
.tag--moss { background: rgba(91, 127, 106, .16); color: #3E5C4A; border-color: rgba(91, 127, 106, .42); }
.tag--clay { background: rgba(184, 107, 75, .14); color: #8A4A2E; border-color: rgba(184, 107, 75, .4); }
.tag--solid { background: var(--cyan); color: var(--ink-900); border-color: var(--cyan); }

/* ---------- 16. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg,
    rgba(40, 194, 198, .22),
    rgba(255, 107, 53, .16) 55%,
    rgba(244, 233, 216, .55));
  aspect-ratio: 16 / 9;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media__caption {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--stone);
}
.panel--ink .media__caption,
.panel--deep .media__caption { color: rgba(244, 233, 216, .6); }

/* ---------- 17. 斜切收口 ---------- */
.slant-close {
  position: relative;
  isolation: isolate;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding: clamp(2.75rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2rem);
  color: var(--ivory);
}
.slant-close::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, var(--ink-mid), var(--ink-900));
  clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
}
.slant-close__title {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .4rem;
}
.slant-close__text {
  font-size: .94rem;
  line-height: 1.7;
  max-width: 54ch;
  color: rgba(244, 233, 216, .84);
  margin-bottom: 1rem;
}

/* ---------- 18. 面包屑 ---------- */
.breadcrumbs { padding-block: .85rem; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
}
.breadcrumbs__item { color: rgba(244, 233, 216, .66); }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: .35rem;
  color: rgba(122, 219, 221, .6);
}
.breadcrumbs__item a { color: inherit; text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--cyan-soft); }
.breadcrumbs__item [aria-current="page"] { color: var(--sand); }

/* ---------- 19. 动效协议 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .24s ease-out, transform .24s ease-out;
  will-change: opacity, transform;
}
.js-reveal [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 20. 响应式 ---------- */
@media (min-width: 700px) {
  :root { --gutter: 1.5rem; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
  .primary-nav {
    order: 4;
    flex: 1 1 100%;
    margin-left: 0;
    display: none;
  }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav__list {
    gap: .4rem;
    overflow-x: auto;
    padding: .25rem 0 .55rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav__list::-webkit-scrollbar { height: 4px; }
  .primary-nav__list::-webkit-scrollbar-thumb { background: rgba(122, 219, 221, .35); border-radius: 2px; }
  .nav-link {
    border: 1px solid rgba(122, 219, 221, .28);
    padding: .42rem .8rem;
  }
  .nav-link[aria-current="page"] {
    background: rgba(255, 107, 53, .16);
    border-color: var(--orange);
  }
  .nav-link[aria-current="page"]::after { display: none; }

  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-legal__item--end { margin-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .brand-mark { width: 36px; height: 36px; font-size: .86rem; }
  .brand-name { font-size: .98rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .1em; }
  .panel { padding-block: clamp(2rem, 8vw, 3rem); }
  .index-row { grid-template-columns: 1fr; gap: .15rem; }
  .index-row__key { padding-top: 0; }
  .slant-close::before { clip-path: polygon(0 1.6rem, 100% 0, 100% 100%, 0 100%); }
  .slant-close { padding-top: 2.25rem; }
}

@media (max-width: 560px) {
  .footer-shell { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-legal { font-size: .7rem; }
  .btn { width: 100%; }
  .filter-btn { font-size: .72rem; }
  .nav-toggle__label { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .skip-link { transition: none; }
}
