/* ============================================================
   /assets/site.css — 壹号娱乐官网 共享样式
   0. reset  1. 变量  2. 中文排版  3. 头部  4. 移动导航
   5. 第二栏 6. 通用组件  7. 页脚  8. 抽屉  9. 响应式与偏好
   ============================================================ */

/* ---------- 0. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 1. 变量 ---------- */
:root {
  color-scheme: dark;

  --yh-ink: #0A1626;
  --yh-board: #10203A;
  --yh-line: #27405E;
  --yh-mist: #9DB0C6;
  --yh-paper: #F6F2E9;
  --yh-paper-edge: #E3DACA;
  --yh-coral: #F0724F;
  --yh-clay: #B33F22;
  --yh-celadon: #57A691;
  --yh-celadon-lt: #8FD3C0;
  --yh-amber: #D9A03A;
  --yh-amber-dp: #8A6114;
  --yh-mid: #2A6E70;
  --yh-focus: #FFD166;
  --yh-ink-text: #1B2430;
  --yh-ink-soft: #33404F;

  --yh-dur-1: 160ms;
  --yh-dur-2: 220ms;
  --yh-dur-3: 320ms;
  --yh-ease: cubic-bezier(.22, .61, .36, 1);

  --yh-max: 1180px;
  --yh-pad: clamp(16px, 3vw, 28px);
  --yh-section: clamp(64px, 9vw, 120px);

  --yh-font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --yh-font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --yh-font-num: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --yh-fs-display: clamp(2.6rem, 7vw, 4.6rem);
  --yh-fs-section: clamp(2rem, 3.6vw, 2.5rem);
  --yh-fs-sub: clamp(1.35rem, 2.2vw, 1.625rem);
  --yh-fs-body: 1.0625rem;
  --yh-fs-note: .8125rem;
}

/* ---------- 2. 中文排版 ---------- */
body {
  background: var(--yh-ink);
  color: var(--yh-paper);
  font-family: var(--yh-font-body);
  font-size: var(--yh-fs-body);
  line-height: 1.8;
  letter-spacing: .01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--yh-font-head);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .005em;
}
h1 { font-size: var(--yh-fs-display); }
h2 { font-size: var(--yh-fs-section); }
h3 { font-size: var(--yh-fs-sub); }
p { max-width: 34em; }
p + p { margin-top: 1.4em; }

:focus-visible {
  outline: 3px solid var(--yh-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(10, 22, 38, .55);
  border-radius: 2px;
}

/* ---------- 3. 头部 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
}

.command-bar {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 32, 58, .97), rgba(10, 22, 38, .99));
  border-bottom: 1px solid var(--yh-line);
}
.command-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 130px at 16% 0%, rgba(42, 110, 112, .38), transparent 72%),
    radial-gradient(520px 120px at 84% 110%, rgba(240, 114, 79, .20), transparent 72%);
  animation: yh-drift 12s ease-in-out infinite alternate;
}
@keyframes yh-drift {
  from { transform: translate3d(-1.5%, 0, 0); }
  to   { transform: translate3d(1.5%, 0, 0); }
}
.command-bar__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--yh-max);
  margin: 0 auto;
  padding: 0 var(--yh-pad);
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -110px;
  z-index: 200;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  background: var(--yh-focus);
  color: #1B1206;
  border-radius: 2px;
  transition: top var(--yh-dur-2) var(--yh-ease);
}
.skip-link:focus { top: 12px; }

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: clamp(10px, 2vw, 22px);
  border-right: 1px solid var(--yh-line);
}
.brand-mark__name {
  font-family: var(--yh-font-head);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--yh-paper);
}
.brand-mark__sub {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--yh-mist);
}

.cmd-nav { margin-left: auto; }
.cmd-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 8px);
}
.cmd-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--yh-mist);
  border-radius: 2px;
  white-space: nowrap;
  transition: color var(--yh-dur-2) var(--yh-ease), background-color var(--yh-dur-2) var(--yh-ease);
}
.cmd-nav__link:hover { color: var(--yh-paper); background: rgba(39, 64, 94, .5); }
.cmd-nav__link[aria-current="page"] {
  color: var(--yh-paper);
  background: rgba(39, 64, 94, .68);
  font-weight: 700;
}
.cmd-nav__link[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yh-focus);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, .18);
}
.cmd-nav__item--tuck { display: none; }

.cmd-tools {
  display: flex;
  align-items: center;
  padding-left: clamp(10px, 2vw, 22px);
  border-left: 1px solid var(--yh-line);
}
.cmd-tool {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--yh-mist);
  padding-bottom: 2px;
  border-bottom: 1px dashed var(--yh-line);
  transition: color var(--yh-dur-2) var(--yh-ease), border-color var(--yh-dur-2) var(--yh-ease);
}
.cmd-tool:hover { color: var(--yh-focus); border-color: var(--yh-focus); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--yh-line);
  border-radius: 2px;
  background: rgba(39, 64, 94, .35);
  color: var(--yh-paper);
  font-size: 13px;
  letter-spacing: .12em;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yh-paper);
  transition: background-color var(--yh-dur-2) var(--yh-ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--yh-paper);
  transition: transform var(--yh-dur-2) var(--yh-ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. 固定第二栏 ---------- */
.sub-bar {
  background: var(--yh-ink);
  border-bottom: 1px solid var(--yh-line);
}
.sub-bar__inner {
  width: 100%;
  max-width: var(--yh-max);
  margin: 0 auto;
  padding: 0 var(--yh-pad);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-bar__label {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--yh-mist);
  margin-right: 4px;
  white-space: nowrap;
}
.sub-bar__link {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px 7px 11px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--yh-paper);
  background: rgba(16, 32, 58, .92);
  border: 1px solid var(--yh-line);
  border-left-width: 6px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform var(--yh-dur-1) var(--yh-ease), background-color var(--yh-dur-1) var(--yh-ease);
}
.sub-bar__link:hover { transform: translateY(-1px); background: var(--yh-board); }
.sub-bar__link--newbie { border-left-color: var(--yh-coral); }
.sub-bar__link--family { border-left-color: var(--yh-celadon); }

