/* ==========================================================================
   KUNG FU ATLAS — 设计系统
   Apple Liquid Glass × 深色青蓝未来科技
   ========================================================================== */

:root {
  --bg: #07111d;
  --bg-2: #0b1b2c;
  --bg-3: #0e2338;
  --cyan: #38c8f4;
  --ice: #82e4ff;
  --white: #ffffff;
  --muted: #91a6b8;
  --muted-2: #6d8497;
  --line: rgba(130, 228, 255, 0.14);
  --line-strong: rgba(130, 228, 255, 0.28);
  --glass: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 45%, rgba(56, 200, 244, 0.05));
  --glass-2: linear-gradient(160deg, rgba(130, 228, 255, 0.1), rgba(11, 27, 44, 0.55));
  --shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.85);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shell: 1240px;
  --gutter: clamp(18px, 4.4vw, 52px);
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 720px at 82% -12%, rgba(56, 200, 244, 0.13), transparent 62%),
    radial-gradient(900px 640px at 4% 2%, rgba(28, 74, 110, 0.26), transparent 64%),
    radial-gradient(1200px 900px at 50% 118%, rgba(10, 46, 70, 0.55), transparent 68%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(56, 200, 244, 0.32); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: 0.01em; }
h1, h2, h3 { font-family: var(--serif); }
ul, ol { margin: 0; padding-left: 1.2em; }
li { margin: 0.35em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

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

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 999;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ice); color: #04121c; font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 14px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 108px); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

