/* ============================================================
   万豪斗地主 · 牌局档案室  —  共享样式 /assets/site.css
   ============================================================ */

:root {
  --felt: #10382B;
  --felt-deep: #08201A;
  --moss: #2C6B55;
  --ivory: #F6F1E3;
  --oat: #E7DFC9;
  --gold: #C9A227;
  --gold-hi: #EFD88A;
  --warn: #B23A32;
  --score: #2E6F9E;
  --ink: #14181A;
  --stone: #6E7267;

  --line: rgba(20, 24, 26, .16);
  --line-strong: rgba(20, 24, 26, .32);
  --line-light: rgba(246, 241, 227, .18);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --shadow-1: 0 1px 0 rgba(20, 24, 26, .10), 0 10px 24px -16px rgba(8, 32, 26, .55);
  --shadow-2: 0 2px 0 rgba(20, 24, 26, .12), 0 22px 44px -26px rgba(8, 32, 26, .62);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ivory);
  background-image:
    linear-gradient(rgba(20, 24, 26, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 26, .03) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.01em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--score); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
main { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ---------- 骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: clamp(34px, 5.5vw, 76px); }
.section--oat { background: var(--oat); }
.section--felt {
  background: linear-gradient(158deg, var(--felt) 0%, var(--felt-deep) 88%);
  color: rgba(246, 241, 227, .86);
}
.section--felt .section__title, .section--felt h2, .section--felt h3 { color: var(--ivory); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(18px, 2.6vw, 34px);
}
.section__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section__note { max-width: 46ch; font-size: .9rem; color: var(--stone); line-height: 1.75; }
.section--felt .section__note { color: rgba(246, 241, 227, .66); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line-strong), rgba(20, 24, 26, .06) 68%, transparent);
}
.rule--gold { background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, .18) 60%, transparent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moss);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.eyebrow--light { color: var(--gold-hi); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--5-3-4 { grid-template-columns: 5fr 3fr 4fr; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }

.num {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.handnote {
  display: inline-block;
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "Songti SC", cursive;
  font-size: .92rem;
  color: var(--warn);
  letter-spacing: .02em;
  transform: rotate(-1.4deg);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--gold {
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 58%, #a8861c);
  color: #241c05;
  border-color: rgba(8, 32, 26, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}
.btn--gold:hover, .btn--gold:focus-visible { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 10px 20px -14px rgba(8, 32, 26, .8); }
.btn--outline { background: transparent; color: var(--ivory); border-color: rgba(201, 162, 39, .5); }
.btn--outline:hover, .btn--outline:focus-visible { background: rgba(201, 162, 39, .16); color: var(--gold-hi); }
.btn--dark { background: var(--felt); color: var(--ivory); border-color: var(--felt); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--felt-deep); }
.btn--ghost { background: transparent; color: var(--felt); border-color: var(--line-strong); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--moss); background: rgba(44, 107, 85, .08); }
.btn--sm { padding: 8px 14px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--felt-deep);
  font-weight: 700;
  border-radius: 2px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--felt-deep);
  color: var(--ivory);
}
.header-status {
  background: var(--felt);
  border-bottom: 1px solid rgba(201, 162, 39, .22);
  color: rgba(246, 241, 227, .74);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.header-status__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
}
.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}
.status-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.status-strip::-webkit-scrollbar { display: none; }
.status-strip li { position: relative; white-space: nowrap; padding: 0 14px; }
.status-strip li:first-child { padding-left: 0; }
.status-strip li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  background: rgba(246, 241, 227, .26);
  transform: translateY(-50%);
}

.header-frame {
  position: relative;
  background: linear-gradient(180deg, var(--felt-deep), #0b2a22 62%, var(--felt-deep));
  border-bottom: 1px solid rgba(201, 162, 39, .38);
}
.header-frame__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold) 56%, #9c7d17);
  color: var(--felt-deep);
  box-shadow: inset 0 0 0 1px rgba(8, 32, 26, .35);
}
.brand__suit { font-size: 1.3rem; line-height: 1; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-family: var(--serif); font-weight: 900; font-size: 1.18rem; letter-spacing: .02em; }
.brand__line { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: rgba(201, 162, 39, .88); }

