/* 御剑长歌 · 仙侠主题
 * 借鉴 AAA 官网站形（全屏 Hero、章节节奏、CTA 层级），
 * 配色与气质保持水墨国风仙侠，不用西方奇幻蓝紫调。 */
:root {
  --bg: #0f0e0c;
  --bg-elevated: #1a1814;
  --bg-panel: rgba(26, 24, 20, 0.88);
  --text: #ece8df;
  --muted: #9c968a;
  --accent: #7d9a7a;
  --accent-bright: #a3c4a0;
  --gold: #c9a962;
  --gold-dim: rgba(201, 169, 98, 0.35);
  --border: rgba(201, 169, 98, 0.18);
  --live: #8ba888;
  --soon: #a89060;
  --mist: rgba(125, 154, 122, 0.14);
  --ink-deep: #0c0b0a;
  --font-kai: "Alimama DongFang DaKai", "PingFang SC", "Microsoft YaHei", serif;
  --font-display: var(--font-kai);
  --font-en: var(--font-kai);
  --font-body: var(--font-kai);
  --nav-h: 68px;
  --max-w: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: var(--font-body); }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 400; }

/* 水墨玄色底 + 青玉仙气 */
.ink-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 15% 8%, var(--mist) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 88% 78%, rgba(201, 169, 98, 0.06) 0%, transparent 48%),
    linear-gradient(175deg, #161412 0%, var(--bg) 48%, var(--ink-deep) 100%);
}
.ink-bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.28;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 92% 72% at 50% 28%, transparent 22%, rgba(12, 11, 10, 0.68) 100%);
}

main { position: relative; z-index: 10; }

.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
}
.section-wrap--wide { max-width: 1200px; }
.section-wrap--alt {
  background: linear-gradient(180deg, rgba(22, 20, 18, 0.42), rgba(22, 20, 18, 0.62));
  border-top: 1px solid rgba(125, 154, 122, 0.08);
  border-bottom: 1px solid rgba(125, 154, 122, 0.08);
}

/* 章节标签 · 水墨金线（官网站章节分隔的仙侠版） */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.section-label::before,
.section-label::after {
  content: "";
  flex: 0 1 3.5rem;
  width: 100%;
  max-width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.section-head .section-label::before,
.section-head .section-label::after,
.hero-tiers-head .section-label::before,
.hero-tiers-head .section-label::after {
  max-width: 3rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-align: center;
}
.section-intro {
  color: var(--muted);
  font-weight: 300;
  font-size: 1rem;
  max-width: 38em;
  margin: 0 auto 2.25rem;
  line-height: 1.85;
  text-align: center;
}
.ink-rule {
  height: 1px; border: none; margin: 0 auto 2.5rem;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.btn-primary {
  padding: 0.95rem 2.4rem;
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--ink-deep);
  background: linear-gradient(135deg, #d4b96a, var(--gold) 45%, #a88640);
  border: 1px solid rgba(255, 240, 200, 0.22);
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 4px 28px rgba(201, 169, 98, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(201, 169, 98, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

footer {
  position: relative; z-index: 10;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  background: rgba(15, 14, 12, 0.9);
}
footer .logo { display: inline-flex; margin-bottom: 0.5rem; }
footer p { margin: 0.2rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
}
