/* ═══════════ 九宫山海行 · 官网 ═══════════
   宣纸为底，青绿为山，朱砂为印，墨色为骨
   字体声明见 fonts.css（http）/ fonts-inline.css（file://） */

:root {
  --paper: #f7f1e3;
  --paper-2: #efe7d2;
  --paper-3: #e5dabf;
  --surface: #fbf7ec;
  --ink: #2d2a25;
  --ink-2: #5d564a;
  --ink-3: #8a8172;
  --cinnabar: #b5432f;
  --cinnabar-2: #9a3322;
  --cinnabar-3: #d05a3c;
  --qing: #3f7d6f;
  --qing-2: #2b5a50;
  --gold: #c19a3f;
  --azure: #4a7fa5;
  --purple: #8a6fb8;
  --orange: #d98e4a;
  --hp-green: #6fae5d;
  --hp-pink: #e06a7e;
  --font-display: "Ma Shan Zheng", "LXGW WenKai", "Kaiti SC", "KaiTi", "STKaiti", serif;
  --font-body: "LXGW WenKai", "Kaiti SC", "KaiTi", "STKaiti", serif;
  --nav-h: 64px;
  --radius: 14px;
  --shadow-ink: 0 2px 0 rgba(45, 42, 37, .14), 0 10px 28px rgba(45, 42, 37, .10);
  --shadow-lift: 0 3px 0 rgba(45, 42, 37, .12), 0 18px 44px rgba(45, 42, 37, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

/* 纸纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(181, 67, 47, .22); }

/* 卷轴式滚动条 */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--qing), var(--qing-2));
  border-radius: 8px;
  border: 3px solid var(--paper-2);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--cinnabar), var(--cinnabar-2)); }
