/* =========================================================
   天天娱乐 · 全站共享样式 /assets/site.css
   骨架：技术蓝图网格 + 霓虹大厅色彩
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0A0918;
  --panel: #16143A;
  --violet: #7C3AED;
  --blue: #1D6BFF;
  --orange: #FF7A1A;
  --paper: #F4F2FF;
  --cyan: #2FE6C8;
  --magenta: #FF3D8B;
  --sign: #FFE7C2;
  --mist: #A8A5C9;
  --green: #2ED47A;
  --amber: #FFC24B;
  --text: #EDEBFF;
  --text-dim: #A8A5C9;
  --ink-on-paper: #1A1836;
  --rule: rgba(168, 165, 201, 0.24);
  --rule-strong: rgba(168, 165, 201, 0.45);
  --shell: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --font-title: "Archivo Black", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 2. Reset 与页面底 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  position: relative;
  z-index: 0;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(29, 107, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 107, 255, 0.075) 1px, transparent 1px);
  background-size: 52px 52px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(124, 58, 237, 0.30), transparent 65%),
    radial-gradient(760px 460px at 92% 2%, rgba(29, 107, 255, 0.24), transparent 68%),
    radial-gradient(680px 420px at 50% 108%, rgba(255, 122, 26, 0.14), transparent 70%);
}

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: var(--cyan); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--paper);
}

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
figure { margin: 0; }

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

#main-content { scroll-margin-top: 150px; }

/* ---------- 3. 布局外壳 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px);
}

.stack { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -0.02em;
}

.section-note {
  margin: 0;
  max-width: 46ch;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- 4. 页头 ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink-on-paper);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.16s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(10, 9, 24, 0.97), rgba(10, 9, 24, 0.88));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(124, 58, 237, 0.9);
  background: linear-gradient(140deg, #7C3AED, #1D6BFF 58%, #FF7A1A);
  box-shadow: inset 0 0 0 1px rgba(10, 9, 24, 0.9), 0 0 22px rgba(124, 58, 237, 0.38);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid rgba(10, 9, 24, 0.78);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.8);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-title); font-size: 18px; font-weight: 900; letter-spacing: 0.01em; }
.brand-sub { font-size: 11px; letter-spacing: 0.14em; color: var(--mist); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(22, 20, 58, 0.85);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.nav-toggle:hover { border-color: rgba(124, 58, 237, 0.85); }
.nav-toggle[data-open="true"] {
  border-color: var(--magenta);
  background: rgba(255, 61, 139, 0.16);
}

.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--orange));
  transition: transform 0.18s var(--ease), opacity 0.18s;
}
.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s, background 0.16s, transform 0.16s var(--ease), box-shadow 0.16s;
}
.nav-link:hover {
  color: var(--paper);
  background: rgba(124, 58, 237, 0.18);
  transform: translateY(-2px);
}
.nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: linear-gradient(120deg, #7C3AED, #1D6BFF);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.42);
}

.anchor-band {
  border-top: 1px dashed rgba(168, 165, 201, 0.32);
  background: linear-gradient(90deg, rgba(22, 20, 58, 0.86), rgba(10, 9, 24, 0.72));
}

.anchor-band-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 8px;
}

.anchor-band-label {
  flex: none;
  padding: 2px 8px;
  border: 1px solid rgba(47, 230, 200, 0.45);
  background: rgba(47, 230, 200, 0.08);
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.anchor-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-list::-webkit-scrollbar { display: none; }

.anchor-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.anchor-link:hover {
  color: var(--sign);
  border-color: rgba(255, 122, 26, 0.55);
  background: rgba(255, 122, 26, 0.1);
}

.anchor-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 122, 26, 0.9);
}

.anchor-band-meta {
  margin-left: auto;
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.progress-track { height: 2px; background: rgba(168, 165, 201, 0.14); }
.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #7C3AED, #FF3D8B 55%, #FF7A1A);
  box-shadow: 0 0 12px rgba(255, 61, 139, 0.6);
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(22, 20, 58, 0.62), rgba(10, 9, 24, 1) 72%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.9), rgba(255, 122, 26, 0.85), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 40px);
  border-bottom: 1px solid rgba(168, 165, 201, 0.2);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand-note { margin: 0; max-width: 34ch; color: var(--mist); font-size: 14px; line-height: 1.75; }
.footer-stamp { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

.footer-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer-group-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(47, 230, 200, 0.28);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.footer-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.16s, transform 0.16s var(--ease);
}
.footer-link:hover { color: var(--paper); transform: translateX(3px); }
.footer-link--legal { font-size: 13px; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  padding-block: clamp(28px, 3vw, 36px);
  border-bottom: 1px solid rgba(168, 165, 201, 0.2);
}

.contact-item { position: relative; display: flex; flex-direction: column; gap: 6px; }

.contact-label {
  color: var(--orange);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-value {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.contact-value--wide { font-family: var(--font-body); font-size: 14.5px; line-height: 1.7; }

.contact-note { color: var(--mist); font-size: 12.5px; }

.copy-btn {
  align-self: flex-start;
  padding: 2px 9px;
  border: 1px solid rgba(47, 230, 200, 0.42);
  border-radius: 2px;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.copy-btn:hover { background: rgba(47, 230, 200, 0.14); }
.copy-btn.is-copied {
  border-color: var(--green);
  background: rgba(46, 212, 122, 0.14);
  color: var(--green);
}

.footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px clamp(20px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(22px, 3vw, 30px) clamp(30px, 4vw, 46px);
  color: var(--mist);
  font-size: 13px;
}

.footer-legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.footer-icp { color: var(--sign); font-family: var(--font-mono); letter-spacing: 0.02em; }
.footer-dot { color: rgba(168, 165, 201, 0.5); }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-motto { margin: 0; color: var(--text-dim); }
.footer-copy { margin: 0; justify-self: end; color: var(--mist); }

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.96), rgba(29, 107, 255, 0.96));
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 12px 30px rgba(29, 107, 255, 0.36);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 6. 按钮 / 标签 / 徽记 ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s, border-color 0.16s, background 0.16s, color 0.16s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(120deg, #7C3AED, #1D6BFF);
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.38);
}
.btn--ghost {
  background: rgba(22, 20, 58, 0.65);
  border-color: var(--rule-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(47, 230, 200, 0.7); color: var(--paper); }
.btn--warm {
  background: linear-gradient(120deg, #FF7A1A, #FF3D8B);
  color: #1A0B14;
  box-shadow: 0 10px 26px rgba(255, 61, 139, 0.32);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--rule-strong);
  background: rgba(22, 20, 58, 0.66);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.tag--violet { border-color: rgba(124, 58, 237, 0.65); color: #C6AEFF; }
.tag--cyan { border-color: rgba(47, 230, 200, 0.55); color: var(--cyan); }
.tag--orange { border-color: rgba(255, 122, 26, 0.6); color: var(--sign); }
.tag--sign { border-color: rgba(26, 24, 54, 0.2); background: var(--sign); color: var(--ink-on-paper); }

.num { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* ---------- 7. 区块单元 ---------- */
.band {
  padding-block: 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), rgba(29, 107, 255, 0.13) 50%, rgba(255, 122, 26, 0.18));
}
.band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.band-title { margin: 0; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -0.01em; }