/* ---------- 6. 通用组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--yh-max);
  margin-inline: auto;
  padding-inline: var(--yh-pad);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform var(--yh-dur-1) var(--yh-ease), background-color var(--yh-dur-1) var(--yh-ease),
              border-color var(--yh-dur-1) var(--yh-ease), color var(--yh-dur-1) var(--yh-ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--coral { background: var(--yh-coral); color: #1B1206; border-color: #FF8E6E; }
.btn--coral:hover { background: #FF8863; }
.btn--celadon { background: var(--yh-celadon); color: #06201A; border-color: var(--yh-celadon-lt); }
.btn--celadon:hover { background: var(--yh-celadon-lt); }
.btn--ghost { background: rgba(39, 64, 94, .32); color: var(--yh-paper); border-color: var(--yh-line); }
.btn--ghost:hover { color: var(--yh-focus); border-color: var(--yh-focus); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 13.5px; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .78;
  transition: opacity var(--yh-dur-1) var(--yh-ease), color var(--yh-dur-1) var(--yh-ease),
              border-color var(--yh-dur-1) var(--yh-ease);
}
.copy-btn:hover { opacity: 1; }
.copy-btn[data-copied] { color: var(--yh-focus); border-color: var(--yh-focus); opacity: 1; }

.panel {
  position: relative;
  background: var(--yh-board);
  border: 1px solid var(--yh-line);
  padding: clamp(24px, 4vw, 48px);
}
.panel__num {
  display: block;
  font-family: var(--yh-font-num);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--yh-focus);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-bottom: 12px;
}

.paper {
  background: var(--yh-paper);
  color: var(--yh-ink-text);
  border: 1px solid var(--yh-paper-edge);
  box-shadow: 6px 6px 0 rgba(39, 64, 94, .55), 0 0 0 1px var(--yh-line);
  padding: clamp(22px, 3.4vw, 40px);
}
.prose {
  max-width: 34em;
  font-size: var(--yh-fs-body);
  line-height: 1.8;
  color: var(--yh-ink-soft);
}
.prose p + p { margin-top: 1.4em; }
.prose a { color: var(--yh-clay); border-bottom: 1px solid currentColor; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px 5px 10px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--yh-paper);
  background: rgba(39, 64, 94, .38);
  border-left: 6px solid var(--yh-line);
  border-radius: 0 2px 2px 0;
}
.tag--coral { border-left-color: var(--yh-coral); background: rgba(240, 114, 79, .18); }
.tag--celadon { border-left-color: var(--yh-celadon); background: rgba(87, 166, 145, .18); }
.tag--amber { border-left-color: var(--yh-amber); background: rgba(217, 160, 58, .18); }

.tone-coral { color: var(--yh-coral); }
.tone-celadon { color: var(--yh-celadon-lt); }
.tone-amber { color: var(--yh-amber); }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(148deg, rgba(42, 110, 112, .55), rgba(10, 22, 38, .92) 58%, rgba(240, 114, 79, .28));
  border: 1px solid var(--yh-line);
  box-shadow: 6px 6px 0 rgba(227, 218, 202, .12);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame__note {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--yh-mist);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--yh-mist);
}
.breadcrumb a:hover { color: var(--yh-focus); }
.breadcrumb__sep { color: var(--yh-line); }

.anno {
  font-family: var(--yh-font-num);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--yh-mist);
}
.anno--vertical { writing-mode: vertical-rl; text-orientation: mixed; }
.anno--tilt { display: inline-block; transform: rotate(-6deg); }

.rule-h { height: 1px; background: var(--yh-line); border: 0; margin: 0; }

.stack > * + * { margin-top: 18px; }
.stack--lg > * + * { margin-top: 36px; }

.filter-rail { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  padding: 9px 16px;
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--yh-mist);
  border: 1px solid var(--yh-line);
  border-radius: 2px;
  background: transparent;
  transition: background-color 180ms var(--yh-ease), color 180ms var(--yh-ease), border-color 180ms var(--yh-ease);
}
.filter-chip:hover { color: var(--yh-paper); border-color: var(--yh-mist); }
.filter-chip[aria-pressed="true"] { background: var(--yh-amber); border-color: var(--yh-amber); color: #231803; font-weight: 700; }
.filter-chip[data-tone="coral"][aria-pressed="true"] { background: var(--yh-coral); border-color: var(--yh-coral); color: #1B1206; }
.filter-chip[data-tone="celadon"][aria-pressed="true"] { background: var(--yh-celadon); border-color: var(--yh-celadon); color: #06201A; }
.filter-status { font-size: 12.5px; letter-spacing: .12em; color: var(--yh-mist); }

.step-list { display: grid; gap: 12px; }
.step-item {
  background: var(--yh-board);
  border: 1px solid var(--yh-line);
  border-left: 6px solid var(--yh-coral);
}
.step-item[data-tone="celadon"] { border-left-color: var(--yh-celadon); }
.step-item[data-tone="amber"] { border-left-color: var(--yh-amber); }
.step-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-align: left;
}
.step-item__num { font-family: var(--yh-font-num); font-size: 15px; color: var(--yh-focus); }
.step-item__title { font-family: var(--yh-font-head); font-weight: 800; font-size: 17px; }
.step-item__chev {
  margin-left: auto;
  color: var(--yh-mist);
  transition: transform var(--yh-dur-2) var(--yh-ease);
}
.step-item[data-open] .step-item__chev { transform: rotate(180deg); }
.step-item__body { height: 0; overflow: hidden; transition: height var(--yh-dur-2) var(--yh-ease); }
.step-item__inner { padding: 0 20px 20px; color: var(--yh-mist); font-size: 15.5px; }

.device-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(39, 64, 94, .42);
  border: 1px solid var(--yh-line);
  border-radius: 2px;
}
.device-switch__btn {
  padding: 8px 18px;
  font-size: 13.5px;
  color: var(--yh-mist);
  border-radius: 2px;
  transition: background-color var(--yh-dur-1) var(--yh-ease), color var(--yh-dur-1) var(--yh-ease);
}
.device-switch__btn[aria-selected="true"],
.device-switch__btn[aria-pressed="true"] { background: var(--yh-paper); color: var(--yh-ink-text); font-weight: 700; }

.js-reveal { opacity: 0; transform: translateY(24px); }
.js-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--yh-dur-3) var(--yh-ease), transform var(--yh-dur-3) var(--yh-ease);
}

/* ---------- 7. 页脚 ---------- */
.site-foot {
  margin-top: var(--yh-section);
  background: linear-gradient(180deg, var(--yh-ink) 0%, #08121F 100%);
  border-top: 1px solid var(--yh-line);
  padding-top: clamp(48px, 7vw, 88px);
  color: var(--yh-paper);
}
.foot-slab {
  width: 100%;
  max-width: var(--yh-max);
  margin: 0 auto;
  padding-inline: var(--yh-pad);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}
.foot-brand__name {
  font-family: var(--yh-font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
}
.foot-brand__line {
  margin-top: 14px;
  max-width: 24em;
  font-size: 15.5px;
  color: var(--yh-mist);
}
.foot-brand__hint {
  margin-top: 14px;
  max-width: 26em;
  padding-left: 12px;
  border-left: 6px solid var(--yh-coral);
  font-size: 13.5px;
  color: var(--yh-mist);
}
.foot-brand .btn { margin-top: 24px; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.foot-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--yh-focus);
  margin-bottom: 14px;
}
.foot-col__list { display: grid; gap: 10px; }
.foot-col__list a {
  font-size: 15px;
  color: var(--yh-mist);
  transition: color var(--yh-dur-1) var(--yh-ease);
}
.foot-col__list a:hover { color: var(--yh-paper); }

.foot-contact {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--yh-board);
  border: 1px solid var(--yh-line);
  border-left: 6px solid var(--yh-celadon);
}
.foot-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 15px;
}
.foot-contact__k {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--yh-celadon-lt);
}
.foot-contact__v {
  font-family: var(--yh-font-num);
  font-size: 14.5px;
  color: var(--yh-paper);
  word-break: break-word;
}
.foot-note { font-size: 13px; color: var(--yh-mist); max-width: 46em; }

