/* ==========================================================================
   壹乐娱乐会馆 · 共享样式 /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, ul, ol, li, dl, dt, dd, figure, blockquote { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --yl-vermilion: #C8262B;
  --yl-vermilion-deep: #8E1A1F;
  --yl-gold: #D9A24A;
  --yl-gold-light: #F0D9A8;
  --yl-green: #123A32;
  --yl-green-mid: #1F5A4C;
  --yl-cream: #F7F2E7;
  --yl-sand: #EAE1D0;
  --yl-ink: #1B1B1B;
  --yl-muted: #5A5F58;
  --yl-neon-purple: #6C4CF1;
  --yl-neon-blue: #2FA6FF;

  --yl-shell: 1200px;
  --yl-gutter: clamp(16px, 4vw, 40px);
  --yl-cut: 12px;
  --yl-measure: 38em;

  --yl-font-display: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --yl-font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --yl-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --yl-shadow-lamp: -1px -1px 0 var(--yl-vermilion-deep), 1px -1px 0 var(--yl-vermilion-deep),
                    -1px 1px 0 var(--yl-vermilion-deep), 1px 1px 0 var(--yl-vermilion-deep);
}

/* ---------- 3. 基准排版 ---------- */
body {
  background: var(--yl-cream);
  color: var(--yl-ink);
  font-family: var(--yl-font-body);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--yl-neon-blue);
  outline-offset: 3px;
}

::selection { background: var(--yl-vermilion); color: var(--yl-gold-light); }

/* ---------- 4. 文字与容器 ---------- */
.yl-shell {
  width: 100%;
  max-width: var(--yl-shell);
  margin-inline: auto;
  padding-inline: var(--yl-gutter);
}

.yl-section { padding-block: clamp(48px, 7vw, 96px); }
.yl-section--tight { padding-block: clamp(28px, 4vw, 52px); }

.yl-grid { display: grid; gap: clamp(16px, 3vw, 32px); }
.yl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.yl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--yl-vermilion);
}

.yl-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--yl-gold);
  flex: none;
}

.yl-display {
  font-family: var(--yl-font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--yl-ink);
  text-shadow: var(--yl-shadow-lamp), 3px 7px 0 rgba(18, 58, 50, 0.14);
}

.yl-h2 {
  font-family: var(--yl-font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--yl-ink);
}

.yl-h3 {
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--yl-ink);
}

.yl-lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.9;
  color: var(--yl-muted);
  max-width: var(--yl-measure);
}

.yl-body {
  max-width: var(--yl-measure);
  line-height: 1.9;
}

.yl-muted { color: var(--yl-muted); }

.yl-num {
  font-family: var(--yl-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
}

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

/* ---------- 5. 按钮 ---------- */
.yl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.yl-btn:hover { transform: translateY(-2px); }
.yl-btn--sm { padding: 9px 14px; font-size: 0.8125rem; letter-spacing: 0.08em; }

.yl-btn--gold {
  background: linear-gradient(135deg, transparent var(--yl-cut), var(--yl-gold) var(--yl-cut));
  color: var(--yl-green);
}
.yl-btn--gold:hover { background-color: var(--yl-gold-light); }

.yl-btn--vermilion {
  background: linear-gradient(135deg, transparent var(--yl-cut), var(--yl-vermilion) var(--yl-cut));
  color: var(--yl-gold-light);
}
.yl-btn--vermilion:hover { background-color: var(--yl-vermilion-deep); }

.yl-btn--outline {
  border-color: rgba(240, 217, 168, 0.6);
  color: var(--yl-gold-light);
}
.yl-btn--outline:hover { background-color: rgba(240, 217, 168, 0.16); }

.yl-btn--neon {
  background: linear-gradient(135deg, transparent var(--yl-cut), var(--yl-neon-purple) var(--yl-cut));
  color: #ffffff;
}
.yl-btn--neon:hover { background-color: #5a3ada; }

.yl-btn--ghost {
  border-color: rgba(27, 27, 27, 0.25);
  color: var(--yl-ink);
}
.yl-btn--ghost:hover { border-color: var(--yl-vermilion); color: var(--yl-vermilion); }

/* ---------- 6. 跳转链接 ---------- */
.yl-skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--yl-vermilion);
  color: var(--yl-gold-light);
  font-family: var(--yl-font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: top .2s ease;
}
.yl-skip:focus { top: 12px; }

/* ---------- 7. 头部 ---------- */
.yl-header {
  position: sticky;
  top: 0;
  z-index: 90;
}

.yl-header__brandbar {
  background: var(--yl-green);
  color: var(--yl-cream);
  max-height: 140px;
  overflow: hidden;
  transition: max-height .28s ease, opacity .28s ease, visibility .28s ease;
}

.yl-header.is-condensed .yl-header__brandbar {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

.yl-header__brandbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding-block: 10px;
}

.yl-brand { display: inline-flex; align-items: center; gap: 12px; }

.yl-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: linear-gradient(135deg, transparent 11px, var(--yl-vermilion) 11px);
  color: var(--yl-gold-light);
  font-family: var(--yl-font-display);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28);
}

