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

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

body {
  margin: 0;
  min-height: 100vh;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

ul:not([class]),
ol:not([class]) {
  padding-left: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

/* ===== 设计变量 ===== */
:root {
  --color-bg: #2D1B3D;
  --color-bg-deep: #22102F;
  --color-bg-alt: #114555;
  --color-accent: #FF6F00;
  --color-yellow: #F9C80E;
  --color-coral: #FF6B6B;
  --color-mint: #4ECDC4;
  --color-lake: #45B7D1;
  --color-green: #00C853;
  --color-red: #FF5252;
  --color-gold: #FFD700;
  --color-text: #E0E0E0;
  --color-text-dark: #1E1E1E;
  --font-head: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-tag: "Quicksand", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-max: 1240px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-card: 0 4px 0 rgba(0, 0, 0, 0.22);
  --shadow-pop: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ===== 基础排版 ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(30px, 3.6vw, 40px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 18px; }

p { margin-bottom: 1em; }

a { color: var(--color-mint); }

a:hover { color: var(--color-yellow); }

::selection {
  background: var(--color-accent);
  color: var(--color-text-dark);
}

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

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-alt);
  border: 3px solid var(--color-bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ===== 可访问性 ===== */
.skip-link {
  position: absolute;
  top: -110px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--color-yellow);
  color: var(--color-text-dark);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.has-reduced-motion .batch-badge-dot {
  animation: none;
}

/* ===== 布局容器 ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.main-content {
  min-height: 60vh;
  padding-top: 24px;
  padding-bottom: 80px;
}

/* ===== 页头 ===== */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 3px solid var(--color-accent);
}

.header-top {
  background: var(--color-bg-alt);
  border-bottom: 1px solid rgba(224, 224, 224, 0.1);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-top-tagline {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(224, 224, 224, 0.72);
}

.batch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-family: var(--font-tag);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-dark);
  background: var(--color-yellow);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.batch-badge:hover,
.batch-badge:focus-visible {
  color: var(--color-text-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249, 200, 14, 0.35);
}

.batch-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(255, 111, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

.masthead {
  position: relative;
  overflow: hidden;
  background: var(--color-yellow);
  color: var(--color-text-dark);
  border-bottom: 4px solid var(--color-accent);
}

.masthead::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.22);
  top: -150px;
  right: 6%;
}

.masthead::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  background: rgba(45, 27, 61, 0.1);
  transform: rotate(45deg);
  bottom: -96px;
  left: 7%;
}

.masthead-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.masthead-aside {
  display: inline-flex;
  align-items: center;
}

.masthead-aside-left {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(30, 30, 30, 0.66);
  border-left: 3px solid var(--color-accent);
  padding-left: 12px;
}

.masthead-aside-right {
  flex: 1;
  justify-content: flex-end;
}

.masthead-sub {
  font-size: 13px;
  font-weight: 700;
  color: rgba(30, 30, 30, 0.75);
  background: rgba(45, 27, 61, 0.08);
  border: 1px solid rgba(45, 27, 61, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

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

.brand:hover {
  color: var(--color-text-dark);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--color-bg);
  color: var(--color-yellow);
  font-size: 26px;
  font-weight: 900;
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--color-accent);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-bg);
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-yellow);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-nav {
  background: var(--color-bg);
  border-bottom: 1px solid rgba(224, 224, 224, 0.12);
}

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

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-yellow);
  border-bottom-color: var(--color-accent);
}

.nav-link[aria-current="page"] {
  color: var(--color-yellow);
  border-bottom-color: var(--color-accent);
  background: rgba(255, 111, 0, 0.08);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-top: 4px solid var(--color-accent);
  margin-top: 56px;
}

.footer-accent {
  height: 6px;
  background: linear-gradient(90deg,
    var(--color-accent) 0 12%,
    var(--color-yellow) 12% 28%,
    var(--color-coral) 28% 44%,
    var(--color-mint) 44% 60%,
    var(--color-lake) 60% 76%,
    var(--color-green) 76% 88%,
    var(--color-red) 88% 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 44px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.footer-brand-col {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--color-yellow);
  color: var(--color-bg-alt);
  font-size: 20px;
  font-weight: 900;
  border-radius: 10px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-yellow);
}

.footer-brand-desc {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(224, 224, 224, 0.72);
}

.footer-contact {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 2;
  color: rgba(224, 224, 224, 0.6);
}

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

.footer-col-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-yellow);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(224, 224, 224, 0.85);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-yellow);
  padding-left: 6px;
}

.footer-bottom {
  background: rgba(18, 10, 25, 0.44);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-size: 12px;
  color: rgba(224, 224, 224, 0.6);
}

/* ===== 通用区块 ===== */
.section-band {
  background: var(--color-bg);
  padding: 40px 0;
  border-top: 1px solid rgba(224, 224, 224, 0.08);
  border-bottom: 1px solid rgba(224, 224, 224, 0.08);
}