.site-nav { display: flex; align-self: stretch; margin-left: auto; }
.site-nav__list { display: flex; align-items: stretch; gap: 2px; }
.site-nav__item { display: flex; }
.site-nav__link {
  display: flex;
  align-items: center;
  padding: 0 clamp(9px, 1.1vw, 16px);
  color: rgba(246, 241, 227, .8);
  font-size: .95rem;
  letter-spacing: .02em;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.site-nav__link:hover, .site-nav__link:focus-visible {
  color: var(--gold-hi);
  background: rgba(201, 162, 39, .1);
  border-bottom-color: rgba(201, 162, 39, .5);
  text-decoration: none;
}
.site-nav__link[aria-current="page"] {
  color: var(--gold-hi);
  background: rgba(201, 162, 39, .14);
  border-bottom-color: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: 2px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(201, 162, 39, .16); color: var(--gold-hi); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--felt-deep);
  color: rgba(246, 241, 227, .78);
  border-top: 1px solid rgba(201, 162, 39, .34);
  font-size: .92rem;
}
.site-footer a { color: rgba(246, 241, 227, .78); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(26px, 4vw, 60px);
  padding-block: clamp(32px, 5vw, 64px);
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer__logo:hover { text-decoration: none; }
.footer__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold) 58%, #9c7d17);
  color: var(--felt-deep);
  font-size: 1.05rem;
}
.footer__brandtext { font-family: var(--serif); font-weight: 900; font-size: 1.12rem; color: var(--ivory); letter-spacing: .02em; }
.footer__brandline { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--gold); }
.footer__note { max-width: 34ch; font-size: .88rem; line-height: 1.8; color: rgba(246, 241, 227, .6); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 38px); }
.footer__col { min-width: 0; }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__link {
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__link:hover, .footer__link:focus-visible { color: var(--gold-hi); border-bottom-color: rgba(201, 162, 39, .6); text-decoration: none; }
.footer__lines { display: flex; flex-direction: column; gap: 10px; font-size: .86rem; }
.footer__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.footer__line b {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold-hi);
  margin-right: 4px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  border-top: 1px solid rgba(246, 241, 227, .14);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .03em;
  color: rgba(246, 241, 227, .55);
}
.footer__legal { color: rgba(246, 241, 227, .64); }

/* ---------- 面包屑 ---------- */
.breadcrumbs { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--stone); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs__item { display: flex; align-items: center; gap: 8px; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: rgba(20, 24, 26, .3); }
.breadcrumbs__link { color: var(--stone); }
.breadcrumbs__link:hover { color: var(--felt); }
.breadcrumbs__item[aria-current="page"] { color: var(--ink); }
.section--felt .breadcrumbs, .section--felt .breadcrumbs__link { color: rgba(246, 241, 227, .6); }
.section--felt .breadcrumbs__item[aria-current="page"] { color: var(--gold-hi); }

/* ---------- 纸面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: var(--shadow-1);
}
.panel::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(201, 162, 39, .6);
  border-bottom: 1px solid rgba(201, 162, 39, .6);
  pointer-events: none;
}
.panel--oat { background: var(--oat); }
.panel--dark {
  background: linear-gradient(165deg, var(--felt), var(--felt-deep));
  color: rgba(246, 241, 227, .84);
  border-color: rgba(201, 162, 39, .34);
  box-shadow: var(--shadow-2);
}
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel--dark .panel__head { border-bottom-color: rgba(246, 241, 227, .18); }
.panel__title { font-size: 1.05rem; }
.panel--dark .panel__title { color: var(--ivory); }
.panel__body { font-size: .98rem; }
.panel--dark .panel__body { color: rgba(246, 241, 227, .78); }

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}
.chip--gold { background: rgba(201, 162, 39, .18); border-color: rgba(201, 162, 39, .6); color: #6b5310; }
.chip--blue { background: rgba(46, 111, 158, .14); border-color: rgba(46, 111, 158, .45); color: #1d4c6d; }
.chip--red { background: rgba(178, 58, 50, .12); border-color: rgba(178, 58, 50, .45); color: #8a2b25; }
.chip--dark { background: rgba(8, 32, 26, .55); border-color: rgba(201, 162, 39, .35); color: var(--gold-hi); }

/* ---------- 统计 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(14px, 2vw, 28px); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--felt);
  font-variant-numeric: tabular-nums;
}
.stat__value--gold { color: var(--gold); }
.stat__label { font-size: .82rem; letter-spacing: .04em; color: var(--stone); }
.panel--dark .stat__value, .section--felt .stat__value { color: var(--gold-hi); }
.panel--dark .stat__label, .section--felt .stat__label { color: rgba(246, 241, 227, .62); }

/* ---------- 进度条 ---------- */
.meter { height: 8px; background: rgba(20, 24, 26, .1); border: 1px solid var(--line); overflow: hidden; }
.meter__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--moss), var(--gold)); transition: width .6s var(--ease); }

/* ---------- 叫分区间刻度（品牌识别带） ---------- */
.call-band {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  margin-block: clamp(18px, 2.4vw, 30px);
}
.call-band__seg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  background: var(--ivory);
  color: var(--stone);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.call-band__seg:nth-child(even) { background: var(--oat); }
