/* ==========================================================================
   奇异果看台 · 全站共享样式 /assets/site.css
   近单色绿系 · 大圆角堆叠面板 · 斜线动势 · 等宽数据字体
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

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

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

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

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}

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

[hidden] { display: none !important; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --kg-flesh: #6FBF3A;
  --kg-flesh-deep: #3F8B1E;
  --kg-moss: #DCE8CE;
  --kg-cream: #F5F8EE;
  --kg-neon: #C6FF3D;
  --kg-peel: #6B4A2F;
  --kg-peel-deep: #2E1F14;
  --kg-ink: #101C12;
  --kg-orange: #FF7A2F;
  --kg-mist: #8A9A85;

  --kg-shell: 1200px;
  --kg-shell-wide: 1360px;

  --kg-font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --kg-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --kg-r-sm: 16px;
  --kg-r-md: 24px;
  --kg-r-lg: 32px;
  --kg-r-xl: clamp(28px, 4vw, 56px);
  --kg-r-pill: 999px;

  --kg-ease: cubic-bezier(0.22, 0.75, 0.3, 1);
  --kg-shadow: 0 18px 44px rgba(16, 28, 18, 0.14);
}

/* 3. 基础排版 ------------------------------------------------------------- */
body {
  font-family: var(--kg-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--kg-ink);
  background-color: var(--kg-cream);
  background-image:
    radial-gradient(circle at 88% 4%, rgba(111, 191, 58, 0.16), transparent 42%),
    radial-gradient(circle at 6% 92%, rgba(107, 74, 47, 0.10), transparent 46%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

strong, b { font-weight: 800; }

:where(a, button, [role="tab"], [tabindex]):focus-visible {
  outline: 2px solid var(--kg-neon);
  outline-offset: 2px;
  border-radius: 8px;
}

::selection {
  background: var(--kg-neon);
  color: var(--kg-ink);
}

/* 4. 容器与工具 ----------------------------------------------------------- */
.kg-shell {
  width: 100%;
  max-width: var(--kg-shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.kg-shell--wide { max-width: var(--kg-shell-wide); }

.kg-main { display: block; }

.kg-section { padding-block: clamp(32px, 5vw, 80px); }

.kg-stack > * + * { margin-top: clamp(12px, 2vw, 20px); }

.kg-measure { max-width: 64ch; }

.kg-muted { color: var(--kg-mist); }

.kg-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kg-mist);
}

.kg-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
  color: var(--kg-peel-deep);
  max-width: 62ch;
}

.kg-divider {
  height: 1px;
  border: 0;
  background: var(--kg-moss);
}

.kg-slash {
  display: block;
  width: 68px;
  height: 6px;
  border-radius: var(--kg-r-pill);
  background: var(--kg-neon);
  transform: skewX(-14deg);
}

.kg-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: var(--kg-r-pill);
  background: var(--kg-moss);
  color: var(--kg-peel-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.kg-tag--hot { background: rgba(255, 122, 47, 0.16); color: #B3491A; }

.kg-prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
}

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

.kg-prose h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin-top: 1.6em;
}

.kg-prose h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-top: 1.4em;
}

.kg-prose ul,
.kg-prose ol { padding-left: 1.2em; list-style: disc; }

.kg-prose li + li { margin-top: 0.4em; }

/* 5. Skip link ------------------------------------------------------------ */
.kg-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--kg-r-pill);
  background: var(--kg-ink);
  color: var(--kg-neon);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s var(--kg-ease);
}

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

/* 6. 页头 ----------------------------------------------------------------- */
.kg-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding-block: clamp(10px, 2vw, 22px);
}

.kg-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 28, 18, 0.62), rgba(16, 28, 18, 0));
  opacity: 1;
  transition: opacity 0.3s var(--kg-ease);
  pointer-events: none;
}

.kg-header[data-scrolled]::before { opacity: 0; }

.kg-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: var(--kg-r-pill);
  color: var(--kg-cream);
  transition:
    background-color 0.3s var(--kg-ease),
    border-color 0.3s var(--kg-ease),
    color 0.3s var(--kg-ease),
    padding 0.3s var(--kg-ease),
    box-shadow 0.3s var(--kg-ease),
    border-radius 0.3s var(--kg-ease);
}

.kg-header[data-scrolled] .kg-header__inner,
.kg-header[data-open] .kg-header__inner {
  padding: 6px 10px 6px 20px;
  background: rgba(245, 248, 238, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--kg-moss);
  color: var(--kg-ink);
  box-shadow: var(--kg-shadow);
}

/* 阅读进度线 */
.kg-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(198, 255, 61, 0.16);
  pointer-events: none;
}

.kg-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--kg-neon);
}