.section-band--alt {
  background: var(--color-bg-alt);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(224, 224, 224, 0.16);
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.section-title-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--color-accent);
  vertical-align: middle;
}

.section-meta {
  font-family: var(--font-tag);
  font-size: 12px;
  color: rgba(224, 224, 224, 0.62);
}

/* ===== 面包屑 ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--color-mint);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-yellow);
}

.breadcrumbs [aria-current="page"] {
  color: rgba(224, 224, 224, 0.85);
  font-weight: 600;
}

.breadcrumbs-sep {
  opacity: 0.5;
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-dark);
}

.btn--yellow {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-text-dark);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(224, 224, 224, 0.35);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-yellow);
}

.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(224, 224, 224, 0.14);
  border-radius: 999px;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-tag);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.control-btn:hover,
.control-btn:focus-visible {
  color: var(--color-yellow);
}

.control-btn[aria-pressed="true"],
.control-btn.is-active {
  background: var(--color-accent);
  color: var(--color-text-dark);
}

/* ===== 卡片墙 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  list-style: none;
}

.card-grid.is-list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}

.grid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(224, 224, 224, 0.14);
  border-radius: var(--radius);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.grid-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 22px rgba(255, 111, 0, 0.14);
}

.grid-card--yellow { background: var(--color-yellow); color: var(--color-text-dark); border-color: transparent; }
.grid-card--coral { background: var(--color-coral); color: var(--color-text-dark); border-color: transparent; }
.grid-card--mint { background: var(--color-mint); color: var(--color-text-dark); border-color: transparent; }
.grid-card--lake { background: var(--color-lake); color: var(--color-text-dark); border-color: transparent; }

.grid-card--yellow:hover,
.grid-card--coral:hover,
.grid-card--mint:hover,
.grid-card--lake:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(140deg, #261536 0%, #114555 70%, #0a2833 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-tag);
  font-size: 12px;
  color: rgba(224, 224, 224, 0.42);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 26%, rgba(255, 111, 0, 0.16), transparent 56%);
}

.card-cover > * {
  position: relative;
  z-index: 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  color: inherit;
}

.card-meta {
  margin: 0;
  font-family: var(--font-tag);
  font-size: 12px;
  color: inherit;
  opacity: 0.72;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.card-score {
  font-family: var(--font-tag);
  font-size: 18px;
  font-weight: 700;
  color: inherit;
  opacity: 0.9;
}

.is-list-view .grid-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 16px;
}

.is-list-view .card-cover {
  height: 100%;
  min-height: 96px;
}

/* ===== 磁贴矩阵 ===== */
.tile-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  list-style: none;
}

.tile-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 102px;
  padding: 16px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile-cell:hover,
.tile-cell:focus-visible {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: var(--shadow-pop);
}

.tile-cell--mint { background: var(--color-mint); color: var(--color-text-dark); }
.tile-cell--coral { background: var(--color-coral); color: var(--color-text-dark); }
.tile-cell--yellow { background: var(--color-yellow); color: var(--color-text-dark); }
.tile-cell--lake { background: var(--color-lake); color: var(--color-text-dark); }
.tile-cell--dark { background: var(--color-bg-alt); color: var(--color-text); }
.tile-cell--outline { background: transparent; color: var(--color-text); border-style: dashed; border-width: 2px; }

.tile-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
}

.tile-count {
  font-family: var(--font-tag);
  font-size: 12px;
  opacity: 0.78;
}

/* ===== 条目列表 ===== */
.list-stack {
  list-style: none;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(224, 224, 224, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(224, 224, 224, 0.08);
  transition: background 0.2s ease;
}

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

.entry-row:hover {
  background: rgba(255, 111, 0, 0.07);
}

.entry-row--4col {
  grid-template-columns: auto 1fr 180px auto;
}

.entry-main {
  min-width: 0;
}

.entry-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.entry-sub {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.6;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.entry-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ===== 标签云 ===== */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag-group-title {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(224, 224, 224, 0.8);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-tag);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a.tag-chip:hover,
button.tag-chip:hover,
.tag-chip:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.tag-chip--mint { background: var(--color-mint); color: var(--color-text-dark); }
.tag-chip--coral { background: var(--color-coral); color: var(--color-text-dark); }
.tag-chip--yellow { background: var(--color-yellow); color: var(--color-text-dark); }
.tag-chip--lake { background: var(--color-lake); color: var(--color-text-dark); }
.tag-chip--plain { background: rgba(255, 255, 255, 0.08); }

.tag-chip[aria-pressed="true"],
.tag-chip.is-active {
  background: var(--color-accent);
  color: var(--color-text-dark);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-accent);
}

/* ===== 状态徽标 ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: var(--font-tag);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.status-badge--done { background: var(--color-green); color: #062E12; }
.status-badge--live { background: var(--color-red); color: var(--color-text-dark); }
.status-badge--featured { background: var(--color-gold); color: var(--color-text-dark); }
.status-badge--hd { background: var(--color-mint); color: var(--color-text-dark); }
.status-badge--sub { background: var(--color-lake); color: var(--color-text-dark); }
.status-badge--plain { background: rgba(255, 255, 255, 0.1); color: var(--color-text); }

/* ===== 序号标记 ===== */
.seq-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-family: var(--font-tag);
  font-size: 15px;
  font-weight: 700;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid rgba(224, 224, 224, 0.2);
}

