/* ============================================================
   云体育安装 / assets/site.css
   共享层：reset、变量、中文排版、头部、页脚、通用组件
   ============================================================ */

:root {
  --ink-900: #061A2B;
  --ink-800: #0B2A40;
  --ink-700: #123E5C;
  --ink-600: #1B4E70;
  --paper: #F4F8FB;
  --mist: #B7CBD9;
  --cyan: #00E5FF;
  --orange: #FF6B35;
  --violet: #7C5CFF;
  --green: #0FA37F;
  --yellow: #FFC857;
  --bone: #E9E2D6;

  --font-display: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --header-h: 72px;
  --radius: 2px;
}

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.yt-nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: .02em;
  margin: 0 0 .6em;
  color: var(--paper);
}

h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { margin: 0 0 1em; }
img, picture, svg { max-width: 100%; }
img { border: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .25em 0; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; }
strong { font-weight: 700; color: var(--paper); }
hr { border: 0; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 无障碍工具 ---------- */

.yt-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.yt-skip {
  position: fixed;
  top: .5rem; left: .5rem;
  z-index: 200;
  transform: translateY(-180%);
  background: var(--cyan);
  color: #04141F;
  font-weight: 700;
  font-size: .9rem;
  padding: .6rem 1.05rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform .18s ease;
}
.yt-skip:focus,
.yt-skip:focus-visible { transform: translateY(0); }

/* ---------- 顶部阅读进度 ---------- */

.yt-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(18, 62, 92, .8);
  z-index: 150;
  pointer-events: none;
}
.yt-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--orange));
  transition: width .12s linear;
}

/* ---------- 容器 ---------- */

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

/* ---------- 头部：左右分置 ---------- */

.yt-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(6, 26, 43, .99), rgba(11, 42, 64, .97));
  border-bottom: 1px solid var(--ink-700);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .9);
}

.yt-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2vw, 1.8rem);
  min-height: var(--header-h);
}

.yt-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}

.yt-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--cyan);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.yt-brand__text {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  line-height: 1.1;
}

.yt-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .16em;
  color: var(--paper);
}

.yt-brand__sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .13em;
  color: var(--mist);
  text-transform: uppercase;
}

.yt-nav-toggle { display: none; }

.yt-nav {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.6vw, 1.5rem);
  margin-left: auto;
}

.yt-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yt-nav__item { margin: 0; }

.yt-nav__link {
  position: relative;
  display: inline-block;
  padding: .62rem .55rem;
  color: var(--mist);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .18s ease;
}

.yt-nav__link::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: .3rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

.yt-nav__link:hover,
.yt-nav__link:focus-visible { color: var(--paper); }
.yt-nav__link:hover::after { transform: scaleX(1); }

.yt-nav__link[aria-current="page"] { color: var(--paper); font-weight: 700; }
.yt-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--orange);
}

.yt-tools {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-left: clamp(.5rem, 1.4vw, 1.1rem);
  border-left: 1px solid var(--ink-700);
}

.yt-tool {
  font-family: var(--font-mono);
  font-size: .73rem;
  letter-spacing: .1em;
  line-height: 1;
  padding: .52rem .68rem;
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.yt-tool:hover,
.yt-tool:focus-visible {
  color: var(--paper);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .08);
}

.yt-tool--cta {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0A03;
  font-weight: 700;
}
.yt-tool--cta:hover,
.yt-tool--cta:focus-visible {
  background: #FF8559;
  border-color: #FF8559;
  color: #1A0A03;
}

/* ---------- 轻提示 ---------- */

.yt-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 120;
  max-width: min(430px, 90vw);
  padding: .65rem 1rem;
  background: var(--ink-700);
  color: var(--paper);
  border: 1px solid rgba(0, 229, 255, .55);
  border-left: 3px solid var(--orange);
  font-size: .82rem;
  line-height: 1.55;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .95);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.yt-toast[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 通用文字组件 ---------- */

.yt-mono {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
}

.yt-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .5rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, .07);
  border: 1px solid rgba(0, 229, 255, .38);
  border-radius: var(--radius);
}
.yt-tag--warm {
  color: var(--orange);
  background: rgba(255, 107, 53, .1);
  border-color: rgba(255, 107, 53, .45);
}
.yt-tag--alt {
  color: #B6A7FF;
  background: rgba(124, 92, 255, .14);
  border-color: rgba(124, 92, 255, .5);
}
.yt-tag--ok {
  color: var(--green);
  background: rgba(15, 163, 127, .12);
  border-color: rgba(15, 163, 127, .45);
}

.yt-paper-tag {
  display: inline-block;
  background: var(--bone);
  color: #12303F;
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .13em;
  padding: .22rem .5rem;
  transform: rotate(-1.2deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .34);
}

.yt-note {
  margin: 0;
  padding: .15rem 0 .15rem .8rem;
  border-left: 2px solid var(--orange);
  color: var(--mist);
  font-size: .85rem;
  line-height: 1.68;
}