/* 品牌 */
.kg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 4px 6px;
}

.kg-brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
  height: 24px;
}

.kg-brand__mark i {
  display: block;
  width: 4px;
  border-radius: var(--kg-r-pill);
  background: var(--kg-flesh);
}

.kg-brand__mark i:nth-child(1) { height: 13px; opacity: 0.7; }
.kg-brand__mark i:nth-child(2) { height: 22px; background: var(--kg-neon); }
.kg-brand__mark i:nth-child(3) { height: 16px; }

.kg-brand__text { display: grid; gap: 1px; }

.kg-brand__name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.kg-brand__tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--kg-mist);
  line-height: 1.3;
}

.kg-header[data-scrolled] .kg-brand__tagline { color: var(--kg-peel); }

/* 导航 */
.kg-nav { flex: 1 1 auto; }

.kg-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.kg-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--kg-r-pill);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s var(--kg-ease), color 0.2s var(--kg-ease);
}

.kg-nav__link:hover { background: rgba(198, 255, 61, 0.22); }

.kg-nav__link[aria-current="page"] {
  background: var(--kg-flesh);
  color: var(--kg-ink);
  font-weight: 800;
}

/* 右侧动作区 */
.kg-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.kg-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 14px;
  border-radius: var(--kg-r-pill);
  border: 1px solid rgba(198, 255, 61, 0.55);
  background: rgba(198, 255, 61, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kg-status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kg-neon);
}

.kg-status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--kg-neon);
  animation: kg-pulse 2.2s var(--kg-ease) infinite;
}

@keyframes kg-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 7. 按钮 ----------------------------------------------------------------- */
.kg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--kg-r-pill);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--kg-ease),
    color 0.2s var(--kg-ease),
    border-color 0.2s var(--kg-ease),
    transform 0.12s var(--kg-ease);
}

.kg-btn:active { transform: scale(0.97); }

.kg-btn--solid { background: var(--kg-flesh); color: var(--kg-ink); }
.kg-btn--solid:hover { background: var(--kg-flesh-deep); color: #fff; }

.kg-btn--ghost { border-color: currentColor; background: transparent; }
.kg-btn--ghost:hover { background: rgba(198, 255, 61, 0.2); }

.kg-btn--ink { background: var(--kg-ink); color: var(--kg-neon); }
.kg-btn--ink:hover { background: var(--kg-peel-deep); }

/* 移动端栏目按钮 */
.kg-navtoggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 16px;
  border: 1px solid currentColor;
  border-radius: var(--kg-r-pill);
  font-size: 14px;
  font-weight: 800;
}

.kg-navtoggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.kg-navtoggle__bars::before,
.kg-navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--kg-ease);
}

.kg-navtoggle__bars::before { top: -6px; }
.kg-navtoggle__bars::after { top: 6px; }

.kg-navtoggle[aria-expanded="true"] .kg-navtoggle__bars { background: transparent; }
.kg-navtoggle[aria-expanded="true"] .kg-navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.kg-navtoggle[aria-expanded="true"] .kg-navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 8. 堆叠面板与章节 ------------------------------------------------------- */
.kg-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 56px);
  margin-block: clamp(16px, 3vw, 36px);
  border-radius: var(--kg-r-xl);
  background: var(--kg-cream);
}

.kg-panel--wash { background: var(--kg-moss); }
.kg-panel--flesh { background: var(--kg-flesh); color: var(--kg-ink); }
.kg-panel--ink { background: var(--kg-ink); color: var(--kg-cream); }
.kg-panel--peel { background: var(--kg-peel-deep); color: var(--kg-cream); }

.kg-panel--offset {
  margin-left: auto;
  max-width: calc(100% - clamp(0px, 7vw, 104px));
}

.kg-panel--offset-start {
  margin-right: auto;
  max-width: calc(100% - clamp(0px, 7vw, 104px));
}

.kg-panel--ink .kg-eyebrow,
.kg-panel--peel .kg-eyebrow { color: var(--kg-neon); }

.kg-panel--ink .kg-lede,
.kg-panel--peel .kg-lede { color: var(--kg-moss); }

.kg-panel--ink .kg-divider,
.kg-panel--peel .kg-divider { background: rgba(245, 248, 238, 0.2); }

.kg-chapter {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 32px);
  align-items: start;
}

.kg-chapter__num {
  font-family: var(--kg-font-mono);
  font-weight: 200;
  font-size: clamp(64px, 11vw, 160px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--kg-flesh-deep);
}

.kg-panel--ink .kg-chapter__num,
.kg-panel--peel .kg-chapter__num,
.kg-panel--flesh .kg-chapter__num { color: var(--kg-neon); }