.foot-meta {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 0 clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--yh-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--yh-mist);
}
.foot-meta p { max-width: none; }

/* ---------- 8. 问客服抽屉 ---------- */
.ask-drawer {
  position: fixed;
  right: clamp(12px, 2.5vw, 28px);
  bottom: clamp(12px, 2.5vw, 28px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.ask-drawer__fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #0A1626;
  background: linear-gradient(120deg, var(--yh-coral) 0%, var(--yh-mid) 100%);
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .42);
  transition: transform var(--yh-dur-1) var(--yh-ease);
}
.ask-drawer__fab:hover { transform: translateY(-2px); }
.ask-drawer__panel {
  position: relative;
  width: min(340px, calc(100vw - 32px));
  padding: 22px 20px 20px;
  background: var(--yh-paper);
  color: var(--yh-ink-text);
  border: 1px solid var(--yh-paper-edge);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .46), 6px 6px 0 rgba(39, 64, 94, .6);
}
.ask-drawer__panel:not([hidden]) { animation: yh-drawer-in var(--yh-dur-2) var(--yh-ease) both; }
@keyframes yh-drawer-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.ask-drawer__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  color: var(--yh-ink-soft);
  border-radius: 2px;
}
.ask-drawer__close:hover { background: rgba(27, 36, 48, .08); }
.ask-drawer__title {
  font-family: var(--yh-font-head);
  font-weight: 900;
  font-size: 18px;
  max-width: none;
}
.ask-drawer__list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--yh-ink-soft);
}
.ask-drawer__list li {
  padding-left: 12px;
  border-left: 6px solid var(--yh-celadon);
}
.ask-drawer__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ask-drawer__actions .copy-btn { color: var(--yh-ink-text); }
.ask-drawer__actions .btn--ghost {
  color: var(--yh-ink-text);
  border-color: rgba(27, 36, 48, .3);
  background: rgba(27, 36, 48, .05);
}
.ask-drawer__actions .btn--ghost:hover { color: var(--yh-clay); border-color: var(--yh-clay); }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .cmd-nav__link { padding: 9px 9px; font-size: 13.5px; }
}