.yt-quote {
  margin: 0;
  padding: 1.15rem 1.35rem;
  background: var(--bone);
  color: #0D2B3C;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.72;
  border-left: 4px solid var(--ink-700);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .3);
}
.yt-quote cite {
  display: block;
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .1em;
  color: #456071;
}

.yt-rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--ink-700);
}

/* ---------- 按钮 ---------- */

.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .07em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.yt-btn--primary {
  background: var(--orange);
  color: #1A0A03;
  border-color: var(--orange);
}
.yt-btn--primary:hover,
.yt-btn--primary:focus-visible { background: #FF8559; border-color: #FF8559; }
.yt-btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--ink-600);
}
.yt-btn--ghost:hover,
.yt-btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .18);
}
.yt-btn--cyan {
  background: var(--cyan);
  color: #04141F;
  border-color: var(--cyan);
}
.yt-btn--cyan:hover,
.yt-btn--cyan:focus-visible { background: #6DF0FF; border-color: #6DF0FF; }

/* ---------- 面包屑 ---------- */

.yt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: 1.1rem 0 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .69rem;
  letter-spacing: .1em;
  color: var(--mist);
}
.yt-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
}
.yt-breadcrumb__item + .yt-breadcrumb__item::before {
  content: "/";
  color: var(--ink-600);
}
.yt-breadcrumb a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
}
.yt-breadcrumb a:hover,
.yt-breadcrumb a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 正文与网格 ---------- */

.yt-prose {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #DCE8F1;
}
.yt-prose h2 {
  margin: 2.2rem 0 .7rem;
  font-size: 1.5rem;
  letter-spacing: .03em;
}
.yt-prose h3 { margin: 1.7rem 0 .5rem; }
.yt-prose p { margin: 0 0 1.05rem; }
.yt-prose a { border-bottom: 1px solid rgba(0, 229, 255, .45); }
.yt-prose li { margin: .35em 0; }
.yt-prose > :first-child { margin-top: 0; }

.yt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
}
.yt-grid__main { min-width: 0; }
.yt-grid__rail { min-width: 0; }

@media (min-width: 900px) {
  .yt-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .yt-grid--wide { grid-template-columns: 270px minmax(0, 1fr); }
  .yt-grid__rail {
    position: sticky;
    top: calc(var(--header-h) + 1.6rem);
    align-self: start;
  }
}

/* ---------- 分区 ---------- */

.yt-section { padding-block: clamp(2.4rem, 6vw, 4.4rem); }
.yt-section--ink { background: var(--ink-800); }
.yt-section--band {
  border-top: 1px solid var(--ink-700);
  border-bottom: 1px solid var(--ink-700);
}
.yt-section--paper {
  background: var(--bone);
  color: #0D2B3C;
}
.yt-section--paper h1,
.yt-section--paper h2,
.yt-section--paper h3,
.yt-section--paper strong { color: #0D2B3C; }
.yt-section--paper .yt-mono,
.yt-section--paper .yt-note { color: #3D5A6B; }
.yt-section--paper a { color: #0A5F74; }

.yt-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.2rem;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.yt-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: .02em;
}
.yt-section__lede {
  margin: .2rem 0 0;
  max-width: 62ch;
  color: var(--mist);
  font-size: .96rem;
}

/* ---------- 叠层面板 ---------- */

.yt-panel {
  position: relative;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  background: linear-gradient(158deg, var(--ink-800), var(--ink-900) 72%);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
}
.yt-panel::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.yt-panel::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px;
  width: 16px; height: 16px;
  border-bottom: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}
.yt-panel__title {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--paper);
}

/* ---------- 图片容器（页面阶段放占位图） ---------- */

.yt-figure { margin: 0; }

.yt-figure__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
}
.yt-figure__media > img,
.yt-figure__media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}
.yt-figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(0, 229, 255, .16), transparent 62%),
    linear-gradient(180deg, transparent 46%, rgba(6, 26, 43, .62));
}
.yt-figure__caption {
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--mist);
}
.yt-figure--wide .yt-figure__media { aspect-ratio: 21 / 9; }
.yt-figure--video .yt-figure__media { aspect-ratio: 16 / 9; }
.yt-figure--portrait .yt-figure__media { aspect-ratio: 4 / 5; }
.yt-figure--square .yt-figure__media { aspect-ratio: 1 / 1; }

/* ---------- 粘性目录 ---------- */

