/* ================================================================
   鉴真珠宝指南 · 全站共享样式
   /assets/site.css
   设计语言：复古电影海报 × 目录卡片墙 × 影视索引站
   ================================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌色板 */
  --bg-paper: #f5f0e8;
  --bg-teal: #0f4c5c;
  --teal-deep: #0a3d4a;
  --bg-orange: #c94c33;
  --orange-deep: #a83d28;
  --card-cream: #fff8e7;
  --card-blue: #d9e4ec;
  --accent-yellow: #f2b705;
  --accent-rose: #d65a8a;
  --rose-ink: #b3426f;
  --state-live: #2a9d8f;
  --state-hot: #e76f51;
  --state-done: #6c757d;
  --label-clarity: #8ab17d;
  --label-sub: #a58db0;
  --text-main: #2b2b2b;
  --text-deep: #1f1f1f;
  --text-muted: #6b655c;
  --text-invert: #f5f0e8;
  --line: #d1c7b8;

  /* 字体 */
  --font-head: 'Playfair Display', 'Noto Serif SC', Georgia, 'Songti SC', 'STSong', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 字号 */
  --text-h1: clamp(2rem, 5vw, 3rem);
  --text-h2: clamp(1.5rem, 3vw, 2.25rem);
  --text-h3: 1.75rem;
  --text-base: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

  /* 间距 */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;

  /* 圆角与阴影 */
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 8px rgba(43, 43, 43, 0.08);
  --shadow-raised: 0 6px 20px rgba(43, 43, 43, 0.16);

  /* 结构 */
  --header-z: 1000;
  --container-w: 1280px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-paper);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(43, 43, 43, 0.014) 0 1px,
    transparent 1px 12px
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1;
  width: 100%;
}

#main-content:focus {
  outline: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  font-weight: 900;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--accent-yellow);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: var(--text-small);
  box-shadow: var(--shadow-raised);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* ---------- 容器 ---------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: var(--bg-teal);
  box-shadow: 0 2px 12px rgba(10, 61, 74, 0.3);
}

.header-utility {
  background: var(--teal-deep);
  color: rgba(245, 240, 232, 0.85);
  font-size: var(--text-caption);
}

.header-utility-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 3px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.header-utility-note {
  letter-spacing: 0.06em;
}

.header-utility-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-utility-links a {
  transition: color 0.15s ease;
}

.header-utility-links a:hover {
  color: var(--accent-yellow);
}

.header-utility-divider {
  opacity: 0.4;
}

.header-frame {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-right: 24px;
  border-right: 1px solid rgba(245, 240, 232, 0.18);
}

.brand-tile-icon {
  position: relative;
  display: block;
  width: 40px;
  height: 36px;
  flex-shrink: 0;
}

.projector {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 22px;
  background: var(--accent-yellow);
  border-radius: 5px 5px 0 0;
}

.projector::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-teal);
  border: 2px solid rgba(245, 240, 232, 0.9);
}

.projector::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-teal);
}

.brand-tile-icon::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 22px;
  height: 5px;
  background: var(--accent-rose);
  border-radius: 2px 2px 0 0;
}

.brand-tile-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-tile-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--text-invert);
}

.brand-tile-slogan {
  font-size: var(--text-caption);
  letter-spacing: 0.02em;
  color: rgba(245, 240, 232, 0.65);
  white-space: nowrap;
}

.site-nav {
  flex: 1;
  max-height: none;
  overflow: visible;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 14px 10px;
  color: rgba(245, 240, 232, 0.82);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text-invert);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--accent-yellow);
  font-weight: 700;
}

.nav-index {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

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

.btn-ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-yellow);
  color: var(--text-main);
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1.4;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ticket:hover {
  background: #ffd23d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-ticket-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.btn-ticket-icon::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text-invert);
  background: rgba(245, 240, 232, 0.1);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.nav-toggle:hover {
  background: rgba(245, 240, 232, 0.2);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-text {
  font-size: var(--text-caption);
  font-weight: 700;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-strip {
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent-yellow) 0 20px,
    var(--bg-teal) 20px 24px,
    var(--accent-rose) 24px 36px,
    var(--bg-teal) 36px 40px,
    var(--accent-yellow) 40px 56px,
    var(--bg-teal) 56px 64px
  );
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-teal);
  color: var(--text-invert);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-raised);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--bg-orange);
}

