:root {
  --primary: #DC2626;
  --secondary: #1E3A8A;
  --accent: #FBBF24;
  --bg-dark: #0F0A0A;
  --bg-light: rgba(255, 247, 237, 0.05);
  --text-main: #FFF7ED;
  --text-muted: #A1A1AA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-width: 375px;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(15, 10, 10, 0.95), rgba(15, 10, 10, 0.6));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 247, 237, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-links {
  display: none;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(15, 10, 10, 0.98);
  border-bottom: 1px solid rgba(255, 247, 237, 0.1);
  padding: 1rem;
  gap: 0.75rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  background: rgba(220, 38, 38, 0.15);
  color: var(--accent);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.25rem;
  }
  .hamburger {
    display: none;
  }
}

.footer-main {
  background: linear-gradient(to top, #050303, var(--bg-dark));
  border-top: 1px solid rgba(255, 247, 237, 0.08);
  padding-top: 3rem;
  padding-bottom: 2rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

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

.qr-card {
  background: rgba(255, 247, 237, 0.05);
  border: 1px solid rgba(255, 247, 237, 0.1);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.qr-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  border-radius: 8px;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), #991b1b);
  color: var(--text-main);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.7);
}

.btn-liquid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent), #f59e0b, var(--accent));
  background-size: 200% 100%;
  color: #0f0a0a;
  font-weight: 800;
  transition: all 0.4s ease;
}

.btn-liquid:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 247, 237, 0.08);
  border: 1px solid rgba(255, 247, 237, 0.15);
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--primary);
}

.card-glass {
  background: rgba(255, 247, 237, 0.05);
  border: 1px solid rgba(255, 247, 237, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  transition: all 0.35s ease;
}

.card-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.25);
  border-color: rgba(251, 191, 36, 0.3);
}

.card-bordered {
  background: rgba(30, 58, 138, 0.12);
  border: 1px solid rgba(30, 58, 138, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card-bordered:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.15);
}

.card-image {
  background: var(--bg-dark);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 237, 0.08);
  transition: all 0.35s ease;
}

.card-image:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.section-title-gradient {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title-gradient::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-title-bar {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  padding-left: 1rem;
  border-left: 5px solid var(--primary);
  margin-bottom: 1rem;
}

.section-title-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.stamp-badge {
  background: var(--primary);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 800;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

.animate-pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 35px rgba(251, 191, 36, 0.6); }
}

.animate-slide {
  animation: slide 20s linear infinite;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gold-text {
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.red-text {
  color: var(--primary);
}
