/* =========================================================
   妖精动漫 — 全站共享样式 /assets/site.css
   设计语言：技术蓝图式网格 / 赛博漫画 / 复古荧屏色
   ========================================================= */

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A1A;
  background-color: #FFF3E0;
  background-image:
    linear-gradient(rgba(15, 76, 92, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 92, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(15, 76, 92, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 92, 0.025) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: #0F4C5C;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #E91E63;
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid #00E5FF;
  outline-offset: 2px;
}

#main-content {
  scroll-margin-top: 84px;
}

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

/* ---------- 2. CSS 变量 ---------- */
:root {
  --cream: #FFF3E0;
  --teal: #0F4C5C;
  --teal-soft: #156E82;
  --purple: #3A2E5D;
  --purple-soft: #4B3D73;
  --orange: #FF6B35;
  --magenta: #E91E63;
  --yellow: #FFC107;
  --blue: #00E5FF;
  --green: #00E676;
  --rose: #FF4081;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --gray: #9E9E9E;
  --font-head: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  --content-max: 1200px;
  --shadow-hard: 3px 3px 0 var(--ink);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. 可访问性辅助 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  background: #FFC107;
  color: #1A1A1A;
  border: 2px solid #1A1A1A;
  border-top: 0;
  padding: 0.625rem 1.25rem;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.25s ease;
}

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

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #0F4C5C;
  color: #FFFFFF;
  border-bottom: 3px solid #1A1A1A;
  flex-shrink: 0;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00E5FF;
  z-index: 1;
}

.site-header::after {
  content: '✦ GRID // MOE-YAOJING';
  position: absolute;
  right: 0.75rem;
  bottom: 0.4rem;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  text-transform: uppercase;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: #00E5FF;
}

.header-frame {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 1.5rem 0.625rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #FFFFFF;
  text-decoration: none;
}

.brand-link:hover {
  color: #FFFFFF;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: #FF6B35;
  border: 2px solid #1A1A1A;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #FFFFFF;
  line-height: 1;
}

