/* ==========================================================
   Site Kit — 黑料锐评 / truth-hl.com.cn
   共享样式表 /assets/site.css
   设计语言：封面墙 + 播放列表 / 高对比杂志式索引墙
   ========================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg-deep: #1a1a1a;
  --bg-hotlist: #c0392b;
  --bg-collection: #e67e22;
  --bg-filter: #16a085;
  --bg-tagcloud: #8e44ad;
  --bg-card: #ecf0f1;
  --accent-highlight: #f1c40f;
  --status-updated: #27ae60;
  --status-unread: #e74c3c;
  --status-archived: #7f8c8d;
  --text-light: #ecf0f1;
  --text-dark: #1a1a1a;
  --border-ink: #111111;
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --font-head: "Impact", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Georgia", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-hard: 0 4px 0 var(--border-ink);
  --container-max: 1200px;
  --gap: 16px;
}

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

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

body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

ul,
ol {
  list-style: none;
}

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

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

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

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

::placeholder {
  color: inherit;
  opacity: 0.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.4em;
  color: inherit;
  text-wrap: balance;
}

p {
  margin-bottom: 1em;
}

strong,
b {
  font-weight: 700;
}

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

.section {
  padding-block: 40px;
}

.section-narrow {
  max-width: 860px;
  margin-inline: auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-ink);
}

.section-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-more {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: inherit;
  opacity: 0.75;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.section-more:hover {
  opacity: 1;
}

.section--hot {
  background: var(--bg-hotlist);
  color: var(--text-light);
}

.section--collection {
  background: var(--bg-collection);
  color: var(--text-dark);
}

.section--filter {
  background: var(--bg-filter);
  color: var(--text-dark);
}

.section--tagcloud {
  background: var(--bg-tagcloud);
  color: var(--text-light);
}

/* ---------- 无障碍 ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--accent-highlight);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[data-hidden] {
  display: none !important;
}

/* ---------- 页头 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg-deep);
  color: var(--text-light);
  border-bottom: 2px solid var(--border-ink);
}

.header-toolsbar {
  background: var(--bg-hotlist);
  color: var(--text-light);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-block: 8px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-icon {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  opacity: 0.8;
  pointer-events: none;
}

.header-search-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.header-search-icon::after {
  content: "";
  position: absolute;
  bottom: 1px;
  right: 0;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.header-search-input {
  width: 230px;
  padding: 8px 14px 8px 36px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input::placeholder {
  color: rgba(236, 240, 241, 0.55);
}

.header-search-input:focus {
  outline: none;
  border-color: var(--accent-highlight);
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.28);
}

.shortcut-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-ink);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.shortcut-apple {
  background: var(--bg-deep);
  color: var(--accent-highlight);
}

.shortcut-apple:hover {
  background: var(--accent-highlight);
  color: var(--text-dark);
}

.shortcut-filter {
  background: var(--bg-filter);
  color: var(--text-dark);
}

.shortcut-filter:hover {
  background: var(--accent-highlight);
  color: var(--text-dark);
}

.header-mainbar {
  position: relative;
  background: var(--bg-deep);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--text-dark);
  background: var(--accent-highlight);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-ink);
  background: var(--accent-highlight);
  color: var(--text-dark);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--bg-hotlist);
  color: var(--text-light);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  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[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.main-nav {
  margin-left: auto;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: var(--accent-highlight);
  color: var(--text-dark);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  background: var(--accent-highlight);
  color: var(--text-dark);
}

.nav-idx {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  background: rgba(236, 240, 241, 0.14);
  color: var(--accent-highlight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover .nav-idx,
.nav-link[aria-current="page"] .nav-idx {
  background: var(--text-dark);
  color: var(--accent-highlight);
}

.nav-text {
  display: inline-block;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-light);
  border-top: 2px solid var(--border-ink);
}

.footer-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 8px;
}

.footer-band-seg--hot {
  background: var(--bg-hotlist);
}

.footer-band-seg--collect {
  background: var(--bg-collection);
}

.footer-band-seg--filter {
  background: var(--bg-filter);
}

.footer-band-seg--tag {
  background: var(--bg-tagcloud);
}

.footer-inner {
  padding-block: 44px 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
}

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

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-highlight);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(236, 240, 241, 0.2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(236, 240, 241, 0.8);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-highlight);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(236, 240, 241, 0.18);
  font-size: 0.82rem;
  color: rgba(236, 240, 241, 0.66);
}

.footer-contact,
.footer-icp,
.footer-note {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-highlight);
  color: var(--text-dark);
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-hard);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  z-index: 90;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.back-top:hover {
  background: var(--bg-hotlist);
  color: var(--text-light);
  transform: translateY(-2px);
}

.back-top-arrow {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-ink);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-hard);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--border-ink);
}

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

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--text-light);
  color: var(--text-dark);
  box-shadow: none;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: rgba(236, 240, 241, 0.65);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(236, 240, 241, 0.4);
}

.breadcrumb-link {
  color: var(--accent-highlight);
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text-light);
}

/* ---------- 页面横幅 ---------- */
.page-hero {
  padding-block: 48px 32px;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-lead {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(236, 240, 241, 0.82);
  max-width: 56ch;
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  color: var(--text-dark);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--border-ink);
  background: var(--accent-highlight);
}

