/* ============================================================
   赤鸢.top  ·  站点样式骨架
   ------------------------------------------------------------
   1. 设计变量（改配色只改这里）
   2. 基础与排版
   3. 顶部导航
   4. 首屏 Hero
   5. 区块与卡片
   6. 占位元素（内容填充后删除）
   7. 页脚
   8. 响应式
   ============================================================ */

/* ---------------- 1. 设计变量 ---------------- */
:root {
  --bg: #0a0807;
  --bg-soft: #100b09;
  --panel: rgba(255, 238, 226, 0.032);
  --panel-hover: rgba(255, 238, 226, 0.055);
  --line: rgba(255, 226, 205, 0.085);
  --line-strong: rgba(255, 226, 205, 0.18);

  --text: #f3ece5;
  --text-dim: #a99b92;
  --text-mute: #6d625c;

  --accent: #e0342a;
  --accent-soft: rgba(224, 52, 42, 0.14);
  --accent-glow: rgba(224, 52, 42, 0.4);
  --gold: #d9b26a;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --nav-h: 66px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
    "SimSun", serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------------- 2. 基础与排版 ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光斑 + 细网格，纯装饰 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 540px at 12% -8%, rgba(224, 52, 42, 0.2), transparent 62%),
    radial-gradient(680px 480px at 90% 2%, rgba(217, 178, 106, 0.075), transparent 66%),
    radial-gradient(900px 700px at 50% 108%, rgba(224, 52, 42, 0.075), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------------- 3. 顶部导航 ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(9, 11, 14, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.brand .mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand small {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  margin-left: 2px;
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.links a.on {
  color: var(--text);
  background: var(--accent-soft);
}

.links a.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--accent);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.28s var(--ease), opacity 0.2s;
}

.burger.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------------- 4. 首屏 Hero ---------------- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: calc(var(--nav-h) + 46px) 0 80px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 26px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 108px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #ff9478 0%, var(--accent) 46%, #a02a22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 580px;
  margin: 0 0 38px;
  font-size: clamp(15px, 1.6vw, 17.5px);
  color: var(--text-dim);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.25s, background 0.2s,
    border-color 0.2s;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn.primary {
  background: linear-gradient(180deg, #ef5c4d, #cf3d34);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.btn.primary:hover {
  box-shadow: 0 16px 40px -12px var(--accent-glow);
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--panel);
}

.btn.ghost:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.hero-note {
  margin: 34px 0 0;
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--mono);
}

/* ---------------- 5. 区块与卡片 ---------------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: 0.01em;
  font-weight: 700;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

.section-head .more {
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.section-head .more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

/* 卡片顶部一条细光，hover 时亮起 */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover::before {
  opacity: 0.9;
}

.card .idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------------- 6. 占位元素（填充内容后整块删除） ---------------- */
.ph {
  margin-top: 22px;
  display: grid;
  gap: 9px;
}

.ph-line {
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.035) 60%,
    rgba(255, 255, 255, 0.075)
  );
  background-size: 220% 100%;
  animation: shimmer 2.6s linear infinite;
}

.ph-line.w90 { width: 90%; }
.ph-line.w70 { width: 70%; }
.ph-line.w50 { width: 50%; }

@keyframes shimmer {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}

.todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 4px 10px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px dashed rgba(227, 75, 65, 0.42);
  border-radius: 6px;
  background: rgba(227, 75, 65, 0.07);
}

/* 整块空区域占位 */
.ph-box {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 24px;
}

/* ---------------- 7. 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer .brand {
  margin-bottom: 12px;
}

.footer p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mute);
  max-width: 320px;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-cols h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}

.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-cols a:hover {
  color: var(--accent);
}

.copy {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--mono);
}

/* ---------------- 子页面头部 ---------------- */
.page-head {
  padding: calc(var(--nav-h) + 72px) 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 54px);
  letter-spacing: 0.02em;
}

.page-head p {
  margin: 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ---------------- 8. 渐入动画 ---------------- */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.rise.in {
  opacity: 1;
  transform: none;
}

/* ---------------- 9. 响应式 ---------------- */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 60px;
  }

  .wrap {
    padding: 0 20px;
  }

  .burger {
    display: grid;
  }

  .links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: rgba(9, 11, 14, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  }

  .links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .links a {
    padding: 13px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .links a.on::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 26px) 0 56px;
  }

  .cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .footer-cols {
    gap: 40px;
  }
}