.kg-chapter__title {
  font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.kg-chapter__body { margin-top: clamp(12px, 1.8vw, 22px); }

/* 9. 网格与数据卡 --------------------------------------------------------- */
.kg-grid { display: grid; gap: clamp(12px, 2vw, 24px); }
.kg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kg-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.kg-span-3 { grid-column: span 3; }
.kg-span-4 { grid-column: span 4; }
.kg-span-5 { grid-column: span 5; }
.kg-span-6 { grid-column: span 6; }
.kg-span-7 { grid-column: span 7; }
.kg-span-8 { grid-column: span 8; }
.kg-span-12 { grid-column: span 12; }

.kg-card {
  padding: 20px 22px;
  border: 1px solid var(--kg-moss);
  border-radius: var(--kg-r-md);
  background: #fff;
  transition:
    transform 0.2s var(--kg-ease),
    box-shadow 0.2s var(--kg-ease),
    border-color 0.2s var(--kg-ease);
}

.kg-card:hover {
  transform: translateY(-4px);
  border-color: var(--kg-flesh);
  box-shadow: var(--kg-shadow);
}

.kg-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--kg-mist);
  text-transform: uppercase;
}

.kg-card__value {
  display: block;
  margin-top: 6px;
  font-family: var(--kg-font-mono);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.kg-card__foot {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--kg-mist);
}

.kg-panel--ink .kg-card,
.kg-panel--peel .kg-card {
  background: rgba(245, 248, 238, 0.07);
  border-color: rgba(245, 248, 238, 0.18);
  color: var(--kg-cream);
}

.kg-panel--ink .kg-card__label,
.kg-panel--ink .kg-card__foot,
.kg-panel--peel .kg-card__label,
.kg-panel--peel .kg-card__foot { color: rgba(220, 232, 206, 0.72); }

.kg-panel--ink .kg-card__value,
.kg-panel--peel .kg-card__value { color: var(--kg-neon); }

/* 10. 图例式坐标索引 ------------------------------------------------------ */
.kg-index {
  display: grid;
  border-top: 1px solid var(--kg-moss);
}

.kg-index__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  min-height: 52px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--kg-moss);
  transition: background-color 0.2s var(--kg-ease);
}

.kg-index__row:hover { background: rgba(220, 232, 206, 0.55); }

.kg-index__coord {
  font-family: var(--kg-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--kg-peel);
}

.kg-index__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.kg-index__meta {
  font-size: 13px;
  color: var(--kg-mist);
  text-align: right;
}

.kg-panel--ink .kg-index,
.kg-panel--peel .kg-index { border-top-color: rgba(245, 248, 238, 0.22); }

.kg-panel--ink .kg-index__row,
.kg-panel--peel .kg-index__row { border-bottom-color: rgba(245, 248, 238, 0.18); }

.kg-panel--ink .kg-index__coord,
.kg-panel--peel .kg-index__coord { color: var(--kg-neon); }

.kg-panel--ink .kg-index__meta,
.kg-panel--peel .kg-index__meta { color: rgba(220, 232, 206, 0.75); }

/* 11. 分段切换 / 标签页 --------------------------------------------------- */
.kg-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(107, 74, 47, 0.16);
  border-radius: var(--kg-r-pill);
  background: var(--kg-moss);
}

.kg-seg__tab {
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--kg-r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--kg-peel-deep);
  transition: background-color 0.2s var(--kg-ease), color 0.2s var(--kg-ease);
}

.kg-seg__tab:hover { background: rgba(245, 248, 238, 0.7); }

.kg-seg__tab[aria-selected="true"] {
  background: var(--kg-ink);
  color: var(--kg-neon);
}

.kg-seg__panel { padding-top: clamp(16px, 2.4vw, 28px); }

/* 12. 图片容器基础规则 ---------------------------------------------------- */
.kg-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: clamp(20px, 3vw, 36px);
  background:
    linear-gradient(135deg, rgba(111, 191, 58, 0.35), rgba(220, 232, 206, 0.85)),
    var(--kg-moss);
}

.kg-media img,
.kg-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.kg-media__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: var(--kg-r-pill);
  background: rgba(16, 28, 18, 0.74);
  color: var(--kg-neon);
  font-family: var(--kg-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 13. 面包屑 -------------------------------------------------------------- */
.kg-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 10px;
  font-size: 13px;
  color: var(--kg-peel);
}

.kg-crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  font-weight: 700;
  color: var(--kg-peel-deep);
}

.kg-crumb a:hover { color: var(--kg-flesh-deep); }

.kg-crumb__sep { color: var(--kg-mist); }

/* 14. 显现与返回顶部 ------------------------------------------------------ */
.kg-js .kg-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 0.32s var(--kg-ease) var(--kg-delay, 0ms),
    transform 0.32s var(--kg-ease) var(--kg-delay, 0ms);
  will-change: opacity, transform;
}

