/* ── Root Variables ───────────────────────────────────────── */
:root {
  --bg-1: #080c14;
  --bg-2: #0d1520;
  --bg-3: #121e2e;
  --primary: #f97316;
  --primary-soft: rgba(249,115,22,.14);
  --primary-strong: #ea580c;
  --accent: #22d3ee;
  --accent-soft: #a5f3fc;
  --sword-color:    #60a5fa;
  --bow-color:      #4ade80;
  --axe-color:      #fb923c;
  --dagger-color:   #c084fc;
  --gauntlet-color: #f87171;
  --dart-color:     #facc15;
  --text-main: #f1f5f9;
  --text-muted: rgba(241,245,249,.62);
  --panel: rgba(8,12,20,.78);
  --border: rgba(255,255,255,.09);
  --border-fire: rgba(249,115,22,.28);
  --shadow: 0 28px 64px rgba(8,12,20,.65);
  --radius: 22px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(ellipse 60% 45% at 5% 10%,  rgba(34,211,238,.1) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 85%,  rgba(249,115,22,.14) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, #0a1424 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Glow orbs ────────────────────────────────────────────── */
body::before, body::after {
  content: "";
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(90px); opacity: .25;
  pointer-events: none; z-index: 0;
}
body::before { top: -100px; right: -80px; background: rgba(34,211,238,.45); }
body::after  { bottom: -140px; left: -60px; background: rgba(249,115,22,.5); }

.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ── Language Switch ─────────────────────────────────────── */
.lang-switch {
  position: fixed; top: 16px; right: 20px; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel);
  backdrop-filter: blur(12px); font-size: 13px;
}
.lang-switch-sep { color: var(--border); user-select: none; }
.lang-switch-btn {
  margin: 0; padding: 4px 9px; border: none; border-radius: 999px;
  font: inherit; color: var(--text-muted); background: transparent; cursor: pointer;
  transition: color .15s, background .15s;
}
.lang-switch-btn:hover { color: var(--text-main); }
.lang-switch-btn.is-active { color: var(--accent); background: rgba(34,211,238,.14); font-weight: 600; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto; padding: 20px 0 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 800; letter-spacing: .03em; color: var(--text-main);
}
.brand-logo {
  width: 44px; height: 44px;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 0 18px rgba(249,115,22,.4);
}

/* ── Main layout ──────────────────────────────────────────── */
main {
  flex: 1;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto; padding: 8px 0 40px;
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-fire);
  background: var(--primary-soft);
  color: #fed7aa;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── Hero section ─────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center; padding: 32px 0 8px;
}
.hero-copy h1 {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 900; line-height: 1.1; letter-spacing: -.02em;
}
.lead {
  margin: 18px 0 0;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.9; color: var(--text-muted); max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.primary-btn, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 148px; padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.primary-btn {
  color: #fff; border: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  box-shadow: 0 14px 32px rgba(249,115,22,.32);
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(249,115,22,.44); }
.ghost-btn {
  color: var(--text-main);
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
}
.ghost-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.11); }

/* ── Hero showcase ────────────────────────────────────────── */
.hero-showcase {
  position: relative;
  width: 480px;
  height: 400px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-fire);
}
/* 图片居中容器，作为 hero-bag-grid 的定位基准 */
.hero-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-game-img {
  padding: 24px 24px;
  width: 100%;
  height: 400px;
  display: block;
  object-fit: contain;
}
/* 内嵌背包格子外层包裹：绝对定位控制位置 */
.hero-bag-grid-wrap {
  position: absolute;
  left: 40px;
  bottom: 40px;
  pointer-events: none;
}
/* 内嵌背包格子：整体缩小，从左下角缩放 */
.hero-bag-grid {
  transform: scale(0.62);
  transform-origin: bottom left;
}
.hero-badge-card {
  position: absolute; right: 18px; bottom: 18px;
  padding: 13px 15px; border-radius: 16px; max-width: 210px;
  background: rgba(8,12,20,.82);
  border: 1px solid var(--border-fire);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(8,12,20,.35);
}
.hero-badge-card span { display: block; font-size: 11px; color: var(--text-muted); letter-spacing: .06em; margin-bottom: 5px; }
.hero-badge-card strong { font-size: 13px; line-height: 1.5; color: #fed7aa; }

/* ── Section base ─────────────────────────────────────────── */
.section {
  margin-top: 20px; padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.012));
  box-shadow: var(--shadow);
}
.section-header { margin-bottom: 24px; }
.section-header h2 { margin: 10px 0 0; font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; }
.section-header > p:last-child { margin: 12px 0 0; color: var(--text-muted); line-height: 1.8; max-width: 680px; font-size: 15px; }

