/* ============================================================
   番茄影音 · 全站共享样式 /assets/site.css
   设计母题：赛博仓库 / 索引目录墙 / 展览标签 / 数据流装饰
   ============================================================ */

/* ---------- 01 重置与基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg-carbon);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

a:hover {
  color: #7ee9ff;
}

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

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: var(--accent-pink);
  color: #fff;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
  border: 2px solid var(--bg-carbon);
}

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

/* ---------- 02 色彩变量 ---------- */
:root {
  --bg-carbon: #111113;
  --bg-panel: #17171c;
  --bg-panel2: #1e1e25;

  --section-orange: #c4581b;
  --section-green: #0e4d3a;
  --section-purple: #4b1d52;
  --section-red: #6e1e1e;

  --card-yellow: #fbd41c;
  --card-blue: #1f8fff;
  --card-rose: #ff2e7e;
  --card-green: #01d758;

  --accent-cyan: #00e5ff;
  --accent-pink: #ff00aa;

  --text-main: #f5f5f5;
  --text-dim: #b0b0b0;
  --border-color: #333355;

  --status-new: #01d758;
  --status-updating: #ff6a00;
  --status-done: #b146c2;
  --status-hot: #ff2e7e;

  --font-head: "Arial Black", "Impact", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Courier New", "Consolas", "Roboto Mono", monospace;

  --container: 1360px;
  --header-h: 66px;
  --radius: 4px;
}

/* ---------- 03 通用排版与容器 ---------- */
.font-head {
  font-family: var(--font-head);
}

