/* ==========================================================================
   亚虎游戏 · 全站共享样式 /assets/site.css
   结构：变量 → reset → 中文排版 → 通用组件 → 页头 → 页脚 → 响应式 → 动效降级
   ========================================================================== */

:root {
  --yh-ink-900: #0B241C;
  --yh-ink-700: #14382C;
  --yh-linen-050: #F4EFE3;
  --yh-linen-100: #E7DFCB;
  --yh-amber-500: #E9A427;
  --yh-amber-300: #F6C75C;
  --yh-cyan-400: #12C4BC;
  --yh-cyan-100: #D7F3F0;
  --yh-orange-500: #FF6A2B;
  --yh-mist-400: #7FA898;
  --yh-black-900: #0F1512;

  --yh-bg: var(--yh-linen-050);
  --yh-fg: var(--yh-black-900);
  --yh-line: rgba(15, 21, 18, 0.14);
  --yh-line-soft: rgba(15, 21, 18, 0.08);
  --yh-line-invert: rgba(244, 239, 227, 0.14);

  --yh-font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --yh-font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --yh-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --yh-dur: 200ms;
  --yh-max: 1180px;
  --yh-gutter: clamp(16px, 4vw, 40px);
  --yh-radius-organic: 20px 6px 20px 6px;
  --yh-radius-soft: 14px;
}

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

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 中文排版基调 ---------- */
body {
  font-family: var(--yh-font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--yh-fg);
  background: var(--yh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--yh-font-sans);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p { overflow-wrap: break-word; }

::selection {
  background: var(--yh-amber-300);
  color: var(--yh-ink-900);
}

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

.yh-header :focus-visible,
.yh-footer :focus-visible,
.yh-section--ink :focus-visible {
  outline-color: var(--yh-amber-300);
}

/* ---------- 布局工具 ---------- */
.yh-container {
  width: 100%;
  max-width: var(--yh-max);
  margin-inline: auto;
  padding-inline: var(--yh-gutter);
}

.yh-container--narrow { max-width: 780px; }

.yh-section { padding-block: clamp(36px, 6vw, 72px); }

.yh-section--ink {
  background: var(--yh-ink-900);
  color: var(--yh-linen-050);
}

.yh-section--ink .yh-lead { color: var(--yh-linen-100); }
.yh-section--ink .yh-eyebrow { color: var(--yh-cyan-400); }

.yh-section--linen-100 { background: var(--yh-linen-100); }

.yh-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.yh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yh-grid--bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }

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

.yh-rule {
  border: 0;
  border-top: 1px solid var(--yh-line);
  margin-block: clamp(20px, 3vw, 32px);
}

.yh-section--ink .yh-rule { border-top-color: var(--yh-line-invert); }

/* ---------- 文本层 ---------- */
.yh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--yh-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--yh-mist-400);
  margin-bottom: 14px;
}

.yh-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.yh-display {
  font-size: clamp(44px, 10vw, 132px);
  font-weight: 200;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.yh-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.yh-subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.yh-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.8;
  max-width: 38em;
  color: rgba(15, 21, 18, 0.78);
}

.yh-mono {
  font-family: var(--yh-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.yh-prose p { max-width: 38em; }
.yh-prose p + p { margin-top: 1.1em; }
.yh-prose h2, .yh-prose h3 { margin-top: 1.8em; margin-bottom: 0.6em; }
.yh-prose ul, .yh-prose ol { max-width: 38em; padding-left: 1.3em; }

/* ---------- 按钮 ---------- */
.yh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--yh-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--yh-dur) var(--yh-ease),
              color var(--yh-dur) var(--yh-ease),
              border-color var(--yh-dur) var(--yh-ease),
              transform var(--yh-dur) var(--yh-ease);
}

.yh-btn--amber {
  background: var(--yh-amber-500);
  color: var(--yh-ink-900);
}

.yh-btn--amber:hover {
  background: var(--yh-amber-300);
  transform: translateY(-1px);
}

.yh-btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.yh-btn--ghost:hover {
  background: rgba(11, 36, 28, 0.08);
}

.yh-section--ink .yh-btn--ghost:hover,
.yh-footer .yh-btn--ghost:hover {
  background: rgba(244, 239, 227, 0.1);
}

.yh-btn--ink {
  background: var(--yh-ink-900);
  color: var(--yh-linen-050);
}

