/* ============================================================
   博乐品牌 中文站 v3.2 — 共享站点样式 /assets/site.css
   技术蓝图网格 × 档案室资料系统
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  color-scheme: light;

  --cream:      #FBF3E4;
  --kraft:      #EFE0C8;
  --ink:        #2B211B;
  --orange:     #E8622A;
  --coral:      #D9452F;
  --teal:       #14505C;
  --mint:       #3E8F7C;
  --yellow:     #FFC53D;
  --grid:       #C9B99F;
  --muted:      #4A3A2E;
  --midnight:   #0E3A44;

  --rail-w: 88px;
  --topbar-h: 56px;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 56px);

  --hair: 1px solid var(--grid);
  --hair-ink: 1px solid var(--ink);

  --f-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  --f-display: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(to right, rgba(201, 185, 159, .30) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, rgba(201, 185, 159, .30) 0 1px, transparent 1px 72px);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.22;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5.4vw, 68px); }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 25px); line-height: 1.35; }
h4 { font-size: 17px; line-height: 1.45; letter-spacing: 0; }

p { text-wrap: pretty; }

small { font-size: 14px; color: var(--muted); }

strong { font-weight: 700; }

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

main { display: block; }

#main-content { scroll-margin-top: 24px; }

/* ---------- 4. 焦点可见性 ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 0;
}

.site-rail :where(a, button):focus-visible {
  outline-color: var(--yellow);
}

.site-footer :where(a):focus-visible {
  outline-color: var(--yellow);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  display: inline-block;
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  border: 2px solid var(--ink);
  transform: translateY(-180%);
  transition: transform .15s var(--ease);
}

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

/* ---------- 6. 侧边轨道头 ---------- */
.site-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  width: var(--rail-w);
  background: var(--ink);
  color: var(--cream);
  border-right: 1px solid #191310;
}

.rail-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  padding: 24px 8px 18px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 243, 228, .3) transparent;
}

.rail-inner::-webkit-scrollbar { width: 4px; }
.rail-inner::-webkit-scrollbar-thumb { background: rgba(251, 243, 228, .3); }

/* 品牌 */
.rail-brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}

.rail-brand__cn {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: .12em;
  transition: color .16s var(--ease);
}

.rail-brand__en {
  font-family: var(--f-mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 243, 228, .52);
}

.rail-brand:hover .rail-brand__cn,
.rail-brand:focus-visible .rail-brand__cn { color: var(--yellow); }

/* 版本章 */
.rail-version {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 6px;
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid rgba(43, 33, 27, .55);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .08em;
}

/* 移动按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(251, 243, 228, .38);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

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

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.site-rail[data-open] .nav-toggle__bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.site-rail[data-open] .nav-toggle__bars::after {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(251, 243, 228, .18);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
}

.site-nav__list a {
  display: block;
  padding: 9px 4px;
  font-family: var(--f-sans);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  color: rgba(251, 243, 228, .76);
  border-left: 2px solid transparent;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}

.site-nav__list a:hover {
  color: var(--cream);
  background: rgba(251, 243, 228, .09);
  border-left-color: rgba(232, 98, 42, .75);
}

.site-nav__list a[aria-current="page"] {
  color: var(--yellow);
  background: rgba(255, 197, 61, .13);
  border-left-color: var(--orange);
}

/* 抽屉内附加块（桌面隐藏） */
.site-nav__utility {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(251, 243, 228, .16);
}

.site-nav__stamp {
  padding: 3px 8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
}

.site-nav__help {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  color: rgba(251, 243, 228, .85);
  border-bottom: 1px solid rgba(251, 243, 228, .35);
}

.site-nav__help:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* 轨道底部 */
.rail-tail {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(251, 243, 228, .18);
}

.rail-bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(43, 33, 27, .5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}

.rail-bookmark:hover,
.rail-bookmark:focus-visible {
  background: var(--orange);
  color: var(--cream);
}

.rail-link {
  padding: 6px 4px;
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  color: rgba(251, 243, 228, .72);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ---------- 7. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  bottom: 0;
  z-index: 190;
  height: 3px;
  background: rgba(43, 33, 27, .10);
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--coral));
  transition: width .12s linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  background: var(--midnight);
  color: var(--cream);
  border-top: 3px solid var(--ink);
  padding: clamp(36px, 6vw, 64px) var(--gutter) 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 40px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid rgba(251, 243, 228, .22);
}

.footer-col { min-width: 0; }

.footer-col + .footer-col {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid rgba(251, 243, 228, .18);
}

.footer-mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--cream);
}

.footer-stamp {
  display: inline-block;
  margin: 12px 0;
  padding: 3px 9px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.footer-note {
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(251, 243, 228, .72);
}

.footer-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(251, 243, 228, .22);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--yellow);
}

.footer-list li + li { margin-top: 9px; }