.font-mono {
  font-family: var(--font-mono);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

#main-content,
.site-main {
  flex: 1 0 auto;
  display: block;
}

/* ---------- 04 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-main);
}

/* ---------- 05 区块标题 ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 1.1em;
  background: var(--accent-cyan);
}

.section-title--pink::before {
  background: var(--accent-pink);
}

.section-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

/* ---------- 06 分区底色与面板 ---------- */
.section-block {
  position: relative;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-block--orange {
  background: var(--section-orange);
}

.section-block--green {
  background: var(--section-green);
}

.section-block--purple {
  background: var(--section-purple);
}

.section-block--red {
  background: var(--section-red);
}

.section-block--orange,
.section-block--green,
.section-block--purple,
.section-block--red {
  color: #fff;
}

.section-block--orange a,
.section-block--green a,
.section-block--purple a,
.section-block--red a {
  color: #fff;
  text-decoration: underline;
}

.section-block--orange .section-title,
.section-block--green .section-title,
.section-block--purple .section-title,
.section-block--red .section-title {
  color: #fff;
}

.panel {
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 18px;
}

.panel--card {
  background: var(--bg-panel);
}

.panel--yellow {
  background: var(--card-yellow);
  color: #111113;
  border-color: transparent;
}

.panel--blue {
  background: var(--card-blue);
  color: #111113;
  border-color: transparent;
}

.panel--rose {
  background: var(--card-rose);
  color: #fff;
  border-color: transparent;
}

.panel--green {
  background: var(--card-green);
  color: #111113;
  border-color: transparent;
}

/* ---------- 07 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-panel2);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

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

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #111113;
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
}

/* ---------- 08 跳转与滚动辅助 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 400;
  padding: 10px 16px;
  background: var(--accent-cyan);
  color: #111113;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #111113;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
}

.top-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 250;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-cyan);
  background: rgba(17, 17, 19, 0.88);
  color: var(--accent-cyan);
  font-size: 20px;
  line-height: 1;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
}

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

.top-btn:hover {
  background: var(--accent-cyan);
  color: #111113;
}

/* ---------- 09 共享头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-carbon);
  border-bottom: 2px solid var(--accent-cyan);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 229, 255, 0.05) 0,
    rgba(0, 229, 255, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--card-yellow);
  color: #111113;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  border-radius: var(--radius);
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 var(--accent-cyan);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 0.2em;
  margin-top: 2px;
}

.site-nav {
  margin-inline: auto;
}

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

.nav-list a {
  display: block;
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-main);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent-pink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-list a:hover {
  color: var(--accent-cyan);
  border-color: var(--border-color);
  background: rgba(0, 229, 255, 0.08);
}

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

.nav-list a[aria-current="page"] {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #111113;
  font-weight: 700;
}

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

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.search-slash {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.search-text {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.search-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(176, 176, 176, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.tgl-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* ---------- 10 共享页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 48px;
  background: var(--bg-carbon);
  border-top: 3px solid var(--accent-pink);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 0, 170, 0.035) 0,
      rgba(255, 0, 170, 0.035) 1px,
      transparent 1px,
      transparent 6px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 4px
    );
}

.footer-ledger {
  position: relative;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  background: var(--card-yellow);
  color: #111113;
  border-bottom: 2px solid #111113;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.ledger-run {
  display: inline-block;
  white-space: nowrap;
  animation: ledger-scroll 28s linear infinite;
}

@keyframes ledger-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 40px;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 34ch;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent-pink);
}

.footer-nav-list {
  display: grid;
  gap: 8px;
}

.footer-nav-list a {
  color: var(--text-main);
  font-size: 14px;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-item {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.contact-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  transform: rotate(45deg);
}

.contact-item--tel::before {
  background: var(--accent-pink);
}

.contact-item--addr::before {
  background: var(--card-green);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- 11 内容陈列组件 ---------- */

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.card--yellow,
.card--blue,
.card--green {
  color: #111113;
  border-color: transparent;
}

.card--rose {
  color: #fff;
  border-color: transparent;
}

.card--yellow {
  background: var(--card-yellow);
}

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

.card--rose {
  background: var(--card-rose);
}

.card--green {
  background: var(--card-green);
}

.card--yellow .card-meta,
.card--blue .card-meta,
.card--green .card-meta {
  color: rgba(17, 17, 19, 0.68);
}

.card--rose .card-meta {
  color: rgba(255, 255, 255, 0.72);
}

.cover-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a20;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* 图片框架与抽象纹理 */
.img-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #1a1a20;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.img-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.img-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.img-frame--3x4 {
  aspect-ratio: 3 / 4;
}

.img-frame--1x1 {
  aspect-ratio: 1 / 1;
}

.img-frame::before,
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

.img-ph {
  position: relative;
  z-index: 2;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(245, 245, 245, 0.65);
  border: 1px dashed rgba(245, 245, 245, 0.25);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
}

.img-frame--film {
  background-color: var(--section-orange);
}

.img-frame--drama {
  background-color: var(--section-green);
}

.img-frame--anime {
  background-color: var(--section-purple);
}

.img-frame--theme {
  background-color: var(--section-red);
}

.img-frame--filmstrip {
  background-color: #131318;
}

.img-frame--filmstrip::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(245, 245, 245, 0.06) 0,
    rgba(245, 245, 245, 0.06) 3px,
    transparent 3px,
    transparent 9px,
    rgba(0, 229, 255, 0.12) 9px,
    rgba(0, 229, 255, 0.12) 12px,
    transparent 12px,
    transparent 20px
  );
}

.img-frame--scanlines::before {
  background: repeating-linear-gradient(
    0deg,
    rgba(245, 245, 245, 0.06) 0,
    rgba(245, 245, 245, 0.06) 1px,
    transparent 1px,
    transparent 4px
  );
}

.img-frame--grid::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 229, 255, 0.1) 0,
      rgba(0, 229, 255, 0.1) 1px,
      transparent 1px,
      transparent 22px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 229, 255, 0.1) 0,
      rgba(0, 229, 255, 0.1) 1px,
      transparent 1px,
      transparent 22px
    );
}

.img-frame--datastream::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 0, 170, 0.12) 0,
    rgba(255, 0, 170, 0.12) 2px,
    transparent 2px,
    transparent 9px,
    rgba(0, 229, 255, 0.1) 9px,
    rgba(0, 229, 255, 0.1) 11px,
    transparent 11px,
    transparent 24px
  );
}

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

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

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 96px;
  padding: 14px;
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent-pink);
}

