/* ==========================================================================
   奇异果体育 · 数字看台 — 共享外壳样式 /assets/site.css
   蓝图网格 + 珠宝色分区 + 细边界材质
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }

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

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

a { color: inherit; text-decoration: none; }

input { font: inherit; }

/* ---------- 设计变量 ---------- */
:root {
  /* 色彩 */
  --kiwi: #3FA66B;
  --kiwi-soft: #63C08C;
  --deep: #0E3B36;
  --deep-2: #0A2C28;
  --night: #F7F3E8;
  --night-2: #FBF8F0;
  --seed: #2B1E18;
  --seed-soft: #55443A;
  --turf: #1F6B45;
  --lime: #C7F464;
  --lime-hi: #D8FF80;
  --orange: #E8752B;
  --blue: #3E7CB1;
  --wine: #7A2E46;
  --indigo: #4B3F72;
  --grid: #D7E4DC;

  /* 线材 */
  --line: 1px solid var(--grid);
  --line-soft: 1px solid rgba(43, 30, 24, 0.12);
  --line-invert: 1px solid rgba(247, 243, 232, 0.16);
  --lime-line: 1px solid rgba(199, 244, 100, 0.24);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;

  /* 尺寸 */
  --shell: 1180px;
  --read: 72ch;
  --r: 3px;
  --r-sm: 2px;
  --gap: 28px;

  /* 阴影 */
  --shadow-1: 0 1px 2px rgba(43, 30, 24, 0.05), 0 10px 26px -18px rgba(43, 30, 24, 0.45);
  --shadow-2: 0 2px 4px rgba(43, 30, 24, 0.06), 0 18px 40px -24px rgba(14, 59, 54, 0.55);

  /* 动效 */
  --ease: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--seed);
  background-color: var(--night);
  background-image:
    linear-gradient(to right, rgba(14, 59, 54, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 59, 54, 0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  background-position: 0 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--seed);
}

h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.75vw, 1.625rem); }

p { text-wrap: pretty; }

strong, b { font-weight: 700; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ---------- 可访问性 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  background: var(--lime);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  transition: top var(--ease);
}

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

/* ---------- 通用容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.shell--narrow {
  max-width: 900px;
}

/* ---------- 网格工具 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

/* ==========================================================================
   页头 · 紧凑命令栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--night);
  background: var(--deep);
  border-bottom: var(--lime-line);
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(199, 244, 100, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(199, 244, 100, 0.045) 1px, transparent 1px);
  background-size: 84px 100%, 100% 34px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav tools";
  align-items: center;
  gap: 0 26px;
  max-width: 1360px;
  min-height: 68px;
  margin-inline: auto;
  padding: 0 26px;
}

/* --- 品牌 --- */
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 6px 0;
  color: var(--night);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #EAF7C9 0 34%, var(--kiwi) 35% 66%, #2E7D52 67% 100%);
  box-shadow:
    0 0 0 1px rgba(199, 244, 100, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background-image: radial-gradient(circle, var(--deep) 0 1.5px, transparent 1.7px);
  background-size: 7px 7px;
  background-position: 1px 1px;
  opacity: 0.8;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--night);
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(199, 244, 100, 0.72);
}

/* --- 导航 --- */
.site-nav {
  grid-area: nav;
  justify-self: center;
  min-width: 0;
}

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

.nav-item { display: block; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(247, 243, 232, 0.76);
  border-bottom: 2px solid transparent;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: rgba(199, 244, 100, 0.5);
  transition: color var(--ease);
}

.nav-name { white-space: nowrap; }

.nav-link:hover {
  color: var(--night);
  background: rgba(199, 244, 100, 0.09);
}

.nav-link[aria-current="page"] {
  color: var(--night);
  border-bottom-color: var(--lime);
}

.nav-link[aria-current="page"] .nav-idx {
  color: var(--lime);
}

/* --- 移动按钮 --- */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--night);
  background: rgba(247, 243, 232, 0.07);
  border: var(--lime-line);
  border-radius: var(--r-sm);
  transition: background-color var(--ease), border-color var(--ease);
}

.nav-toggle:hover {
  background: rgba(199, 244, 100, 0.14);
  border-color: rgba(199, 244, 100, 0.5);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: var(--lime);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4.75px) 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(-4.75px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* --- 工具区 --- */
.header-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
  color: rgba(247, 243, 232, 0.82);
  background: rgba(247, 243, 232, 0.04);
  border: 1px solid rgba(247, 243, 232, 0.2);
  border-radius: var(--r-sm);
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.tool-chip:hover {
  color: var(--night);
  background: rgba(199, 244, 100, 0.12);
  border-color: rgba(199, 244, 100, 0.55);
}

.tool-chip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--kiwi-soft);
  box-shadow: 0 0 0 2px rgba(63, 166, 107, 0.25);
}

