/* ==========================================================================
   球盟会 MZ7F 中文站 — /assets/site.css
   共享层：reset、变量、中文排版、头部、页脚、基础组件、响应式
   ========================================================================== */

:root {
  --ink-900: #07130F;
  --ink-800: #0D211A;
  --moss-700: #1E3A2F;
  --lime-400: #C8FF3D;
  --lime-200: #E6FF9E;
  --lava-500: #FF6A2B;
  --terracotta-400: #C96B4A;
  --gray-blue-400: #8FA6B8;
  --rock-500: #4A534C;
  --off-white-100: #F4F0E6;
  --muted-300: #B7C2BA;

  --line: rgba(143, 166, 184, 0.18);
  --line-strong: rgba(143, 166, 184, 0.34);
  --lime-line: rgba(200, 255, 61, 0.45);

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", system-ui, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", system-ui,
    -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia,
    "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
    Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--ink-900);
  color: var(--off-white-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--lime-400);
  color: var(--ink-900);
}

/* ---------- 中文排版基础 ---------- */
p {
  line-height: 1.75;
  max-width: 68ch;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.8;
  color: var(--muted-300);
  max-width: 58ch;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--off-white-100);
  max-width: 24ch;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.18;
  color: var(--off-white-100);
}

.editorial-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.text-muted {
  color: var(--muted-300);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tight {
  padding-block: clamp(28px, 4.5vw, 56px);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 3.4vw, 38px);
}

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 48px);
  background: var(--line);
}

/* 浅色阅读区 */
.surface-light {
  background-color: var(--off-white-100);
  color: var(--ink-900);
  --line: rgba(7, 19, 15, 0.14);
  --line-strong: rgba(7, 19, 15, 0.28);
  --muted-300: #4A534C;
  --gray-blue-400: #586B61;
}

.surface-light .display-title,
.surface-light .section-title,
.surface-light .editorial-title {
  color: var(--ink-900);
}

.surface-light .eyebrow {
  color: #1E5C3E;
}

.surface-light :focus-visible {
  outline-color: #1E3A2F;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 120;
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--lime-400);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 阅读进度 ---------- */
.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 90;
  background: rgba(7, 19, 15, 0.6);
  pointer-events: none;
}

.read-progress[hidden] {
  display: none;
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime-400), var(--lime-200));
  transition: transform 0.12s linear;
}

/* ---------- 头部 ---------- */
.site-header {
  position: relative;
  isolation: isolate;
  color: var(--off-white-100);
  background:
    linear-gradient(158deg, #0A1A14 0%, #07130F 52%, #0D211A 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0%, rgba(200, 255, 61, 0.10) 16%, transparent 36%),
    linear-gradient(112deg, transparent 58%, rgba(255, 106, 43, 0.07) 72%, transparent 86%);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    repeating-linear-gradient(90deg, rgba(143, 166, 184, 0.07) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(143, 166, 184, 0.05) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(102deg, transparent 26%, #000 96%);
  mask-image: linear-gradient(102deg, transparent 26%, #000 96%);
}

.site-header.is-nav-open {
  border-bottom-color: var(--lime-line);
}

.header-shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(18px, 3vw, 28px) var(--gutter) clamp(14px, 2.4vw, 22px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--off-white-100);
  width: fit-content;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-slash {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--rock-500);
  line-height: 1;
}

.brand-code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  letter-spacing: 0.22em;
  color: var(--lime-400);
  padding: 3px 9px;
  border: 1px solid var(--lime-line);
  border-radius: 8px;
  background: rgba(200, 255, 61, 0.06);
  line-height: 1.4;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.brand-descriptor {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gray-blue-400);
  max-width: none;
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime-200);
  max-width: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-400);
  box-shadow: 0 0 10px rgba(200, 255, 61, 0.85);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--off-white-100);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--lime {
  background: var(--lime-400);
  border-color: var(--lime-400);
  color: var(--ink-900);
  box-shadow: 0 6px 22px rgba(200, 255, 61, 0.18);
}

.btn--lime:hover {
  background: var(--lime-200);
  border-color: var(--lime-200);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--off-white-100);
}