.tile--film {
  background: var(--section-orange);
  border-color: transparent;
}

.tile--drama {
  background: var(--section-green);
  border-color: transparent;
}

.tile--anime {
  background: var(--section-purple);
  border-color: transparent;
}

.tile--theme {
  background: var(--section-red);
  border-color: transparent;
}

.tile--film,
.tile--drama,
.tile--anime,
.tile--theme {
  color: #fff;
}

.tile--film .tile-count,
.tile--drama .tile-count,
.tile--anime .tile-count,
.tile--theme .tile-count {
  color: rgba(255, 255, 255, 0.72);
}

.tile-title {
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.25;
}

.tile-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* 条目列表行 */
.entry-list {
  border-top: 1px solid var(--border-color);
}

.entry-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}

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

.entry-index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  text-align: right;
}

.entry-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.entry-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
}

.entry-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: #22222a;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-main);
  white-space: nowrap;
}

.tag--yellow {
  background: var(--card-yellow);
  border-color: var(--card-yellow);
  color: #111113;
  font-weight: 700;
}

.tag--blue {
  background: var(--card-blue);
  border-color: var(--card-blue);
  color: #111113;
}

.tag--rose {
  background: var(--card-rose);
  border-color: var(--card-rose);
  color: #fff;
}

.tag--green {
  background: var(--card-green);
  border-color: var(--card-green);
  color: #111113;
}

/* 状态徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

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

.badge--new {
  color: #55ffa5;
  background: rgba(1, 215, 88, 0.14);
  border-color: rgba(1, 215, 88, 0.45);
}

.badge--updating {
  color: #ffb066;
  background: rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.45);
}

.badge--done {
  color: #d995e5;
  background: rgba(177, 70, 194, 0.18);
  border-color: rgba(177, 70, 194, 0.45);
}

.badge--hot {
  color: #ff88b8;
  background: rgba(255, 46, 126, 0.16);
  border-color: rgba(255, 46, 126, 0.45);
}

/* 序号标记 */
.num-mark {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.num-mark--top {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #fff;
  font-weight: 700;
}

/* 指标条 */
.metric-bar {
  display: grid;
  gap: 10px;
}

.metric {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

.metric-label {
  font-size: 13px;
  color: var(--text-dim);
}

.metric-track {
  height: 8px;
  border-radius: 4px;
  background: #22222a;
  overflow: hidden;
}

.metric-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  text-align: right;
}

/* 索引条 */
.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.index-item {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.index-item:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.index-item.is-current {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #111113;
  font-weight: 700;
}

/* 横向滑轨 */
.h-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.h-track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* 对照表格 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.data-table th {
  background: var(--bg-panel2);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-table td {
  background: rgba(0, 0, 0, 0.25);
}

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

/* ---------- 12 装饰组件 ---------- */
.frame-print {
  position: relative;
  padding: 20px;
  background: var(--bg-panel);
  border: 3px double var(--border-color);
  border-radius: 6px;
}

.frame-tag {
  position: absolute;
  top: -12px;
  left: 14px;
  background: var(--accent-pink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

.label-plaque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.label-plaque b {
  color: var(--text-main);
  font-weight: 700;
}

.deco-scan {
  position: relative;
  overflow: hidden;
}

.deco-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 229, 255, 0.035) 0,
    rgba(0, 229, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
}

/* ---------- 13 响应式 ---------- */
@media (max-width: 1120px) {
  .search-key {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    padding: 0 14px;
    gap: 12px;
  }

  .search-box {
    display: none;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: #17171c;
    border-bottom: 2px solid var(--accent-cyan);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 2px;
  }

  .nav-list a {
    padding: 14px 12px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid rgba(51, 51, 85, 0.6);
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 28px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
  }

  .brand-sub {
    display: none;
  }

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

/* ---------- 14 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .footer-ledger {
    white-space: normal;
  }

  .ledger-run {
    display: block;
    text-align: center;
    animation: none;
  }

  .top-btn {
    transition: none;
  }
}