html { scrollbar-color: var(--qing) var(--paper-2); scrollbar-width: thin; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

section { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ═══════════ 印章 ═══════════ */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: linear-gradient(150deg, var(--cinnabar-3), var(--cinnabar) 55%, var(--cinnabar-2));
  color: #f9f3e4;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.05;
  text-align: center;
  border-radius: 7px 9px 8px 10px;
  box-shadow: inset 0 0 0 2px rgba(249, 243, 228, .35), 0 2px 6px rgba(154, 51, 34, .4);
  transform: rotate(-3deg);
  writing-mode: vertical-rl;
  letter-spacing: 1px;
  user-select: none;
}
.seal-lg { width: 58px; height: 58px; font-size: 22px; border-radius: 10px 13px 11px 14px; }

/* ═══════════ 按钮 ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-cinnabar {
  background: linear-gradient(160deg, var(--cinnabar-3), var(--cinnabar) 55%, var(--cinnabar-2));
  color: #f9f3e4;
  box-shadow: 0 3px 0 var(--cinnabar-2), 0 10px 24px rgba(154, 51, 34, .35);
  text-shadow: 0 1px 2px rgba(90, 25, 12, .4);
}
.btn-cinnabar:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 5px 0 var(--cinnabar-2), 0 16px 32px rgba(154, 51, 34, .4); }
.btn-paper {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid rgba(45, 42, 37, .35);
  box-shadow: 0 2px 0 rgba(45, 42, 37, .18);
}
.btn-paper:hover { transform: translateY(-2px); border-color: var(--qing); color: var(--qing-2); box-shadow: 0 4px 0 rgba(45, 42, 37, .14), 0 12px 24px rgba(45, 42, 37, .12); }
.btn-lg { padding: 15px 34px; font-size: 18px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ═══════════ 导航 ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 44px);
  background: rgba(247, 241, 227, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled {
  border-bottom-color: rgba(45, 42, 37, .14);
  box-shadow: 0 6px 24px rgba(45, 42, 37, .08);
  background: rgba(247, 241, 227, .94);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .seal { width: 34px; height: 34px; font-size: 13px; }
.brand-name { font-family: var(--font-display); font-size: 22px; letter-spacing: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 8px 13px;
  font-size: 15.5px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--cinnabar); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .3);
  border-radius: 10px;
  padding: 0 10px;
}
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ Hero ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 28px) clamp(18px, 5vw, 64px) 70px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/bg-shanshui.jpg") center 22% / cover no-repeat;
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translateY(0); }
  to { transform: scale(1.1) translateY(-16px); }
}
.hero-mist {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 241, 227, .55) 0%, rgba(247, 241, 227, .18) 26%, rgba(247, 241, 227, .30) 55%, rgba(247, 241, 227, .92) 96%),
    radial-gradient(120% 70% at 24% 42%, rgba(247, 241, 227, .88) 0%, rgba(247, 241, 227, .45) 45%, rgba(247, 241, 227, 0) 75%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1.5px solid rgba(63, 125, 111, .5);
  border-radius: 999px;
  color: var(--qing-2);
  background: rgba(251, 247, 236, .7);
  font-size: 14.5px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: 1.12;
  letter-spacing: 4px;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(247, 241, 227, .8), 0 10px 30px rgba(45, 42, 37, .18);
}
.hero-title .seal-lg { margin-top: 12px; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--cinnabar);
  letter-spacing: 6px;
  margin: 14px 0 10px;
}
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-2);
  letter-spacing: 1px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.hero-chips li {
  padding: 5px 15px;
  border-radius: 999px;
  background: rgba(251, 247, 236, .8);
  border: 1.5px solid rgba(45, 42, 37, .28);
  font-size: 14.5px;
  color: var(--ink-2);
  box-shadow: 0 1px 0 rgba(45, 42, 37, .12);
}
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); letter-spacing: .5px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art > img {
  position: relative;
  z-index: 1;
  width: min(400px, 78vw);
  filter: drop-shadow(0 18px 34px rgba(45, 42, 37, .25));
  animation: heroFloat 5.5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-14px) rotate(.6deg); }
}
.hero-art-halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224, 122, 95, .30) 0%, rgba(224, 122, 95, .12) 42%, transparent 68%);
  border-radius: 50%;
  animation: haloPulse 6s ease-in-out infinite;
}
@keyframes haloPulse { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }

/* 首屏悬浮扫码贴纸 */
.hero-qr {
  position: absolute;
  right: -6px; bottom: -12px;
  z-index: 3;
  text-decoration: none;
  animation: heroQrFloat 6.5s ease-in-out infinite;
}
@keyframes heroQrFloat {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
.hero-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 11px 9px;
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .16);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-qr:hover .hero-qr-card,
.hero-qr:focus-visible .hero-qr-card {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 3px 0 rgba(45, 42, 37, .12), 0 26px 54px rgba(45, 42, 37, .24);
}
.hero-qr-frame {
  position: relative;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(45, 42, 37, .10);
  border-radius: 8px;
}
.hero-qr-frame img { display: block; width: 128px; height: 128px; border-radius: 4px; }
.hero-qr-corner { position: absolute; width: 13px; height: 13px; border: 0 solid var(--cinnabar); }
.hero-qr-corner.tl { top: -4px; left: -4px; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 3px; }
.hero-qr-corner.br { bottom: -4px; right: -4px; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 3px; }
.hero-qr-label { font-family: var(--font-display); font-size: 18px; letter-spacing: 2px; color: var(--cinnabar); }

/* 花瓣 */
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  top: -4vh;
  width: 14px; height: 11px;
  background: radial-gradient(ellipse at 30% 30%, #f6cdd3, #e8a7b1 70%);
  border-radius: 62% 38% 60% 40% / 55% 60% 40% 45%;
  opacity: .85;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% { transform: translate3d(0, -4vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .85; }
  100% { transform: translate3d(var(--sway, 60px), 108vh, 0) rotate(560deg); opacity: .5; }
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 3px;
}
.scroll-hint-arrow {
  width: 1.5px; height: 34px;
  background: linear-gradient(var(--ink-2), transparent);
  position: relative;
  overflow: visible;
}
.scroll-hint-arrow::after {
  content: "";
  position: absolute;
  left: -3.5px; top: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cinnabar);
  animation: hintDrop 1.8s ease-in-out infinite;
}
@keyframes hintDrop { 0% { top: 0; opacity: 1; } 80% { top: 26px; opacity: 0; } 100% { top: 0; opacity: 0; } }

/* ═══════════ 战斗横幅 ═══════════ */
.banner-strip {
  position: relative;
  border-top: 2px solid rgba(45, 42, 37, .2);
  border-bottom: 2px solid rgba(45, 42, 37, .2);
  overflow: hidden;
}
.banner-strip img { width: 100%; height: clamp(180px, 30vw, 320px); object-fit: cover; object-position: center 42%; }
.banner-quote {
  position: absolute;
  left: clamp(16px, 5vw, 64px); bottom: 18px;
  padding: 8px 20px;
  background: rgba(251, 247, 236, .9);
  border: 1.5px solid rgba(45, 42, 37, .3);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 25px);
  letter-spacing: 2px;
  color: var(--ink);
  box-shadow: var(--shadow-ink);
}