.kg-js .kg-reveal.is-in {
  opacity: 1;
  transform: none;
}

.kg-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(198, 255, 61, 0.6);
  border-radius: 50%;
  background: var(--kg-ink);
  color: var(--kg-neon);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.24s var(--kg-ease),
    transform 0.24s var(--kg-ease),
    visibility 0.24s;
}

.kg-top[data-show] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.kg-top__arrow {
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}

/* 15. 页脚 ---------------------------------------------------------------- */
.kg-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 120px);
  padding-block: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 40px);
  border-radius: var(--kg-r-xl) var(--kg-r-xl) 0 0;
  background: var(--kg-ink);
  color: var(--kg-cream);
}

.kg-footer::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -12%;
  width: min(560px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(111, 191, 58, 0.42), transparent 68%);
  pointer-events: none;
}

.kg-footer::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 60%;
  height: 150%;
  background: repeating-linear-gradient(
    105deg,
    rgba(198, 255, 61, 0.09) 0 10px,
    transparent 10px 34px
  );
  transform: skewX(-14deg);
  pointer-events: none;
}

.kg-footer__inner { position: relative; z-index: 1; }

.kg-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(24px, 4vw, 48px);
  border-bottom: 1px solid rgba(245, 248, 238, 0.16);
}

.kg-footer__eyebrow {
  font-family: var(--kg-font-mono);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--kg-neon);
}

.kg-footer__note {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--kg-moss);
}

.kg-footer__coord {
  margin-top: 18px;
  font-family: var(--kg-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--kg-mist);
}

.kg-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.kg-footer__coltitle {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kg-flesh);
}

.kg-footer__list { margin-top: 8px; }

.kg-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--kg-cream);
  transition: color 0.2s var(--kg-ease), transform 0.2s var(--kg-ease);
}

.kg-footer__list a:hover {
  color: var(--kg-neon);
  transform: translateX(4px);
}

.kg-footer__contact {
  display: grid;
  gap: 6px;
  padding-block: clamp(20px, 3vw, 32px);
}

.kg-footer__line {
  font-size: 14px;
  line-height: 1.75;
  color: var(--kg-moss);
}

.kg-footer__legal {
  padding-top: clamp(16px, 2.4vw, 24px);
  border-top: 1px solid rgba(245, 248, 238, 0.16);
}

.kg-footer__line--meta {
  font-family: var(--kg-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--kg-mist);
}

/* 16. 响应式 -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .kg-navtoggle { display: inline-flex; }

  .kg-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex: 0 0 auto;
    padding: 12px;
    border: 1px solid var(--kg-moss);
    border-radius: var(--kg-r-lg);
    background: var(--kg-cream);
    color: var(--kg-ink);
    box-shadow: 0 24px 60px rgba(16, 28, 18, 0.26);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition:
      opacity 0.24s var(--kg-ease),
      transform 0.24s var(--kg-ease),
      visibility 0.24s;
  }

  .kg-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .kg-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .kg-nav__link {
    min-height: 48px;
    padding-inline: 16px;
    border-radius: var(--kg-r-sm);
    font-size: 16px;
  }

  .kg-header[data-scrolled] .kg-header__inner { padding-inline: 14px; }

  .kg-footer__top { grid-template-columns: 1fr; }

  .kg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg-span-3, .kg-span-4, .kg-span-5 { grid-column: span 6; }
  .kg-span-7, .kg-span-8 { grid-column: span 12; }
}

@media (max-width: 720px) {
  .kg-brand__tagline { display: none; }
  .kg-status { display: none; }

  .kg-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .kg-chapter__num { font-size: clamp(56px, 20vw, 88px); }

  .kg-panel--offset,
  .kg-panel--offset-start {
    max-width: 100%;
    margin-inline: 0;
  }

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

  .kg-grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kg-span-3, .kg-span-4, .kg-span-5, .kg-span-6,
  .kg-span-7, .kg-span-8 { grid-column: span 6; }

  .kg-index__row {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 2px;
  }

  .kg-index__meta {
    grid-column: 2;
    text-align: left;
  }

  .kg-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg-footer__legal { padding-bottom: 8px; }
}

@media (max-width: 420px) {
  .kg-header__actions .kg-btn { padding-inline: 16px; font-size: 14px; }
  .kg-navtoggle { padding-inline: 14px; }
  .kg-navtoggle__label { display: none; }
}

/* 17. 减弱动效 ------------------------------------------------------------ */
@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;
  }

  .kg-js .kg-reveal {
    opacity: 1;
    transform: none;
  }

  .kg-progress__bar { transition: none; }
}