.yl-brand__text { display: flex; flex-direction: column; gap: 2px; }

.yl-brand__name {
  font-family: var(--yl-font-display);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--yl-gold-light);
}

.yl-brand__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: rgba(247, 242, 231, 0.68);
}

.yl-brand--footer .yl-brand__mark { width: 50px; height: 50px; font-size: 1.5rem; }
.yl-brand--footer .yl-brand__name { font-size: 1.25rem; }

.yl-brandbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.yl-switch {
  display: inline-flex;
  border: 1px solid rgba(240, 217, 168, 0.45);
  background: rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(135deg, transparent 9px, rgba(18, 58, 50, 0.85) 9px);
}

.yl-switch__btn {
  padding: 7px 13px;
  font-family: var(--yl-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(247, 242, 231, 0.72);
  transition: background-color .18s ease, color .18s ease;
}

.yl-switch__btn.is-active {
  background: var(--yl-gold);
  color: var(--yl-green);
}

.yl-header__main {
  position: relative;
  background: var(--yl-cream);
  border-bottom: 2px solid var(--yl-gold);
}

.yl-header__main-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 58px;
}

.yl-header__stamp {
  flex: none;
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  color: var(--yl-gold);
  padding-right: 18px;
  border-right: 1px dashed rgba(27, 27, 27, 0.22);
}

.yl-header__mini {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, transparent 9px, var(--yl-vermilion) 9px);
  color: var(--yl-gold-light);
  font-family: var(--yl-font-display);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
}

.yl-nav { flex: 1 1 auto; display: flex; justify-content: center; }

.yl-nav__list { display: flex; flex-wrap: wrap; gap: 2px; }

.yl-nav__item { display: block; }

.yl-nav__link {
  display: block;
  padding: 10px 16px;
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--yl-ink);
  transition: color .18s ease, background-color .18s ease;
}

.yl-nav__link:hover { color: var(--yl-vermilion); }

.yl-nav__link[aria-current="page"] {
  background: linear-gradient(135deg, transparent 11px, var(--yl-vermilion) 11px);
  color: var(--yl-gold-light);
  padding-left: 24px;
}

.yl-nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 18px;
  background: linear-gradient(135deg, transparent 10px, var(--yl-vermilion) 10px);
  color: var(--yl-gold-light);
  transition: background-color .2s ease;
}

.yl-nav__toggle[aria-expanded="true"] { background-color: var(--yl-green); }

.yl-nav__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.yl-nav__bars span { display: block; height: 2px; background: currentColor; }
.yl-nav__bars span:nth-child(2) { width: 72%; }