/* ═══════════ 通用区块 ═══════════ */
.section {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) clamp(18px, 4vw, 44px) 0;
}
.section-head { text-align: center; margin-bottom: clamp(34px, 5vw, 54px); position: relative; }
.section-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 2px solid var(--cinnabar);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  color: var(--cinnabar);
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 14px;
  transform: rotate(-4deg);
  background: rgba(251, 247, 236, .7);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 50px);
  letter-spacing: 4px;
  color: var(--ink);
}
.section-title::after {
  content: "";
  display: block;
  width: 88px; height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--cinnabar) 30%, var(--cinnabar) 70%, transparent);
}
.section-sub { margin-top: 14px; color: var(--ink-2); font-size: clamp(15px, 1.7vw, 17.5px); letter-spacing: .5px; }

/* ═══════════ 玩法 ═══════════ */
.mech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mech-card {
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .22);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-ink);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.mech-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--qing), var(--gold));
  opacity: .85;
}
.mech-card:nth-child(2)::before { background: linear-gradient(90deg, var(--cinnabar), var(--orange)); }
.mech-card:nth-child(3)::before { background: linear-gradient(90deg, var(--gold), var(--azure)); }
.mech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.mech-icon {
  width: 62px; height: 62px;
  border-radius: 16px 18px 15px 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.mech-icon svg { width: 38px; height: 38px; }
.mech-icon-atk { background: rgba(63, 125, 111, .14); color: var(--qing-2); }
.mech-icon-def { background: rgba(181, 67, 47, .12); color: var(--cinnabar); }
.mech-icon-star { background: rgba(193, 154, 63, .16); color: var(--gold); }
.mech-card h3 { font-size: 22px; letter-spacing: 2px; margin-bottom: 10px; }
.mech-card p { color: var(--ink-2); font-size: 15.5px; }
.mech-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px dashed rgba(45, 42, 37, .3);
  font-size: 13px;
  color: var(--ink-2);
}
.skills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.skill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(150deg, rgba(63, 125, 111, .10), rgba(251, 247, 236, .9));
  border: 1.5px solid rgba(63, 125, 111, .35);
  border-radius: 12px;
}
.skill-icon { font-size: 30px; filter: drop-shadow(0 2px 3px rgba(45, 42, 37, .2)); }
.skill strong { display: block; font-size: 18px; letter-spacing: 2px; }
.skill small { color: var(--ink-2); font-size: 13.5px; }