.call-band__seg b { font-size: 1rem; color: var(--felt); }
.call-band__seg--active {
  background: linear-gradient(120deg, rgba(239, 216, 138, .8), rgba(201, 162, 39, .3));
  color: #5c4708;
}
.call-band__seg--active b { color: #3f3005; }
.section--felt .call-band { border-color: rgba(201, 162, 39, .38); background: rgba(201, 162, 39, .38); }
.section--felt .call-band__seg { background: rgba(246, 241, 227, .07); color: rgba(246, 241, 227, .62); }
.section--felt .call-band__seg:nth-child(even) { background: rgba(246, 241, 227, .12); }
.section--felt .call-band__seg b { color: var(--gold-hi); }

/* ---------- 折叠 ---------- */
.accordion { border-top: 1px solid var(--line-strong); }
.accordion__item { border-bottom: 1px solid var(--line-strong); }
.accordion__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.02rem;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.accordion__trigger:hover, .accordion__trigger:focus-visible { background: rgba(201, 162, 39, .09); color: var(--felt); }
.accordion__index { flex: 0 0 auto; font-family: var(--mono); font-size: .78rem; color: var(--gold); }
.accordion__icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin-left: auto; }
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--moss);
  transition: transform .24s var(--ease);
}
.accordion__icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.accordion__icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  padding: 0 4px;
  transition: max-height .24s var(--ease), opacity .2s var(--ease), visibility 0s linear .24s;
}
.accordion__panel[data-open] {
  max-height: 60rem;
  visibility: visible;
  opacity: 1;
  padding-bottom: 20px;
  transition: max-height .24s var(--ease), opacity .2s var(--ease), visibility 0s;
}

/* ---------- 锚点目录 ---------- */
.toc { border-left: 1px solid var(--line-strong); padding-left: 16px; }
.toc__list { display: flex; flex-direction: column; gap: 10px; }
.toc__link {
  position: relative;
  display: block;
  padding: 2px 0;
  font-size: .88rem;
  color: var(--stone);
}
.toc__link::before {
  content: "";
  position: absolute;
  left: -17px;
  top: .55em;
  width: 1px;
  height: 0;
  background: var(--gold);
  transition: height .2s var(--ease);
}
.toc__link:hover { color: var(--felt); }
.toc__link[aria-current="true"] { color: var(--felt); font-weight: 700; }
.toc__link[aria-current="true"]::before { height: 1.1em; }

/* ---------- 筛选标签 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--stone);
  font-size: .86rem;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.tab:hover, .tab:focus-visible { color: var(--felt); border-color: var(--moss); }
.tab[aria-pressed="true"] { background: var(--felt); color: var(--gold-hi); border-color: var(--felt); }

/* ---------- 正文 ---------- */
.prose { max-width: 68ch; font-family: var(--serif); font-size: 1.02rem; line-height: 1.95; color: #23292b; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.12rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1em 0; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--felt); }
.section--felt .prose, .panel--dark .prose { color: rgba(246, 241, 227, .84); }

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--oat);
  border: 1px solid var(--line-strong);
}
.media img, .media svg, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 9; }
.media--classic { aspect-ratio: 4 / 3; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media__frame { position: absolute; inset: 8px; border: 1px solid rgba(246, 241, 227, .35); pointer-events: none; }
.media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: rgba(20, 24, 26, .34);
}
.media__caption { display: block; margin-top: 8px; font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--stone); }
.section--felt .media__caption, .panel--dark .media__caption { color: rgba(246, 241, 227, .58); }

/* ---------- 工具型组件 ---------- */
html[data-js="on"] .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html[data-js="on"] .reveal[data-revealed] { opacity: 1; transform: none; }

.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 70;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--felt);
  color: var(--gold-hi);
  border: 1px solid rgba(201, 162, 39, .5);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), background-color .18s var(--ease);
}
.to-top span { font-size: 1.1rem; line-height: 1; }
.to-top[data-visible] { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--felt-deep); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: 4px;
  background: transparent;
  color: var(--gold-hi);
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.copy-btn:hover, .copy-btn:focus-visible { background: rgba(201, 162, 39, .18); }
.copy-btn[data-copied] { background: var(--gold-hi); color: var(--felt-deep); border-color: var(--gold-hi); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--5-3-4 { grid-template-columns: 1fr 1fr; }
  .grid--7-5, .grid--8-4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 65;
    display: none;
    margin-left: 0;
    align-self: auto;
    background: var(--felt-deep);
    border-bottom: 1px solid rgba(201, 162, 39, .38);
    box-shadow: 0 28px 46px -28px rgba(0, 0, 0, .85);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .site-nav[data-open] { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { display: block; }
  .site-nav__link {
    padding: 15px var(--gutter);
    border-bottom: 1px solid rgba(246, 241, 227, .1);
    border-left: 3px solid transparent;
  }
  .site-nav__link:hover, .site-nav__link:focus-visible { border-bottom-color: rgba(246, 241, 227, .1); border-left-color: rgba(201, 162, 39, .55); }
  .site-nav__link[aria-current="page"] { border-bottom-color: rgba(246, 241, 227, .1); border-left-color: var(--gold); }
}

@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .call-band { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { position: static; }
  .header-frame__inner { min-height: 62px; gap: 10px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.06rem; }
  .header-status { font-size: .68rem; }
  .grid--5-3-4 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand__line { display: none; }
  .header-actions .btn--sm { padding: 7px 11px; font-size: .8rem; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 动效偏好 ---------- */
@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[data-js="on"] .reveal { opacity: 1; transform: none; }
  .accordion__panel { transition: none; }
}
