/* ============================================================
   开元财神捕鱼 · /assets/site.css
   共享骨架：画框导航、页脚、通用组件、图片容器、响应式
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + var(--rail-h) + 20px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  padding-left: var(--rail);
  padding-top: calc(var(--bar) + var(--rail-h));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 82% -12%, rgba(54, 214, 196, 0.09), transparent 68%),
    radial-gradient(760px 520px at -6% 104%, rgba(214, 165, 69, 0.08), transparent 70%);
}

img, svg, video { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
table { border-collapse: collapse; }

/* ---------- Design tokens ---------- */
:root {
  --ink: #061826;
  --trench: #0B2740;
  --teal: #123F55;
  --gold: #D6A545;
  --gold-lt: #F1D08B;
  --cyan: #36D6C4;
  --red: #C63C32;
  --coral: #FF7F5C;
  --mist: #EAF3F7;
  --slate: #8CA3B3;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --rail: 88px;
  --bar: 64px;
  --rail-h: 0px;

  --gutter: 24px;
  --maxw: 1280px;

  --hair: 1px solid rgba(214, 165, 69, 0.26);
  --hair-soft: 1px solid rgba(140, 163, 179, 0.18);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.42);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--mist);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
}

h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0;
}

h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
}

::selection {
  background: rgba(214, 165, 69, 0.3);
  color: var(--mist);
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--gold);
  color: #10100a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.18s ease;
}

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

/* ============================================================
   画框 1：左侧竖排品牌轨
   ============================================================ */
.site-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  background: linear-gradient(180deg, #04121d 0%, #061826 45%, #0B2740 100%);
  border-right: var(--hair);
}

.site-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 160px;
  background: linear-gradient(180deg, rgba(241, 208, 139, 0.85), rgba(241, 208, 139, 0));
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mist);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--gold-lt);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(241, 208, 139, 0.5), 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand__mark {
  background: #a82e26;
  box-shadow: inset 0 0 0 1px rgba(241, 208, 139, 0.85), 0 6px 22px rgba(198, 60, 50, 0.5);
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: var(--gold-lt);
}

.rail-line {
  position: relative;
  flex: 1 1 auto;
  width: 1px;
  min-height: 40px;
  background: linear-gradient(180deg, rgba(214, 165, 69, 0), rgba(214, 165, 69, 0.55), rgba(214, 165, 69, 0));
}

.rail-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(54, 214, 196, 0.9);
}

.rail-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--slate);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ============================================================
   画框 2：顶部框架导航
   ============================================================ */
.site-topbar {
  position: fixed;
  top: var(--rail-h);
  left: var(--rail);
  right: 0;
  height: var(--bar);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(6, 24, 38, 0.94);
  border-bottom: var(--hair);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list__item { flex: 0 0 auto; }

.nav-list__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-list__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-list__link:hover { color: var(--mist); }
.nav-list__link:hover::after { transform: scaleX(1); }

.nav-list__link[aria-current="page"] {
  color: var(--gold-lt);
}

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

.nav-list__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(54, 214, 196, 0.9);
}

.topbar-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #120d03;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.topbar-cta:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(214, 165, 69, 0.45);
  border-radius: 2px;
  color: var(--gold-lt);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-quick { display: none; }

/* ============================================================
   主体容器与通用版式
   ============================================================ */
.main-content {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 55vh;
}

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

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px);
}

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

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section__title {
  position: relative;
  padding-top: 20px;
}

.section__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(214, 165, 69, 0));
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--mist);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.prose h3 { margin-top: 1.7em; }

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(54, 214, 196, 0.45);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.prose a:hover { color: var(--gold-lt); border-color: var(--gold-lt); }

.prose ul, .prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose strong { color: var(--gold-lt); font-weight: 700; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__list li + li::before {
  content: "/";
  color: rgba(140, 163, 179, 0.55);
}

.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb a:hover { color: var(--gold-lt); border-color: rgba(214, 165, 69, 0.6); }

.breadcrumb [aria-current="page"] { color: var(--gold-lt); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn--sm { padding: 8px 14px; font-size: 13px; }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #120d03;
}

.btn--gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(214, 165, 69, 0.5);
  color: var(--gold-lt);
}

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

/* ---------- 展签式标签 ---------- */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(214, 165, 69, 0.38);
  border-radius: 2px;
  background: rgba(214, 165, 69, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--gold-lt);
}

.label-tag--red {
  border-color: rgba(198, 60, 50, 0.6);
  background: rgba(198, 60, 50, 0.16);
  color: #ffb9b2;
}