/* ── Stats panel ──────────────────────────────────────────── */
.stats-panel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,.06), rgba(249,115,22,.05));
}
.stats-panel article {
  padding: 20px 18px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.stats-panel strong { display: block; font-size: 17px; color: #fed7aa; margin-bottom: 7px; }
.stats-panel span { font-size: 13px; line-height: 1.7; color: var(--text-muted); }

/* ── Bag section ──────────────────────────────────────────── */
.bag-section {
  background:
    radial-gradient(circle at top right, rgba(249,115,22,.1), transparent 40%),
    linear-gradient(135deg, rgba(34,211,238,.05), rgba(8,12,20,0));
  border-color: rgba(34,211,238,.16);
}
.bag-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.bag-copy h2 { margin: 10px 0 0; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; }
.bag-copy p { margin: 14px 0 0; color: var(--text-muted); line-height: 1.8; font-size: 15px; }
.bag-grid-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bag-grid-label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); padding: 5px 12px; border-radius: 999px;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25);
}
.bag-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-template-rows: repeat(3, 80px);
  gap: 8px;
  width: 256px;
  height: 256px;
}

/* 格子色块 */
.bag-cell {
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.14);
  transition: border-color .2s;
  animation: slot-float 4s ease-in-out infinite;
}
.sword-cell    { background: rgba(96,165,250,.16);  border-color: rgba(96,165,250,.42); }
.sword-cell:nth-child(4) { animation-delay: .44s; }
.axe-cell      { background: rgba(251,146,60,.16);  border-color: rgba(251,146,60,.42); animation-delay: .3s; }
.dart-cell     { background: rgba(250,204,21,.16);  border-color: rgba(250,204,21,.42); animation-delay: .6s; }
.dagger-cell   { background: rgba(192,132,252,.16); border-color: rgba(192,132,252,.42); animation-delay: .9s; }
.dagger-cell:nth-child(8) { animation-delay: 1.1s; }
.gauntlet-cell { background: rgba(248,113,113,.16); border-color: rgba(248,113,113,.42); animation-delay: 1.3s; }

/* 武器容器：绝对定位，大小严格对应格子数（1格=80px，2格=168px=80+8+80）
   内部 flex 居中，padding 控制图片视觉大小与位置
   ─────────────────────────────────────────────
   padding 计算规则：
     1格方向基准 padding = 14px → 有效图片 = 80-28 = 52px
     2格方向匹配 padding = 28px → 有效图片 = 168-56 = 112px = 2×52+8(gap) ✓
*/
.bag-weapon-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.bag-weapon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55));
  display: block;
}

/* 剑：1格宽 × 2格高  → padding: 纵28px 横14px → 图片 52×112 */
.sword-wrap    { left: 0;     top: 0;     width: 80px;  height: 168px; padding: 14px 7px; }
/* 斧：2×2包围盒       → 不对称padding推至右上角L形区域 */
.axe-wrap      { left: 88px;  top: 0;     width: 168px; height: 168px; padding: 0 0 36px 46px;
                 align-items: flex-start; justify-content: flex-end; }
.axe-wrap img  { transform: translate(-12px, 12px); }
/* 飞镖：1格 × 1格    → padding: 14px → 图片 52×52（基准单位） */
.dart-wrap     { left: 88px;  top: 88px;  width: 80px;  height: 80px;  padding: 14px; z-index: 1; }
/* 刀：2格宽 × 1格高  → padding: 纵14px 横28px → 图片 112×52 */
.dagger-wrap   { left: 0;     top: 176px; width: 168px; height: 80px;  padding: 7px 14px; }
/* 拳套：1格 × 1格    → padding: 14px → 图片 52×52 */
.gauntlet-wrap { left: 176px; top: 176px; width: 80px;  height: 80px;  padding: 14px; }

.bag-hint { font-size: 12px; color: rgba(34,211,238,.8); letter-spacing: .04em; }

@keyframes slot-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* ── Weapons Arsenal ──────────────────────────────────────── */
.weapons-section { border-color: rgba(249,115,22,.14); }
.weapons-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.weapon-card {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: default;
}
.weapon-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(8,12,20,.5); }
.weapon-card.sword:hover   { border-color: rgba(96,165,250,.4); }
.weapon-card.bow:hover     { border-color: rgba(74,222,128,.4); }
.weapon-card.axe:hover     { border-color: rgba(251,146,60,.4); }
.weapon-card.dagger:hover  { border-color: rgba(192,132,252,.4); }
.weapon-card.gauntlet:hover{ border-color: rgba(248,113,113,.4); }
.weapon-card.dart:hover    { border-color: rgba(250,204,21,.4); }

.weapon-img-wrap {
  display: flex; align-items: center; justify-content: center;
  height: 120px; padding: 16px;
}
.weapon-card.sword   .weapon-img-wrap { background: linear-gradient(135deg, rgba(96,165,250,.15), rgba(8,12,20,0)); }
.weapon-card.bow     .weapon-img-wrap { background: linear-gradient(135deg, rgba(74,222,128,.15), rgba(8,12,20,0)); }
.weapon-card.axe     .weapon-img-wrap { background: linear-gradient(135deg, rgba(251,146,60,.15), rgba(8,12,20,0)); }
.weapon-card.dagger  .weapon-img-wrap { background: linear-gradient(135deg, rgba(192,132,252,.15), rgba(8,12,20,0)); }
.weapon-card.gauntlet .weapon-img-wrap{ background: linear-gradient(135deg, rgba(248,113,113,.15), rgba(8,12,20,0)); }
.weapon-card.dart    .weapon-img-wrap { background: linear-gradient(135deg, rgba(250,204,21,.15), rgba(8,12,20,0)); }