.yt-toc {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--ink-700);
}
.yt-toc li { margin: 0; }
.yt-toc__link {
  display: block;
  margin-left: -1px;
  padding: .45rem 0 .45rem .8rem;
  border-left: 2px solid transparent;
  color: var(--mist);
  font-size: .86rem;
  line-height: 1.5;
  transition: color .18s ease, border-color .18s ease;
}
.yt-toc__link:hover,
.yt-toc__link:focus-visible {
  color: var(--paper);
  border-left-color: var(--ink-600);
}
.yt-toc__link[data-active="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ---------- 筛选 chips ---------- */

.yt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yt-chips li { margin: 0; }
.yt-chip {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  padding: .38rem .65rem;
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.yt-chip:hover,
.yt-chip:focus-visible { color: var(--cyan); border-color: var(--cyan); }
.yt-chip[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .12);
}

/* ---------- 渐显 ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 页脚 ---------- */

.yt-footer {
  position: relative;
  background: var(--ink-800);
  border-top: 1px solid var(--ink-700);
  color: var(--mist);
  padding-block: clamp(2.1rem, 5vw, 3.4rem) 1.5rem;
}
.yt-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 46%, var(--orange));
  opacity: .9;
}

.yt-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.3rem);
}

.yt-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
}

.yt-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  max-width: 46ch;
}

.yt-footer__lockup {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: .15em;
  color: var(--paper);
}

.yt-footer__domain {
  color: var(--cyan);
  font-size: .7rem;
  letter-spacing: .14em;
}

.yt-footer__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.72;
  color: var(--mist);
}

.yt-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

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

.yt-footer__coltitle {
  margin: 0 0 .7rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--ink-700);
  font-family: var(--font-mono);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
}

.yt-footer__list {
  display: flex;
  flex-direction: column;
  gap: .22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yt-footer__list li { margin: 0; }

.yt-footer__link {
  display: inline-block;
  padding: .16rem 0;
  color: var(--mist);
  font-size: .9rem;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.yt-footer__link:hover,
.yt-footer__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.yt-footer__meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink-700);
}

.yt-footer__contact {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.75;
  letter-spacing: .02em;
  color: #CFE0EA;
  word-break: break-word;
}

.yt-footer__note {
  margin: 0;
  font-size: .76rem;
  line-height: 1.65;
  color: var(--mist);
}

.yt-footer__legal {
  margin: .45rem 0 0;
  font-family: var(--font-mono);
  font-size: .69rem;
  letter-spacing: .08em;
  color: #7F9AAB;
}

/* ---------- 响应式 ---------- */

@media (min-width: 880px) {
  .yt-footer__top {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .yt-brand__sub { display: none; }
  .yt-nav__link { padding-inline: .42rem; font-size: .88rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }

  .yt-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
    padding: .5rem .7rem;
    background: transparent;
    color: var(--paper);
    border: 1px solid var(--ink-700);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: .71rem;
    letter-spacing: .12em;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
  }
  .yt-nav-toggle:hover,
  .yt-nav-toggle:focus-visible { border-color: var(--cyan); color: var(--cyan); }

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

  .yt-nav-toggle__bars { display: block; width: 18px; }
  .yt-nav-toggle__bars span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--cyan);
    transition: transform .2s ease, opacity .2s ease;
  }
  .yt-nav-toggle[aria-expanded="true"] .yt-nav-toggle__bars span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .yt-nav-toggle[aria-expanded="true"] .yt-nav-toggle__bars span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .yt-nav {
    position: fixed;
    inset: calc(var(--header-h) + 3px) 0 0 auto;
    width: min(360px, 88vw);
    margin: 0;
    padding: 1.1rem var(--gutter) 1.6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-800);
    border-left: 1px solid var(--ink-700);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateX(14px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s linear;
  }
  .yt-nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .yt-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .yt-nav__item { border-bottom: 1px solid var(--ink-700); }
  .yt-nav__link {
    display: block;
    padding: .95rem .15rem;
    font-size: 1rem;
    letter-spacing: .05em;
  }
  .yt-nav__link::after {
    left: .15rem;
    right: auto;
    bottom: .6rem;
    width: 0;
    transform: none;
    transition: width .2s ease;
  }
  .yt-nav__link:hover::after,
  .yt-nav__link:focus-visible::after { width: 26px; }
  .yt-nav__link[aria-current="page"]::after { width: 26px; }

  .yt-tools {
    margin-top: 1.3rem;
    padding: 1.1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--ink-700);
    flex-wrap: wrap;
  }
  .yt-tool {
    flex: 1 1 auto;
    text-align: center;
    padding: .72rem .8rem;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .yt-figure--wide .yt-figure__media { aspect-ratio: 16 / 9; }
  .yt-prose { font-size: .99rem; }
}

@media (max-width: 520px) {
  .yt-brand__mark { width: 34px; height: 34px; font-size: .95rem; }
  .yt-brand__name { font-size: .94rem; letter-spacing: .1em; }
  .yt-footer__cols { grid-template-columns: minmax(0, 1fr); }
  .yt-footer__contact { font-size: .75rem; }
  .yt-toast { bottom: .9rem; font-size: .78rem; }
}

/* ---------- 动效克制 ---------- */

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