.card-media .media-frame {
  border: none;
  border-bottom: 2px solid var(--border-ink);
  border-radius: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(26, 26, 26, 0.65);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  background: rgba(26, 26, 26, 0.08);
  color: var(--text-dark);
}

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

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 100px;
  padding: 18px 16px;
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  background: var(--bg-card);
  color: var(--text-dark);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--border-ink);
  filter: saturate(1.15);
}

.tile--hot {
  background: var(--bg-hotlist);
  color: var(--text-light);
}

.tile--collection {
  background: var(--bg-collection);
  color: var(--text-dark);
}

.tile--filter {
  background: var(--bg-filter);
  color: var(--text-dark);
}

.tile--tag {
  background: var(--bg-tagcloud);
  color: var(--text-light);
}

.tile-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}

.tile-count {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.16);
  font-family: var(--font-head);
  font-size: 0.72rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* ---------- 条目录入行 ---------- */
.entry-list {
  overflow-x: auto;
  background: var(--bg-card);
  color: var(--text-dark);
  border-top: 2px solid var(--border-ink);
  border-bottom: 2px solid var(--border-ink);
  border-radius: var(--radius-md);
}

.entry-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 150px 120px 96px;
  align-items: center;
  gap: 14px;
  min-width: 620px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
  transition: background 0.2s ease;
}

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

.entry-row:hover {
  background: var(--accent-highlight);
}

.entry-idx {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bg-hotlist);
  transition: color 0.2s ease;
}

.entry-row:hover .entry-idx {
  color: var(--text-dark);
}

.entry-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
}

.entry-zone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.07);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  white-space: nowrap;
}

.entry-zone::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.entry-zone--hot::before {
  background: var(--bg-hotlist);
}

.entry-zone--collection::before {
  background: var(--bg-collection);
}

.entry-zone--filter::before {
  background: var(--bg-filter);
}

.entry-zone--tag::before {
  background: var(--bg-tagcloud);
}

.entry-batch {
  font-size: 0.8rem;
  color: rgba(26, 26, 26, 0.7);
  font-variant-numeric: tabular-nums;
}

.entry-status {
  text-align: right;
}

