/* ============================================================
   英语师说 · 英语老师哭着说别升了内容索引站
   /assets/site.css — 全站共享样式
   设计基因：展览画册 × 档案索引 · 暖黄 + 深炭 + 明黄 + 亮红
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-red-ink);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.25em;
}

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

button {
  font-family: inherit;
  font-size: 100%;
}

/* ---------- 02 设计变量 ---------- */
:root {
  --color-page: #FFF8E7;
  --color-panel-a: #FFE082;
  --color-panel-b: #FFCC80;
  --color-panel-c: #B2EBF2;
  --color-card: #FFFFFF;
  --color-primary: #2196F3;
  --color-primary-tint: #E3F2FD;
  --color-primary-ink: #0D47A1;
  --color-accent-red: #F44336;
  --color-accent-red-ink: #C62828;
  --color-accent-red-tint: #FFEBEE;
  --color-accent-yellow: #FFEB3B;
  --color-status-updated: #4CAF50;
  --color-status-old: #9E9E9E;
  --color-status-hot: #FF9800;
  --color-tag-1: #9C27B0;
  --color-tag-2: #00BCD4;
  --color-tag-3: #E91E63;
  --color-tag-3-tint: #FCE4EC;
  --color-text: #212121;
  --color-border: #E0E0E0;
  --color-inverse: #F5F5F5;
  --color-link: var(--color-primary-ink);

  --font-heading: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", "Hiragino Maru Gothic ProN", "Noto Sans SC", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-index: "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --border-w: 2px;
  --shadow: 4px 4px 0 rgba(33, 33, 33, 0.14);
  --shadow-hover: 7px 7px 0 rgba(33, 33, 33, 0.2);
  --transition: 150ms ease;
  --content-max: 1280px;
}

/* ---------- 03 基础排版与工具 ---------- */
.text-index {
  font-family: var(--font-index);
  font-size: 13px;
  line-height: 1.5;
}

.text-small {
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

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

.main-content {
  min-height: 62vh;
  padding-block: 32px;
}

.section {
  margin-bottom: 44px;
}

.section:last-child {
  margin-bottom: 0;
}

.section + .section {
  margin-top: 44px;
}

/* ---------- 05 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid var(--color-accent-yellow);
  border-radius: var(--radius-sm);
  transform: translateY(-320%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: none;
  outline: none;
}

/* ---------- 06 顶部进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1500;
  pointer-events: none;
}

.scroll-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-accent-red);
  transition: width 80ms linear;
}

/* ---------- 07 头部：品牌与检索 ---------- */
.site-header {
  position: relative;
  z-index: 100;
}

.header-upper {
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(33, 33, 33, 0.035) 42px 44px),
    var(--color-panel-a);
  border-bottom: 3px solid var(--color-text);
}

.header-upper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 10px;
}

.header-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-accent-red);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 8px;
  border: 2px solid var(--color-text);
  box-shadow: 2px 2px 0 var(--color-text);
}

.brand-subtitle {
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.88;
  line-height: 1.4;
  border-left: 2px solid var(--color-text);
  padding-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--color-accent-red);
  text-underline-offset: 4px;
}