.tool-chip--search[aria-expanded="true"] {
  color: var(--deep);
  background: var(--lime);
  border-color: var(--lime);
}

.tool-chip--search[aria-expanded="true"] .tool-chip__dot {
  background: var(--deep);
  box-shadow: 0 0 0 2px rgba(14, 59, 54, 0.2);
}

.tool-chip--fav {
  color: #F5B78E;
  border-color: rgba(232, 117, 43, 0.5);
}

.tool-chip--fav:hover {
  color: var(--night);
  background: rgba(232, 117, 43, 0.9);
  border-color: var(--orange);
}

.tool-chip--ver {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(199, 244, 100, 0.9);
  border-color: rgba(199, 244, 100, 0.35);
  background: transparent;
  cursor: default;
}

.tool-chip--ver:hover {
  color: rgba(199, 244, 100, 0.9);
  background: transparent;
  border-color: rgba(199, 244, 100, 0.35);
}

/* --- 检索面板 --- */
.search-panel {
  background: var(--deep-2);
  border-top: var(--lime-line);
}

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

.search-panel__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  max-width: 1360px;
  margin-inline: auto;
  padding: 16px 26px 20px;
}

.search-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(199, 244, 100, 0.85);
  white-space: nowrap;
}

.search-input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 9px 13px;
  font-size: 14.5px;
  color: var(--night);
  background: rgba(247, 243, 232, 0.06);
  border: 1px solid rgba(199, 244, 100, 0.28);
  border-radius: var(--r-sm);
  transition: border-color var(--ease), background-color var(--ease);
}

.search-input::placeholder { color: rgba(247, 243, 232, 0.42); }

.search-input:focus {
  background: rgba(247, 243, 232, 0.1);
  border-color: var(--lime);
  outline: none;
}

.search-input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.search-hint {
  flex: 0 1 auto;
  font-size: 12.5px;
  color: rgba(247, 243, 232, 0.55);
}

.search-results {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-results:empty { display: none; }

.search-results a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--deep);
  background: var(--lime);
  border-radius: var(--r-sm);
  transition: background-color var(--ease), transform var(--ease);
}

.search-results a:hover {
  background: var(--lime-hi);
  transform: translateY(-1px);
}

/* --- 阅读进度 --- */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(247, 243, 232, 0.07);
  overflow: hidden;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--kiwi), var(--lime));
  transition: width 120ms linear;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 88px;
  color: rgba(247, 243, 232, 0.8);
  background: var(--deep);
  border-top: 3px solid var(--kiwi);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(199, 244, 100, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(199, 244, 100, 0.04) 1px, transparent 1px);
  background-size: 108px 100%, 100% 42px;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr;
  gap: 40px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 56px var(--gap) 44px;
}

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

.footer-col__title {
  margin-bottom: 18px;
  padding-bottom: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--lime);
  border-bottom: 1px solid rgba(199, 244, 100, 0.22);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo__mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #EAF7C9 0 38%, var(--kiwi) 39% 100%);
  box-shadow: 0 0 0 1px rgba(199, 244, 100, 0.5);
}

.footer-logo__text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--night);
}

.footer-list li {
  padding: 5px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(247, 243, 232, 0.75);
}

.footer-list a {
  color: rgba(247, 243, 232, 0.8);
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.footer-list a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-kv {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: rgba(247, 243, 232, 0.68);
}

.footer-kv .mono {
  color: rgba(199, 244, 100, 0.92);
  font-size: 13.5px;
}

.footer-feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--deep);
  background: var(--lime);
  border-radius: var(--r-sm);
  box-shadow: 0 6px 18px -12px rgba(199, 244, 100, 0.9);
  transition: background-color var(--ease), transform var(--ease);
}

.footer-feedback::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-feedback:hover {
  background: var(--lime-hi);
  transform: translateY(-1px);
}

.footer-list--contact li {
  font-size: 14px;
  color: rgba(247, 243, 232, 0.76);
}

.footer-list--contact .mono {
  color: rgba(247, 243, 232, 0.92);
  font-size: 13.5px;
}

.footer-hint {
  margin-top: 6px;
  font-size: 12.5px !important;
  color: rgba(247, 243, 232, 0.5) !important;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gap) 30px;
  font-size: 12.5px;
  color: rgba(247, 243, 232, 0.55);
  border-top: 1px solid rgba(247, 243, 232, 0.13);
}

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

.footer-legal a {
  color: rgba(247, 243, 232, 0.62);
  transition: color var(--ease);
}

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

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(247, 243, 232, 0.46);
}

.footer-copy { color: rgba(247, 243, 232, 0.62); }

/* ==========================================================================
   通用组件
   ========================================================================== */

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: transform var(--ease), background-color var(--ease),
              border-color var(--ease), color var(--ease);
}

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

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

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