/* ---------- 标签组 ---------- */
.tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-block {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(236, 240, 241, 0.14);
  color: var(--text-light);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tag-block:hover {
  background: var(--accent-highlight);
  color: var(--text-dark);
  border-color: var(--border-ink);
  transform: translateY(-1px);
}

.tag-block--lg {
  font-size: 1rem;
  padding: 8px 18px;
}

.tag-block--sm {
  font-size: 0.7rem;
  padding: 4px 10px;
}

.tag-block--hot {
  background: var(--accent-highlight);
  color: var(--text-dark);
  border-color: var(--border-ink);
}

.tag-block--zone-hot {
  background: var(--bg-hotlist);
  color: var(--text-light);
}

.tag-block--zone-collect {
  background: var(--bg-collection);
  color: var(--text-dark);
}

.tag-block--zone-filter {
  background: var(--bg-filter);
  color: var(--text-dark);
}

.tag-block--zone-tag {
  background: var(--bg-tagcloud);
  color: var(--text-light);
}

/* ---------- 状态徽标 ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-ink);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--updated {
  background: var(--status-updated);
  color: var(--text-dark);
}

.status-badge--unread {
  background: var(--status-unread);
  color: var(--text-dark);
}

.status-badge--archived {
  background: var(--status-archived);
  color: var(--text-dark);
}

.status-badge--hot {
  background: var(--accent-highlight);
  color: var(--text-dark);
}

/* ---------- 指标条 ---------- */
.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 10px 0;
}

.metric-label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
}

.metric-value {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.18);
  overflow: hidden;
}

.metric-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bg-hotlist);
}

.metric-fill--hot {
  background: var(--bg-hotlist);
}

.metric-fill--collect {
  background: var(--bg-collection);
}

.metric-fill--filter {
  background: var(--bg-filter);
}

.metric-fill--tag {
  background: var(--bg-tagcloud);
}

/* ---------- 索引条 ---------- */
.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  color: var(--text-dark);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
}

.index-bar-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  width: 100%;
  margin-bottom: 2px;
}

.index-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-size: 0.85rem;
  line-height: 1;
  color: var(--text-dark);
  background: rgba(26, 26, 26, 0.06);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.index-link:hover {
  background: var(--accent-highlight);
  border-color: var(--border-ink);
  transform: translateY(-2px);
}

.index-link[aria-current="true"],
.index-link.is-active {
  background: var(--bg-hotlist);
  color: var(--text-light);
  border-color: var(--border-ink);
}

/* ---------- 横向滑轨 ---------- */
.track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 4px 4px 12px;
}

.track-rail {
  display: flex;
  gap: 16px;
  width: max-content;
}

.track-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

/* ---------- 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  color: var(--text-dark);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.88rem;
}

.data-table th {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  background: var(--border-ink);
  color: var(--text-light);
  border-bottom: 2px solid var(--border-ink);
}

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

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

.data-table tbody tr {
  transition: background 0.2s ease;
}

.data-table tbody tr:hover {
  background: var(--accent-highlight);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 75% 25%, rgba(241, 196, 15, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(192, 57, 43, 0.38), rgba(26, 26, 26, 0.9) 65%);
}

.media-frame::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border: 3px solid rgba(236, 240, 241, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.media-frame > img,
.media-frame > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.media-frame--poster {
  aspect-ratio: 3 / 4;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .header-tools {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-search {
    flex: 1 1 100%;
  }

  .header-search-input {
    width: 100%;
  }

  .shortcut-pill {
    flex: 1 1 auto;
    max-width: 200px;
  }

  .header-main {
    flex-wrap: wrap;
    padding-block: 10px;
  }

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: var(--bg-deep);
    border: 2px solid var(--border-ink);
    border-top: 4px solid var(--accent-highlight);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px var(--shadow-soft);
    padding: 14px;
    z-index: 25;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

@media (max-width: 767px) {
  .shortcut-pill {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-sub {
    font-size: 0.6rem;
    padding: 4px 8px;
  }

  .section {
    padding-block: 28px;
  }

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

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

  .back-top {
    right: 12px;
    bottom: 16px;
  }
}

/* ---------- 动画偏好 ---------- */
@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;
  }
}