.yh-btn--ink:hover { background: var(--yh-ink-700); }

/* ---------- 状态标签 ---------- */
.yh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--yh-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.yh-tag--cyan { color: #0B6F6B; }
.yh-tag--orange { color: var(--yh-orange-500); }
.yh-tag--amber { color: #85590A; }
.yh-tag--ink { color: var(--yh-linen-050); border-color: rgba(244, 239, 227, 0.45); }

.yh-section--ink .yh-tag--cyan { color: var(--yh-cyan-400); }
.yh-section--ink .yh-tag--amber { color: var(--yh-amber-300); }

/* ---------- 面包屑 ---------- */
.yh-breadcrumb {
  font-family: var(--yh-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--yh-mist-400);
}

.yh-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yh-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yh-breadcrumb__item a {
  color: var(--yh-ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--yh-line);
  transition: color var(--yh-dur) var(--yh-ease), border-color var(--yh-dur) var(--yh-ease);
}

.yh-breadcrumb__item a:hover {
  color: var(--yh-amber-500);
  border-bottom-color: var(--yh-amber-500);
}

.yh-breadcrumb__sep { opacity: 0.5; }

/* ---------- 图片容器 ---------- */
.yh-figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.yh-figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--yh-line-soft);
  border-radius: var(--yh-radius-organic);
  background:
    linear-gradient(135deg, rgba(18, 196, 188, 0.22), rgba(233, 164, 39, 0.16) 55%, rgba(11, 36, 28, 0.14)),
    repeating-linear-gradient(90deg, rgba(11, 36, 28, 0.13) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(11, 36, 28, 0.09) 0 1px, transparent 1px 48px),
    var(--yh-linen-100);
}

.yh-figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yh-figure__caption {
  font-family: var(--yh-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--yh-mist-400);
}

.yh-figure--wide .yh-figure__media { aspect-ratio: 21 / 9; }
.yh-figure--tall .yh-figure__media { aspect-ratio: 3 / 4; }
.yh-figure--square .yh-figure__media { aspect-ratio: 1 / 1; }

/* ---------- 分段切换 ---------- */
.yh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--yh-line);
}

.yh-tab {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--yh-font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(15, 21, 18, 0.68);
  cursor: pointer;
  transition: background var(--yh-dur) var(--yh-ease),
              color var(--yh-dur) var(--yh-ease),
              border-color var(--yh-dur) var(--yh-ease);
}

.yh-tab:hover {
  color: var(--yh-ink-900);
  background: rgba(11, 36, 28, 0.06);
}

.yh-tab[aria-selected="true"] {
  background: var(--yh-ink-900);
  border-color: var(--yh-ink-900);
  color: var(--yh-linen-050);
}

.yh-section--ink .yh-tabs { border-bottom-color: var(--yh-line-invert); }

.yh-section--ink .yh-tab { color: rgba(244, 239, 227, 0.72); }

.yh-section--ink .yh-tab:hover {
  color: var(--yh-linen-050);
  background: rgba(244, 239, 227, 0.1);
}

.yh-section--ink .yh-tab[aria-selected="true"] {
  background: var(--yh-amber-500);
  border-color: var(--yh-amber-500);
  color: var(--yh-ink-900);
}

.yh-tabpanel { padding-top: clamp(18px, 3vw, 28px); }
.yh-tabpanel[hidden] { display: none; }

/* ---------- 显现动效 ---------- */
html.yh-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms var(--yh-ease), transform 420ms var(--yh-ease);
}

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

/* ==========================================================================
   页头
   ========================================================================== */
.yh-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--yh-ink-900);
  color: var(--yh-linen-050);
  border-bottom: 1px solid var(--yh-line-invert);
}

.yh-skip {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--yh-amber-500);
  color: var(--yh-ink-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-240%);
  transition: transform var(--yh-dur) var(--yh-ease);
}

.yh-skip:focus,
.yh-skip:focus-visible {
  transform: translateY(0);
  outline-color: var(--yh-ink-900);
}

.yh-masthead {
  position: relative;
  background: var(--yh-ink-900);
}

.yh-masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--yh-max);
  margin-inline: auto;
  padding: clamp(10px, 1.6vw, 18px) var(--yh-gutter);
  transition: padding var(--yh-dur) var(--yh-ease);
}

.yh-header.is-compact .yh-masthead__inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

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