.page-head {
  position: relative;
  padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--rule);
}
.page-title { margin: 0 0 16px; font-size: clamp(32px, 5.4vw, 56px); letter-spacing: -0.02em; line-height: 1.08; }
.page-lead { margin: 0; max-width: 62ch; color: var(--text-dim); font-size: clamp(15px, 1.6vw, 17px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--rule);
  background: rgba(22, 20, 58, 0.72);
}
.card-title { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.card-text { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.75; }

.paper {
  position: relative;
  z-index: 0;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--rule-strong);
  background: rgba(22, 20, 58, 0.92);
}
.paper::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10px;
  top: 10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(29, 107, 255, 0.12));
}

.blueprint {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--rule);
  background: rgba(22, 20, 58, 0.55);
}
.blueprint::before,
.blueprint::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--blue);
}
.blueprint::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.blueprint::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--orange);
}
.stat-label { color: var(--mist); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }

.callout {
  position: relative;
  padding: 18px 20px 18px 22px;
  border: 1px solid rgba(255, 194, 75, 0.42);
  background: rgba(255, 194, 75, 0.08);
  color: var(--sign);
  font-size: 14.5px;
  line-height: 1.75;
}
.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}
.callout--ok { border-color: rgba(46, 212, 122, 0.42); background: rgba(46, 212, 122, 0.08); color: #CDF7E2; }
.callout--ok::before { background: linear-gradient(180deg, var(--green), var(--cyan)); }

/* ---------- 8. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-strong);
  background-color: var(--panel);
  background-image:
    linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(29, 107, 255, 0.34) 48%, rgba(255, 122, 26, 0.42)),
    linear-gradient(rgba(10, 9, 24, 0.42), rgba(10, 9, 24, 0.42));
}
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 242, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__corner {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.media-frame__corner--br {
  left: auto;
  top: auto;
  right: 10px;
  bottom: 10px;
  border-top: 0;
  border-left: 0;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
}

.media-caption { margin-top: 10px; color: var(--mist); font-size: 13px; line-height: 1.6; }

/* ---------- 9. 列表 / 表格 / 面包屑 ---------- */
.list-plain { margin: 0; padding: 0; list-style: none; }

.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list li { padding: 12px 0; border-bottom: 1px dashed var(--rule); color: var(--text-dim); }
.rule-list li:first-child { border-top: 1px dashed var(--rule); }

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: rgba(22, 20, 58, 0.6); }