.seq-num--top { background: var(--color-coral); color: var(--color-text-dark); border-color: transparent; }
.seq-num--top2 { background: var(--color-yellow); color: var(--color-text-dark); border-color: transparent; }
.seq-num--top3 { background: var(--color-mint); color: var(--color-text-dark); border-color: transparent; }

/* ===== 指标条 ===== */
.metric-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.metric-label {
  flex: 0 0 auto;
  font-size: 12px;
  opacity: 0.75;
}

.metric-track {
  flex: 1 1 60px;
  min-width: 40px;
  height: 8px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.28);
  overflow: hidden;
}

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

.metric-fill--orange { background: var(--color-accent); }
.metric-fill--yellow { background: var(--color-yellow); }
.metric-fill--coral { background: var(--color-coral); }
.metric-fill--green { background: var(--color-green); }
.metric-fill--lake { background: var(--color-lake); }

.metric-value {
  flex: 0 0 auto;
  font-family: var(--font-tag);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

/* ===== 索引条 ===== */
.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: var(--radius);
}

.index-bar a {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  font-family: var(--font-tag);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.index-bar a:hover,
.index-bar a:focus-visible {
  background: var(--color-accent);
  color: var(--color-text-dark);
}

.index-bar a[aria-current="true"] {
  background: var(--color-yellow);
  color: var(--color-text-dark);
  border-color: var(--color-accent);
}

/* ===== 横向滑轨 ===== */
.h-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  padding: 2px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg);
}

.h-scroller > * {
  scroll-snap-align: start;
}

.h-scroller::-webkit-scrollbar {
  height: 8px;
}

.h-scroller::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-radius: 999px;
}

.h-scroller::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 999px;
}

/* ===== 对照表 ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(224, 224, 224, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(224, 224, 224, 0.09);
}

.compare-table th {
  background: var(--color-bg-alt);
  color: var(--color-yellow);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.compare-table tbody tr:hover td {
  background: rgba(255, 111, 0, 0.06);
}

/* ===== 首屏色块构图 ===== */
.hero-deck {
  position: relative;
  overflow: hidden;
  padding: 44px 0 20px;
}

.hero-deck-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-pop);
}

.hero-panel--main {
  background: var(--color-yellow);
  color: var(--color-text-dark);
  border-color: transparent;
}

.hero-panel--side {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-mint);
}

.hero-panel--coral {
  background: var(--color-coral);
  color: var(--color-text-dark);
  border-color: transparent;
}

/* ===== 封面占位 ===== */
.cover-figure {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(45, 27, 61, 0.92) 0%, rgba(17, 69, 85, 0.94) 70%, #0a2833 100%);
  border: 1px solid rgba(224, 224, 224, 0.12);
  color: rgba(224, 224, 224, 0.42);
  font-family: var(--font-tag);
  font-size: 12px;
  text-align: center;
}

.cover-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 28%, rgba(255, 111, 0, 0.16), transparent 55%);
}

.cover-figure > * {
  position: relative;
  z-index: 1;
}

/* ===== 侧边快速索引 ===== */
.quick-index {
  position: sticky;
  top: 20px;
  list-style: none;
  padding: 14px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(224, 224, 224, 0.12);
  border-radius: var(--radius);
}

.quick-index a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-index a:hover,
.quick-index a:focus-visible {
  color: var(--color-yellow);
  border-left-color: var(--color-accent);
}

.quick-index a.is-active {
  color: var(--color-yellow);
  border-left-color: var(--color-accent);
  background: rgba(255, 111, 0, 0.1);
}

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-deck-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-top-tagline {
    display: none;
  }

  .header-top-inner {
    justify-content: center;
  }

  .masthead-inner {
    position: relative;
    justify-content: center;
  }

  .masthead-aside {
    display: none;
  }

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

  .site-nav {
    display: none;
    border-top: 1px solid rgba(224, 224, 224, 0.08);
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 14px;
  }

  .nav-link {
    padding: 12px 16px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--color-accent);
    background: rgba(255, 111, 0, 0.08);
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .is-list-view .grid-card {
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .tile-matrix {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 8px;
  }

  .h-scroller {
    grid-auto-columns: 200px;
  }

  .entry-row {
    gap: 8px;
    padding: 10px 12px;
  }

  .entry-row--4col {
    grid-template-columns: auto 1fr 110px auto;
  }

  .compare-table {
    min-width: 560px;
  }

  .footer-col-group {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}