.back-top-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg);
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .back-top {
    transition: none;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-orange);
  background-image: linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 100% 32px;
  color: var(--text-invert);
}

.site-footer::before {
  content: '';
  display: block;
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent-yellow) 0 16px,
    var(--orange-deep) 16px 22px,
    var(--accent-rose) 22px 32px,
    var(--orange-deep) 32px 38px
  );
}

.footer-shell {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 2.4fr;
  gap: 64px;
}

.footer-primary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.footer-brand-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 30px;
  background: var(--accent-yellow);
  border-radius: 4px 4px 0 0;
  flex-shrink: 0;
}

.footer-brand-icon::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-orange);
  border: 2px solid var(--text-invert);
}

.footer-brand-icon::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 7px;
  width: 18px;
  height: 5px;
  background: var(--accent-rose);
  border-radius: 0 0 2px 2px;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.footer-brand-slogan {
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.75);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-small);
  color: rgba(245, 240, 232, 0.85);
}

.footer-contact-line {
  display: inline-block;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-yellow);
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-rose);
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-small);
}

.footer-col-list a {
  display: inline-block;
  padding: 3px 0;
  color: rgba(245, 240, 232, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col-list a:hover {
  color: var(--text-invert);
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-col-list a {
    transition: none;
  }

  .footer-col-list a:hover {
    transform: none;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.2);
  background: rgba(0, 0, 0, 0.12);
}

.footer-bottom-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: var(--text-caption);
  color: rgba(245, 240, 232, 0.7);
}

/* ---------- 页面头部与面包屑 ---------- */
.page-header-band {
  background-color: var(--bg-teal);
  background-image:
    linear-gradient(120deg, rgba(242, 183, 5, 0.12), transparent 50%),
    repeating-linear-gradient(90deg, rgba(245, 240, 232, 0.07) 0 1px, transparent 1px 28px);
  color: var(--text-invert);
  padding: 40px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-header-band::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 28px solid rgba(242, 183, 5, 0.22);
}

.page-header-band .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: var(--text-h1);
  letter-spacing: 0.03em;
}

.page-desc {
  margin-top: 8px;
  color: rgba(245, 240, 232, 0.8);
  max-width: 660px;
}

.breadcrumb {
  padding: 14px 0;
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a:hover {
  color: var(--accent-rose);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* ---------- 板块标题 ---------- */
.section-head {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  border-bottom: 2px solid var(--line);
  padding-bottom: var(--sp-sm);
}

.section-kicker {
  writing-mode: vertical-rl;
  max-height: 3.5em;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-rose);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-head);
  font-size: var(--text-h2);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.section-more {
  margin-left: auto;
  font-size: var(--text-caption);
  color: var(--text-muted);
  white-space: nowrap;
}

.section-more a:hover {
  color: var(--accent-rose);
}

/* ---------- 按钮 ---------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-small);
  line-height: 1.4;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent-yellow);
  color: var(--text-main);
}

.btn-outline {
  border: 2px solid var(--bg-teal);
  color: var(--bg-teal);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-md);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card-cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

.card-media {
  position: relative;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(150deg, var(--card-blue) 0%, #c5d5e0 55%, var(--accent-yellow) 130%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(15, 76, 92, 0.06) 0 2px,
    transparent 2px 16px
  );
  pointer-events: none;
}

.card-media.is-landscape {
  aspect-ratio: 16 / 9;
}

.card-media.is-square {
  aspect-ratio: 1 / 1;
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-md);
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.card-title a:hover {
  color: var(--accent-rose);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

/* ---------- 磁贴矩阵 ---------- */
.tile-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-sm);
}

.tile {
  display: block;
  min-height: 96px;
  padding: var(--sp-md);
  border-radius: var(--radius);
  background: var(--card-blue);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }

  .tile:hover {
    transform: none;
  }
}

.tile.is-teal {
  background: var(--bg-teal);
  color: #fff;
}

.tile.is-orange {
  background: var(--bg-orange);
  color: #fff;
}

.tile.is-cream {
  background: var(--card-cream);
}

.tile.is-yellow {
  background: var(--accent-yellow);
  color: var(--text-main);
}

.tile-label {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.tile-count {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: var(--text-caption);
  opacity: 0.75;
}

/* ---------- 条目列表 ---------- */
.list-rows {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-cream);
}