/* ---------- 通用玻璃 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.28), var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  position: relative;
  overflow: hidden;
}
.glass::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09), transparent 34%, transparent 68%, rgba(56, 200, 244, 0.06));
  pointer-events: none;
  opacity: 0.8;
}
.glass > * { position: relative; z-index: 1; }

.glass-hover { transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s; }
.glass-hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 36px 80px -34px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(56, 200, 244, 0.08);
}

/* ---------- 顶部导航 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7, 17, 29, 0.62);
  border-bottom: 1px solid rgba(130, 228, 255, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}
.site-head__in {
  max-width: var(--shell); margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  display: block; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 200, 244, 0.35));
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.14em; }
.brand__sub { font-size: 10px; color: var(--muted); letter-spacing: 0.22em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 0; flex-wrap: nowrap; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 13.5px; color: var(--muted);
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav a:hover { color: var(--white); background: rgba(130, 228, 255, 0.08); }
.nav a[aria-current="page"] { color: var(--bg); background: linear-gradient(120deg, var(--ice), var(--cyan)); font-weight: 600; }
.nav__search {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; color: var(--muted);
}
.nav__search:hover { color: var(--white); border-color: var(--line-strong); }
.nav__search kbd {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px;
}
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); margin-left: auto; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ice); margin: 4px auto; transition: 0.3s; }

/* ---------- 按钮与标签 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  border: 1px solid rgba(130, 228, 255, 0.35);
  background: linear-gradient(135deg, rgba(130, 228, 255, 0.16), rgba(56, 200, 244, 0.07));
  color: var(--ice);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(56, 200, 244, 0.7); background: linear-gradient(135deg, rgba(130, 228, 255, 0.24), rgba(56, 200, 244, 0.12)); }
.btn--solid { background: linear-gradient(120deg, var(--ice), var(--cyan)); color: #04141f; border-color: transparent; }
.btn--solid:hover { box-shadow: 0 18px 40px -16px rgba(56, 200, 244, 0.75); }
.btn--ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn--sm { padding: 8px 15px; font-size: 12.5px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ice);
  border: 1px solid rgba(130, 228, 255, 0.22);
  background: rgba(56, 200, 244, 0.07);
}
.chip--muted { color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.chip--warm { color: #ffd08a; border-color: rgba(255, 208, 138, 0.3); background: rgba(255, 190, 90, 0.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 6px;
  border: 1px solid;
}
.badge--record { color: #8df0c8; border-color: rgba(80, 220, 170, 0.3); background: rgba(50, 200, 150, 0.09); }
.badge--tradition { color: #ffcf8f; border-color: rgba(255, 190, 110, 0.3); background: rgba(255, 180, 80, 0.08); }
.badge--unverified { color: #ff9f9f; border-color: rgba(255, 140, 140, 0.3); background: rgba(255, 110, 110, 0.08); }
.badge--3d { color: #b8a6ff; border-color: rgba(160, 140, 255, 0.32); background: rgba(130, 110, 255, 0.1); }

.eyebrow {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 4vw, 44px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.65rem, 3.1vw, 2.5rem); font-weight: 500; letter-spacing: 0.02em; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; font-size: 14px; }
.section-head__link { color: var(--ice); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.section-head__link:hover { gap: 12px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(52px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__ink { position: absolute; inset: auto 0 0 0; width: 100%; height: 78%; opacity: 0.5; pointer-events: none; }
.hero__ink .far { fill: rgba(56, 200, 244, 0.05); }
.hero__ink .mid { fill: rgba(30, 92, 130, 0.16); }
.hero__ink .near { fill: rgba(7, 17, 29, 0.9); }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(130, 228, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 228, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(720px 420px at 50% 20%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 420px at 50% 20%, #000 10%, transparent 78%);
}
.hero__in { position: relative; z-index: 2; }
.hero__kicker { display: flex; align-items: center; gap: 12px; color: var(--cyan); font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 22px; }
.hero__kicker::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 6.2rem);
  font-weight: 500; line-height: 1.02; letter-spacing: 0.03em;
  margin: 0 0 10px;
}
.hero h1 .en { display: block; font-family: var(--sans); font-size: clamp(0.62rem, 1.5vw, 0.95rem); letter-spacing: 0.5em; color: var(--muted); margin-top: 18px; font-weight: 400; }
.hero h1 .grad {
  background: linear-gradient(100deg, #ffffff 12%, #d9f7ff 40%, var(--ice) 66%, var(--cyan) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 59ch; color: var(--muted); font-size: clamp(14px, 1.5vw, 16px); margin: 22px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.hero__stat { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.hero__stat b { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--white); line-height: 1.1; }
.hero__stat span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; }
.hero__aside { position: absolute; right: 0; top: 10%; width: min(34%, 380px); aspect-ratio: 1; pointer-events: none; }
.hero__aside .ring { position: absolute; inset: 0; border: 1px solid rgba(130, 228, 255, 0.16); border-radius: 50%; animation: spin 46s linear infinite; }
.hero__aside .ring:nth-child(2) { inset: 12%; border-style: dashed; animation-duration: 62s; animation-direction: reverse; }
.hero__aside .ring:nth-child(3) { inset: 26%; border-color: rgba(130, 228, 255, 0.1); }
.hero__aside .core {
  position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(130, 228, 255, 0.5), rgba(56, 200, 244, 0.08) 60%, transparent 72%);
  filter: blur(1px);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 首页搜索 ---------- */