.header-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search-label {
  font-family: var(--font-index);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

.header-search {
  width: 200px;
  padding: 8px 14px;
  border: 2px solid var(--color-text);
  border-radius: 999px;
  background: var(--color-card);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
}

.header-search:focus-visible {
  outline: 3px solid var(--color-accent-red);
  outline-offset: 1px;
}

/* 导航切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--color-accent-yellow);
  color: var(--color-text);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--color-accent-red);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav-toggle:hover {
  background: var(--color-accent-red);
  color: #fff;
  box-shadow: 2px 2px 0 var(--color-text);
}

.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 12px;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-icon span:nth-child(1) {
  top: 0;
}

.nav-toggle-icon span:nth-child(2) {
  top: 5px;
}

.nav-toggle-icon span:nth-child(3) {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-toggle-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- 08 头部：主导航 ---------- */
.header-lower {
  background: var(--color-text);
}

.header-lower-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-block: 6px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.main-nav a:hover {
  background: var(--color-primary);
  color: var(--color-text);
  box-shadow: inset 0 -3px 0 var(--color-text);
}

.main-nav a[aria-current="page"] {
  background: var(--color-accent-yellow);
  color: var(--color-text);
  box-shadow: inset 0 -4px 0 var(--color-accent-red);
}

/* ---------- 09 头部：字母索引条 ---------- */
.index-rail {
  background: var(--color-panel-b);
  border-bottom: 2px solid var(--color-text);
  box-shadow: 0 2px 0 rgba(33, 33, 33, 0.08);
}

.index-rail-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.record-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--color-text);
  color: var(--color-accent-yellow);
  border: 2px solid var(--color-text);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.record-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-status-updated);
  box-shadow: 0 0 0 2px var(--color-card);
}

.record-link:hover {
  background: var(--color-primary);
  color: var(--color-text);
}

.alpha-index {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-block: 4px;
}

.index-letter {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding-inline: 3px;
  font-family: var(--font-index);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.index-letter:hover {
  background: var(--color-primary);
  color: var(--color-text);
}

.index-letter.is-active {
  background: var(--color-accent-yellow);
  box-shadow: inset 0 -3px 0 var(--color-accent-red);
}

.index-letter.is-disabled {
  opacity: 0.32;
  pointer-events: none;
}

/* ---------- 10 页脚 ---------- */
.site-footer {
  background: var(--color-text);
  color: var(--color-inverse);
  border-top: 6px solid var(--color-accent-yellow);
  margin-top: 64px;
}

.site-footer .container {
  padding-block: 40px 28px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-accent-yellow);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.footer-col-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}

.footer-col-title a:hover {
  border-color: currentColor;
}

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

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent-yellow);
  border-color: currentColor;
}

.footer-brand-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 24px 8px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--color-accent-red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 6px;
  border: 2px solid var(--color-accent-yellow);
  margin-right: 6px;
  vertical-align: 3px;
}

.footer-brand-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-legal a {
  color: #fff;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--color-accent-yellow);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

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

.footer-copyright {
  font-family: var(--font-index);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

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

.btn-primary {
  background: var(--color-accent-yellow);
  color: var(--color-text);
  box-shadow: 3px 3px 0 var(--color-text);
}

.btn-primary:hover {
  background: var(--color-panel-a);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--color-text);
}

.btn-blue {
  background: var(--color-primary);
  color: var(--color-text);
  box-shadow: 3px 3px 0 var(--color-text);
}

.btn-blue:hover {
  background: var(--color-primary-tint);
  transform: translate(-1px, -1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-panel-c);
}

/* ---------- 12 分区面板与标题 ---------- */
.section-panel {
  border: var(--border-w) solid var(--color-text);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.panel-yellow {
  background: var(--color-panel-a);
}

.panel-orange {
  background: var(--color-panel-b);
}

.panel-cyan {
  background: var(--color-panel-c);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-text);
}

.section-index {
  font-family: var(--font-index);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-red-ink);
  letter-spacing: 0.08em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

/* ---------- 13 封面与页首 ---------- */
.cover-block {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--color-text);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 56px);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(33, 33, 33, 0.04) 14px 28px),
    var(--color-panel-a);
  box-shadow: 6px 6px 0 rgba(33, 33, 33, 0.16);
}

.cover-block::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px dashed var(--color-text);
  opacity: 0.18;
  pointer-events: none;
}

.cover-kicker {
  font-family: var(--font-index);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-red-ink);
  margin: 0 0 12px;
}

.cover-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 12em;
}

.cover-lead {
  font-size: 16px;
  line-height: 1.7;
  max-width: 42em;
  margin: 0 0 20px;
}