.list-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.list-row:last-child {
  border-bottom: none;
}

.list-row:hover {
  background: var(--card-blue);
}

@media (prefers-reduced-motion: reduce) {
  .list-row {
    transition: none;
  }
}

.list-order {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-rose);
  min-width: 36px;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.list-main {
  flex: 1;
  min-width: 0;
}

.list-main-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-extra {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--text-caption);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- 标签与徽标 ---------- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--card-blue);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--text-main);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tag:hover {
  border-color: var(--accent-rose);
  background: #eef4f8;
}

.tag.is-clarity {
  background: var(--label-clarity);
  color: var(--text-deep);
}

.tag.is-subtitle {
  background: var(--label-sub);
  color: var(--text-deep);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--state-done);
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.status-badge.is-live {
  background: var(--state-live);
}

.status-badge.is-hot {
  background: var(--state-hot);
}

.status-badge.is-done {
  background: var(--state-done);
}

.status-badge.is-new {
  background: var(--rose-ink);
}

/* ---------- 大序号 ---------- */
.ordinal {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-yellow);
  text-shadow: 2px 2px 0 var(--bg-orange);
}

/* ---------- 指标条 ---------- */
.metric-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-caption);
}

.metric-label {
  min-width: 4em;
  color: var(--text-muted);
}

.metric-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.12);
  overflow: hidden;
}

.metric-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--state-live);
}

.metric-fill.is-hot {
  background: var(--state-hot);
}

.metric-fill.is-accent {
  background: var(--accent-yellow);
}

.metric-fill.is-rose {
  background: var(--accent-rose);
}

.metric-value {
  min-width: 3em;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 索引条 ---------- */
.index-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  background: var(--bg-teal);
  border-radius: var(--radius);
}

.rail-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(245, 240, 232, 0.12);
  color: var(--text-invert);
  font-size: var(--text-caption);
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.rail-item:hover,
.rail-item.is-current {
  background: var(--accent-yellow);
  color: var(--text-main);
}

@media (prefers-reduced-motion: reduce) {
  .rail-item {
    transition: none;
  }
}

/* ---------- 横向滑轨 ---------- */
.h-scroll {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  padding: 4px 4px var(--sp-md);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-rose) var(--card-blue);
}

.h-scroll-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.h-scroll::-webkit-scrollbar {
  height: 6px;
}

.h-scroll::-webkit-scrollbar-track {
  background: var(--card-blue);
  border-radius: 3px;
}

.h-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-rose);
  border-radius: 3px;
}

/* ---------- 对照表 ---------- */
.data-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-cream);
}

.data-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  background: var(--bg-teal);
  color: var(--text-invert);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) td {
  background: rgba(15, 76, 92, 0.03);
}

.data-table tbody tr:hover td {
  background: var(--card-blue);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

@media (prefers-reduced-motion: reduce) {
  .data-table tbody tr {
    transition: none;
  }
}

/* ---------- 响应式：中小屏 ---------- */
@media (max-width: 1024px) {
  .header-frame {
    flex-wrap: wrap;
    padding-inline: 16px;
    gap: 0;
  }

  .brand-tile {
    flex: 1;
    border-right: none;
    padding-right: 0;
    padding-block: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 10;
    width: 100%;
    flex: none;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(245, 240, 232, 0.15);
    transition: max-height 0.35s ease;
  }

  .site-nav[data-open] {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
  }

  .nav-link::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: 100%;
    transform: scaleY(0);
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    transform: scaleY(1);
  }

  .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .header-actions {
    gap: 8px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .btn-ticket {
    display: none;
  }

  .footer-shell {
    padding: 40px 20px 28px;
  }

  .footer-columns {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .brand-tile-slogan {
    display: none;
  }

  .brand-tile-name {
    font-size: 1.1rem;
  }

  .nav-toggle-text {
    display: none;
  }

  .header-utility-note {
    display: none;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 工具类 ---------- */
.hairline-top {
  border-top: 1px solid var(--line);
}

.hairline-bottom {
  border-bottom: 1px solid var(--line);
}

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

.text-small {
  font-size: var(--text-small);
}

.mt-md {
  margin-top: var(--sp-md);
}

.mb-md {
  margin-bottom: var(--sp-md);
}

.mb-lg {
  margin-bottom: var(--sp-lg);
}