.searchbar { position: relative; max-width: 640px; }
.searchbar form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 999px; }
.searchbar input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font-size: 15px; color: var(--white);
}
.searchbar input::placeholder { color: var(--muted-2); }
.searchbar .hint { position: absolute; top: calc(100% + 14px); left: 8px; right: 8px; padding: 8px; border-radius: var(--r-md); z-index: 40; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 8px; }
.suggest button { font-size: 12px; color: var(--muted); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.suggest button:hover { color: var(--white); border-color: var(--line-strong); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.card { padding: clamp(18px, 2vw, 26px); border-radius: var(--r-md); display: flex; flex-direction: column; min-height: 100%; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card__idx { font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.1em; }
.card h3 { font-size: clamp(1.15rem, 1.7vw, 1.42rem); font-weight: 600; letter-spacing: 0.04em; }
.card h3 a:hover { color: var(--ice); }
.card__alias { color: var(--muted-2); font-size: 11.5px; margin-top: 4px; letter-spacing: 0.04em; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 10px 0 16px; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.card__go { font-size: 12px; color: var(--ice); display: inline-flex; align-items: center; gap: 6px; }
.card__go::after { content: "→"; transition: transform 0.3s; }
.card:hover .card__go::after { transform: translateX(4px); }

.tile { padding: 20px; border-radius: var(--r-md); display: flex; align-items: center; gap: 14px; }
.tile__icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(56, 200, 244, 0.1); border: 1px solid rgba(130, 228, 255, 0.2); }
.tile__icon svg { width: 22px; height: 22px; }
.tile b { display: block; font-size: 14px; font-weight: 600; }
.tile span { font-size: 11.5px; color: var(--muted); }

/* ---------- 列表 & 详情 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); padding: 22px 0 0; }
.breadcrumb a:hover { color: var(--ice); }
.breadcrumb span { opacity: 0.5; }

.page-head { padding: clamp(28px, 4vw, 54px) 0 clamp(22px, 3vw, 36px); max-width: 74ch; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: 0.03em; }
.page-head .lead { color: var(--muted); margin-top: 16px; font-size: 15px; }

.detail-hero { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding: clamp(24px, 4vw, 46px) 0; }
.detail-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: 0.04em; }
.detail-hero__alias { color: var(--muted); font-size: 13px; margin-top: 6px; }
.detail-hero__summary { color: var(--muted); margin-top: 18px; max-width: 66ch; }
.detail-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.side-card { padding: 22px; border-radius: var(--r-md); }
.side-card h2 { font-size: 13px; letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; font-family: var(--sans); font-weight: 500; margin-bottom: 12px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(130, 228, 255, 0.11); font-size: 12.5px; }
.facts li:last-child { border-bottom: 0; }
.facts dt, .facts .k { color: var(--muted-2); }
.facts .v { color: var(--white); }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 44px); align-items: start; padding-bottom: 60px; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.62rem); margin: 34px 0 12px; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: linear-gradient(180deg, var(--ice), var(--cyan)); }
.prose h3 { font-size: 15px; margin: 22px 0 8px; color: var(--ice); font-family: var(--sans); font-weight: 600; }
.prose p { color: #c6d6e3; font-size: 14.5px; line-height: 1.95; }
.prose ul, .prose ol { color: #c6d6e3; font-size: 14px; }
.prose li::marker { color: var(--cyan); }
.prose .note { color: var(--muted); font-size: 12.5px; }
.prose a { color: var(--ice); border-bottom: 1px solid rgba(130, 228, 255, 0.3); }

.callout { border-radius: var(--r-md); padding: 18px 20px; margin: 18px 0; border: 1px solid; font-size: 13.5px; }
.callout__title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--tradition { border-color: rgba(255, 190, 110, 0.26); background: rgba(255, 180, 80, 0.055); }
.callout--tradition .callout__title { color: #ffcf8f; }
.callout--unverified { border-color: rgba(255, 140, 140, 0.26); background: rgba(255, 110, 110, 0.05); }
.callout--unverified .callout__title { color: #ff9f9f; }
.callout--info { border-color: rgba(130, 228, 255, 0.2); background: rgba(56, 200, 244, 0.05); }
.callout--info .callout__title { color: var(--ice); }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; margin: 16px 0; }
.kv-grid div { border-left: 1px solid var(--line); padding-left: 12px; }
.kv-grid .k { display: block; color: var(--muted-2); font-size: 11px; letter-spacing: 0.1em; }
.kv-grid .v { font-size: 13.5px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 0; }
.pager__link { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 27, 44, 0.5); }
.pager__link span { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); }
.pager__link b { font-weight: 500; font-size: 14px; color: var(--white); }
.pager__link:not(.pager__link--off):hover { border-color: var(--line-strong); background: rgba(130, 228, 255, 0.06); }
.pager__link--off { opacity: 0.4; }
@media (max-width: 620px) { .pager { grid-template-columns: 1fr; } }
.relation { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.relation a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.relation a:hover { color: var(--white); border-color: var(--line-strong); background: rgba(130, 228, 255, 0.06); }

.sources { list-style: none; padding: 0; margin: 12px 0 0; }
.sources li { padding: 12px 0; border-bottom: 1px dashed rgba(130, 228, 255, 0.12); font-size: 12.5px; color: var(--muted); }
.sources li:last-child { border-bottom: 0; }
.sources .type { font-size: 10px; letter-spacing: 0.1em; color: var(--cyan); border: 1px solid rgba(130, 228, 255, 0.22); border-radius: 4px; padding: 1px 5px; margin-right: 8px; }
.sources a { color: #c6d6e3; border-bottom: 1px solid var(--line-strong); }

.toc { position: sticky; top: 100px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); padding: 7px 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.toc a:hover { color: var(--ice); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid rgba(130, 228, 255, 0.09); }
th { color: var(--muted); font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; background: rgba(255, 255, 255, 0.025); }
tr:last-child td { border-bottom: 0; }
td a { color: var(--ice); }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--cyan), rgba(56, 200, 244, 0.05)); }
.timeline__item { position: relative; padding: 0 0 30px 18px; }
.timeline__item::before {
  content: ""; position: absolute; left: -24px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--cyan); box-shadow: 0 0 16px rgba(56, 200, 244, 0.5);
}
.timeline__year { font-family: var(--mono); font-size: 11.5px; color: var(--cyan); letter-spacing: 0.08em; }
.timeline h3 { font-size: 16px; margin: 4px 0 6px; }
.timeline p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- 搜索页 ---------- */
.search-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: 70px; }
.filter-group { padding: 18px 20px; border-radius: var(--r-md); margin-bottom: 14px; }
.filter-group h3 { font-size: 11px; letter-spacing: 0.16em; color: var(--cyan); margin-bottom: 10px; font-family: var(--sans); font-weight: 500; text-transform: uppercase; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list button { text-align: left; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.filter-list button:hover { background: rgba(130, 228, 255, 0.06); color: var(--white); }
.filter-list button[aria-pressed="true"] { background: rgba(56, 200, 244, 0.12); color: var(--ice); }
.filter-list span { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.search-panel { padding: 20px; border-radius: var(--r-md); margin-bottom: 18px; }
.search-panel input[type="search"] { width: 100%; background: rgba(4, 14, 24, 0.5); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 15px; outline: none; }
.search-panel input[type="search"]:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(56, 200, 244, 0.1); }
.result { padding: 16px 18px; border-radius: var(--r-md); margin-bottom: 10px; display: block; }
.result:hover { border-color: var(--line-strong); background: rgba(130, 228, 255, 0.05); }
.result__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-2); margin-bottom: 5px; }
.result h3 { font-size: 15.5px; font-family: var(--sans); font-weight: 600; }
.result p { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
mark { background: rgba(56, 200, 244, 0.24); color: #fff; border-radius: 3px; padding: 0 2px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- 地图 ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.map-canvas { position: relative; padding: 12px; border-radius: var(--r-lg); overflow: hidden; }
.map-canvas svg { width: 100%; height: auto; display: block; touch-action: none; cursor: grab; }
.map-canvas svg.dragging { cursor: grabbing; }
.map-canvas .province { fill: rgba(56, 200, 244, 0.07); stroke: rgba(130, 228, 255, 0.28); stroke-width: 0.8; transition: fill 0.25s, stroke 0.25s; cursor: pointer; }
.map-canvas .province:hover { fill: rgba(56, 200, 244, 0.22); stroke: var(--ice); }
.map-canvas .province.has-data { fill: rgba(56, 200, 244, 0.16); }
.map-canvas .province.is-active { fill: rgba(130, 228, 255, 0.38); stroke: #fff; }
.map-canvas .province.no-data { fill: rgba(255, 255, 255, 0.025); cursor: default; }
.map-canvas .province-label { font-size: 9px; fill: rgba(255, 255, 255, 0.5); pointer-events: none; }
.map-tools { display: flex; gap: 8px; position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.map-tools button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(7, 17, 29, 0.7); color: var(--ice); backdrop-filter: blur(10px); }
.map-tools button:hover { border-color: var(--line-strong); }
.map-side { padding: 22px; border-radius: var(--r-md); position: sticky; top: 96px; }
.map-side h2 { font-size: 1.25rem; margin-bottom: 4px; }
.map-side .meta { font-size: 11px; color: var(--muted-2); letter-spacing: 0.1em; }
.map-side ul { list-style: none; padding: 0; margin: 14px 0 0; }
.map-side li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(130, 228, 255, 0.1); font-size: 12.5px; }
.map-side li a { color: var(--ice); }
.map-side li span { color: var(--muted-2); }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 14px; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- 教学 ---------- */
.course-card__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 12px 0; }
.course-card__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--ice)); border-radius: 4px; }
.lesson { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 10px; background: rgba(255, 255, 255, 0.015); }
.lesson__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; }
.lesson__no { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.lesson__head h3 { font-size: 14.5px; font-family: var(--sans); font-weight: 600; flex: 1; }
.lesson__state { font-size: 11px; color: var(--muted-2); }
.lesson__state.done { color: #8df0c8; }
.lesson__body { padding: 0 18px 18px; display: none; }
.lesson.is-open .lesson__body { display: block; }
.lesson.is-open .lesson__head { border-bottom: 1px solid var(--line); }
.lesson__video { position: relative; border-radius: var(--r-sm); overflow: hidden; background: #04101b; margin-bottom: 14px; }
.lesson__video video { width: 100%; height: auto; }
.lesson__player-ui { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0, 0, 0, 0.4); font-size: 11.5px; color: var(--muted); }
.lesson__player-ui select { background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }
.progress-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.progress-ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0a1a2a; }
.progress-ring b { position: relative; font-family: var(--mono); font-size: 16px; }

/* ---------- 训练 ---------- */
.train-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cam-stage { position: relative; border-radius: var(--r-md); overflow: hidden; background: #030b14; aspect-ratio: 4 / 3; }
.cam-stage video, .cam-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-stage canvas { pointer-events: none; }
.cam-stage .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); z-index: 2; }
.cam-stage video { transform: scaleX(-1); }
.cam-stage canvas { transform: scaleX(-1); }
.cam-stage .status { position: absolute; left: 12px; top: 12px; z-index: 3; font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(3, 11, 20, 0.65); border: 1px solid var(--line); color: var(--muted); backdrop-filter: blur(8px); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric { padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.metric span { display: block; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.1em; }
.metric b { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.metric small { color: var(--muted-2); font-size: 10px; margin-left: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.record-list { list-style: none; padding: 0; margin: 12px 0 0; max-height: 260px; overflow: auto; }
.record-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(130, 228, 255, 0.1); font-size: 12px; color: var(--muted); }
.record-list b { color: var(--white); font-family: var(--mono); font-weight: 500; }
.notice { border-left: 2px solid var(--cyan); padding: 10px 14px; background: rgba(56, 200, 244, 0.05); border-radius: 0 10px 10px 0; font-size: 12px; color: var(--muted); margin: 12px 0; }

/* ---------- 3D ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.studio-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(circle at 50% 20%, rgba(20, 62, 92, 0.55), #040d16 70%); aspect-ratio: 16 / 11; min-height: 380px; }
.studio-stage canvas { width: 100%; height: 100%; display: block; }
.studio-hud { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; z-index: 3; }
.studio-hud .grow { flex: 1; min-width: 100px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px rgba(130, 228, 255, 0.8); cursor: pointer; }
.studio-controls { padding: 20px; border-radius: var(--r-md); }
.studio-controls h2 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); font-family: var(--sans); font-weight: 500; margin-bottom: 10px; }
.pose-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; margin-bottom: 14px; }
.pose-list button { text-align: left; font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 8px; display: flex; justify-content: space-between; gap: 8px; }
.pose-list button:hover { background: rgba(130, 228, 255, 0.07); color: var(--white); }
.pose-list button[aria-pressed="true"] { background: rgba(56, 200, 244, 0.13); color: var(--ice); }
.pose-list .cat { font-size: 10px; color: var(--muted-2); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.seg button { flex: 1; font-size: 11.5px; padding: 6px 8px; border-radius: 7px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: rgba(56, 200, 244, 0.18); color: var(--ice); }

/* ---------- 文档页 ---------- */
.doc { max-width: 78ch; }
.doc h2 { margin-top: 32px; }
.doc h3 { margin-top: 22px; }
.doc code { font-family: var(--mono); font-size: 0.88em; background: rgba(130, 228, 255, 0.08); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.doc pre { background: rgba(3, 11, 20, 0.7); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; overflow: auto; font-size: 12px; line-height: 1.7; }
.doc pre code { background: none; border: 0; padding: 0; }
.doc ol, .doc ul { color: #c6d6e3; }
.doc .toc-inline { padding: 16px 20px; border-radius: var(--r-md); margin: 18px 0; }

/* ---------- 页脚 ---------- */
.site-foot { border-top: 1px solid rgba(130, 228, 255, 0.1); margin-top: 40px; padding: 48px 0 32px; background: linear-gradient(180deg, transparent, rgba(4, 12, 20, 0.7)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h3 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; margin-bottom: 12px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 6px 0; }
.foot-grid a { font-size: 12.5px; color: var(--muted); }
.foot-grid a:hover { color: var(--ice); }
.foot-brand p { color: var(--muted); font-size: 12.5px; max-width: 40ch; margin-top: 10px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(130, 228, 255, 0.08); font-size: 11.5px; color: var(--muted-2); }
.foot-bottom a { color: var(--muted); }
.foot-beian { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; margin: 8px 0 0; font-size: 11.5px; color: var(--muted-2); }
.foot-beian a { color: var(--muted); text-decoration: none; }
.foot-beian a:hover, .foot-beian a:focus-visible { color: var(--ice); text-decoration: underline; }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: 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; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .detail-body { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-wrap, .studio, .train-layout { grid-template-columns: minmax(0, 1fr); }
  .map-side { position: static; }
  .hero__aside { display: none; }
  .detail-hero { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .nav__search { padding: 6px 11px; }
}

@media (max-width: 880px) {
  body { font-size: 15px; }
  .site-head__in { min-height: 64px; gap: 12px; }
  .nav-toggle { display: block; }
  .brand { gap: 9px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 15px; letter-spacing: 0.1em; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: #07111d;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 14px; border-radius: 10px; }
  .nav__search { margin-top: 6px; }
  .hero { padding-top: 40px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3, .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { order: 2; }
  .hero h1 .en { letter-spacing: 0.32em; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .studio-stage { aspect-ratio: 4 / 3; min-height: 300px; }
}

@media (max-width: 560px) {
  :root { --r-lg: 22px; --r-md: 16px; }
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: minmax(0, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .chips { gap: 6px; }
  .section { padding-block: 44px; }
  .detail-hero { padding-top: 18px; }
  .facts li { grid-template-columns: 5.4em 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-hud { position: static; padding: 10px 0 0; }
  .lesson__head { padding: 13px 14px; gap: 10px; }
  .cam-stage { aspect-ratio: 3 / 4; }
  .brand__sub { display: none; }
}

@media (max-width: 420px) {
  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: 13.5px; letter-spacing: 0.08em; }
}

/* 补充布局 */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
mark { background: rgba(56, 200, 244, 0.22); color: #fff; border-radius: 3px; padding: 0 2px; }
@media (max-width: 900px) {
  .split-2, .split-main { grid-template-columns: minmax(0, 1fr); }
}

/* 打印 */
@media print {
  body { background: #fff; color: #111; }
  .site-head, .site-foot, .hero__aside, .map-tools, .studio-hud { display: none; }
  .glass { box-shadow: none; border: 1px solid #ddd; background: #fff; }
  .prose p, .prose li, .card p { color: #222; }
}