.yl-nav__toggle-label {
  font-family: var(--yl-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* ---------- 8. 页脚 ---------- */
.yl-footer {
  position: relative;
  background: var(--yl-green);
  color: var(--yl-cream);
  padding-block: clamp(44px, 6vw, 78px) clamp(34px, 4vw, 52px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 64px) 100%, 0 100%);
}

.yl-footer__notch {
  position: absolute;
  top: 0;
  left: 0;
  width: min(340px, 44%);
  height: 6px;
  background: linear-gradient(90deg, var(--yl-vermilion), var(--yl-gold));
}

.yl-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.yl-footer__brand { display: flex; flex-direction: column; gap: 16px; }

.yl-footer__line {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(247, 242, 231, 0.82);
  max-width: 28em;
}

.yl-footer__stats { display: flex; flex-wrap: wrap; gap: 18px 26px; }

.yl-footer__stat { display: flex; flex-direction: column; gap: 2px; }

.yl-footer__stat dt {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(247, 242, 231, 0.6);
}

.yl-footer__stat dd {
  font-family: var(--yl-font-mono);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--yl-gold);
}

.yl-footer__since {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(247, 242, 231, 0.66);
}

.yl-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

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

.yl-footer__title {
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.24em;
  color: var(--yl-gold-light);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 217, 168, 0.28);
}

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

.yl-footer__list a {
  font-size: 0.875rem;
  color: rgba(247, 242, 231, 0.84);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.yl-footer__list a:hover {
  color: var(--yl-gold-light);
  border-bottom-color: var(--yl-gold);
}

.yl-copyline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 2px;
}

.yl-copyline__label {
  flex: none;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: rgba(247, 242, 231, 0.6);
}

.yl-copyline__value {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--yl-cream);
  word-break: break-all;
  min-width: 0;
}

.yl-copy {
  flex: none;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--yl-gold-light);
  border: 1px solid rgba(240, 217, 168, 0.42);
  background: linear-gradient(135deg, transparent 7px, rgba(217, 162, 74, 0.16) 7px);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.yl-copy:hover {
  background-color: var(--yl-gold);
  border-color: var(--yl-gold);
  color: var(--yl-green);
}

.yl-copy.is-done {
  background-color: var(--yl-neon-blue);
  border-color: var(--yl-neon-blue);
  color: #ffffff;
}

.yl-footer__legal {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px dashed rgba(240, 217, 168, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  justify-content: space-between;
}

.yl-footer__legal-line {
  font-family: var(--yl-font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(247, 242, 231, 0.82);
}

.yl-footer__note {
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(247, 242, 231, 0.6);
  max-width: 46em;
}

/* ---------- 9. 返回顶部 ---------- */
.yl-totop {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, transparent 12px, var(--yl-vermilion) 12px);
  color: var(--yl-gold-light);
  box-shadow: 0 8px 20px rgba(18, 58, 50, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}

.yl-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.yl-totop:hover { background-color: var(--yl-vermilion-deep); }

.yl-totop__arrow { font-size: 1.125rem; line-height: 1; }
.yl-totop__text { font-size: 0.625rem; letter-spacing: 0.16em; }

/* ---------- 10. 面包屑 ---------- */
.yl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--yl-muted);
}

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

.yl-breadcrumb__item + .yl-breadcrumb__item::before {
  content: "/";
  color: var(--yl-gold);
}

.yl-breadcrumb__link {
  color: var(--yl-muted);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.yl-breadcrumb__link:hover { color: var(--yl-vermilion); border-bottom-color: var(--yl-vermilion); }

.yl-breadcrumb__current { color: var(--yl-ink); font-weight: 700; }

/* ---------- 11. 面板与切角 ---------- */
.yl-panel {
  position: relative;
  background: var(--yl-cream);
  border: 1px solid rgba(27, 27, 27, 0.14);
  padding: clamp(20px, 3vw, 36px);
}

.yl-panel--cut {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.yl-panel--dark {
  background: var(--yl-green);
  border-color: rgba(240, 217, 168, 0.28);
  color: var(--yl-cream);
}

.yl-panel--sand { background: var(--yl-sand); }

/* ---------- 12. 票根卡 ---------- */
.yl-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  background: var(--yl-cream);
  border: 1px solid rgba(27, 27, 27, 0.16);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.yl-ticket__main { padding: clamp(18px, 2.4vw, 28px); }

.yl-ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 16px;
  background: var(--yl-sand);
  border-left: 1px dashed rgba(27, 27, 27, 0.35);
  text-align: center;
  transition: transform .22s ease;
}

.yl-ticket:hover .yl-ticket__stub { transform: translateY(-3px); }

.yl-ticket__stub::before,
.yl-ticket__stub::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yl-cream);
  box-shadow: inset 0 0 0 1px rgba(27, 27, 27, 0.16);
}