/* ═══════════ 试玩 ═══════════ */
.section-demo { width: min(880px, 100%); }
.demo-shell {
  background: var(--surface);
  border: 2px solid rgba(45, 42, 37, .28);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.demo-stage {
  position: relative;
  padding: clamp(16px, 3vw, 28px);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(63, 125, 111, .07), transparent 70%),
    var(--surface);
}
.demo-monster { display: flex; align-items: center; gap: 16px; }
.demo-monster-img { position: relative; width: 92px; flex: none; }
.demo-monster-img img { width: 92px; height: auto; animation: monsterIdle 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes monsterIdle { 0%, 100% { transform: scaleY(1) scaleX(1); } 50% { transform: scaleY(.94) scaleX(1.05); } }
.demo-monster-img.hit img { animation: monsterHit .35s ease; }
@keyframes monsterHit {
  0% { transform: translateX(0) scale(1); filter: none; }
  30% { transform: translateX(7px) scale(.92); filter: brightness(1.6) saturate(.4); }
  60% { transform: translateX(-5px) scale(1.04); }
  100% { transform: translateX(0) scale(1); }
}
.demo-monster-img.attack img { animation: monsterAtk .45s ease; }
@keyframes monsterAtk {
  0% { transform: translateX(0) scale(1); }
  35% { transform: translateX(-14px) scale(1.12); }
  100% { transform: translateX(0) scale(1); }
}
.demo-monster-info { flex: 1; min-width: 0; }
.demo-name-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.demo-name-row strong { font-size: 19px; letter-spacing: 1px; }
.demo-floor { font-size: 12.5px; color: var(--ink-3); }
.bar {
  height: 14px;
  border-radius: 999px;
  background: var(--paper-3);
  border: 1px solid rgba(45, 42, 37, .2);
  overflow: hidden;
}
.bar i { display: block; height: 100%; width: 100%; border-radius: 999px; transition: width .3s ease; }
.bar-hp i { background: linear-gradient(90deg, #e88a9b, var(--hp-pink)); }
.bar-gauge { height: 8px; margin-top: 6px; }
.bar-gauge i { background: linear-gradient(90deg, var(--gold), var(--orange)); transition: none; }
.bar-gauge.danger i { background: linear-gradient(90deg, var(--cinnabar-3), var(--cinnabar)); }
.demo-gauge-label { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.demo-mute {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(45, 42, 37, .3);
  background: var(--paper);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, border-color .2s, transform .2s;
}
.demo-mute:hover { transform: scale(1.06); color: var(--cinnabar); border-color: var(--cinnabar); }
.demo-mute svg { width: 22px; height: 22px; }
.demo-mute .ic-off { display: none; }
.demo-mute.muted .ic-on { display: none; }
.demo-mute.muted .ic-off { display: block; }
.demo-mute.muted { color: var(--ink-3); }

.demo-player { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
.demo-player-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(45, 42, 37, .25); flex: none; }
.bar-player { flex: 1; height: 16px; }
.bar-player i { background: linear-gradient(90deg, #8cc47a, var(--hp-green)); }
.bar-player.low i { background: linear-gradient(90deg, var(--cinnabar-3), var(--cinnabar)); }
.demo-hp-num { font-size: 13.5px; color: var(--ink-2); min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.demo-combo {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--cinnabar-3), var(--cinnabar));
  color: #f9f3e4;
  font-size: 13px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(154, 51, 34, .4);
}
.demo-combo b { font-size: 16px; }
.demo-combo.pop { animation: comboPop .3s ease; }
@keyframes comboPop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

.demo-board-wrap { position: relative; width: min(400px, 100%); margin: 0 auto; }
.demo-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 10px;
  background: var(--paper-3);
  border: 2px solid rgba(45, 42, 37, .35);
  border-radius: 14px;
  box-shadow: inset 0 2px 8px rgba(45, 42, 37, .12);
}
.demo-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: 9px;
  background: #fffdf6;
  font-family: var(--font-body);
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .15s, box-shadow .15s, transform .1s;
  box-shadow: 0 1px 0 rgba(45, 42, 37, .1);
}
.demo-cell.given { background: var(--paper-2); color: var(--ink-3); cursor: default; }
.demo-cell.edge-r { margin-right: 4px; }
.demo-cell.edge-b { margin-bottom: 4px; }
.demo-cell:not(.given):not(.locked):hover { background: #fff; box-shadow: 0 0 0 2px rgba(63, 125, 111, .5); }
.demo-cell.selected { box-shadow: 0 0 0 3px var(--cinnabar), 0 4px 12px rgba(154, 51, 34, .3); background: #fff; z-index: 1; }
.demo-cell.filled { color: var(--qing-2); }
.demo-cell.pop { animation: cellPop .32s ease; }
@keyframes cellPop { 0% { transform: scale(.7); } 55% { transform: scale(1.14); } 100% { transform: scale(1); } }
.demo-cell.wrong { animation: cellWrong .45s ease; background: #f7e0da; color: var(--cinnabar); }
@keyframes cellWrong {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.demo-cell.locked { background: #efe3da; color: var(--ink-3); cursor: not-allowed; }
.demo-cell.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: repeating-linear-gradient(45deg, transparent 0 7px, rgba(181, 67, 47, .10) 7px 14px);
}
.demo-cell.unit-flash { animation: unitFlash .6s ease; }
@keyframes unitFlash {
  0% { background: #fffdf6; }
  30% { background: #f4e3b2; box-shadow: 0 0 18px rgba(193, 154, 63, .8); }
  100% { background: #fffdf6; }
}
.demo-board.shake { animation: boardShake .4s ease; }
@keyframes boardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.demo-floats { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 5; }
.float-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cinnabar);
  text-shadow: 0 1px 0 #f9f3e4, 0 2px 8px rgba(154, 51, 34, .3);
  animation: floatUp 1s ease-out forwards;
  white-space: nowrap;
}
.float-num.heal { color: var(--qing-2); }
.float-num.star { color: var(--gold); font-size: 30px; }
.float-num.hurt { color: var(--cinnabar-2); }
@keyframes floatUp {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  18% { transform: translateY(-10px) scale(1.15); opacity: 1; }
  100% { transform: translateY(-64px) scale(1); opacity: 0; }
}
.spark {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9a8, var(--gold));
  animation: sparkFly .7s ease-out forwards;
}
@keyframes sparkFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}

.demo-pad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: min(400px, 100%);
  margin: 16px auto 0;
}
.demo-pad button {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1.5px solid rgba(45, 42, 37, .3);
  background: var(--paper);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(45, 42, 37, .18);
  transition: transform .12s, background .15s, color .15s, border-color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-pad button:hover { background: #fff; border-color: var(--qing); color: var(--qing-2); transform: translateY(-2px); }
.demo-pad button:active { transform: translateY(1px); box-shadow: none; }
.demo-pad button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.demo-pad .pad-erase svg { width: 24px; height: 24px; }
.demo-pad .pad-restart { font-size: 15px; letter-spacing: 1px; color: var(--cinnabar); border-color: rgba(181, 67, 47, .5); }
.demo-hint { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.demo-note {
  padding: 12px 20px;
  background: var(--paper-2);
  border-top: 1.5px dashed rgba(45, 42, 37, .25);
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 241, 227, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn .35s ease;
}
.demo-overlay[hidden] { display: none; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.demo-result {
  text-align: center;
  padding: 34px 40px;
  background: var(--surface);
  border: 2px solid rgba(45, 42, 37, .3);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  max-width: 88%;
  animation: resultIn .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes resultIn { from { transform: scale(.8) translateY(16px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.demo-result-title { font-family: var(--font-display); font-size: 42px; letter-spacing: 6px; color: var(--cinnabar); }
.demo-result.lose .demo-result-title { color: var(--ink-2); }
.demo-result-sub { color: var(--ink-2); margin: 6px 0 14px; font-size: 15px; }
.demo-result-stats { display: flex; justify-content: center; gap: 22px; margin-bottom: 20px; }
.demo-result-stats div { text-align: center; }
.demo-result-stats b { display: block; font-size: 24px; color: var(--qing-2); font-variant-numeric: tabular-nums; }
.demo-result-stats span { font-size: 12.5px; color: var(--ink-3); }

/* ═══════════ 法宝 ═══════════ */
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rule-card {
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .22);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rule-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.rule-card header { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.rule-icon {
  font-size: 30px;
  width: 56px; height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 16px 13px 17px;
  background: var(--paper-2);
  border: 1.5px solid rgba(45, 42, 37, .18);
}
.rule-card h3 { font-size: 21px; letter-spacing: 2px; }
.rule-tag {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #f9f3e4;
}
.rule-tag-thermo { background: var(--orange); }
.rule-tag-cage { background: var(--purple); }
.rule-tag-arrow { background: var(--azure); }
.rule-desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.rule-desc b { color: var(--ink); }
.rule-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--paper-3);
  border-radius: 11px;
  border: 1.5px solid rgba(45, 42, 37, .25);
  width: min(250px, 100%);
  margin: auto auto 16px;
}
.rule-cell {
  aspect-ratio: 1;
  border-radius: 7px;
  background: #fffdf6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-3);
  position: relative;
}
.rule-cell.empty { background: #fff; }
.rule-cell.thermo { background: #fbe8d4; box-shadow: inset 0 0 0 1.5px rgba(217, 142, 74, .6); }
.rule-cell.thermo .order {
  position: absolute;
  top: 2px; left: 4px;
  font-size: 10px;
  font-weight: 400;
  color: var(--orange);
}
.rule-cell.cage { background: #efe9f8; }
.rule-cell.cage::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px dashed var(--purple);
  border-radius: 6px;
}
.rule-cell.cage .sum {
  position: absolute;
  top: 1px; right: 4px;
  font-size: 10px;
  font-weight: 400;
  color: var(--purple);
  z-index: 1;
}
.rule-cell.arrow-shaft { background: #e2edf6; box-shadow: inset 0 0 0 1.5px rgba(74, 127, 165, .45); }
.rule-cell.arrow-head { background: #e2edf6; }
.rule-cell.arrow-head .head {
  position: absolute;
  top: 2px; right: 4px;
  font-size: 10px;
  font-weight: 400;
  color: var(--azure);
}
.rule-cell.demo-fill { color: var(--ink); animation: cellPop .32s ease; }
.rule-cell.demo-bonus { animation: unitFlash .7s ease; }
.rule-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.rule-bonus { font-size: 13px; color: var(--ink-2); }
.rule-bonus.flash { color: var(--cinnabar); font-weight: 700; }

.stat-relics-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 3px;
  margin: 46px 0 20px;
  color: var(--ink-2);
}
.stat-relics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-relics li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .18);
  border-radius: 12px;
  transition: transform .2s, border-color .2s;
}
.stat-relics li:hover { transform: translateY(-3px); border-color: var(--gold); }
.stat-relics li > span { font-size: 26px; flex: none; }
.stat-relics strong { display: block; font-size: 16px; letter-spacing: 1px; }
.stat-relics small { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; display: block; }

/* ═══════════ 山海志 ═══════════ */
.section-codex {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(63, 125, 111, .10) 18%, rgba(63, 125, 111, .10) 82%, var(--paper) 100%);
  padding-bottom: clamp(64px, 9vw, 110px);
  margin-top: clamp(64px, 9vw, 110px);
}
.section-codex > * { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.monster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.monster-card {
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .22);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.monster-card:hover { transform: translateY(-7px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.monster-img {
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(80% 90% at 50% 100%, rgba(63, 125, 111, .18), transparent 70%),
    linear-gradient(180deg, rgba(239, 231, 210, .4), rgba(229, 218, 191, .8));
  border-bottom: 1.5px dashed rgba(45, 42, 37, .2);
  padding-top: 14px;
}
.monster-img img { height: 168px; width: auto; filter: drop-shadow(0 8px 14px rgba(45, 42, 37, .22)); transition: transform .3s ease; }
.monster-card:hover .monster-img img { transform: translateY(-6px) scale(1.04); }
.monster-card-boss .monster-img {
  background:
    radial-gradient(80% 90% at 50% 100%, rgba(181, 67, 47, .20), transparent 70%),
    linear-gradient(180deg, rgba(239, 231, 210, .4), rgba(229, 218, 191, .8));
}
.monster-body { padding: 18px 18px 20px; }
.monster-name { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.monster-name h3 { font-size: 19px; letter-spacing: 1px; }
.monster-tag { padding: 1px 9px; border-radius: 999px; font-size: 11.5px; color: #f9f3e4; flex: none; }
.tag-normal { background: var(--qing); }
.tag-boss { background: var(--cinnabar); }
.monster-body p { font-size: 13.5px; color: var(--ink-2); min-height: 66px; }
.monster-stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.monster-stats span {
  padding: 2px 10px;
  border-radius: 7px;
  background: var(--paper-2);
  border: 1px solid rgba(45, 42, 37, .16);
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ═══════════ 征程 ═══════════ */
.journey-wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.journey-line { list-style: none; position: relative; padding-left: 8px; }
.journey-line::before {
  content: "";
  position: absolute;
  left: 30px; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--qing), var(--gold) 60%, var(--cinnabar));
  opacity: .5;
}
.journey-node { position: relative; display: flex; gap: 20px; padding-bottom: 22px; }
.journey-node:last-child { padding-bottom: 0; }
.journey-dot {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  background: var(--surface);
  border: 2px solid var(--qing);
  color: var(--qing-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(45, 42, 37, .14);
}
.journey-node-tower .journey-dot { border-color: var(--cinnabar); color: var(--cinnabar); }
.journey-card {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .2);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-ink);
  transition: transform .2s ease, border-color .2s ease;
}
.journey-card:hover { transform: translateX(5px); border-color: var(--qing); }
.journey-card h3 { font-size: 18.5px; letter-spacing: 1.5px; margin-bottom: 5px; }
.journey-card p { font-size: 14px; color: var(--ink-2); }
.word-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.word-chips span {
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(193, 154, 63, .14);
  border: 1px solid rgba(193, 154, 63, .55);
  color: #8a6b23;
  font-size: 12.5px;
}
.journey-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.side-card {
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .2);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-ink);
  transition: transform .2s ease, border-color .2s ease;
}
.side-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.side-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.side-card h3 { font-size: 17.5px; letter-spacing: 1.5px; margin-bottom: 5px; }
.side-card p { font-size: 13.5px; color: var(--ink-2); }

/* ═══════════ FAQ ═══════════ */
.section-faq { width: min(820px, 100%); }
.faq-list { display: grid; gap: 13px; }
.faq-item {
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .22);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--qing); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 22px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--qing-2); }
.faq-mark {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(45, 42, 37, .35);
  position: relative;
  transition: transform .3s ease, background .3s, border-color .3s;
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.8px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
  transition: background .3s;
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mark { transform: rotate(135deg); background: var(--qing); border-color: var(--qing); }
.faq-item[open] .faq-mark::before, .faq-item[open] .faq-mark::after { background: #f9f3e4; }
.faq-a { padding: 0 22px 18px; color: var(--ink-2); font-size: 15px; }
.faq-item[open] .faq-a { animation: faqIn .3s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════ 最终 CTA · 扫码入山 ═══════════ */
.final-cta {
  margin-top: clamp(64px, 9vw, 110px);
  padding: clamp(60px, 8vw, 96px) clamp(18px, 4vw, 44px);
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(181, 67, 47, .10), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border-top: 2px solid rgba(45, 42, 37, .16);
  text-align: center;
}
.final-cta-inner { width: min(920px, 100%); margin: 0 auto; }
.final-cta .seal-lg { margin-bottom: 18px; }
.final-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px); letter-spacing: 3px; }
.final-sub { color: var(--ink-2); margin: 10px 0 40px; letter-spacing: 2px; text-wrap: balance; }

.play-paths {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
  text-align: center;
}
.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 26px 28px;
  background: var(--surface);
  border: 1.5px solid rgba(45, 42, 37, .14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.scan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(62% 48% at 50% 36%, rgba(181, 67, 47, .08), transparent 72%);
  pointer-events: none;
}
.path-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(180deg, var(--cinnabar-3), var(--cinnabar));
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: 3px;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(181, 67, 47, .38);
}
.qr-frame {
  position: relative;
  margin: 8px 0 16px;
  padding: 12px;
  background: #fff;
  border: 1.5px solid rgba(45, 42, 37, .10);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(45, 42, 37, .12);
}
.qr-img { display: block; width: 210px; height: 210px; border-radius: 6px; }
.qr-corner { position: absolute; width: 20px; height: 20px; border: 0 solid var(--cinnabar); }
.qr-corner.tl { top: -7px; left: -7px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 5px; }
.qr-corner.tr { top: -7px; right: -7px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 5px; }
.qr-corner.bl { bottom: -7px; left: -7px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 5px; }
.qr-corner.br { bottom: -7px; right: -7px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 5px; }
.path-title { font-family: var(--font-display); font-weight: 400; font-size: 27px; letter-spacing: 2px; color: var(--ink); margin-top: 2px; }
.path-desc { color: var(--ink-2); font-size: 15px; letter-spacing: 1px; }
.path-hint { color: var(--ink-3); font-size: 12.5px; letter-spacing: .5px; margin-top: 8px; }
.path-or {
  align-self: center;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1.5px solid rgba(45, 42, 37, .24);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  box-shadow: var(--shadow-ink);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 21px;
}
.search-card .btn { margin: 12px 0 4px; }
.final-steps { margin-top: 12px; font-size: 13px; color: var(--ink-3); letter-spacing: .5px; }

/* ═══════════ 页脚 ═══════════ */
.footer {
  background: var(--ink);
  color: rgba(247, 241, 227, .82);
  padding: 44px clamp(18px, 4vw, 44px) 36px;
}
.footer-inner { width: min(880px, 100%); margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; text-align: left; }
.footer-brand strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: 2px; color: var(--paper); }
.footer-brand small { color: rgba(247, 241, 227, .55); font-size: 12.5px; letter-spacing: 1px; }
.footer-health {
  font-size: 12.5px;
  line-height: 2;
  color: rgba(247, 241, 227, .5);
  border-top: 1px solid rgba(247, 241, 227, .14);
  border-bottom: 1px solid rgba(247, 241, 227, .14);
  padding: 16px 0;
  margin-bottom: 16px;
}
.footer-meta { font-size: 13px; color: rgba(247, 241, 227, .65); }
.footer-icp { margin-top: 8px; font-size: 12.5px; }
.footer-icp a { color: rgba(247, 241, 227, .55); text-decoration: none; border-bottom: 1px solid rgba(247, 241, 227, .25); transition: color .2s, border-color .2s; }
.footer-icp a:hover { color: var(--paper); border-color: rgba(247, 241, 227, .6); }
.footer-fonts { font-size: 12px; color: rgba(247, 241, 227, .4); margin-top: 6px; }

/* ═══════════ 回到顶部 / Toast ═══════════ */
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  border: 1.5px solid rgba(45, 42, 37, .3);
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s, transform .3s, color .2s, border-color .2s;
}
.back-top svg { width: 22px; height: 22px; }
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 1500;
  padding: 12px 26px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: 0 12px 32px rgba(45, 42, 37, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  max-width: 88vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════ 入场动画 ═══════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-art > img, .hero-qr, .petal, .demo-monster-img img { animation: none !important; }
}

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 1024px) {
  .mech-grid, .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .rule-card:last-child { grid-column: 1 / -1; width: min(460px, 100%); margin: 0 auto; }
  .monster-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-relics { grid-template-columns: repeat(3, 1fr); }
  .journey-wrap { grid-template-columns: 1fr; }
  .journey-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .journey-side .side-card:last-child { grid-column: 1 / -1; width: min(460px, 100%); margin: 0 auto; }
  .hero-art > img { width: min(360px, 100%); }
  .hero-qr { right: -10px; bottom: -10px; }
  .hero-qr-frame img { width: 104px; height: 104px; }
  .hero-qr-label { font-size: 16px; }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .hero-title { font-size: clamp(44px, 6.6vw, 76px); letter-spacing: 2px; gap: 12px; }
  .hero-title .seal-lg { width: 48px; height: 48px; font-size: 18px; margin-top: 8px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 14px clamp(16px, 4vw, 44px) 20px;
    background: rgba(247, 241, 227, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1.5px solid rgba(45, 42, 37, .18);
    box-shadow: 0 18px 40px rgba(45, 42, 37, .16);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 10px; font-size: 17px; border-bottom: 1px dashed rgba(45, 42, 37, .12); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero-title { justify-content: center; }
  .hero-cta, .hero-chips { justify-content: center; }
  .hero-art { order: -1; width: fit-content; margin: 0 auto 6px; }
  .hero-art > img { width: min(240px, 60vw); }
  .hero-qr { right: -14px; bottom: -10px; }
  .hero-qr-card { padding: 8px 8px 6px; gap: 5px; }
  .hero-qr-frame { padding: 5px; }
  .hero-qr-frame img { width: 84px; height: 84px; }
  .hero-qr-corner { width: 10px; height: 10px; }
  .hero-qr-label { font-size: 15px; letter-spacing: 1px; }
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .skills-row { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .play-paths { grid-template-columns: 1fr; gap: 16px; }
  .path-or { margin: 2px auto; }
  .path-card { width: min(440px, 100%); margin: 0 auto; }
}

@media (max-width: 620px) {
  .mech-grid, .rule-grid, .monster-grid, .stat-relics, .journey-side { grid-template-columns: 1fr; }
  .rule-card:last-child { width: 100%; }
  .monster-body p { min-height: 0; }
  .banner-quote { position: static; border-radius: 0; border-left: none; border-right: none; border-bottom: none; text-align: center; }
  .banner-strip img { height: 170px; }
  .demo-monster-img, .demo-monster-img img { width: 70px; }
  .demo-result { padding: 26px 22px; }
  .demo-result-stats { gap: 14px; }
  .brand-name { font-size: 19px; }
  .nav .btn-sm { padding: 7px 14px; font-size: 13px; }
  .hero-title { letter-spacing: 2px; gap: 10px; }
  .hero-title .seal-lg { width: 44px; height: 44px; font-size: 17px; margin-top: 8px; }
  .journey-line::before { left: 28px; }
  .journey-dot { width: 42px; height: 42px; font-size: 18px; }
  .journey-node { gap: 14px; }
  .final-title { font-size: 26px; letter-spacing: 1px; }
  .footer { padding-bottom: 88px; }
  .qr-img { width: 220px; height: 220px; }
  .path-card { padding: 28px 20px 24px; }
  .path-title { font-size: 24px; }
}