:root {
  --primary: #B91C1C;
  --secondary: #D4A574;
  --accent: #F59E0B;
  --bg-dark: #0f0a08;
  --bg-light: rgba(212, 165, 116, 0.08);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --bronze-glow: 0 0 20px rgba(212, 165, 116, 0.3);
  --flame-glow: 0 0 25px rgba(185, 28, 28, 0.5), 0 0 50px rgba(245, 158, 11, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.25;
}

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

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

#main-header {
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header-scrolled {
  background: rgba(15, 10, 8, 0.95) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(185, 28, 28, 0.2);
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
  letter-spacing: 0.05em;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

.btn-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #991b1b 100%);
  color: white;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--flame-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.08em;
}

.btn-flame::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: metalShine 3s infinite;
}

.btn-flame:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(185, 28, 28, 0.7), 0 0 70px rgba(245, 158, 11, 0.35);
}

.btn-metal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid var(--secondary);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.btn-metal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-metal:hover {
  background: rgba(212, 165, 116, 0.12);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--bronze-glow);
}

.btn-metal:hover::before {
  left: 100%;
}

.mobile-nav {
  background: rgba(15, 10, 8, 0.98);
  border-left: 2px solid var(--primary);
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mobile-nav nav a:hover {
  background: rgba(185, 28, 28, 0.15);
  color: var(--accent);
}

.mobile-nav nav a.active {
  background: rgba(185, 28, 28, 0.25);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.page-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(15, 10, 8, 0.3) 0%, rgba(15, 10, 8, 0.85) 70%, rgba(15, 10, 8, 0.98) 100%);
}

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 80%, rgba(185, 28, 28, 0.15) 0%, transparent 30%),
                    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 25%);
  animation: emberFloat 8s ease-in-out infinite;
}

.hero-sword {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
  z-index: 1;
  pointer-events: none;
  animation: swordFlash 4s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  height: clamp(5rem, 18vw, 10rem);
  width: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(185, 28, 28, 0.6));
  animation: logoEnter 1s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 900;
  color: white;
  letter-spacing: 0.15em;
  text-shadow: 0 0 40px rgba(185, 28, 28, 0.8), 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
  animation: titleEnter 1s ease-out 0.2s both;
  position: relative;
}

.hero-title::before,
.hero-title::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.25em;
  color: var(--accent);
  opacity: 0.8;
}

.hero-title::before {
  left: -0.8em;
}

.hero-title::after {
  right: -0.8em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--secondary);
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease-out 0.4s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease-out 0.5s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(15, 10, 8, 0.7);
  border: 1px solid rgba(212, 165, 116, 0.4);
  border-radius: 2px;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: fadeUp 0.8s ease-out 0.6s both;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary);
  z-index: 2;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-intro {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(185, 28, 28, 0.05) 100%);
}

.section-features {
  background: var(--bg-dark);
}

.section-events {
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.03) 0%, var(--bg-dark) 100%);
}

.section-download {
  background: radial-gradient(ellipse at center, rgba(212, 165, 116, 0.06) 0%, var(--bg-dark) 70%);
}

.section-contact {
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--primary);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}

.section-label::before {
  right: 100%;
  margin-right: 0.75rem;
}

.section-label::after {
  left: 100%;
  margin-left: 0.75rem;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.05em;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.intro-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-light);
  border-left: 3px solid var(--primary);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.stats-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.08) 0%, rgba(185, 28, 28, 0.06) 100%);
  border: 2px solid rgba(212, 165, 116, 0.25);
  position: relative;
}

.stats-board::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  border: 1px solid rgba(212, 165, 116, 0.1);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  padding: 1.25rem;
  background: rgba(15, 10, 8, 0.5);
  border: 1px solid rgba(212, 165, 116, 0.15);
}

.stat-num {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-light);
  border: 1px solid rgba(212, 165, 116, 0.2);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 165, 116, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--bronze-glow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-img {
  height: 180px;
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-img img {
  transform: scale(1.08);
}

.feature-body {
  padding: 1.5rem;
  position: relative;
}

.feature-icon {
  position: absolute;
  top: -1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #7f1d1d 100%);
  border: 2px solid var(--secondary);
  color: white;
  font-size: 1.25rem;
  box-shadow: var(--flame-glow);
}

.feature-body h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.feature-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.event-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.event-scroll {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(139, 69, 19, 0.08) 100%);
  border: 2px solid rgba(212, 165, 116, 0.35);
  border-radius: 4px;
}

.event-scroll::before,
.event-scroll::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.4), transparent);
}

.event-scroll::before {
  top: 0.5rem;
}

.event-scroll::after {
  bottom: 0.5rem;
}

.event-stone {
  background: linear-gradient(135deg, rgba(60, 60, 60, 0.15) 0%, rgba(30, 30, 30, 0.25) 100%);
  border: 3px solid rgba(120, 113, 108, 0.4);
  border-radius: 2px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.event-stone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(212, 165, 116, 0.03) 20px);
  pointer-events: none;
}

.event-mark {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 28, 28, 0.2);
  border: 2px solid var(--primary);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
}

.event-card h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
}

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.event-list li i {
  color: var(--accent);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.download-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.download-visual img {
  max-height: 360px;
  width: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: floatWeapon 4s ease-in-out infinite;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.25) 0%, transparent 70%);
  z-index: 1;
  animation: glowPulse 3s ease-in-out infinite;
}

.download-content .section-title {
  text-align: left;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 10, 8, 0.7);
  border: 1px solid rgba(212, 165, 116, 0.25);
  color: white;
  transition: all 0.3s ease;
}

.platform-btn i {
  font-size: 1.75rem;
  color: var(--accent);
  transition: color 0.3s ease;
}

.platform-btn span {
  display: flex;
  flex-direction: column;
}

.platform-btn span b {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.platform-btn span small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.platform-btn:hover {
  background: rgba(185, 28, 28, 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--flame-glow);
}

.platform-btn:hover i {
  color: var(--secondary);
}

.download-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.qr-card {
  background: var(--bg-light);
  border: 1px solid rgba(212, 165, 116, 0.2);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
}

.qr-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(212, 165, 116, 0.5);
  box-shadow: var(--bronze-glow);
}

.qr-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  padding: 0.5rem;
  background: white;
  border: 2px solid var(--secondary);
}

.qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.qr-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #1a0f0c 0%, #0f0a08 100%);
  border-top: 2px solid rgba(185, 28, 28, 0.4);
  padding: 4rem 0 2rem;
  overflow: hidden;
}

.footer-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
  animation: bannerFlow 4s linear infinite;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-desc {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes metalShine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

@keyframes emberFloat {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-10px); }
}

@keyframes swordFlash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes logoEnter {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes floatWeapon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes bannerFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-platforms {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-actions {
    gap: 1.5rem;
  }
}
