/* ==========================================================================
   闲逸麻将馆 · 共享样式 /assets/site.css
   象牙纸底 · 竹青骨架 · 朱砂落点 · 鎏金刻度
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

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

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 出版色 */
  --paper: #F7F1E4;
  --paper-card: #FCF8EF;
  --bamboo: #4F6B52;
  --bamboo-deep: #2F4636;
  --cinnabar: #B5402E;
  --cinnabar-deep: #9E3626;
  --cinnabar-pale: #E8C8BE;
  --gold: #B78A3D;
  --gold-sand: #D8BC80;
  --tea: #6B5442;
  --celadon: #A9B7A6;
  --terracotta: #D77A57;
  --ink: #2A2620;

  /* 字体 */
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SF Mono", "Consolas", "Courier New", monospace;

  /* 度量 */
  --spine-w: 88px;
  --content-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 34px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-tile: 0 1px 0 rgba(183, 138, 61, .28), 0 14px 30px -22px rgba(42, 38, 32, .5);
  --line-gold: rgba(183, 138, 61, .3);
  --line-gold-strong: rgba(183, 138, 61, .55);
}

/* ---------- 3. 中文排版基础 ---------- */
html { font-size: 100%; }

body {
  min-height: 100vh;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(79, 107, 82, .038) 0 1px,
    transparent 1px 46px
  );
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body { padding-left: var(--spine-w); }
}

p { max-width: 38em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: .06em;
  color: var(--bamboo-deep);
}

h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .05em; }
h4 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: .05em; }

strong { color: var(--bamboo-deep); font-weight: 600; }

::selection {
  background: var(--cinnabar-pale);
  color: var(--bamboo-deep);
}

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

/* ---------- 4. 布局骨架 ---------- */
.wrap {
  width: min(var(--content-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 6vw, 76px); }
.section--tight { padding-block: clamp(24px, 4vw, 44px); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(183, 138, 61, 0), var(--line-gold-strong), rgba(183, 138, 61, 0));
}

/* ---------- 5. 头部：书脊 + 刊头 ---------- */
.site-header {
  position: relative;
  z-index: 70;
  border-top: 3px solid var(--bamboo-deep);
  border-bottom: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(252, 248, 239, .92), rgba(247, 241, 228, 0));
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 300;
  transform: translate(-50%, -150%);
  padding: 10px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--bamboo-deep);
  color: var(--paper-card);
  font-size: 14px;
  letter-spacing: .14em;
  transition: transform .22s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: -4px;
}

/* 5.1 左侧品牌书脊 */
.brand-spine {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--spine-w);
  z-index: 60;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #354E3C 0%, #2F4636 46%, #24382A 100%);
  color: var(--gold-sand);
}

.brand-spine::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(183, 138, 61, 0) 72%);
  opacity: .55;
}

@media (min-width: 900px) {
  .brand-spine { display: flex; }
}

.spine-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--cinnabar);
  color: var(--paper-card);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(252, 248, 239, .3);
}

.spine-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .34em;
  color: #EFE3C8;
}

.spine-track {
  width: 2px;
  height: clamp(76px, 18vh, 160px);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(216, 188, 128, .22);
}

.spine-track-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--gold-sand), var(--cinnabar));
  transition: transform .18s linear;
}

.spine-place {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(239, 227, 200, .6);
}

/* 5.2 居中刊头 */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(var(--content-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(16px, 3vw, 30px) 0 clamp(14px, 2.4vw, 22px);
  text-align: center;
}

.masthead-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(520px, 100%);
  color: var(--gold);
}

.masthead-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(183, 138, 61, 0), var(--line-gold-strong), rgba(183, 138, 61, 0));
}

.masthead-rule i {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: .85;
}

.masthead-dateline {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--tea);
}

.masthead-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.08;
  letter-spacing: .16em;
  padding-left: .16em;
  color: var(--bamboo-deep);
  transition: color .22s var(--ease);
}

.masthead-brand:hover { color: var(--cinnabar); }

.masthead-brand-cn { display: inline; }

.masthead-tagline {
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: .5em;
  padding-left: .5em;
  color: var(--tea);
}

/* 5.3 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 9px 20px;
  border: 1px solid rgba(79, 107, 82, .42);
  border-radius: 999px;
  background: var(--paper-card);
  color: var(--bamboo-deep);
  font-size: 14px;
  letter-spacing: .16em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(79, 107, 82, .1);
}

.nav-toggle-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-icon span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--bamboo-deep);
  border-color: var(--bamboo-deep);
  color: var(--paper-card);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 5.4 导航 */