.weapon-img {
  width: 72px; height: 72px; object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.5));
}
.weapon-body { padding: 14px 18px 18px; }
.weapon-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.weapon-body p { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin-bottom: 10px; }
.weapon-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--text-muted);
}
.weapon-card.sword   .weapon-tag { color: #93c5fd; background: rgba(96,165,250,.14); border-color: rgba(96,165,250,.25); }
.weapon-card.bow     .weapon-tag { color: #86efac; background: rgba(74,222,128,.14); border-color: rgba(74,222,128,.25); }
.weapon-card.axe     .weapon-tag { color: #fdba74; background: rgba(251,146,60,.14); border-color: rgba(251,146,60,.25); }
.weapon-card.dagger  .weapon-tag { color: #d8b4fe; background: rgba(192,132,252,.14); border-color: rgba(192,132,252,.25); }
.weapon-card.gauntlet .weapon-tag{ color: #fca5a5; background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.25); }
.weapon-card.dart    .weapon-tag { color: #fde047; background: rgba(250,204,21,.14); border-color: rgba(250,204,21,.25); }

/* ── Maps section ─────────────────────────────────────────── */
.maps-section { border-color: rgba(255,255,255,.08); }
.maps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.map-card {
  border-radius: 18px; overflow: hidden; position: relative;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s; cursor: default;
}
.map-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(8,12,20,.5); }
.map-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.map-info {
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(8,12,20,.95) 0%, rgba(8,12,20,.6) 65%, transparent 100%);
  position: absolute; bottom: 0; left: 0; right: 0;
}
.map-info h3 { font-size: 15px; font-weight: 800; margin-bottom: 5px; color: #fed7aa; }
.map-info p { font-size: 12px; line-height: 1.65; color: var(--text-muted); }

/* ── Features ─────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.info-card {
  padding: 22px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  transition: background .2s, border-color .2s;
}
.info-card:hover { background: rgba(255,255,255,.07); border-color: rgba(249,115,22,.25); }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  font-size: 14px; font-weight: 800; color: #fed7aa; margin-bottom: 14px;
}
.icon.icon-img { background: rgba(249,115,22,.12); }
.card-icon-img { width: 44px; height: 44px; object-fit: contain; }
.info-card h3 { margin: 0 0 9px; font-size: 17px; font-weight: 700; }
.info-card p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text-muted); }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: radial-gradient(circle at top right, rgba(34,211,238,.14), transparent 45%),
              linear-gradient(135deg, rgba(249,115,22,.1), rgba(34,211,238,.06));
  border-color: rgba(249,115,22,.2);
}
.cta-panel p { margin: 10px 0 0; max-width: 520px; color: var(--text-muted); line-height: 1.8; font-size: 15px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  width: min(1160px, calc(100% - 48px)); margin: 0 auto;
  padding: 18px 0 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.footer a { color: var(--accent-soft); }
.footer a:hover { text-decoration: underline; }

/* ── Document (privacy / terms) ──────────────────────────── */
.document .doc-hero h1 { margin: 10px 0 0; font-size: clamp(26px, 4vw, 40px); }
.document .doc-hero > p { margin: 16px 0 0; max-width: 720px; color: var(--text-muted); line-height: 1.85; }
.doc-card { margin-top: 18px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,.04); }
.doc-card h2 { margin: 0 0 12px; font-size: 17px; }
.doc-card p, .doc-card li { margin: 0; color: var(--text-muted); line-height: 1.85; font-size: 14px; }
.doc-card ul { margin: 0; padding-left: 20px; }
.doc-card li + li { margin-top: 8px; }
.doc-card a { color: var(--accent-soft); }
.legal-updated { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .stats-panel, .card-grid { grid-template-columns: 1fr; }
  .bag-layout { grid-template-columns: 1fr; }
  .weapons-grid { grid-template-columns: repeat(2, 1fr); }
  .maps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .site-header, main, .footer { width: calc(100% - 32px); }
  .section { padding: 20px 16px; }
  .weapons-grid { grid-template-columns: 1fr; }
  .bag-grid {
    grid-template-columns: repeat(3, 70px);
    grid-template-rows: repeat(3, 70px);
    width: 226px;
    height: 226px;
  }
  /* 70px格子：pad1=12px→46px单位，pad2=24px→148-48=100px=2×46+8 */
  .sword-wrap    { left: 0;     top: 0;     width: 70px;  height: 148px; padding: 24px 12px; }
  .axe-wrap      { left: 78px;  top: 0;     width: 148px; height: 148px; padding: 0 0 48px 48px; }
  .dart-wrap     { left: 78px;  top: 78px;  width: 70px;  height: 70px;  padding: 12px; }
  .dagger-wrap   { left: 0;     top: 156px; width: 148px; height: 70px;  padding: 12px 24px; }
  .gauntlet-wrap { left: 156px; top: 156px; width: 70px;  height: 70px;  padding: 12px; }
}