/* ---------- Bento / 卡片 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(160deg, rgba(11, 39, 64, 0.96), rgba(6, 24, 38, 0.96));
  border: var(--hair);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  color: var(--mist);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 165, 69, 0.7);
  box-shadow: var(--shadow-md);
}

.card__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--mist);
}

.card__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--slate);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.card--wide { grid-column: span 6; }
.card--half { grid-column: span 6; }
.card--third { grid-column: span 4; }
.card--tall { grid-row: span 2; }

/* ---------- 图片容器（页面阶段放置 <img> 或占位） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: var(--hair);
  border-radius: 2px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(54, 214, 196, 0.14), transparent 62%),
    linear-gradient(145deg, #123F55 0%, #0B2740 52%, #061826 100%);
  box-shadow: var(--shadow-sm);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg, rgba(214, 165, 69, 0.07) 0 1px, transparent 1px 24px);
  opacity: 0.9;
}

.media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 24, 38, 0), rgba(6, 24, 38, 0.7));
}

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__caption {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-lt);
}

/* ---------- 统计索引 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 0;
  border-top: var(--hair);
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold-lt);
  line-height: 1.1;
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* ---------- 滚动进度 / 返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  height: 2px;
  z-index: 80;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--cyan));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(11, 39, 64, 0.96);
  border: 1px solid rgba(214, 165, 69, 0.45);
  border-radius: 2px;
  color: var(--gold-lt);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.18s ease, color 0.18s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(38px, 5vw, 60px);
  background: linear-gradient(180deg, #04121d 0%, #061826 55%, #0B2740 100%);
  border-top: var(--hair);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(214, 165, 69, 0));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px 32px;
  padding-bottom: clamp(32px, 4vw, 52px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px;
  border-bottom: var(--hair);
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  max-width: 30ch;
}

.brand--footer {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.brand--footer .brand__mark {
  width: 34px;
  height: 34px;
  font-size: 17px;
}

.brand__name--footer {
  writing-mode: horizontal-tb;
  text-orientation: initial;
  font-size: 16px;
  letter-spacing: 0.16em;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__list a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.footer__list a:hover { color: var(--gold-lt); }
.footer__list a:hover::after { transform: scaleX(1); }

.footer__meta {
  display: grid;
  gap: 14px;
  margin: 0;
}

.footer__meta-item { display: block; }

.footer__meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 3px;
}

.footer__meta dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mist);
}

.footer__value {
  word-break: break-all;
}

.copy-btn {
  margin-left: 8px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-lt);
  background: transparent;
  border: 1px solid rgba(214, 165, 69, 0.42);
  border-radius: 2px;
  cursor: pointer;
  vertical-align: baseline;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.copy-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #120d03;
}

.copy-btn[data-copied="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04201c;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(140, 163, 179, 0.16);
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* ============================================================
   响应式 · 平板与手机
   ============================================================ */
@media (max-width: 1080px) {
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1.3fr;
  }
  .footer__col--brand { grid-column: 1 / -1; }
  .card--wide, .card--half { grid-column: span 6; }
  .card--third { grid-column: span 6; }
}

@media (max-width: 960px) {
  :root {
    --rail: 0px;
    --bar: 56px;
    --rail-h: 52px;
    --gutter: 18px;
  }

  body {
    padding-left: 0;
    padding-top: calc(var(--bar) + var(--rail-h));
  }

  /* 左侧竖轨折叠为顶部横条 */
  .site-rail {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--rail-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 var(--gutter);
    border-right: 0;
    border-bottom: var(--hair);
    background: linear-gradient(90deg, #04121d, #0B2740);
  }

  .site-rail::after { display: none; }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .brand__name {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .rail-line { display: none; }

  .rail-tag {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  /* 顶部导航抽屉 */
  .site-topbar {
    padding-inline: var(--gutter);
    gap: 12px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    flex: none;
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    background: #0B2740;
    border-bottom: var(--hair);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
    transition: max-height 0.3s ease, visibility 0.3s ease;
  }

  .site-nav[data-open="true"] {
    max-height: min(74vh, 620px);
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 4px;
  }

  .nav-list__link {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(140, 163, 179, 0.14);
  }

  .nav-list__link::after {
    left: 4px;
    right: 4px;
    bottom: 8px;
  }

  .nav-list__link[aria-current="page"]::before { display: none; }

  .nav-list__link[aria-current="page"] {
    padding-left: 14px;
    box-shadow: inset 3px 0 0 var(--cyan);
  }

  .nav-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px var(--gutter) 22px;
  }

  .topbar-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer__col--brand { grid-column: 1 / -1; }
  .footer__col--contact { grid-column: 1 / -1; }

  .bento { gap: 16px; }
  .card--wide, .card--half, .card--third { grid-column: span 12; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .prose { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ============================================================
   降低动效偏好
   ============================================================ */
@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;
  }

  .card:hover,
  .card:focus-visible,
  .to-top[data-visible="true"] {
    transform: none;
  }
}