.data-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.data-table th,
.data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--rule); }
.data-table th {
  background: rgba(10, 9, 24, 0.5);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.data-table td { color: var(--text-dim); }
.data-table tbody tr:hover td { background: rgba(124, 58, 237, 0.1); color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { color: var(--orange); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 13px;
}
.crumb-item { display: inline-flex; align-items: center; }
.crumb-item + .crumb-item::before {
  content: "/";
  margin-right: 8px;
  color: rgba(168, 165, 201, 0.5);
}
.crumb-link { color: var(--text-dim); text-decoration: none; }
.crumb-link:hover { color: var(--cyan); }

/* ---------- 10. 正文容器 ---------- */
.prose { max-width: 68ch; color: #D9D7F2; font-size: 17px; line-height: 1.82; }
.prose h2 { margin: 40px 0 14px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.015em; }
.prose h3 { margin: 32px 0 12px; font-size: clamp(19px, 2.2vw, 22px); }
.prose p { margin: 0 0 18px; }
.prose ul,
.prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(47, 230, 200, 0.4); }
.prose strong { color: var(--paper); }

/* ---------- 11. 交互组件 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(22, 20, 58, 0.68);
  color: var(--text-dim);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s, transform 0.16s var(--ease), box-shadow 0.16s;
}
.chip:hover { color: var(--paper); border-color: rgba(124, 58, 237, 0.7); transform: translateY(-2px); }
.chip[aria-selected="true"],
.chip[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(120deg, #7C3AED, #1D6BFF);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelIn 0.2s var(--ease); }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  position: relative;
  width: 100%;
  padding: 18px 44px 18px 0;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; color: var(--text-dim); font-size: 15px; line-height: 1.8; }
.faq-item.is-open .faq-a { display: block; }

.toc {
  position: sticky;
  top: 150px;
  padding: 18px 0;
  border: 1px solid var(--rule);
  background: rgba(22, 20, 58, 0.62);
}
.toc-title {
  margin: 0 0 10px;
  padding: 0 20px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.toc-list { margin: 0; padding: 0; list-style: none; }
.toc-link {
  display: block;
  padding: 8px 20px;
  border-left: 2px solid transparent;
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.toc-link:hover { color: var(--paper); background: rgba(124, 58, 237, 0.12); }
.toc-link.is-active {
  color: var(--paper);
  border-left-color: var(--magenta);
  background: rgba(255, 61, 139, 0.1);
}

/* ---------- 12. 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 980px) {
  .grid--7-5,
  .grid--5-7,
  .grid--halves { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { grid-template-columns: minmax(0, 1fr); }
  .footer-legal-links { justify-self: start; }
  .footer-copy { justify-self: start; }
  .toc { position: static; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 10px var(--pad) 22px;
    border-bottom: 1px solid rgba(168, 165, 201, 0.3);
    background: linear-gradient(180deg, rgba(22, 20, 58, 0.99), rgba(10, 9, 24, 0.99));
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
  }
  .site-nav[data-open="true"] { display: block; animation: navIn 0.18s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 12px 14px; border-radius: 3px; font-size: 16px; }
  .nav-link:hover { transform: none; }
  .anchor-band-meta { display: none; }
  .brand-sub { font-size: 10px; letter-spacing: 0.1em; }
}

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

@media (max-width: 560px) {
  .footer-index { grid-template-columns: minmax(0, 1fr); }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark::after { inset: 8px; }
  .brand-name { font-size: 16px; }
  .page-title { font-size: clamp(28px, 8vw, 40px); }
  .btn { width: 100%; justify-content: center; }
  .anchor-band-label { display: none; }
}

/* ---------- 14. 降低动效 ---------- */
@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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav-link:hover,
  .chip:hover,
  .btn:hover,
  .footer-link:hover { transform: none; }
  .to-top { transform: none; }
}