.cover-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-index);
  font-size: 13px;
  margin-top: 20px;
}

.cover-index strong {
  color: var(--color-accent-red-ink);
}

.cover-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat-cell {
  background: var(--color-card);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: 2px 2px 0 var(--color-text);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent-red-ink);
}

.stat-label {
  font-family: var(--font-index);
  font-size: 12px;
  color: var(--color-text);
}

.page-hero {
  background: var(--color-panel-a);
  border-bottom: 3px solid var(--color-text);
  padding: 40px 0;
}

.page-hero.panel-cyan {
  background: var(--color-panel-c);
}

.page-hero.panel-orange {
  background: var(--color-panel-b);
}

.page-hero-title {
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 0;
}

.page-hero-lead {
  max-width: 42em;
  margin: 8px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-index);
  font-size: 13px;
  margin: 0 0 18px;
  color: var(--color-text);
}

.breadcrumbs a {
  color: var(--color-primary-ink);
}

.crumb-sep {
  opacity: 0.5;
}

.breadcrumbs [aria-current="page"] {
  font-weight: 700;
}

/* ---------- 14 卡片墙 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  display: block;
  background: var(--color-card);
  border: var(--border-w) solid var(--color-text);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
}

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

.card-excerpt {
  font-size: 14px;
  margin: 0;
}

.card.is-tall {
  grid-row: span 2;
}

/* ---------- 15 磁贴矩阵 ---------- */
.magnet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.magnet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 108px;
  padding: 16px;
  border: var(--border-w) solid var(--color-text);
  border-radius: var(--radius-md);
  background: var(--color-card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
}

.magnet:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.magnet-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  margin: 0;
}

.magnet-count {
  font-family: var(--font-index);
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
  background: var(--color-accent-yellow);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  padding: 2px 10px;
}

.magnet.is-blue {
  background: var(--color-primary);
}

.magnet.is-orange {
  background: var(--color-panel-b);
}

.magnet.is-cyan {
  background: var(--color-panel-c);
}

.magnet.is-yellow {
  background: var(--color-panel-a);
}

.magnet.is-red {
  background: var(--color-accent-red-tint);
}

.magnet.is-red .magnet-name {
  color: var(--color-accent-red-ink);
}

/* ---------- 16 条目列表 ---------- */
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-card);
  border: var(--border-w) solid var(--color-text);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-card);
  transition: background var(--transition);
}

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

.entry-row:hover {
  background: var(--color-panel-c);
}

.entry-row[hidden] {
  display: none;
}

.entry-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.entry-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}

.entry-name a:hover {
  border-color: var(--color-accent-red);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-batch {
  font-family: var(--font-index);
  font-size: 12px;
  font-weight: 700;
  background: var(--color-panel-a);
  border: 1px solid var(--color-text);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ---------- 17 标签云 ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-block {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tag-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 0 var(--color-text);
}

.tag-block.tag-1 {
  background: var(--color-tag-1);
  color: #fff;
}

.tag-block.tag-2 {
  background: var(--color-tag-2);
}

.tag-block.tag-3 {
  background: var(--color-tag-3-tint);
  color: var(--color-accent-red-ink);
  border-color: var(--color-accent-red);
}

.tag-block.is-lg {
  font-size: 16px;
  padding: 7px 16px;
}

.tag-block.is-md {
  font-size: 14px;
}

.tag-block.is-sm {
  font-size: 12px;
}

/* ---------- 18 状态徽标 ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

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

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

.status-badge.is-old {
  background: var(--color-status-old);
}

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

.status-badge.is-alert {
  background: var(--color-accent-red-tint);
  color: var(--color-accent-red-ink);
}

/* ---------- 19 序号标记 ---------- */
.order-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--color-text);
  background: var(--color-accent-yellow);
  color: var(--color-text);
  font-family: var(--font-index);
  font-size: 12px;
  font-weight: 700;
}