.yl-ticket__stub::before { top: -8px; }
.yl-ticket__stub::after { bottom: -8px; }

.yl-ticket__no {
  font-family: var(--yl-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--yl-vermilion);
}

.yl-ticket__meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--yl-muted);
}

/* ---------- 13. 斜切色块 ---------- */
.yl-slice {
  height: clamp(40px, 7vw, 90px);
  background: linear-gradient(90deg, var(--yl-vermilion), var(--yl-vermilion-deep) 48%, var(--yl-gold));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 55%);
}

.yl-slice--flip { clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%); }

.yl-slice--green {
  background: linear-gradient(90deg, var(--yl-green), var(--yl-green-mid));
}

/* ---------- 14. 悬浮标签 ---------- */
.yl-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, transparent 8px, var(--yl-vermilion) 8px);
  color: var(--yl-gold-light);
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.yl-tag--gold { background: linear-gradient(135deg, transparent 8px, var(--yl-gold) 8px); color: var(--yl-green); }
.yl-tag--neon { background: linear-gradient(135deg, transparent 8px, var(--yl-neon-purple) 8px); color: #ffffff; }
.yl-tag--inline { position: static; }

/* ---------- 15. 图片容器 ---------- */
.yl-media {
  position: relative;
  overflow: hidden;
  background: var(--yl-green);
  min-height: 120px;
}

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

.yl-media--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.yl-media__img { width: 100%; height: 100%; object-fit: cover; }

.yl-media__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--yl-green) 0%, var(--yl-green-mid) 55%, var(--yl-vermilion) 100%);
  color: var(--yl-gold-light);
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.24em;
}

.yl-media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(18, 58, 50, 0.9), rgba(18, 58, 50, 0));
  color: var(--yl-cream);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* ---------- 16. 仪表盘九宫格 ---------- */
.yl-dash {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  background: rgba(27, 27, 27, 0.14);
  border: 1px solid rgba(27, 27, 27, 0.14);
}

.yl-dash__cell {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 132px;
  padding: clamp(16px, 2vw, 24px);
  background: var(--yl-cream);
  transition: background-color .2s ease, color .2s ease;
}

.yl-dash__cell--wide { grid-column: span 3; }
.yl-dash__cell--dark { background: var(--yl-green); color: var(--yl-cream); }

.yl-dash__name {
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.yl-dash__stat {
  font-family: var(--yl-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--yl-vermilion);
}

.yl-dash__cell--dark .yl-dash__stat { color: var(--yl-gold); }

/* ---------- 17. 左右对照 ---------- */
.yl-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: rgba(27, 27, 27, 0.16);
  border: 1px solid rgba(27, 27, 27, 0.16);
}

.yl-compare__tabs { display: none; }

.yl-compare__tab {
  flex: 1 1 0;
  padding: 12px 10px;
  font-family: var(--yl-font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--yl-muted);
  background: var(--yl-sand);
  transition: background-color .18s ease, color .18s ease;
}

.yl-compare__tab.is-active { background: var(--yl-vermilion); color: var(--yl-gold-light); }

.yl-compare__col {
  padding: clamp(20px, 3vw, 34px);
  background: var(--yl-cream);
}

.yl-compare__col--dark { background: var(--yl-green); color: var(--yl-cream); }

.yl-compare__label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--yl-font-display);
  font-weight: 900;
  font-size: 0.8125rem;
  letter-spacing: 0.24em;
  color: var(--yl-vermilion);
}

.yl-compare__col--dark .yl-compare__label { color: var(--yl-gold-light); }

