/* ==========================================================================
   四喜娱乐 · 共享站点样式 /assets/site.css
   粗边框 + 硬阴影 + 朱红锚点 + 等宽索引
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
a { color: var(--red-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }

:root {
  --paper: #FFFDF8;
  --cream: #F6EFE2;
  --ink: #12100E;
  --red: #C63A2F;
  --red-deep: #8E231C;
  --gray: #55504A;
  --celadon: #2F6F5E;
  --gold: #C79A3B;
  --gold-soft: #E7CF92;
  --alert: #E0453A;

  --ink-08: rgba(18, 16, 14, 0.08);
  --ink-15: rgba(18, 16, 14, 0.18);
  --ink-35: rgba(18, 16, 14, 0.35);
  --paper-70: rgba(255, 253, 248, 0.7);
  --paper-30: rgba(255, 253, 248, 0.3);

  --line: 3px solid var(--ink);
  --line-thin: 2px solid var(--ink);
  --shadow-xs: 3px 3px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-md: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  --radius-card: 14px;
  --radius-pill: 999px;

  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", "SFMono-Regular", ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 96px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.35vw + 14.6px, 17.5px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
h4 { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.3; }
p { text-wrap: pretty; }
strong, b { font-weight: 800; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible { outline-color: var(--gold-soft); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  transform: translateY(-220%);
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  padding: 12px 20px;
  border: 2px solid var(--gold-soft);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 120;
  pointer-events: none;
  will-change: transform;
}

/* ==========================================================================
   头部：双胶囊浮岛
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: clamp(10px, 1.4vw, 16px) var(--gutter) 0;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -22px 0;
  background: linear-gradient(180deg, var(--paper) 58%, rgba(255, 253, 248, 0));
  pointer-events: none;
  z-index: -1;
}
.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--maxw);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 6px 18px 6px 6px;
  background-color: var(--paper);
  border: var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.brand:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.brand-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background-color: var(--red);
  color: var(--paper);
  border: 3px solid var(--red-deep);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.35);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand-text { display: grid; gap: 1px; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--gray);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px;
  background-color: var(--paper);
  border: var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav-link:hover { background-color: var(--cream); border-color: var(--ink); }
.nav-link[aria-current="page"] {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.nav-tail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 2px dashed var(--ink-15);
}
.nav-mini {
  display: inline-block;
  padding: 8px 14px;
  background-color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-mini:hover { background-color: var(--gold-soft); }
.nav-mini--primary {
  background-color: var(--red);
  color: var(--paper);
  border-color: var(--red-deep);
  box-shadow: var(--shadow-xs);
}
.nav-mini--primary:hover { background-color: var(--red-deep); color: var(--paper); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  flex: none;
  padding: 10px 16px;
  background-color: var(--ink);
  color: var(--paper);
  border: var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav-toggle:hover { background-color: var(--red); border-color: var(--red-deep); }
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-header[data-scrolled="true"] .brand,
.site-header[data-scrolled="true"] .site-nav { box-shadow: var(--shadow-md); }
.site-header[data-scrolled="true"] .site-nav { transform: translateY(-1px); }

@media (max-width: 1180px) {
  .brand-tagline { display: none; }
  .nav-link { padding: 8px 11px; font-size: 14px; }
  .nav-mini { padding: 8px 11px; font-size: 13px; }
}
@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding: 14px;
    background-color: var(--cream);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow: auto;
    z-index: 5;
  }
  .site-nav[data-open] { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    border-color: var(--ink-15);
  }
  .nav-link[aria-current="page"] { border-color: var(--ink); }
  .nav-tail {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 2px dashed var(--ink-15);
  }
  .nav-mini { padding: 12px; text-align: center; border-radius: 12px; font-size: 14.5px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 460px) {
  .brand { padding: 5px 12px 5px 5px; }
  .brand-seal { width: 38px; height: 38px; font-size: 13px; }
  .brand-name { font-size: 15.5px; }
  .nav-toggle { padding: 9px 13px; }
}

/* ==========================================================================
   页脚：墨黑信息收口
   ========================================================================== */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background-color: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--red);
}
.footer-shell {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 60px) var(--gutter) clamp(20px, 3vw, 30px);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 2px dashed var(--paper-30);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-seal {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background-color: var(--red);
  color: var(--paper);
  border: 3px solid var(--gold-soft);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}
.footer-brand-text { display: grid; gap: 4px; }
.footer-brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.footer-brand-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--paper-70);
}
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border: 2px solid var(--paper-30);
  border-radius: var(--radius-pill);
  color: var(--gold-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 4vw, 40px) 0;
}
.footer-col { min-width: 0; }
.footer-col--contact { min-width: min(100%, 260px); }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.footer-col-title::before {
  content: "";
  width: 16px;
  height: 3px;
  flex: none;
  background-color: var(--red);
}
.footer-list { display: grid; gap: 10px; }
.footer-link {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-link:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact-item { display: grid; gap: 2px; }
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--paper-70);
}
.footer-contact-val {
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}
.footer-note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--paper-70);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 2px solid var(--paper-30);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--paper-70);
}

/* ==========================================================================
   基础容器与分区
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(36px, 5.5vw, 84px); }
.section--cream { background-color: var(--cream); }
.section--ink { background-color: var(--ink); color: var(--paper); }
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--paper); }
.section--ink .section-lede { color: var(--paper-70); }
.section--ink .section-head { border-top-color: var(--paper-30); }

main [id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.section-head {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-top: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-top: 3px solid var(--ink);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.2em;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  flex: none;
  background-color: var(--gold);
}
.section-title { font-size: clamp(28px, 3.6vw, 44px); }
.section-lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.85;
  color: var(--gray);
}

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--aside {
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  align-items: start;
}
.stack { display: grid; gap: var(--stack-gap, 14px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sticky-rail { position: sticky; top: calc(var(--header-h) + 20px); }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .sticky-rail { position: static; top: auto; }
}

/* ==========================================================================
   卡片 / 按钮 / 标签
   ========================================================================== */