.brand-name {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

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

.nav-list a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-list a:hover {
  color: #00E5FF;
  border-color: rgba(0, 229, 255, 0.4);
}

.nav-list a[aria-current="page"] {
  color: #1A1A1A;
  background: #FFC107;
  border-color: #1A1A1A;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: #0F4C5C;
  border: 2px solid #1A1A1A;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #00E5FF;
  transition: transform 0.25s var(--ease-out), opacity 0.25s ease;
}

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

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

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

.header-meta {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.25rem 1.5rem 0.5rem;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
}

.header-meta-item {
  white-space: nowrap;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  background: #3A2E5D;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  border-top: 4px solid #1A1A1A;
  position: relative;
  flex-shrink: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #00E5FF;
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: #FF6B35;
  border: 2px solid #1A1A1A;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #FFFFFF;
  line-height: 1;
}

.footer-brand-name {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.08em;
}

.footer-note {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 30ch;
  margin-bottom: 0.875rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00E5FF;
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-list li {
  margin-bottom: 0.375rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-list a:hover {
  color: #00E5FF;
}

.footer-contact li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 6. 通用容器与正文 ---------- */
.content-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.5rem;
  width: 100%;
}

.section-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.section-block[data-tone="teal"] {
  background: #0F4C5C;
  color: #FFFFFF;
  max-width: none;
}

.section-block[data-tone="purple"] {
  background: #3A2E5D;
  color: #FFFFFF;
  max-width: none;
}

.section-block[data-tone="cream"] {
  background: #FFF3E0;
  max-width: none;
  border-top: 2px solid #1A1A1A;
  border-bottom: 2px solid #1A1A1A;
}

.section-block[data-tone="teal"] .content-shell,
.section-block[data-tone="purple"] .content-shell,
.section-block[data-tone="cream"] .content-shell {
  padding-top: 0;
  padding-bottom: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  padding-left: 0.875rem;
  line-height: 1.3;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: #FF6B35;
}

.section-block[data-tone="teal"] .section-title,
.section-block[data-tone="purple"] .section-title {
  color: #FFFFFF;
}

.section-block[data-tone="teal"] .section-title::before,
.section-block[data-tone="purple"] .section-title::before {
  background: #00E5FF;
}

.section-link {
  color: #0F4C5C;
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #FF6B35;
  padding-bottom: 2px;
  white-space: nowrap;
}

.section-link:hover {
  color: #E91E63;
  border-bottom-color: #E91E63;
}

.section-block[data-tone="teal"] .section-link,
.section-block[data-tone="purple"] .section-link {
  color: #00E5FF;
}

.section-block[data-tone="teal"] .section-link:hover,
.section-block[data-tone="purple"] .section-link:hover {
  color: #FFC107;
  border-bottom-color: #FFC107;
}

.page-head {
  margin-bottom: 2rem;
  padding: 1.5rem 0 0.75rem;
  border-bottom: 3px solid #1A1A1A;
  position: relative;
}

.page-head::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 88px;
  height: 3px;
  background: #FF6B35;
}

.page-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-lead {
  margin-top: 0.5rem;
  max-width: 62ch;
  color: rgba(26, 26, 26, 0.7);
  font-size: 0.95rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.breadcrumb a {
  color: #0F4C5C;
  text-decoration: none;
}

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

.breadcrumb-sep {
  color: #9E9E9E;
  margin: 0 0.125rem;
}

.breadcrumb-current {
  color: #1A1A1A;
  font-weight: 800;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  background: #00E5FF;
  color: #1A1A1A;
  border: 2px solid #1A1A1A;
  box-shadow: 3px 3px 0 #1A1A1A;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: #33EAFF;
  color: #1A1A1A;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #1A1A1A;
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #1A1A1A;
}

.btn[data-tone="orange"] {
  background: #FF6B35;
  color: #FFFFFF;
}

.btn[data-tone="orange"]:hover {
  background: #FF8552;
  color: #FFFFFF;
}

.btn[data-tone="yellow"] {
  background: #FFC107;
  color: #1A1A1A;
}

.btn[data-tone="yellow"]:hover {
  background: #FFD54F;
  color: #1A1A1A;
}

.btn[data-tone="teal"] {
  background: #0F4C5C;
  color: #FFFFFF;
}

.btn[data-tone="teal"]:hover {
  background: #156E82;
  color: #FFFFFF;
}

.btn[data-tone="purple"] {
  background: #3A2E5D;
  color: #FFFFFF;
}

.btn[data-tone="purple"]:hover {
  background: #4B3D73;
  color: #FFFFFF;
}

.btn[data-tone="ink"] {
  background: #1A1A1A;
  color: #FFFFFF;
}

.btn[data-tone="ink"]:hover {
  background: #333333;
  color: #FFFFFF;
}

.btn[data-tone="blue"] {
  background: #00E5FF;
  color: #1A1A1A;
}

.btn[data-tone="blue"]:hover {
  background: #33EAFF;
  color: #1A1A1A;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ---------- 8. 标签与徽标 ---------- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: #FFF3E0;
  border: 1.5px solid #1A1A1A;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  white-space: nowrap;
}

.tag[data-tag="orange"] { background: #FF6B35; color: #FFFFFF; }
.tag[data-tag="magenta"] { background: #E91E63; color: #FFFFFF; }
.tag[data-tag="yellow"] { background: #FFC107; color: #1A1A1A; }
.tag[data-tag="blue"] { background: #00E5FF; color: #1A1A1A; }
.tag[data-tag="green"] { background: #00E676; color: #1A1A1A; }
.tag[data-tag="rose"] { background: #FF4081; color: #FFFFFF; }
.tag[data-tag="purple"] { background: #3A2E5D; color: #FFFFFF; }
.tag[data-tag="gray"] { background: #9E9E9E; color: #FFFFFF; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
  border: 1.5px solid #1A1A1A;
  background: #FFFFFF;
  color: #1A1A1A;
  white-space: nowrap;
}

.status-badge[data-status="ongoing"] { background: #00E676; }
.status-badge[data-status="complete"] { background: #FF4081; color: #FFFFFF; }
.status-badge[data-status="new"] { background: #FFC107; }
.status-badge[data-status="paused"] { background: #9E9E9E; color: #FFFFFF; }

.seq-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-weight: 800;
  font-size: 0.85rem;
  background: #FF6B35;
  color: #FFFFFF;
  border: 2px solid #1A1A1A;
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.3);
  flex-shrink: 0;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 2px solid #1A1A1A;
  box-shadow: 3px 3px 0 #1A1A1A;
  overflow: hidden;
  text-decoration: none;
  color: #1A1A1A;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1A1A1A;
}

.card-body {
  padding: 0.75rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.card-title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.72rem;
  color: #9E9E9E;
}

.card-corner {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  padding: 0.1rem 0.45rem;
  background: #00E5FF;
  border: 1.5px solid #1A1A1A;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: #1A1A1A;
}

/* ---------- 10. 媒体容器 ---------- */
.media-frame,
.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #0F4C5C;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.07) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.07) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.07) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.07) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

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

.media-frame[data-ratio="3/4"],
.card-media[data-ratio="3/4"] { aspect-ratio: 3 / 4; }

.media-frame[data-ratio="1/1"],
.card-media[data-ratio="1/1"] { aspect-ratio: 1 / 1; }

.media-frame[data-ratio="4/3"],
.card-media[data-ratio="4/3"] { aspect-ratio: 4 / 3; }

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

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 92px;
  padding: 0.875rem;
  background: #FF6B35;
  border: 2px solid #1A1A1A;
  box-shadow: 3px 3px 0 #1A1A1A;
  color: #1A1A1A;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #1A1A1A;
  color: #1A1A1A;
}

.tile-title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
}

.tile-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: rgba(26, 26, 26, 0.85);
  color: #FFFFFF;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.tile[data-tone="orange"] { background: #FF6B35; }

.tile[data-tone="magenta"] { background: #E91E63; color: #FFFFFF; }
.tile[data-tone="magenta"]:hover { color: #FFFFFF; }
.tile[data-tone="magenta"] .tile-count { background: rgba(255, 255, 255, 0.9); color: #1A1A1A; }

.tile[data-tone="yellow"] { background: #FFC107; }
.tile[data-tone="yellow"] .tile-count { background: #1A1A1A; color: #FFC107; }

.tile[data-tone="teal"] { background: #0F4C5C; color: #FFFFFF; }
.tile[data-tone="teal"]:hover { color: #FFFFFF; }
.tile[data-tone="teal"] .tile-count { background: #FFC107; color: #1A1A1A; }

.tile[data-tone="purple"] { background: #3A2E5D; color: #FFFFFF; }
.tile[data-tone="purple"]:hover { color: #FFFFFF; }
.tile[data-tone="purple"] .tile-count { background: #00E5FF; color: #1A1A1A; }

.tile[data-tone="blue"] { background: #00E5FF; }
.tile[data-tone="blue"] .tile-count { background: #1A1A1A; color: #00E5FF; }

.tile[data-tone="ink"] { background: #1A1A1A; color: #FFFFFF; }
.tile[data-tone="ink"]:hover { color: #FFFFFF; }
.tile[data-tone="ink"] .tile-count { background: #FF6B35; color: #FFFFFF; }

/* ---------- 12. 密集列表 ---------- */
.list-rows {
  border: 2px solid #1A1A1A;
  background: #FFFFFF;
  box-shadow: 3px 3px 0 #1A1A1A;
}

.row-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

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

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

.row-index {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-weight: 800;
  font-size: 0.85rem;
  background: #FFF3E0;
  border: 1.5px solid #1A1A1A;
}

.row-item:nth-child(1) .row-index,
.row-item:nth-child(2) .row-index,
.row-item:nth-child(3) .row-index {
  background: #FFC107;
}

.row-body {
  flex: 1;
  min-width: 0;
}

.row-title {
  font-weight: 700;
  font-size: 0.925rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  font-size: 0.78rem;
  color: #9E9E9E;
}

/* ---------- 13. 指标条 ---------- */
.meter-bar {
  height: 0.5rem;
  background: rgba(26, 26, 26, 0.12);
  border: 1px solid #1A1A1A;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 0;
  background: #00E5FF;
  transition: width 0.6s var(--ease-out);
}

.meter-fill[data-tone="green"] { background: #00E676; }
.meter-fill[data-tone="orange"] { background: #FF6B35; }
.meter-fill[data-tone="magenta"] { background: #E91E63; }
.meter-fill[data-tone="yellow"] { background: #FFC107; }

/* ---------- 14. 索引条 ---------- */
.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 2px solid #1A1A1A;
  background: #FFFFFF;
  box-shadow: 3px 3px 0 #1A1A1A;
}

.index-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.375rem;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-weight: 700;
  font-size: 0.8rem;
  background: #FFF3E0;
  border: 1px solid #1A1A1A;
  color: #1A1A1A;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.index-link:hover,
.index-link[aria-current="true"] {
  background: #00E5FF;
  border-color: #1A1A1A;
  color: #1A1A1A;
}

.index-link.is-dim {
  color: #9E9E9E;
  border-color: #9E9E9E;
}

/* ---------- 15. 横向滑轨 ---------- */
.rail-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.25rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #0F4C5C #FFF3E0;
}

.rail-track > * {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

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

.rail-track::-webkit-scrollbar-track {
  background: #FFF3E0;
  border: 1px solid #1A1A1A;
}

.rail-track::-webkit-scrollbar-thumb {
  background: #0F4C5C;
}

/* ---------- 16. 对照表格 ---------- */
.data-table-wrap {
  overflow-x: auto;
  border: 2px solid #1A1A1A;
  box-shadow: 3px 3px 0 #1A1A1A;
  background: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 520px;
}

.data-table th {
  background: #0F4C5C;
  color: #FFFFFF;
  padding: 0.65rem 0.875rem;
  text-align: left;
  font-weight: 800;
  border: 1px solid #1A1A1A;
  white-space: nowrap;
}

.data-table td {
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(26, 26, 26, 0.15);
}

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

/* ---------- 17. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 18. 响应式断点 ---------- */
@media (max-width: 920px) {
  .header-frame {
    flex-wrap: wrap;
    min-height: 56px;
    padding: 0.375rem 1rem 0.625rem;
  }

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

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0F4C5C;
    border-top: 2px solid #1A1A1A;
    border-bottom: 3px solid #1A1A1A;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

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

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

  .nav-list a {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .nav-list a[aria-current="page"] {
    border: 0;
    border-bottom: 1px solid #1A1A1A;
  }

  .header-meta {
    display: none;
  }

  .site-header::after {
    display: none;
  }

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

@media (max-width: 640px) {
  .content-shell {
    padding: 1rem 1rem 2.5rem;
  }

  .section-block {
    padding: 1.75rem 1rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .card-grid[data-detail="true"] {
    grid-template-columns: 1fr;
  }

  .tile-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .tile {
    min-height: 80px;
    padding: 0.625rem;
  }

  .section-head {
    flex-direction: column;
    gap: 0.5rem;
  }

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

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

  .rail-track > * {
    flex-basis: 180px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-toggle-line,
  .scroll-progress-bar,
  .card,
  .tile,
  .btn,
  .meter-fill {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