/* ---------- 18. 章节目录 ---------- */
.yl-toc {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  width: 132px;
  padding: 14px 10px;
  background: rgba(247, 242, 231, 0.95);
  border: 1px solid rgba(27, 27, 27, 0.14);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.yl-toc__list { display: flex; flex-direction: column; gap: 2px; }

.yl-toc__link {
  display: block;
  padding: 6px 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--yl-muted);
  border-left: 2px solid transparent;
  transition: color .12s ease, border-color .12s ease, background-color .12s ease;
}

.yl-toc__link:hover { color: var(--yl-ink); }

.yl-toc__link[aria-current="true"] {
  color: var(--yl-vermilion);
  border-left-color: var(--yl-vermilion);
  background: rgba(200, 38, 43, 0.07);
  font-weight: 700;
}

/* ---------- 19. 显现与光带 ---------- */
html.yl-anim .yl-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

html.yl-anim .yl-reveal.is-in { opacity: 1; transform: none; }

.yl-beam { position: relative; }

.yl-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 58% at 22% 16%, rgba(217, 162, 74, 0.26), transparent 70%),
    radial-gradient(48% 54% at 82% 78%, rgba(200, 38, 43, 0.2), transparent 72%);
  animation: yl-beam-drift 24s ease-in-out infinite alternate;
}

@keyframes yl-beam-drift {
  from { transform: translate3d(-3%, 0, 0); }
  to { transform: translate3d(3%, 0, 0); }
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1023px) {
  .yl-footer__top { grid-template-columns: 1fr; }
  .yl-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .yl-header__stamp { display: none; }
  .yl-header__mini { display: inline-grid; }
  .yl-nav__toggle { display: inline-flex; }

  .yl-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 2;
    display: block;
    flex: none;
    padding: 8px var(--yl-gutter) 20px;
    background: var(--yl-green);
    border-top: 1px solid rgba(240, 217, 168, 0.35);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  .yl-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .yl-header__main-in { justify-content: space-between; }

  .yl-nav__list { display: block; }

  .yl-nav__link {
    padding: 14px 8px;
    font-size: 1rem;
    color: var(--yl-cream);
    border-bottom: 1px solid rgba(247, 242, 231, 0.12);
  }

  .yl-nav__link:hover { color: var(--yl-gold-light); }

  .yl-nav__link[aria-current="page"] {
    padding-left: 18px;
    background: linear-gradient(135deg, transparent 11px, var(--yl-vermilion) 11px);
    color: var(--yl-gold-light);
  }

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

  .yl-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yl-dash__cell { grid-column: span 1; }
  .yl-dash__cell--wide { grid-column: span 2; }

  .yl-compare { grid-template-columns: 1fr; }

  .yl-compare__tabs {
    grid-column: 1 / -1;
    display: flex;
    gap: 2px;
  }

  .yl-compare[data-compare-view="left"] .yl-compare__col[data-compare-panel="right"] { display: none; }
  .yl-compare[data-compare-view="right"] .yl-compare__col[data-compare-panel="left"] { display: none; }
}

@media (max-width: 719px) {
  .yl-switch { display: none; }
  .yl-brandbar__tools .yl-btn--outline { display: none; }
  .yl-header__brandbar-in { min-height: 60px; }
  .yl-footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { line-height: 1.85; }
  .yl-header .yl-brand__tagline { display: none; }
  .yl-ticket { grid-template-columns: 1fr; }
  .yl-ticket__stub {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-left: 0;
    border-top: 1px dashed rgba(27, 27, 27, 0.35);
  }
  .yl-ticket__stub::before,
  .yl-ticket__stub::after { display: none; }
  .yl-ticket:hover .yl-ticket__stub { transform: none; }
  .yl-footer__cols { grid-template-columns: 1fr; }
  .yl-totop { width: 50px; height: 50px; }
}

@media (min-width: 1440px) {
  .yl-toc { display: block; }
}

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

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

  html.yl-anim .yl-reveal { opacity: 1; transform: none; }
  .yl-beam::before { animation: none; }
  .yl-btn:hover,
  .yl-ticket:hover .yl-ticket__stub { transform: none; }
}