.yh-masthead__domain {
  font-family: var(--yh-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--yh-cyan-400);
  white-space: nowrap;
}

.yh-masthead__tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--yh-mist-400);
  white-space: nowrap;
}

.yh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  text-decoration: none;
  color: inherit;
}

.yh-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px 3px 12px 3px;
  background: var(--yh-amber-500);
  color: var(--yh-ink-900);
  font-family: var(--yh-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  flex: none;
  transition: width var(--yh-dur) var(--yh-ease),
              height var(--yh-dur) var(--yh-ease),
              font-size var(--yh-dur) var(--yh-ease);
}

.yh-brand__name {
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
  transition: font-size var(--yh-dur) var(--yh-ease);
}

.yh-header.is-compact .yh-brand__mark {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.yh-header.is-compact .yh-brand__name { font-size: 18px; }

.yh-masthead__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* 移动开关 */
.yh-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 239, 227, 0.32);
  border-radius: 6px;
  color: var(--yh-linen-050);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color var(--yh-dur) var(--yh-ease), color var(--yh-dur) var(--yh-ease);
}

.yh-nav-toggle:hover {
  border-color: var(--yh-amber-300);
  color: var(--yh-amber-300);
}

.yh-nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background var(--yh-dur) var(--yh-ease);
}

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

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

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

.yh-nav-toggle__label { line-height: 1; }

/* 主导航 */
.yh-nav {
  width: 100%;
  max-width: var(--yh-max);
  margin-inline: auto;
  padding: 0 var(--yh-gutter) 8px;
}

.yh-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2.6vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yh-nav__item { display: block; }

.yh-nav__link {
  display: inline-block;
  padding: 6px 2px 8px;
  border-bottom: 2px solid transparent;
  color: var(--yh-linen-100);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--yh-dur) var(--yh-ease),
              border-color var(--yh-dur) var(--yh-ease);
}

.yh-nav__link:hover { color: var(--yh-amber-300); }

.yh-nav__link[aria-current="page"] {
  color: var(--yh-amber-500);
  border-bottom-color: var(--yh-amber-500);
}

/* 编号索引条 */
.yh-indexbar {
  background: var(--yh-ink-700);
  border-top: 1px solid var(--yh-line-invert);
}

.yh-indexbar__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: var(--yh-max);
  margin-inline: auto;
  padding-inline: var(--yh-gutter);
}

.yh-indexbar__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 12px 13px;
  color: var(--yh-linen-100);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background var(--yh-dur) var(--yh-ease),
              color var(--yh-dur) var(--yh-ease);
}

.yh-indexbar__item + .yh-indexbar__item {
  border-left: 1px solid var(--yh-line-invert);
}

.yh-indexbar__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yh-cyan-400);
  opacity: 0.9;
}

.yh-indexbar__item:nth-child(2)::before { background: var(--yh-amber-500); }
.yh-indexbar__item:nth-child(3)::before { background: var(--yh-orange-500); }
.yh-indexbar__item:nth-child(4)::before { background: var(--yh-mist-400); }

.yh-indexbar__item:hover {
  background: rgba(18, 196, 188, 0.12);
  color: var(--yh-linen-050);
}

.yh-indexbar__item[aria-current="page"],
.yh-indexbar__item.is-current {
  background: var(--yh-cyan-100);
  color: var(--yh-ink-900);
}

.yh-indexbar__item[aria-current="page"]:hover,
.yh-indexbar__item.is-current:hover {
  background: var(--yh-cyan-100);
  color: var(--yh-ink-900);
}

.yh-indexbar__num {
  font-family: var(--yh-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--yh-cyan-400);
  flex: none;
}

.yh-indexbar__item:nth-child(2) .yh-indexbar__num { color: var(--yh-amber-300); }
.yh-indexbar__item:nth-child(3) .yh-indexbar__num { color: var(--yh-orange-500); }
.yh-indexbar__item:nth-child(4) .yh-indexbar__num { color: var(--yh-mist-400); }

.yh-indexbar__item[aria-current="page"] .yh-indexbar__num,
.yh-indexbar__item.is-current .yh-indexbar__num {
  color: var(--yh-ink-700);
}

.yh-indexbar__label {
  min-width: 0;
  overflow-wrap: break-word;
}

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

