﻿:root {
  --primary: #7c3aed;
  --secondary: #22d3ee;
  --accent: #f472b6;
  --bg-dark: #020617;
  --bg-light: rgba(124, 58, 237, 0.12);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

#main-header.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav {
  background: rgba(2, 6, 23, 0.98);
  border-left: 1px solid rgba(124, 58, 237, 0.3);
}

.mobile-nav.translate-x-full {
  visibility: hidden;
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.mobile-nav nav a:hover,
.mobile-nav nav a.active {
  background: rgba(124, 58, 237, 0.2);
  color: var(--secondary);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #5b21b6);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.8), 0 0 60px rgba(34, 211, 238, 0.3);
}

.btn-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  animation: pulse-glow 2.5s infinite;
}

.btn-pulse:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "◆";
  color: var(--accent);
  font-size: 0.7rem;
}

.section-label.justify-center {
  justify-content: center;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-hero-sm {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.22) 0%, var(--bg-dark) 65%);
  padding-top: 6rem;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.12) 0%, transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.12) 0%, transparent 25%);
  animation: particle-pulse 8s ease-in-out infinite;
}

.hero-content-sm {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-title-sm {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle-sm {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.section-codes {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(124, 58, 237, 0.06) 100%);
}

.codes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.code-crystal {
  position: relative;
  padding: 2.25rem 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(34, 211, 238, 0.3);
  text-align: center;
  overflow: hidden;
  transition: all 0.4s;
}

.code-crystal:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 25px 60px rgba(124, 58, 237, 0.25), 0 0 40px rgba(34, 211, 238, 0.12);
}

.crystal-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  animation: shine-sweep 4s infinite;
  pointer-events: none;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.code-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.code-header i {
  color: var(--secondary);
  font-size: 1.25rem;
}

.code-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
}

.code-reward {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.code-reward p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.code-reward i {
  color: var(--accent);
}

.copy-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(34, 211, 238, 0.4);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: var(--secondary);
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.25);
}

.codes-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.codes-note i {
  font-size: 1.5rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.codes-note p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.section-recharge {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06) 0%, var(--bg-dark) 100%);
}

.recharge-wrap {
  border-radius: 1.5rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 1.5rem;
  overflow: hidden;
}

.recharge-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.recharge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
}

.recharge-table thead {
  background: rgba(124, 58, 237, 0.25);
}

.recharge-table th,
.recharge-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.recharge-table th {
  color: var(--secondary);
  font-weight: 700;
}

.recharge-table td {
  color: var(--text-muted);
}

.recharge-table tbody tr:last-child td {
  border-bottom: none;
}

.recharge-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.08);
}

.amount {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(244, 114, 182, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.amount::after {
  content: "元";
  font-size: 0.75rem;
  font-weight: 500;
}

.recharge-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.15);
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.15);
}

.info-card i {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.info-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.text-center {
  text-align: center;
}

.mt-12 {
  margin-top: 3rem;
}

.section-friends {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(124, 58, 237, 0.06) 100%);
  padding: 4rem 0 3rem;
}

.friends-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.friends-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.friends-title::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.7rem;
}

.friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.friends-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  max-width: 100%;
  word-break: break-word;
}

.friends-list a:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--secondary);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(34, 211, 238, 0.15);
}

.page-footer {
  position: relative;
  padding: 5rem 0 2rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #000 100%);
  overflow: hidden;
}

.footer-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(124, 58, 237, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(34, 211, 238, 0.18) 0%, transparent 40%);
}

.footer-beams::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(124, 58, 237, 0.15), transparent);
  animation: beam-rise 4s ease-in-out infinite;
}

.footer-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand span {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .codes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .recharge-info {
    grid-template-columns: repeat(3, 1fr);
  }

  .friends-card {
    padding: 2rem;
  }
}

@keyframes particle-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes shine-sweep {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), 0 0 50px rgba(244, 114, 182, 0.25); }
  50% { box-shadow: 0 0 45px rgba(124, 58, 237, 0.8), 0 0 80px rgba(244, 114, 182, 0.45); }
}

@keyframes beam-rise {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.1); }
}

.section-contact {
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.qr-card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
}

.qr-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
}

.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;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