.card {
  display: block;
  padding: clamp(18px, 2.4vw, 26px);
  background-color: var(--paper);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card--cream { background-color: var(--cream); }
.card--ink {
  background-color: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--red);
}
.card--ink .card-title { color: var(--paper); }
.card--ink .card-text { color: var(--paper-70); }
.card--lift:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }
.card-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card-text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--paper);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background-color 0.16s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary {
  background-color: var(--red);
  color: var(--paper);
  border-color: var(--red-deep);
}
.btn--primary:hover { background-color: var(--red-deep); }
.btn--ghost { background-color: transparent; box-shadow: none; }
.btn--ghost:hover { background-color: var(--cream); box-shadow: var(--shadow-xs); }
.btn--sm { padding: 8px 16px; font-size: 13.5px; box-shadow: var(--shadow-xs); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  background-color: var(--gold-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.tag--red { background-color: var(--red); color: var(--paper); border-color: var(--red-deep); }
.tag--celadon { background-color: var(--celadon); color: var(--paper); border-color: var(--celadon); }

.index-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.03em;
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--celadon);
}
.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background-color: var(--celadon);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.18);
}

/* ==========================================================================
   面包屑 / 目录
   ========================================================================== */
.breadcrumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--gray);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-list li + li::before {
  content: "／";
  color: var(--gold);
  font-size: 11px;
}
.breadcrumb-list a {
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-35);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.breadcrumb-list a:hover { color: var(--red); border-bottom-color: var(--red); }
.breadcrumb-list [aria-current="page"] { color: var(--ink); font-weight: 700; }

.toc {
  display: grid;
  gap: 4px;
  padding: 16px;
  background-color: var(--cream);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.toc-title {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}
.toc a {
  display: block;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  text-decoration: none;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.toc a:hover { background-color: var(--paper); color: var(--ink); }
.toc a[aria-current="true"] {
  background-color: var(--paper);
  border-left-color: var(--red);
  color: var(--ink);
  font-weight: 800;
}

/* ==========================================================================
   正文 / 表格 / 提示
   ========================================================================== */
.prose {
  max-width: 72ch;
  font-size: clamp(16px, 1vw, 17px);
  line-height: 1.9;
  color: var(--ink);
}
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(26px, 3vw, 36px); }
.prose h3 { margin-top: 1.4em; }
.prose a { font-weight: 700; }
.prose strong { background-image: linear-gradient(transparent 62%, var(--gold-soft) 62%); }
.prose ul { display: grid; gap: 8px; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
}

.table-wrap {
  overflow-x: auto;
  background-color: var(--paper);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid var(--ink-08);
}
.table thead th {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-bottom-color: var(--ink);
  white-space: nowrap;
}
.table tbody tr:nth-child(even) { background-color: var(--cream); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 700; }

.note {
  padding: 14px 18px;
  background-color: var(--cream);
  border-left: 6px solid var(--red);
  border-radius: 0 12px 12px 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--gray);
}

/* ==========================================================================
   可展开内容组
   ========================================================================== */
.disclosure {
  background-color: var(--paper);
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.disclosure + .disclosure { margin-top: 10px; }
.disclosure[data-open] {
  border-color: var(--red-deep);
  box-shadow: 6px 6px 0 var(--red);
}
.disclosure-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background-color: transparent;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.disclosure-btn:hover { background-color: var(--cream); }
.disclosure-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background-color: var(--gold-soft);
}
.disclosure-icon::before,
.disclosure-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: var(--ink);
  transform: translate(-50%, -50%);
}
.disclosure-icon::before { width: 10px; height: 2px; }
.disclosure-icon::after { width: 2px; height: 10px; transition: transform 0.18s var(--ease); }
.disclosure[data-open] .disclosure-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.disclosure-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.22s var(--ease), opacity 0.22s var(--ease);
}
.disclosure-body {
  overflow: hidden;
  min-height: 0;
  padding: 0 16px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--gray);
}
.disclosure-body > * + * { margin-top: 10px; }
.disclosure[data-open] .disclosure-panel { grid-template-rows: 1fr; opacity: 1; }
.disclosure[data-open] .disclosure-body { padding-bottom: 16px; }

/* ==========================================================================
   检索过滤
   ========================================================================== */
.chipbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  padding: 7px 14px;
  background-color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover { background-color: var(--gold-soft); }
.chip[aria-pressed="true"] { background-color: var(--ink); color: var(--paper); }

.filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  background-color: var(--paper);
  border: var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.filter-field:focus-within {
  border-color: var(--red-deep);
  box-shadow: 6px 6px 0 var(--red);
}
.filter-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 0;
  background-color: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.filter-input::placeholder { color: var(--gray); opacity: 0.85; }
.filter-input:focus,
.filter-input:focus-visible { outline: none; }
.filter-empty {
  display: none;
  padding: 18px;
  border: 3px dashed var(--ink-35);
  border-radius: var(--radius-card);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-align: center;
}
.filter-empty[data-visible="true"] { display: block; }

/* ==========================================================================
   图片容器（响应式基础规则）
   ========================================================================== */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--cream);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.media img,
.media picture,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media--band { aspect-ratio: 21 / 9; }
.media-cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--gray);
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card--lift:hover,
  .btn:hover,
  .btn:active,
  .brand:hover,
  .site-header[data-scrolled="true"] .site-nav { transform: none; }
}