.order-marker.is-red {
  background: #fff;
  color: var(--color-accent-red-ink);
  border-color: var(--color-accent-red);
}

.order-marker.is-blue {
  background: var(--color-primary);
  color: var(--color-text);
}

/* ---------- 20 指标条 ---------- */
.metric-bar {
  height: 10px;
  background: var(--color-border);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  overflow: hidden;
}

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

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

.metric-fill.is-updated {
  background: var(--color-status-updated);
}

/* ---------- 21 横向滑轨 ---------- */
.scroll-rail {
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

.scroll-rail::-webkit-scrollbar-thumb {
  background: var(--color-text);
  border-radius: 999px;
}

.scroll-track {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: 100%;
}

/* ---------- 22 数据表 ---------- */
.data-table-wrap {
  overflow-x: auto;
  background: var(--color-card);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

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

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  background: var(--color-panel-a);
  border-bottom: 2px solid var(--color-text);
  font-family: var(--font-heading);
  font-weight: 800;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--color-primary-tint);
  border-bottom: 2px solid var(--color-text);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background: var(--color-panel-c);
}

/* ---------- 23 批次时间线 ---------- */
.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--color-text);
}

.schedule-item {
  position: relative;
  padding: 0 0 18px 22px;
}

.schedule-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-accent-yellow);
  border: 2px solid var(--color-text);
}

.schedule-item.is-current::before {
  background: var(--color-status-updated);
}

.schedule-label {
  font-family: var(--font-index);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.schedule-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}

/* ---------- 24 图片占位容器 ---------- */
.figure-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-panel-c);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-md);
}

.figure-box.is-square {
  aspect-ratio: 1;
}

.figure-box.is-wide {
  aspect-ratio: 16 / 9;
}

.figure-box::before {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: var(--color-text);
  color: var(--color-accent-yellow);
  font-family: var(--font-index);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-slot {
  display: block;
  width: 100%;
  min-height: 120px;
  background:
    linear-gradient(135deg, var(--color-panel-a) 25%, transparent 25%) -10px 0 / 20px 20px,
    linear-gradient(225deg, var(--color-panel-a) 25%, transparent 25%) -10px 0 / 20px 20px,
    linear-gradient(45deg, var(--color-panel-b) 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(315deg, var(--color-panel-b) 25%, transparent 25%) 0 0 / 20px 20px,
    var(--color-card);
  border: 2px dashed var(--color-text);
  border-radius: var(--radius-md);
}

/* ---------- 25 返回顶部 ---------- */
.top-link {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-accent-yellow);
  color: var(--color-text);
  border: 2px solid var(--color-text);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--color-text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.top-link.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.top-link:hover {
  background: var(--color-panel-c);
}

/* ---------- 26 响应式 ---------- */
@media (max-width: 980px) {
  .header-upper-inner {
    flex-wrap: wrap;
  }

  .header-search-wrap {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .header-search {
    flex: 1 1 auto;
    max-width: 420px;
  }

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

  .header-lower {
    min-height: 0;
  }

  .header-lower-inner {
    min-height: 0;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--color-text);
  }

  .main-nav[data-open] {
    display: flex;
    border-top: 2px solid var(--color-accent-yellow);
  }

  .main-nav a {
    justify-content: flex-start;
    padding: 12px 14px;
  }
}

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

  .magnet-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .entry-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .entry-name {
    flex-basis: 100%;
  }

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

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .brand-logo {
    font-size: 19px;
  }

  .brand-logo-mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-meta {
    gap: 8px 14px;
  }

  .page-hero {
    padding: 28px 0;
  }
}

/* ---------- 27 可访问性与动效 ---------- */
:focus-visible {
  outline: 3px solid var(--color-accent-red);
  outline-offset: 2px;
}

.site-header .header-lower :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-accent-yellow);
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress {
    display: none;
  }

  .skip-link {
    transition: none;
  }
}