.btn--ghost:hover {
  border-color: var(--lime-400);
  color: var(--lime-200);
  background: rgba(200, 255, 61, 0.07);
}

.btn--orange {
  background: var(--lava-500);
  border-color: var(--lava-500);
  color: #1A0A02;
  box-shadow: 0 6px 20px rgba(255, 106, 43, 0.22);
}

.btn--orange:hover {
  background: #FF824E;
  border-color: #FF824E;
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--lime-line);
  background: rgba(200, 255, 61, 0.10);
  color: var(--lime-200);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(200, 255, 61, 0.18);
}

.nav-toggle__label {
  letter-spacing: 0.08em;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease),
    bottom 0.22s var(--ease);
}

.nav-toggle__bars::before {
  top: 0;
}

.nav-toggle__bars::after {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

/* ---------- 命令栏导航 ---------- */
.command-bar {
  position: relative;
  z-index: 1;
  display: block;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(200, 255, 61, 0.16);
}

.command-shell {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 10px var(--gutter) 12px;
}

.command-bar__hint {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray-blue-400);
  white-space: nowrap;
  max-width: none;
}

.command-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.command-list::-webkit-scrollbar {
  display: none;
}

.command-item {
  flex: none;
}

.command-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--muted-300);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.command-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-blue-400);
  transition: color 0.2s var(--ease);
}

.command-name {
  line-height: 1.4;
}

.command-link:hover {
  background: var(--moss-700);
  color: var(--off-white-100);
}

.command-link:hover .command-index {
  color: var(--lime-200);
}

.command-link[aria-current="page"] {
  background: rgba(200, 255, 61, 0.14);
  border-color: var(--lime-line);
  color: var(--lime-200);
}

.command-link[aria-current="page"] .command-index {
  color: var(--lime-400);
}

.command-link.is-anchor {
  position: relative;
  border-color: var(--lime-line);
  color: var(--lime-200);
}

.command-link.is-anchor .command-index {
  color: var(--lime-400);
}

.command-link.is-anchor::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime-400);
  box-shadow: 0 0 8px rgba(200, 255, 61, 0.9);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--off-white-100);
  background: linear-gradient(180deg, #0A1A14 0%, #07130F 72%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime-400), transparent);
  opacity: 0.6;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  pointer-events: none;
  background:
    radial-gradient(80% 120% at 88% 120%, rgba(200, 255, 61, 0.08), transparent 62%),
    radial-gradient(60% 100% at 8% 130%, rgba(255, 106, 43, 0.06), transparent 60%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(24px, 3vw, 34px);
}

.footer-lead {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: 0.06em;
  color: var(--off-white-100);
  max-width: none;
}

.footer-brand span {
  color: var(--lime-400);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.1vw, 2.5rem);
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: var(--off-white-100);
  max-width: 20ch;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: clamp(22px, 4vw, 48px);
  padding-block: clamp(26px, 4vw, 46px);
}

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

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-blue-400);
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-300);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-link::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--rock-500);
  transition: background-color 0.2s var(--ease), width 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--lime-200);
}

.footer-link:hover::before {
  width: 20px;
  background: var(--lime-400);
}

.footer-contact {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(30, 58, 47, 0.42);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  gap: 2px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gray-blue-400);
}

.contact-value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--off-white-100);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: clamp(18px, 2.4vw, 24px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gray-blue-400);
}