.footer-list a {
  font-size: 15px;
  text-decoration: none;
  color: rgba(251, 243, 228, .86);
  border-bottom: 1px solid transparent;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.footer-address {
  display: grid;
  gap: 8px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(251, 243, 228, .82);
  overflow-wrap: anywhere;
}

.footer-address .mono {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cream);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 0 20px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: rgba(251, 243, 228, .62);
}

.footer-legal,
.footer-meta { margin: 0; }

/* ---------- 9. 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule {
  border: 0;
  border-top: 1px solid var(--grid);
  margin: clamp(24px, 4vw, 48px) 0;
}

.rule--ink { border-top-color: var(--ink); }

.kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--orange);
}

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

/* ---------- 10. 面包屑 / 位置刻度 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 36px);
  padding: 10px 0;
  border-bottom: 1px solid var(--grid);
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--muted);
}

.crumbs a {
  color: var(--teal);
  text-decoration: none;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs [aria-current="page"] { color: var(--ink); }

.crumbs__sep { color: var(--grid); }

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease), transform .16s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFF8EE;
}

.btn--primary:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.btn--ghost {
  background: transparent;
  border-color: var(--grid);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--kraft);
  border-color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* ---------- 12. 标签 ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  white-space: nowrap;
  color: var(--teal);
}

.label--orange { color: var(--orange); }
.label--mint { color: var(--mint); }
.label--coral { color: var(--coral); }

.label--solid {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.label--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ---------- 13. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

.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)); }

.grid--sidebar {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}

/* ---------- 14. 资料卡 ---------- */
.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background: var(--cream);
  border: 1px solid var(--grid);
}

.card--kraft {
  background: var(--kraft);
  border-color: #DBc8A8;
}

.card--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ---------- 15. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 0;
  background-color: var(--kraft);
  border: 1px solid var(--grid);
}

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

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }

.media--placeholder {
  background-image:
    linear-gradient(135deg,
      rgba(201, 185, 159, .42) 25%, transparent 25%,
      transparent 50%, rgba(201, 185, 159, .42) 50%,
      rgba(201, 185, 159, .42) 75%, transparent 75%,
      transparent 100%);
  background-size: 18px 18px;
}

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 9px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .08em;
}

/* ---------- 16. 分段切换 ---------- */
.tabs { display: block; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: clamp(18px, 2.6vw, 30px);
  border-bottom: 1px solid var(--ink);
}

.tabs__tab {
  appearance: none;
  margin-bottom: -1px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-family: var(--f-sans);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .14s var(--ease), background-color .14s var(--ease), border-color .14s var(--ease);
}

.tabs__tab:hover {
  color: var(--ink);
  background: var(--kraft);
}

.tabs__tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--kraft);
  border-bottom-color: var(--orange);
}

.tabs__panel { animation: tab-in .16s var(--ease) both; }

@keyframes tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 17. 显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; }

  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
    font-size: 16px;
  }

  .site-rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: auto;
    height: var(--topbar-h);
    border-right: 0;
    border-bottom: 1px solid #191310;
  }

  .rail-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    height: var(--topbar-h);
    padding: 0 14px;
    overflow: visible;
  }

  .rail-brand {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .rail-brand__cn {
    writing-mode: horizontal-tb;
    font-size: 17px;
    line-height: 1;
    letter-spacing: .08em;
  }

  .rail-brand__en {
    font-size: 9px;
    letter-spacing: .2em;
  }

  .rail-version {
    min-width: 0;
    margin-left: auto;
    padding: 3px 7px;
    font-size: 10px;
  }

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

  .site-nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 195;
    display: block;
    width: auto;
    flex: none;
    margin: 0;
    padding: 10px 14px 22px;
    background: var(--ink);
    border-top: 1px solid rgba(251, 243, 228, .18);
    border-bottom: 1px solid rgba(251, 243, 228, .24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    max-height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }

  .site-rail[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .site-nav__list li + li { border-top: 1px solid rgba(251, 243, 228, .12); }

  .site-nav__list a {
    padding: 13px 6px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    letter-spacing: .06em;
    border-left: 3px solid transparent;
  }

  .site-nav__list a[aria-current="page"] {
    border-left-color: var(--orange);
  }

  .site-nav__utility { display: flex; }

  .rail-tail { display: none; }

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

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

  .footer-col + .footer-col {
    padding-left: 0;
    border-left: 0;
  }

  .footer-base {
    justify-content: flex-start;
    padding-bottom: 22px;
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

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

  .btn { width: 100%; }

  .tabs__tab { flex: 1 1 auto; text-align: center; padding: 10px 12px; }
}

/* 矮屏桌面：压缩轨道 */
@media (min-width: 901px) and (max-height: 720px) {
  .rail-inner { gap: 12px; padding: 14px 8px 12px; }
  .rail-brand__cn { font-size: 17px; }
  .site-nav__list a { padding: 7px 4px; font-size: 12px; }
  .rail-bookmark { width: 34px; height: 38px; font-size: 16px; }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .btn:active { transform: none; }

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