@media (max-width: 900px) {
  .site-head { position: static; }
  .command-bar { position: sticky; top: 0; z-index: 60; }
  .command-bar__inner { min-height: 58px; gap: 12px; }
  .brand-mark { border-right: 0; padding-right: 0; }
  .brand-mark__sub { display: none; }
  .brand-mark__name { font-size: 17px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .cmd-tools { display: none; }
  .cmd-nav__item--tuck { display: block; }

  .cmd-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 58px;
    z-index: 55;
    margin: 0;
    padding: 8px var(--yh-pad) 20px;
    background: linear-gradient(180deg, var(--yh-board), var(--yh-ink));
    border-bottom: 1px solid var(--yh-line);
    box-shadow: 0 24px 44px rgba(0, 0, 0, .48);
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--yh-dur-2) var(--yh-ease), transform var(--yh-dur-2) var(--yh-ease), visibility var(--yh-dur-2) linear;
  }
  .cmd-nav[data-open] { opacity: 1; visibility: visible; transform: none; }
  .cmd-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .cmd-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 15px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(39, 64, 94, .55);
    border-radius: 0;
  }
  .cmd-nav__link:last-child { border-bottom: 0; }
  .cmd-nav__link[aria-current="page"] { background: rgba(39, 64, 94, .5); }

  .sub-bar__inner { min-height: 44px; gap: 8px; overflow-x: auto; }
  .sub-bar__link { font-size: 13px; }

  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root {
    --yh-fs-body: 1rem;
    --yh-section: 64px;
  }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-meta { flex-direction: column; }
  .ask-drawer { right: 12px; bottom: 12px; }
  .ask-drawer__fab { padding: 12px 18px; font-size: 13.5px; }
  .btn { width: 100%; }
  .ask-drawer__actions .btn,
  .ask-drawer__actions .copy-btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-reveal { opacity: 1 !important; transform: none !important; }
  .command-bar::after { animation: none; }
  .btn:hover, .sub-bar__link:hover, .ask-drawer__fab:hover { transform: none; }
}
