/* =====================================================
   大快发三官网 · 共享样式 /assets/site.css
   纸白 + 深海蓝 + 信号橙 · 粗野主义数据叙事体系
   ===================================================== */

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

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

body,
h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
li,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #FFFDF8;
  --warm: #F6F3EE;
  --ink: #0B1420;
  --deep: #123A5A;
  --blue: #1E5F8A;
  --orange: #FF5A1F;
  --orange-soft: #FFE1D4;
  --jade: #4F9B86;
  --jade-soft: #DDEDE7;
  --line: #D8D2C8;
  --focus: #FFD43B;

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 4px 4px 0 rgba(11, 20, 32, 0.16);

  --maxw: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

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

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

p {
  line-height: 1.8;
}

strong {
  font-weight: 800;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -140px;
  left: 16px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--focus);
  border-radius: var(--radius);
  transition: top 0.16s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: var(--paper);
}

/* ---------- 5. 头部外壳 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: rgba(11, 20, 32, 0.06);
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--jade));
}

.header-bar {
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--pad);
  min-height: 76px;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--orange);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 11px;
  background: var(--warm);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  color: var(--deep);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-soft);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--jade-soft); }
  50% { box-shadow: 0 0 0 6px rgba(79, 155, 134, 0.2); }
}

.status-text {
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.tool-link:hover {
  color: var(--ink);
  background: var(--warm);
  border-color: var(--line);
}

.tool-icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.tool-label {
  white-space: nowrap;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-accent {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-accent:hover {
  background: #FF743F;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--warm);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-deep {
  background: var(--deep);
  color: var(--paper);
}

.btn-deep:hover {
  color: var(--paper);
}

.btn-sm {
  min-height: 40px;
  padding: 7px 14px;
  font-size: 13.5px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-sm:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-block {
  width: 100%;
}

/* ---------- 7. 导航 ---------- */
.site-nav {
  background: var(--warm);
  border-top: 1.5px solid var(--line);
}

.nav-index {
  display: flex;
  align-items: stretch;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  counter-reset: navidx;
}

.nav-index::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-left: 3px solid transparent;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.nav-link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--blue);
  opacity: 0.75;
}

.nav-link:hover {
  background: var(--paper);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.nav-link[aria-current="page"]::before {
  color: var(--orange);
  opacity: 1;
}

/* ---------- 8. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-toggle:hover {
  background: var(--warm);
}

.nav-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
  flex: none;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--orange);
}

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

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

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

.nav-toggle-label {
  white-space: nowrap;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--deep);
  color: var(--paper);
  border-top: 4px solid var(--orange);
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--pad) 24px;
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--orange);
}

.footer-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-name {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 253, 248, 0.72);
}

.footer-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--jade);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 4vw, 40px) 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

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

.footer-col-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: 14.5px;
  color: rgba(255, 253, 248, 0.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 253, 248, 0.82);
}

.contact-label {
  flex: none;
  min-width: 3.2em;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 253, 248, 0.55);
  padding-top: 2px;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact {
  padding: clamp(18px, 3vw, 26px) 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.footer-contact-note {
  margin: 0;
  max-width: 64ch;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 253, 248, 0.66);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 253, 248, 0.7);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.legal-icp {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.legal-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* ---------- 10. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.16s ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--orange);
}

/* ---------- 11. 页面容器与正文 ---------- */
.page-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px) var(--pad) 0;
}

.prose {
  max-width: 64ch;
}

.prose p {
  margin-block: 0 1.1em;
  max-width: 38em;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.prose ul,
.prose ol {
  margin-block: 0 1.2em;
  display: grid;
  gap: 0.5em;
}

.prose li {
  position: relative;
  padding-left: 1.4em;
  max-width: 38em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumbs {
  padding-top: 14px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--orange);
}

.breadcrumb-item[aria-current] {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 13. 分节 ---------- */
.section {
  padding-block: clamp(32px, 5vw, 64px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--orange);
}

.band {
  padding-block: clamp(28px, 4vw, 56px);
}

.band--warm {
  background: var(--warm);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}

/* ---------- 14. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr);
    align-items: start;
  }
}

/* ---------- 15. 卡片 ---------- */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: clamp(16px, 2.5vw, 26px);
}

.card--drop {
  margin-top: clamp(0px, 2vw, 26px);
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.card-body {
  font-size: 15.5px;
  line-height: 1.8;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

/* ---------- 16. 批次号与状态标签 ---------- */
.batch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: var(--orange-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  border-bottom: 2px solid var(--ink);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--warm);
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}

.status-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
}

.status-tag--done {
  background: var(--jade-soft);
  border-color: var(--jade);
  color: var(--ink);
}

.status-tag--done::before {
  background: var(--jade);
}

.status-tag--active {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--ink);
}

.status-tag--active::before {
  background: var(--orange);
}

/* ---------- 17. 折叠面板 ---------- */
.panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel + .panel {
  margin-top: 14px;
}

.panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 14px 18px;
  background: var(--warm);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.panel-summary::-webkit-details-marker {
  display: none;
}

.panel-summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  transition: transform 0.2s ease;
}

.panel[open] .panel-summary {
  background: var(--jade-soft);
}

.panel[open] .panel-summary::after {
  transform: rotate(45deg);
}

.panel-body {
  padding: 16px 18px;
  border-top: 1.5px solid var(--line);
  font-size: 15.5px;
  line-height: 1.8;
}

/* ---------- 18. 目录索引 ---------- */
.index-list {
  display: grid;
  gap: 2px;
  counter-reset: idx;
}

.index-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--deep);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.index-link::before {
  counter-increment: idx;
  content: counter(idx, decimal-leading-zero);
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
}

.index-link:hover {
  background: var(--warm);
  border-left-color: var(--orange);
  color: var(--ink);
}

/* ---------- 19. 横向滑动条 ---------- */
.rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

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

/* ---------- 20. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--warm);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--blue);
}

/* ---------- 21. 滚动显现 ---------- */
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

html[data-reveal-ready] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1100px) {
  .nav-link {
    padding: 0 14px;
  }
}

@media (max-width: 960px) {
  .header-status {
    display: none;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .site-nav[data-open] {
    display: block;
    border-bottom: 2px solid var(--ink);
  }

  .nav-index {
    flex-direction: column;
    overflow: visible;
    padding: 6px var(--pad) 14px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    justify-content: flex-start;
  }

  .nav-link[aria-current="page"] {
    background: var(--paper);
    border-bottom-color: var(--line);
    border-left-color: var(--orange);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
    padding: 10px var(--pad);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
    box-shadow: 3px 3px 0 var(--orange);
  }

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

  .brand-sub {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }

  .header-tools {
    gap: 8px;
  }

  .header-tools .btn {
    display: none;
  }

  .tool-link {
    padding: 0 8px;
  }

  .tool-label {
    display: none;
  }

  .tool-icon {
    width: 20px;
    height: 20px;
  }

  .nav-toggle {
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .card {
    box-shadow: 4px 4px 0 var(--ink);
  }

  .media-frame {
    box-shadow: 4px 4px 0 var(--ink);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-list a,
  .legal-links a {
    min-height: 44px;
  }

  .contact-line {
    flex-direction: column;
    gap: 0;
  }

  .contact-label {
    min-width: 0;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- 23. 无障碍动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .status-dot {
    animation: none;
  }

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

  .brand:hover .brand-mark {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .to-top {
    transform: none;
  }
}