@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;
  }

  .rise {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   10. 角色页组件（首屏两栏 / 数据条 / 身份 / 装甲 / 台词 / 表格）
   ============================================================ */

/* ---- 首屏两栏 ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  max-width: 640px;
}

.hero-bird {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bird svg {
  width: min(100%, 400px);
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(224, 52, 42, 0.28));
  animation: glide 7s ease-in-out infinite;
}

@keyframes glide {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-2.4deg); }
}

/* ---- 关键数据条 ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 24px 8px 22px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.stat b span {
  font-size: 0.5em;
  font-family: var(--font);
  color: var(--text-dim);
  margin-left: 3px;
  font-weight: 500;
}

.stat > span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}

/* ---- 左文右卡 ---- */
.split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.feat {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.feat:first-child {
  border-top: 0;
  padding-top: 0;
}

.feat-n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 5px;
}

.feat h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.feat p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ---- 引语卡 ---- */
.quote-card {
  position: relative;
  padding: 30px 26px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(224, 52, 42, 0.09), transparent 62%), var(--panel);
}

.quote-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.quote {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--text);
}

.quote-by {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

/* ---- 印章 ---- */
.seal {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(224, 52, 42, 0.72);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #e8574b;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-4deg);
  opacity: 0.92;
}

/* ---- 档案表 ---- */
.spec {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  margin: 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}

.spec-row dt {
  color: var(--text-mute);
  letter-spacing: 0.06em;
  flex: none;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  color: var(--text);
}

/* ---- 三重身份 ---- */
.identity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.id-step {
  padding: 30px 26px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  transition: background 0.3s;
}

.id-step:first-child {
  border-left: 0;
}

.id-step:hover {
  background: var(--panel-hover);
}

.id-step .era {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.id-step h3 {
  margin: 14px 0 4px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.04em;
}

.id-step .role {
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.id-step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---- 装甲网格 ---- */
.armor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.armor {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.armor:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 52, 42, 0.42);
  background: var(--panel-hover);
}

.armor .code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
}

.armor h3 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.03em;
}

.armor p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

.armor .tone {
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 52, 42, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

/* ---- 时间线 ---- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line) 70%, transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 30px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item .when {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.tl-item h4 {
  margin: 8px 0 6px;
  font-size: 16.5px;
  font-weight: 600;
}

.tl-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---- 提示条 / 免责 ---- */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 10px;
  background: rgba(217, 178, 106, 0.05);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.75;
}

.notice b {
  color: var(--gold);
  font-weight: 600;
}

/* ---- 组件响应式 ---- */
@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-bird {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-bird svg {
    width: min(62%, 240px);
  }

  .identity {
    grid-template-columns: 1fr;
  }

  .id-step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .id-step:first-child {
    border-top: 0;
  }

  .armor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spec {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-top: 0;
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .armor-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 首屏立绘框 ---- */
.art-frame {
  position: relative;
  margin: 0;
  padding: 14px;
  border-radius: 26px;
  background:
    radial-gradient(120% 100% at 50% 0%, #fbf7f1 0%, #efe4d6 68%, #e3d5c4 100%);
  box-shadow:
    0 30px 70px -28px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 226, 205, 0.12);
}

.art-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(120, 90, 70, 0.14);
}

.art-frame picture {
  display: block;
}

.art-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.art-frame figcaption {
  position: absolute;
  left: 26px;
  bottom: 24px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(90, 62, 46, 0.72);
  writing-mode: vertical-rl;
  line-height: 1.4;
}

.hero-bird svg {
  animation: none;
}

/* ============================================================
   11. 补充组件（双列网格 / 七剑名单 / 资料来源 / 小屏微调）
   ============================================================ */
.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

/* 太虚七剑：序号 + 姓名 + 一句注解 */
.ladder {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.ladder li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.ladder li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ladder .n {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  line-height: 1.9;
}

.ladder em {
  display: block;
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-mute);
  margin-top: 1px;
}

/* 资料来源列表 */
.src-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.src-list li {
  border-top: 1px solid var(--line);
}

.src-list li:first-child {
  border-top: 0;
}

.src-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.src-list a::after {
  content: "↗";
  font-size: 12px;
  color: var(--text-mute);
}

.src-list a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .art-frame {
    padding: 10px;
    border-radius: 20px;
  }

  .art-frame figcaption {
    left: 20px;
    bottom: 18px;
    font-size: 10.5px;
  }

  .hero-bird .art-frame {
    width: min(100%, 310px);
    margin: 0 auto;
  }

  .stat b {
    font-size: 23px;
  }

  .stat > span {
    font-size: 11.5px;
    letter-spacing: 0.05em;
  }

  .stat {
    padding: 20px 6px 18px;
  }

  .card {
    padding: 22px 18px;
  }

  .section-head h2 {
    font-size: 24px;
  }
}

/* 单页版：页内跳转留出导航高度 */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 10px);
}

#top {
  scroll-margin-top: 0;
}