.masthead-nav {
  width: 100%;
  margin-top: 4px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--bamboo-deep);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-list a:hover {
  color: var(--cinnabar);
  background: rgba(232, 200, 190, .4);
}

.nav-list a[aria-current="page"] { color: var(--cinnabar); }

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--cinnabar);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .masthead-nav {
    max-width: 780px;
    margin-inline: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line-gold);
  }
}

@media (max-width: 899px) {
  .masthead-nav {
    display: none;
    max-width: 100%;
    padding-top: 0;
    border-top: 0;
  }

  .masthead-nav[data-open] {
    display: block;
    animation: nav-fall .22s var(--ease) both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    padding: 6px 4px;
    text-align: left;
    background: var(--paper-card);
    border-top: 1px solid var(--line-gold);
    border-bottom: 1px solid var(--line-gold);
    border-radius: 4px 4px 24px 4px;
    box-shadow: var(--shadow-tile);
  }

  .nav-list li + li { border-top: 1px dashed rgba(183, 138, 61, .28); }

  .nav-list a {
    display: block;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 16px;
  }

  .nav-list a[aria-current="page"] {
    background: rgba(232, 200, 190, .42);
  }

  .nav-list a[aria-current="page"]::after {
    left: 7px;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    margin-top: -9px;
    transform: none;
    border-radius: 2px;
  }
}

@keyframes nav-fall {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--bamboo-deep);
  color: rgba(252, 248, 239, .8);
  font-size: 15px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bamboo), var(--gold), var(--cinnabar), var(--gold), var(--bamboo));
  opacity: .8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr .8fr .8fr 1.6fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  width: min(var(--content-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 66px) 0 clamp(26px, 4vw, 44px);
}

.footer-seal {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 5px;
  background: var(--cinnabar);
  color: var(--paper-card);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(252, 248, 239, .3);
}

.footer-name {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .2em;
  color: var(--paper-card);
}

.footer-summary {
  max-width: 30ch;
  line-height: 1.9;
  color: rgba(252, 248, 239, .72);
}

.footer-hours {
  max-width: none;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold-sand);
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(216, 188, 128, .24);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--gold-sand);
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: rgba(252, 248, 239, .78);
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-col a:hover {
  color: var(--gold-sand);
  padding-left: 4px;
}

.footer-contact-list {
  display: grid;
  gap: 14px;
}

.footer-contact-list li {
  display: grid;
  gap: 2px;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: rgba(216, 188, 128, .72);
}

.footer-contact-text {
  color: rgba(252, 248, 239, .88);
}

.copy-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 1px 0;
  border-bottom: 1px dashed rgba(216, 188, 128, .42);
  color: var(--paper-card);
  text-align: left;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.copy-value:hover { border-color: var(--gold-sand); }

.copy-value-text {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .02em;
  word-break: break-all;
}

.copy-value-hint {
  flex: none;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold-sand);
  opacity: .7;
  white-space: nowrap;
  transition: opacity .18s var(--ease);
}

.copy-value[data-copied="true"] { color: var(--gold-sand); }
.copy-value[data-copied="true"] .copy-value-hint { opacity: 1; }

.footer-contact-note {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(252, 248, 239, .52);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(var(--content-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(216, 188, 128, .2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(252, 248, 239, .58);
}

.footer-legal { max-width: none; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-links a { transition: color .18s var(--ease); }
.footer-legal-links a:hover { color: var(--gold-sand); }

@media (max-width: 1099px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 719px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-contact { grid-column: auto; }
  .footer-base { font-size: 11px; }
}

/* ---------- 7. 通用内容组件 ---------- */
.breadcrumb {
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--tea);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-gold-strong);
}

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

.breadcrumb a:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.breadcrumb [aria-current="page"] { color: var(--bamboo-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--cinnabar);
}

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

.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 72px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.02em;
  color: rgba(183, 138, 61, .55);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--bamboo-deep);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.26;
  letter-spacing: .06em;
  color: var(--bamboo-deep);
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.36;
  letter-spacing: .05em;
  color: var(--bamboo-deep);
}

.lede {
  max-width: 38ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
  color: var(--tea);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  font-feature-settings: "tnum" 1;
}

