/* 《我的王国》官网样式 —— 取色自游戏 Logo：暖木、鎏金、红绸、青石 */

:root {
  --bg: #14100c;
  --bg-2: #1b150f;
  --panel: rgba(58, 42, 28, 0.42);
  --panel-solid: #241a12;
  --line: rgba(214, 168, 96, 0.18);
  --line-strong: rgba(214, 168, 96, 0.38);

  --gold: #f2c14b;
  --gold-light: #ffdf8a;
  --gold-deep: #c8912a;
  --wood: #a9713f;
  --ribbon: #cf3b2c;
  --stone: #9fb0c0;

  --text: #f2e7d5;
  --text-dim: #b6a48b;
  --text-faint: #85735d;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- 通用布局 ---------- */

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

section { position: relative; padding: 96px 0; }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; letter-spacing: 0.02em; }

.lede { color: var(--text-dim); font-size: 16px; margin: 0; }

.gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, #ffd469, #d9962b);
  color: #2b1a06;
  box-shadow: 0 10px 26px rgba(216, 148, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(216, 148, 42, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(242, 193, 75, 0.1); }

.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 导航 ---------- */

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
header.stuck {
  background: rgba(16, 12, 8, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 0.08em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--text-dim); }
.nav-links a { position: relative; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- 首屏 ---------- */

.hero {
  padding: 116px 0 78px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  background:
    radial-gradient(62% 58% at 50% 10%, rgba(242, 193, 75, 0.28), transparent 66%),
    radial-gradient(48% 44% at 80% 46%, rgba(207, 59, 44, 0.2), transparent 68%),
    radial-gradient(52% 46% at 12% 56%, rgba(120, 150, 180, 0.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-logo { width: min(100%, 392px); margin-bottom: 22px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)); }

.hero h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.hero p.intro {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 540px;
  margin: 0 0 26px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.chip strong { color: var(--gold); font-weight: 700; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .glow {
  position: absolute;
  inset: 12% 8% 4%;
  background: radial-gradient(50% 50% at 50% 60%, rgba(242, 193, 75, 0.22), transparent 70%);
  filter: blur(10px);
}
.hero-art img.portrait {
  position: relative;
  width: min(100%, 340px);
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.6));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.stat-card {
  position: absolute;
  padding: 10px 15px;
  border-radius: 14px;
  background: rgba(30, 22, 15, 0.9);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}
.stat-card b { display: block; color: var(--gold); font-size: 17px; letter-spacing: 0.04em; }
.stat-card span { color: var(--text-faint); }
.stat-card.a { left: -6px; top: 16%; animation: float 6s ease-in-out infinite 0.6s; }
.stat-card.b { right: -8px; bottom: 20%; animation: float 6s ease-in-out infinite 1.4s; }

/* ---------- 玩法三步 ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 30px 26px 28px; position: relative; overflow: hidden; }
.step::before {
  content: attr(data-step);
  position: absolute;
  right: 16px; top: 2px;
  font-size: 74px;
  font-weight: 800;
  color: rgba(242, 193, 75, 0.07);
  line-height: 1;
}
.step img { width: 56px; height: 56px; margin-bottom: 16px; }
.step p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 16px; }

/* ---------- 英雄与武器 ---------- */

.hero-block { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }

.hero-card { padding: 28px; text-align: center; }
.hero-card img { width: 200px; margin: 0 auto 18px; }
.hero-card .name { font-size: 24px; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 4px; }
.hero-card .title { color: var(--gold); font-size: 13px; letter-spacing: 0.2em; margin-bottom: 18px; }

.weapons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.weapon { padding: 22px 20px; text-align: center; transition: transform 0.22s ease, border-color 0.22s ease; }
.weapon:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.weapon img { width: 108px; height: 108px; margin: 0 auto 10px; object-fit: contain; }
.weapon .role { color: var(--text-faint); font-size: 12.5px; margin-bottom: 14px; }

/* ---------- 技能 ---------- */


/* ---------- 城防 ---------- */

.walls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 22px; }
.wall { padding: 20px 16px; text-align: center; transition: transform 0.22s ease, border-color 0.22s ease; }
.wall:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.wall .lvtag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 12px;
}
.wall img { height: 84px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.wall .wname { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }

.defense-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.extra { display: flex; gap: 20px; padding: 22px 24px; align-items: center; }
.extra img { width: 90px; flex: none; }
.extra p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------- 主城时代 ---------- */

.eras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.eras::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--wood), var(--gold), var(--stone));
  opacity: 0.4;
}
.era { text-align: center; padding: 0 12px; position: relative; }
.era .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--gold);
  margin: 19px auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px rgba(242, 193, 75, 0.1);
}
.era .lv { font-size: 11.5px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 6px; }
.era .ename { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.era .meta { color: var(--text-faint); font-size: 12.5px; line-height: 1.7; }
.era .meta b { color: var(--text-dim); font-weight: 600; }

/* ---------- 敌人 ---------- */

.tag {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text-faint);
}
.tag.melee { color: #dba46b; border-color: rgba(219, 164, 107, 0.32); }
.tag.fast { color: #8fd39a; border-color: rgba(143, 211, 154, 0.3); }
.tag.ranged { color: #e6a25f; border-color: rgba(230, 162, 95, 0.32); }
.tag.control { color: #9fd8e0; border-color: rgba(159, 216, 224, 0.32); }
.tag.tanky { color: #b8b8c4; border-color: rgba(184, 184, 196, 0.3); }
.tag.siege { color: #e08272; border-color: rgba(224, 130, 114, 0.34); }
.tag.air { color: #c4a6e0; border-color: rgba(196, 166, 224, 0.32); }
.tag.boss { color: #f2c14b; border-color: rgba(242, 193, 75, 0.42); background: rgba(242, 193, 75, 0.08); }

.note { margin-top: 22px; color: var(--text-faint); font-size: 13.5px; }

/* ---------- 章节 ---------- */

.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chapter {
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.chapter:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.chapter .num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}
.chapter .cname { font-weight: 800; font-size: 18px; margin-bottom: 6px; letter-spacing: 0.06em; }
.chapter .press { color: var(--text-dim); font-size: 13.5px; margin-bottom: 12px; }

/* ---------- 开发 ---------- */



/* ---------- 结尾 CTA ---------- */

.final { text-align: center; padding: 110px 0 100px; }
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 70% at 50% 50%, rgba(242, 193, 75, 0.13), transparent 70%);
  pointer-events: none;
}
.final img { width: min(100%, 320px); margin: 0 auto 26px; position: relative; }
.final h2 { position: relative; }
.final p { color: var(--text-dim); margin: 0 auto 30px; max-width: 520px; position: relative; }
.final .btn { position: relative; }

/* ---------- 页脚 ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--text-faint);
  font-size: 13px;
}
.foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot a:hover { color: var(--gold); }
.foot-links { display: flex; gap: 20px; }

/* ---------- 滚动出现动画 ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-art img.portrait, .stat-card { animation: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-logo, .hero p.intro { margin-inline: auto; }
  .hero-cta, .chips { justify-content: center; }
  .hero-art { margin-top: 24px; }
  .steps, .enemies, .chapters { grid-template-columns: repeat(2, 1fr); }
  .walls { grid-template-columns: repeat(3, 1fr); }
  .hero-block, .dev-grid { grid-template-columns: 1fr; }
  .eras { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .eras::before { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding: 120px 0 60px; }
  .steps, .weapons, .skill-pools, .defense-extra, .enemies, .chapters, .facts { grid-template-columns: 1fr; }
  .walls { grid-template-columns: repeat(2, 1fr); }
  .eras { grid-template-columns: 1fr; }
  .stat-card { display: none; }
  .extra { flex-direction: column; text-align: center; }
}

/* ---------- 实机画面 ---------- */

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shot { padding: 12px 12px 18px; overflow: hidden; }
.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.shot .cap { padding: 14px 10px 0; }
.shot .cap b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.shot .cap span { color: var(--text-dim); font-size: 13.5px; }

@media (max-width: 800px) { .shots { grid-template-columns: 1fr; } }


/* ---------- 故事 ---------- */

.section-head.center h2 { line-height: 1.42; }

.story-lead {
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 36px 40px;
  position: relative;
}
.story-lead::before {
  content: "";
  position: absolute;
  left: 0; top: 34px; bottom: 34px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-deep), transparent);
}
.story-lead p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 2;
}
.story-lead p:last-child { margin-bottom: 0; }
.story-punch {
  color: var(--text) !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.beat { padding: 28px 26px; position: relative; overflow: hidden; }
.beat-num {
  position: absolute;
  right: 18px; top: 10px;
  font-size: 56px;
  font-weight: 800;
  color: rgba(242, 193, 75, 0.08);
  line-height: 1;
}
.beat h3 { color: var(--gold-light); letter-spacing: 0.14em; }
.beat p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- 沈青小传 ---------- */

.hero-card .bio {
  margin: 0;
  text-align: left;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.9;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.weapon .wdesc { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.7; text-align: left; }

/* ---------- 成长 ---------- */

.growth { padding: 28px 30px 26px; }
.growth > h3 { font-size: 20px; margin-bottom: 6px; }
.growth-lede { color: var(--text-faint); font-size: 14px; margin: 0 0 20px; }
.growth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px; }
.g-item b {
  display: block;
  color: var(--gold-light);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}
.g-item span { color: var(--text-dim); font-size: 13px; line-height: 1.6; }

/* ---------- 墙体说明 ---------- */

.wall .wdesc { color: var(--text-dim); font-size: 12.5px; line-height: 1.65; margin-top: 6px; }
.era .meta { color: var(--text-dim); }
.era .ename { margin-bottom: 10px; }

/* ---------- 页脚 ---------- */

.foot-about { line-height: 1.9; }

@media (max-width: 1000px) {
  .beats { grid-template-columns: 1fr; }
  .growth-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .story-lead { padding: 28px 24px; }
  .growth-grid { grid-template-columns: 1fr; }
}


/* ---------- 状态标记 ---------- */

.status {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status.live {
  color: #2b1a06;
  background: linear-gradient(180deg, #ffd469, #d9962b);
  box-shadow: 0 4px 12px rgba(216, 148, 42, 0.3);
  font-weight: 700;
  margin-top: 12px;
}
.status.soon {
  color: var(--text-faint);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- 同伴 ---------- */

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { padding: 0; overflow: hidden; transition: transform 0.22s ease, border-color 0.22s ease; }
.role:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.role-art {
  position: relative;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(242, 193, 75, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  padding: 18px 18px 0;
}
.role-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--bg-2));
  pointer-events: none;
}
.role-art img { width: 78%; margin: 0 auto; display: block; }
.role-body { padding: 4px 24px 24px; }
.role-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rname { font-size: 20px; font-weight: 800; letter-spacing: 0.12em; }
.rtitle { color: var(--gold); font-size: 12px; letter-spacing: 0.18em; margin-bottom: 12px; }
.role-body p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.8; }

/* ---------- 妖潮图鉴 ---------- */

.codex-group {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.codex-group:not(:first-of-type) { margin-top: 52px; }
.group-note { color: var(--text-faint); font-size: 13.5px; margin: -8px 0 20px; }

.foes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.foes-text { grid-template-columns: repeat(4, 1fr); }

.foe { padding: 0 24px 22px; transition: transform 0.22s ease, border-color 0.22s ease; }
.foe:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.foe-art {
  margin: 0 -24px 6px;
  padding: 14px 24px 0;
  background: radial-gradient(60% 62% at 50% 42%, rgba(242, 193, 75, 0.1), transparent 72%);
}
.foe-art img { width: 62%; max-width: 190px; margin: 0 auto; display: block; }
.foe-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.foe .ename { font-weight: 800; font-size: 17px; letter-spacing: 0.05em; }
.foe p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.8; }
.foe .status { margin-top: 12px; }

.foe-soon { padding-top: 22px; opacity: 0.9; }
.foe-soon .ename { font-size: 15.5px; }
.foe-soon p { font-size: 13px; }

@media (max-width: 1000px) {
  .roles, .foes { grid-template-columns: repeat(2, 1fr); }
  .foes-text { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .roles, .foes, .foes-text { grid-template-columns: 1fr; }
}