.yh-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yh-amber-500);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.yh-footer {
  margin-top: clamp(40px, 7vw, 80px);
  padding: clamp(40px, 6vw, 64px) 0 0;
  background: var(--yh-ink-900);
  color: var(--yh-linen-100);
  border-top: 3px solid var(--yh-amber-500);
}

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

.yh-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 48px);
}

.yh-footer__brand .yh-brand {
  justify-self: start;
}

.yh-footer__pitch {
  margin-top: 14px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--yh-mist-400);
}

.yh-footer__col { min-width: 0; }

.yh-footer__heading {
  margin-bottom: 14px;
  font-family: var(--yh-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--yh-cyan-400);
}

.yh-footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yh-footer__list a {
  color: var(--yh-linen-100);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--yh-dur) var(--yh-ease),
              border-color var(--yh-dur) var(--yh-ease);
}

.yh-footer__list a:hover {
  color: var(--yh-amber-300);
  border-bottom-color: var(--yh-amber-300);
}

.yh-footer__contact {
  display: grid;
  gap: 10px;
  margin: 0;
}

.yh-footer__contact-row {
  display: grid;
  gap: 1px;
}

.yh-footer__contact dt {
  font-family: var(--yh-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--yh-mist-400);
}

.yh-footer__contact dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--yh-linen-050);
  overflow-wrap: break-word;
}

.yh-footer__note {
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--yh-orange-500);
  background: rgba(255, 106, 43, 0.1);
  font-size: 12px;
  line-height: 1.7;
  color: var(--yh-linen-100);
}

.yh-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: clamp(32px, 5vw, 48px);
  padding: 18px 0 26px;
  border-top: 1px solid var(--yh-line-invert);
}

.yh-footer__legal-line {
  font-family: var(--yh-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--yh-mist-400);
}

.yh-footer__legal-line--mono { color: var(--yh-cyan-400); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .yh-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .yh-footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .yh-masthead__meta { display: none; }

  .yh-masthead__inner { grid-template-columns: auto 1fr auto; }

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

  .yh-masthead__actions .yh-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 75;
    padding: 13px 22px;
    box-shadow: 0 10px 24px rgba(11, 36, 28, 0.34);
  }

  .yh-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0 var(--yh-gutter);
    background: var(--yh-ink-700);
    border-top: 1px solid var(--yh-line-invert);
    transition: max-height 240ms var(--yh-ease),
                opacity 160ms var(--yh-ease),
                padding 240ms var(--yh-ease),
                visibility 160ms linear;
  }

  .yh-nav[data-open="true"] {
    max-height: min(72vh, 460px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding: 10px var(--yh-gutter) 16px;
  }

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

  .yh-nav__item + .yh-nav__item {
    border-top: 1px solid rgba(244, 239, 227, 0.1);
  }

  .yh-nav__link {
    display: block;
    padding: 14px 12px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    font-size: 16px;
  }

  .yh-nav__link[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--yh-amber-500);
    background: rgba(18, 196, 188, 0.12);
  }

  .yh-grid--2,
  .yh-grid--3,
  .yh-grid--4 { grid-template-columns: 1fr; }

  .yh-grid--bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .yh-grid--bento > .yh-span-3,
  .yh-grid--bento > .yh-span-4,
  .yh-grid--bento > .yh-span-5,
  .yh-grid--bento > .yh-span-6,
  .yh-grid--bento > .yh-span-7,
  .yh-grid--bento > .yh-span-8,
  .yh-grid--bento > .yh-span-9,
  .yh-grid--bento > .yh-span-12 { grid-column: span 6; }

  .yh-footer__grid { grid-template-columns: 1fr 1fr; }
  .yh-footer__brand { grid-column: 1 / -1; }
  .yh-footer__col:last-child { grid-column: 1 / -1; }
  .yh-footer__legal { padding-bottom: 84px; }
}

@media (max-width: 720px) {
  .yh-indexbar__inner { padding-inline: 0; }

  .yh-indexbar__item {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 6px 10px;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .yh-indexbar__num { font-size: 10px; }

  .yh-nav { padding-inline: 12px; }
  .yh-nav[data-open="true"] { padding: 8px 12px 14px; }

  .yh-display { letter-spacing: -0.03em; }
}

@media (max-width: 480px) {
  .yh-footer__grid { grid-template-columns: 1fr; }
  .yh-brand__mark { width: 34px; height: 34px; font-size: 11px; }
  .yh-brand__name { letter-spacing: 0.1em; }
}

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

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

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