/* 7.1 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .14em;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease);
}

.btn--primary {
  background: var(--cinnabar);
  color: var(--paper-card);
  box-shadow: 0 12px 26px -18px rgba(181, 64, 46, .95);
}

.btn--primary:hover {
  background: var(--cinnabar-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(79, 107, 82, .45);
  color: var(--bamboo-deep);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(79, 107, 82, .09);
  border-color: var(--bamboo);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: #2A2620;
}

.btn--gold:hover {
  background: var(--gold-sand);
  transform: translateY(-2px);
}

/* 7.2 牌墩卡片与牌列 */
.tile {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--paper-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-m) var(--radius-m) var(--radius-l) var(--radius-m);
  box-shadow: var(--shadow-tile);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-gold-strong);
}

.tile--sand { background: #F3EBD9; }

.tile--pale {
  background: rgba(232, 200, 190, .34);
  border-color: rgba(181, 64, 46, .2);
}

.tile--deep {
  background: var(--bamboo-deep);
  border-color: transparent;
  color: rgba(252, 248, 239, .86);
}

.tile--deep h2,
.tile--deep h3,
.tile--deep strong { color: var(--paper-card); }

.tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

/* 7.3 图片容器基础规则（页面阶段放图用） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(150deg, #EDE4D2, #DED7C3);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-m) var(--radius-m) var(--radius-l) var(--radius-m);
}

.media-frame img,
.media-frame picture,
.media-frame picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(252, 248, 239, .34);
  border-radius: 8px 8px 20px 8px;
  pointer-events: none;
}

.media-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(47, 70, 54, .76);
  color: var(--paper-card);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--table { aspect-ratio: 3 / 2; }
.media-frame--tile { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* 7.4 标签与数据 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border: 1px solid rgba(181, 64, 46, .22);
  border-radius: 999px;
  background: rgba(232, 200, 190, .45);
  color: var(--cinnabar);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1.6;
}

.tag--bamboo {
  background: rgba(169, 183, 166, .3);
  border-color: rgba(79, 107, 82, .24);
  color: var(--bamboo-deep);
}

.tag--gold {
  background: rgba(216, 188, 128, .28);
  border-color: rgba(183, 138, 61, .34);
  color: #7A5A1E;
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--cinnabar);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--tea);
}

/* 7.5 标签页（翻牌） */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-gold);
}

.tab {
  padding: 9px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--bamboo-deep);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.tab:hover { background: rgba(79, 107, 82, .09); }

.tab[aria-selected="true"] {
  background: var(--bamboo-deep);
  border-color: var(--bamboo-deep);
  color: var(--paper-card);
}

.tab-panel[hidden] { display: none; }

.tab-panel {
  animation: panel-in .22s var(--ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 7.6 折叠面板（纸页） */
.accordion { border-top: 1px solid var(--line-gold); }

.accordion-item { border-bottom: 1px solid var(--line-gold); }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: .05em;
  color: var(--bamboo-deep);
  transition: color .18s var(--ease);
}

.accordion-trigger:hover { color: var(--cinnabar); }

.accordion-sign {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(183, 138, 61, .5);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--gold);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.accordion-trigger[aria-expanded="true"] { color: var(--cinnabar); }

.accordion-trigger[aria-expanded="true"] .accordion-sign {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper-card);
  transform: rotate(135deg);
}

.accordion-panel {
  padding: 0 4px 20px;
  max-width: 62ch;
  color: var(--tea);
}

.accordion-panel[hidden] { display: none; }

.accordion-panel:not([hidden]) {
  animation: paper-open .2s var(--ease) both;
}

@keyframes paper-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* 7.7 筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 7px 18px;
  border: 1px solid rgba(79, 107, 82, .3);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--bamboo-deep);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.filter-btn:hover { background: rgba(79, 107, 82, .08); }

.filter-btn[aria-pressed="true"] {
  background: var(--bamboo);
  border-color: var(--bamboo);
  color: var(--paper-card);
}

/* 7.8 轻入场 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- 8. 响应式微调 ---------- */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .masthead { gap: 8px; }
  .masthead-rule { width: min(340px, 100%); }
}

@media (max-width: 479px) {
  .masthead-brand { letter-spacing: .1em; padding-left: .1em; }
  .masthead-tagline { letter-spacing: .32em; padding-left: .32em; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .tab { padding: 8px 16px; font-size: 14px; }
}

/* ---------- 9. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .spine-track-fill { transition: none !important; }
  .btn:hover,
  .tile:hover { transform: none; }
}