.btn--solid {
  color: var(--night);
  background: var(--deep);
  border-color: var(--deep);
}

.btn--solid:hover { background: var(--turf); border-color: var(--turf); }

.btn--ghost {
  color: var(--seed);
  background: transparent;
  border-color: rgba(43, 30, 24, 0.28);
}

.btn--ghost:hover {
  color: var(--turf);
  border-color: var(--kiwi);
  background: rgba(63, 166, 107, 0.08);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 14.5px;
}

/* --- 面包屑 --- */
.breadcrumb {
  padding-block: 22px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--seed-soft);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(43, 30, 24, 0.32);
}

.breadcrumb a {
  color: var(--turf);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), color var(--ease);
}

.breadcrumb a:hover {
  color: var(--kiwi);
  border-bottom-color: var(--kiwi);
}

.breadcrumb [aria-current="page"] {
  color: var(--seed-soft);
  border-bottom: 1px solid var(--grid);
}

/* --- 章节头 --- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grid);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--turf);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--lime);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  letter-spacing: -0.025em;
}

.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--kiwi);
}

/* --- 正文容器 --- */
.prose {
  max-width: var(--read);
  font-size: 17px;
  line-height: 1.8;
  color: var(--seed);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  scroll-margin-top: 96px;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 1.25rem;
}

.prose ul, .prose ol {
  padding-left: 1.3em;
}

.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }

.prose li::marker { color: var(--kiwi); }

.prose a {
  color: var(--turf);
  border-bottom: 1px solid var(--kiwi);
  transition: color var(--ease), border-color var(--ease);
}

.prose a:hover {
  color: var(--kiwi);
  border-bottom-color: var(--lime);
}

.prose blockquote {
  padding: 18px 22px;
  font-family: var(--font-serif);
  font-size: 1.1em;
  color: var(--indigo);
  background: rgba(75, 63, 114, 0.06);
  border-left: 3px solid var(--indigo);
}

/* --- 卡片 --- */
.card {
  position: relative;
  padding: 22px;
  color: var(--seed);
  background: var(--night-2);
  border: 1px solid var(--grid);
  border-radius: var(--r);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--kiwi);
  box-shadow: var(--shadow-1);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card__meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--seed-soft);
}

/* --- 标签编码 --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}

.tag--home {
  color: #A8490F;
  background: rgba(232, 117, 43, 0.14);
  border-color: rgba(232, 117, 43, 0.42);
}

.tag--away {
  color: #2A5C89;
  background: rgba(62, 124, 177, 0.14);
  border-color: rgba(62, 124, 177, 0.42);
}

.tag--fav {
  color: var(--deep);
  background: var(--lime);
  border-color: var(--lime);
}

/* --- 图片容器基础（页面阶段放置占位或图片） --- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--grid);
  border-radius: var(--r);
  background-color: var(--night-2);
  background-image:
    repeating-linear-gradient(135deg, rgba(63, 166, 107, 0.1) 0 1px, transparent 1px 12px),
    linear-gradient(to bottom right, rgba(215, 228, 220, 0.5), transparent 60%);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.media:hover > img { transform: scale(1.02); }

.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--thumb { aspect-ratio: 4 / 3; }

.media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--seed-soft);
}

/* --- 进入视口显现 --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 520ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 20px 12px;
    min-height: 0;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

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

  .header-tools {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .header-tools::-webkit-scrollbar { display: none; }

  .site-nav {
    order: 4;
    justify-self: stretch;
    display: none;
    flex: 1 1 100%;
    width: 100%;
    padding-top: 10px;
    border-top: var(--lime-line);
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 8px;
    font-size: 17px;
    border-bottom: 1px solid rgba(247, 243, 232, 0.1);
    border-left: 2px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(247, 243, 232, 0.1);
    border-left-color: var(--lime);
    background: rgba(199, 244, 100, 0.08);
  }

  .search-panel__inner { padding: 14px 20px 18px; }

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

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

@media (max-width: 720px) {
  :root { --gap: 20px; }

  body { font-size: 16px; }

  .brand-name { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-sub { letter-spacing: 0.2em; font-size: 9px; }

  .tool-chip { font-size: 12px; padding: 6px 9px; }

  .search-panel__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-hint { order: 3; }

  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 42px var(--gap) 32px;
    gap: 30px;
  }

  .footer-col--contact { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 26px;
  }

  .site-footer { margin-top: 64px; }

  .btn { width: 100%; justify-content: center; }
  .btn--inline { width: auto; }
}

@media (max-width: 380px) {
  .nav-toggle__label { display: none; }
  .tool-chip--ver { display: none; }
}

/* ==========================================================================
   降低动效偏好
   ========================================================================== */
@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;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .btn:hover,
  .media:hover > img,
  .footer-feedback:hover,
  .search-results a:hover {
    transform: none !important;
  }
}
