/* ============================================================
   烈焰觉醒手游官网 - style.css
   风格：暗色史诗、红金火焰、简洁大气、响应式
   ============================================================ */

:root {
  --color-bg: #0e0a08;
  --color-bg-soft: #17100c;
  --color-card: #1e150f;
  --color-line: rgba(214, 178, 120, 0.18);
  --color-text: #efe6d8;
  --color-text-dim: #b7a892;
  --color-gold: #e8b45a;
  --color-flame: #e2542a;
  --color-flame-deep: #b73418;
  --radius: 14px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 2px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
}
.btn-lg { padding: 15px 46px; font-size: 17px; font-weight: 600; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-flame) 0%, var(--color-flame-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(226, 84, 42, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(226, 84, 42, 0.6);
}

.btn-ghost {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}
.btn-ghost:hover { background: rgba(232, 180, 90, 0.12); transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(14, 10, 8, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.header-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--color-text);
}
.logo span { color: var(--color-flame); }

.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 15px;
  color: var(--color-text-dim);
  letter-spacing: 1px;
  transition: color .2s ease;
}
.nav a:hover { color: var(--color-gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("../images/hero-bg.png") center 30% / cover no-repeat;
}
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,10,8,.55) 0%, rgba(14,10,8,.35) 45%, rgba(14,10,8,.85) 100%);
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--color-bg));
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }

.hero-tag {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-gold);
  font-size: 14px;
  letter-spacing: 3px;
  background: rgba(14, 10, 8, 0.45);
  backdrop-filter: blur(4px);
}
.hero-title {
  margin: 22px 0 14px;
  font-size: clamp(52px, 10vw, 108px);
  font-weight: 900;
  letter-spacing: 10px;
  line-height: 1.1;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.hero-title span {
  background: linear-gradient(135deg, #ffd479 0%, var(--color-flame) 60%, #ff3d1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-slogan {
  font-size: clamp(15px, 2.4vw, 20px);
  color: var(--color-text);
  letter-spacing: 2px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: 6px;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--color-gold), var(--color-flame));
  border-radius: 2px;
}
.section-sub {
  text-align: center;
  color: var(--color-text-dim);
  margin: 14px 0 48px;
  letter-spacing: 2px;
  font-size: 15px;
}

/* ---------- 游戏简介 ---------- */
.intro { background: var(--color-bg); }
.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.intro-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.intro-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 180, 90, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.intro-card h3 {
  font-size: 19px;
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.intro-card p { font-size: 15px; color: var(--color-text-dim); }

/* ---------- 场景轮播 ---------- */
.scenes { background: var(--color-bg-soft); }
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 3 / 2;
}
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 28px 20px;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 4, 0.88));
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.slide figcaption strong {
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--color-gold);
}
.slide figcaption span { font-size: 14px; color: var(--color-text-dim); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: rgba(14, 10, 8, 0.55);
  color: var(--color-text);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease, color .2s ease;
}
.carousel-btn:hover { background: var(--color-flame); color: #fff; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 18px; right: 24px;
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.carousel-dots button.active {
  width: 26px;
  background: var(--color-flame);
}

/* ---------- 下载区 ---------- */
.download {
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(226, 84, 42, 0.14), transparent 60%),
    var(--color-bg);
}
.download-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 56px;
}
.download .section-title,
.download .section-sub { text-align: left; }
.download .section-title::after { margin-left: 0; }
.download .section-sub { margin-bottom: 20px; }
.download-desc { color: var(--color-text-dim); font-size: 16px; max-width: 520px; }
.download-actions { margin-top: 30px; }
.download-note { margin-top: 18px; font-size: 13px; color: #7d7264; }

.download-qr { display: flex; justify-content: center; }
.qr-card {
  background: #f7f1e8;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(226, 84, 42, 0.25);
  transform: rotate(1.5deg);
  transition: transform .3s ease;
}
.qr-card:hover { transform: rotate(0deg) scale(1.03); }
.qr-card img { width: 210px; height: 210px; border-radius: 8px; }
.qr-card p {
  margin-top: 12px;
  color: #4a3a28;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 48px 0 36px;
  text-align: center;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-line);
  color: var(--color-text-dim);
  font-size: 14px;
}
.footer-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--color-text);
  margin-bottom: 8px;
}
.footer-tip {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 12px;
  color: #7d7264;
}

/* ---------- 响应式：移动端 ---------- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 64px; right: 0;
    flex-direction: column;
    gap: 0;
    width: min(240px, 70vw);
    background: rgba(14, 10, 8, 0.97);
    border-left: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    border-radius: 0 0 0 var(--radius);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 10px 0;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 24px; font-size: 16px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-title { letter-spacing: 5px; }

  .intro-grid { grid-template-columns: 1fr; }

  .slide figcaption strong { font-size: 18px; }
  .slide figcaption span { display: none; }
  .carousel-btn { width: 38px; height: 38px; font-size: 15px; }

  .download-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .download .section-title,
  .download .section-sub { text-align: center; }
  .download .section-title::after { margin: 16px auto 0; }
  .download-desc { margin: 0 auto; }
  .qr-card img { width: 180px; height: 180px; }
}