.footer-legal,
.footer-icp {
  max-width: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-link {
  color: var(--muted-300);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.legal-link:hover {
  color: var(--lime-200);
}

/* ---------- Bento ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 20px);
}

.bento {
  grid-column: span 12;
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.bento:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.bento--focus {
  background:
    radial-gradient(120% 150% at 92% 0%, rgba(200, 255, 61, 0.16), transparent 62%),
    var(--moss-700);
  border-color: rgba(200, 255, 61, 0.28);
}

.bento--accent {
  border-color: rgba(255, 106, 43, 0.42);
  background:
    radial-gradient(110% 130% at 8% 0%, rgba(255, 106, 43, 0.12), transparent 60%),
    var(--ink-800);
}

.bento__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gray-blue-400);
  margin-bottom: 10px;
}

.bento--focus .bento__index {
  color: var(--lime-400);
}

.bento__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.3;
  color: var(--off-white-100);
  margin-bottom: 8px;
}

.bento__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-300);
  max-width: 46ch;
}

/* ---------- 筛选 chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted-300);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--lime-400);
  color: var(--lime-200);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--lime-400);
  border-color: var(--lime-400);
  color: var(--ink-900);
}

.chip__count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

/* ---------- 紧凑数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  background: var(--moss-700);
  color: var(--lime-200);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-300);
  vertical-align: top;
}

.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--off-white-100);
  white-space: nowrap;
}

.data-table tbody tr:hover td {
  background: rgba(30, 58, 47, 0.42);
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--lime-400), rgba(143, 166, 184, 0.22) 70%);
}

.timeline-item {
  position: relative;
}

.timeline-node {
  position: absolute;
  left: -30px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--rock-500);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.timeline-item[data-state="current"] .timeline-node {
  border-color: var(--lime-400);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.16);
}

.timeline-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-800);
}

.timeline-version {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--lime-200);
  margin-bottom: 6px;
}

/* ---------- 折叠面板 ---------- */
.accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-800);
  overflow: hidden;
  transition: border-color 0.22s var(--ease);
}

.accordion-item.is-open {
  border-color: var(--lime-line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  color: var(--off-white-100);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger:hover {
  color: var(--lime-200);
}

.accordion-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-blue-400);
  margin-right: 10px;
}

.accordion-icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.accordion-icon::before {
  width: 8px;
  height: 1.5px;
}

.accordion-icon::after {
  width: 1.5px;
  height: 8px;
}

.accordion-item.is-open .accordion-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.accordion-panel {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-300);
}

.accordion-panel[hidden] {
  display: none;
}

/* ---------- 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(152deg, var(--moss-700) 0%, var(--ink-800) 58%, #0A1A14 100%);
  isolation: isolate;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(112deg, transparent 52%, rgba(200, 255, 61, 0.16) 66%, transparent 82%),
    repeating-linear-gradient(0deg, rgba(7, 19, 15, 0.22) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(7, 19, 15, 0.22) 0 1px, transparent 1px 38px);
  opacity: 0.85;
}

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

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

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

.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(7, 19, 15, 0.68);
  color: var(--off-white-100);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-blue-400);
}

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

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

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--rock-500);
}

.breadcrumb-list a {
  color: var(--muted-300);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

/* ---------- 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted-300);
}

.prose p {
  margin-bottom: 1.1em;
  max-width: none;
}

.prose h2 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  color: var(--off-white-100);
}

.prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1.1rem;
  color: var(--off-white-100);
}

.prose strong {
  color: var(--lime-200);
  font-weight: 700;
}

.surface-light .prose {
  color: #40574B;
}

.surface-light .prose h2,
.surface-light .prose h3 {
  color: var(--ink-900);
}

.surface-light .prose strong {
  color: #1E5C3E;
}

/* ---------- 显现 ---------- */
.reveal {
  opacity: 1;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .command-bar__hint {
    display: none;
  }
}

@media (max-width: 920px) {
  .header-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .header-actions {
    justify-content: space-between;
  }

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

  .command-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }

  .command-bar[data-open] {
    max-height: 640px;
  }

  .command-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-inline: var(--gutter);
  }

  .command-bar__hint {
    display: block;
    padding-top: 12px;
  }

  .command-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-bottom: 14px;
    overflow: visible;
  }

  .command-link {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
    border-radius: var(--r-sm);
  }
}

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .header-actions .btn--ghost {
    display: none;
  }

  .brand-code {
    letter-spacing: 0.16em;
  }

  .display-title {
    max-width: none;
  }

  .footer-tagline {
    max-width: none;
  }

  .timeline {
    padding-left: 26px;
  }

  .timeline-node {
    left: -26px;
  }
}

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

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .status-dot {
    animation: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .bento:hover {
    transform: none;
  }

  .read-progress__bar {
    transition: none;
  }
}
