/* ===== Variables ===== */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --border: rgba(56, 189, 248, 0.12);
  --border-hover: rgba(56, 189, 248, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-secondary: #818cf8;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Background Effects ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(56, 189, 248, 0.08);
  top: -200px;
  right: -100px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(129, 140, 248, 0.06);
  bottom: -150px;
  left: -100px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 14, 23, 0.8);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  color: var(--accent) !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.tag {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: var(--radius);
  background: rgba(251, 191, 36, 0.04);
  text-align: left;
}

.notice-bar svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-bar p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Stats ===== */
.stats {
  position: relative;
  z-index: 1;
  padding: 20px 0 60px;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-unit {
  font-size: 1.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 8px;
  color: var(--text-primary);
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Services ===== */
.services {
  position: relative;
  z-index: 1;
  padding: 40px 0 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card.featured {
  border-color: rgba(56, 189, 248, 0.25);
}

.service-card.featured .card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.05));
  z-index: -1;
}

.service-card.coming-soon {
  opacity: 0.6;
}

.service-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon.wushuang { background: rgba(251, 146, 60, 0.1); color: #fb923c; }
.card-icon.wuwuyou { background: rgba(52, 211, 153, 0.1); color: #34d399; }
.card-icon.accelerator { background: rgba(129, 140, 248, 0.1); color: #818cf8; }
.card-icon.placeholder { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }

.card-badges {
  display: flex;
  gap: 6px;
}

.badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
}

.badge.hot { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge.game { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.badge.isolate { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.badge.free { background: rgba(129, 140, 248, 0.15); color: #818cf8; }

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-domain {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.card-price {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.card-price strong {
  font-size: 1.4rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.card-features {
  flex: 1;
  margin-bottom: 20px;
}

.card-features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.card-features.muted li::before {
  background: var(--text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.invite-code {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.invite-code em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #0a0e17;
}

.btn-primary:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.btn-disabled {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ===== Community ===== */
.community {
  position: relative;
  z-index: 1;
  padding: 0 0 60px;
}

.community-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
}

.community-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.community-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.platform-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.platform-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== Contact ===== */
.contact {
  position: relative;
  z-index: 1;
  padding: 0 0 60px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(129, 140, 248, 0.04));
}

.contact-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.wechat-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wechat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wechat-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.wechat-id svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.wechat-id:hover {
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.copyright {
  margin-top: 8px;
  opacity: 0.6;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
    padding: 28px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .community-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .platform-links {
    justify-content: center;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .hero {
    padding: 120px 0 40px;
  }
}

@media (max-width: 480px) {
  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    padding: 10px;
  }

  .platform-btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
  }
}
