/* ============================================================
   修仙世界 · 官网样式表
   深色道韵 · 水墨风 · 金色点缀
   ============================================================ */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
               "PingFang SC", "Microsoft YaHei", serif;
  background: #12141c;
  color: #e8e4d9;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(18, 20, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 165, 85, 0.1);
  transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4); }

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: 2px;
}
.logo-char {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #d4a555, #c0392b);
  border-radius: 6px;
  font-size: 16px; color: #12141c;
  font-weight: 900;
}
.logo-text { color: #d4a555; }

.nav-links {
  display: flex; gap: 32px;
}
.nav-links a {
  font-size: 14px; color: #a09a8c;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: #d4a555; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: #d4a555;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 8px 20px;
  background: linear-gradient(135deg, #d4a555, #b8913f);
  color: #12141c; font-size: 14px; font-weight: 600;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 165, 85, 0.4);
}

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #d4a555; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero 区域 ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(212, 165, 85, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(192, 57, 43, 0.06), transparent),
    linear-gradient(180deg, #12141c 0%, #1a1f2e 100%);
  z-index: -1;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(212, 165, 85, 0.3), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(212, 165, 85, 0.2), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(232, 228, 217, 0.15), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(232, 228, 217, 0.1), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(212, 165, 85, 0.25), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(212, 165, 85, 0.15), transparent);
  background-size: 400px 400px;
  animation: twinkle 8s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-content { max-width: 800px; }

.hero-title {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  background: linear-gradient(135deg, #e8e4d9 0%, #d4a555 50%, #c0392b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
  margin-bottom: 16px;
  animation: fadeUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: #d4a555;
  letter-spacing: 6px;
  margin-bottom: 32px;
  animation: fadeUp 1s ease-out 0.2s both;
}

.hero-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: #a09a8c;
  margin-bottom: 48px;
  line-height: 2;
  animation: fadeUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex; gap: 16px; justify-content: center;
  animation: fadeUp 1s ease-out 0.6s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, #d4a555, #b8913f);
  color: #12141c;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 165, 85, 0.4);
}
.btn-secondary {
  border-color: rgba(212, 165, 85, 0.4);
  color: #d4a555;
  background: transparent;
}
.btn-secondary:hover {
  background: rgba(212, 165, 85, 0.1);
  border-color: #d4a555;
}
.btn-disabled {
  background: rgba(160, 154, 140, 0.1);
  color: #6b6658;
  cursor: not-allowed;
  border-color: rgba(160, 154, 140, 0.2);
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: #a09a8c; font-size: 12px; letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeUp 1s ease-out 1s both;
}
.scroll-arrow {
  width: 1px; height: 32px; background: linear-gradient(180deg, #d4a555, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 100px 24px;
}
.container {
  max-width: 1200px; margin: 0 auto;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  color: #e8e4d9;
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.section-desc {
  text-align: center;
  color: #a09a8c;
  margin-bottom: 64px;
  font-size: 15px;
}

/* ---------- Features ---------- */
.features { background: #1a1f2e; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 165, 85, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(212, 165, 85, 0.3);
  background: rgba(212, 165, 85, 0.04);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  color: #d4a555;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
  color: #a09a8c;
  line-height: 1.8;
}

/* ---------- Overview ---------- */
.overview { background: #12141c; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(212, 165, 85, 0.03);
  border: 1px solid rgba(212, 165, 85, 0.1);
  border-radius: 8px;
  transition: all 0.3s;
}
.stat-item:hover { border-color: rgba(212, 165, 85, 0.3); }

.stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  background: linear-gradient(135deg, #d4a555, #c0392b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: #a09a8c;
  letter-spacing: 2px;
}

.roadmap { text-align: center; }
.roadmap h3 {
  font-size: 20px; color: #d4a555;
  margin-bottom: 32px; font-weight: 600; letter-spacing: 4px;
}
.roadmap-flow {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  align-items: center;
}
.roadmap-node {
  padding: 8px 20px;
  background: rgba(212, 165, 85, 0.1);
  border: 1px solid rgba(212, 165, 85, 0.2);
  border-radius: 20px;
  font-size: 14px;
  color: #d4a555;
}
.roadmap-arrow {
  color: #6b6658;
  font-size: 16px;
}
.roadmap-fail {
  margin-top: 24px;
  font-size: 13px;
  color: #6b6658;
}

/* ---------- Play ---------- */
.play { background: #1a1f2e; }
.play-card {
  max-width: 600px; margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: rgba(212, 165, 85, 0.03);
  border: 1px solid rgba(212, 165, 85, 0.1);
  border-radius: 12px;
}
.play-card h2 {
  font-size: 24px; color: #e8e4d9;
  margin-bottom: 16px; font-weight: 600;
}
.play-card p {
  color: #a09a8c; margin-bottom: 32px;
}
.play-buttons {
  display: flex; gap: 16px; justify-content: center;
  margin-bottom: 16px; flex-wrap: wrap;
}
.play-hint {
  font-size: 13px; color: #6b6658 !important;
  margin-top: 16px !important;
}

/* ---------- Changelog ---------- */
.changelog { background: #12141c; }

.changelog-list { max-width: 720px; margin: 0 auto; }

.changelog-item {
  display: flex; gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(212, 165, 85, 0.1);
}
.changelog-item:last-child { border-bottom: none; }

.cl-date {
  flex-shrink: 0;
  width: 80px;
  font-size: 14px;
  color: #d4a555;
  font-weight: 600;
}
.cl-tag {
  flex-shrink: 0;
  padding: 2px 10px;
  background: rgba(160, 154, 140, 0.1);
  color: #a09a8c;
  border-radius: 10px;
  font-size: 11px;
  height: fit-content;
  letter-spacing: 1px;
}
.cl-tag-current {
  background: rgba(212, 165, 85, 0.15);
  color: #d4a555;
}
.cl-content h4 {
  font-size: 16px;
  color: #e8e4d9;
  margin-bottom: 6px;
  font-weight: 600;
}
.cl-content p {
  font-size: 14px;
  color: #a09a8c;
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact { background: #1a1f2e; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px; margin: 0 auto;
}

.contact-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 165, 85, 0.1);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: rgba(212, 165, 85, 0.3);
  transform: translateY(-4px);
}
.contact-placeholder { opacity: 0.6; cursor: default; }

.contact-icon { font-size: 28px; margin-bottom: 12px; }
.contact-card h3 {
  font-size: 16px; color: #d4a555;
  margin-bottom: 8px; font-weight: 600;
}
.contact-card p {
  font-size: 13px; color: #a09a8c;
  word-break: break-all;
}
.contact-note {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #6b6658;
  font-style: italic;
}

/* ---------- Footer ---------- */
.footer {
  background: #0d0f14;
  padding: 32px 24px;
  border-top: 1px solid rgba(212, 165, 85, 0.1);
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-left {
  display: flex; align-items: center; gap: 8px;
  color: #a09a8c;
}
.footer-right { color: #6b6658; }
.footer-sep { margin: 0 8px; }
.footer-tagline { color: #6b6658; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #1a1f2e;
    padding: 24px; gap: 16px;
    border-bottom: 1px solid rgba(212, 165, 85, 0.1);
  }

  .section { padding: 64px 20px; }
  .hero { padding: 100px 20px 60px; }

  .footer-content { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 4px; }
  .roadmap-flow { gap: 8px; }
  .roadmap-arrow { display: none; }
}
