/* ========================================
   0045 - SPACE COSMIC 太空宇宙风
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
  --space-deep: #0d0221;
  --space-mid: #150530;
  --nebula-purple: #2d1b69;
  --nebula-pink: #6b2d5b;
  --star-blue: #4a9ff5;
  --star-cyan: #00d4ff;
  --star-gold: #ffd700;
  --text-primary: #e8e0f0;
  --text-secondary: #a89bba;
  --card-bg: rgba(20,5,50,0.7);
  --card-border: rgba(74,159,245,0.15);
  --font-display: 'Orbitron', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--space-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Stars background */
.stars-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(45,27,105,0.4) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(107,45,91,0.3) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(74,159,245,0.15) 0%, transparent 50%);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13,2,33,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74,159,245,0.15);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--star-cyan);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-logo .star {
  color: var(--star-gold);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: rgba(232,224,240,0.7);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--star-cyan);
  text-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--star-cyan);
}
.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(13,2,33,0.95);
  backdrop-filter: blur(20px);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  text-decoration: none;
  color: rgba(232,224,240,0.7);
  font-weight: 500;
  border-bottom: 1px solid rgba(74,159,245,0.08);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--nebula-purple), #1a4399);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 50px;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(74,159,245,0.2);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,212,255,0.5);
  transform: translateY(-2px);
  border-color: var(--star-cyan);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: var(--star-cyan);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 50px;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 25px rgba(0,212,255,0.3);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0221 0%, #150530 30%, #1a0a3e 50%, #0d0221 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(45,27,105,0.5) 0%, transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(0,212,255,0.1) 0%, transparent 40%),
              radial-gradient(circle at 50% 30%, rgba(107,45,91,0.25) 0%, transparent 40%);
}
.hero-planet {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(74,159,245,0.3), rgba(45,27,105,0.5) 60%, rgba(13,2,33,0.8));
  box-shadow: 0 0 80px rgba(45,27,105,0.5), inset 0 0 60px rgba(0,212,255,0.1);
  right: -80px;
  top: 15%;
  animation: planet-float 10s ease-in-out infinite;
}
@keyframes planet-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--star-cyan);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--star-cyan), var(--star-blue), var(--nebula-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section */
.section {
  padding: 100px 24px;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.section-header h2 .accent {
  color: var(--star-cyan);
}
.section-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Features */
.features { background: rgba(13,2,33,0.5); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--star-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 15px 50px rgba(45,27,105,0.4), 0 0 30px rgba(0,212,255,0.08);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--star-cyan);
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Stats */
.stats {
  background: linear-gradient(180deg, rgba(20,5,50,0.8) 0%, rgba(13,2,33,0.6) 100%);
  border-top: 1px solid rgba(74,159,245,0.1);
  border-bottom: 1px solid rgba(74,159,245,0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 36px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: all 0.3s;
}
.stat-item:hover {
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 25px rgba(0,212,255,0.1);
  transform: translateY(-4px);
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--star-cyan);
  font-family: var(--font-display);
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Testimonials */
.testimonials { background: rgba(13,2,33,0.3); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 15px 40px rgba(45,27,105,0.35);
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.testimonial-user img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--star-cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.3);
}
.testimonial-user .name {
  font-weight: 700;
  color: #fff;
}
.testimonial-user .role {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.testimonial-stars {
  color: var(--star-gold);
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.testimonial-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* FAQ */
.faq { background: rgba(13,2,33,0.5); border-top: 1px solid rgba(74,159,245,0.06); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s;
  overflow: hidden;
}
.faq-item:hover { border-color: rgba(0,212,255,0.3); }
.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question i {
  transition: transform 0.3s;
  color: var(--star-cyan);
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* CTA */
.cta {
  background: linear-gradient(180deg, rgba(20,5,50,0.9) 0%, rgba(13,2,33,0.95) 100%);
  text-align: center;
  border-top: 1px solid rgba(0,212,255,0.1);
}
.cta h2 { color: #fff; }
.cta p { color: var(--text-secondary); }

/* Footer */
.footer {
  background: #0a0118;
  padding: 48px 24px 24px;
  border-top: 1px solid rgba(74,159,245,0.1);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--star-cyan);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(232,224,240,0.4);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--star-cyan); }
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: rgba(232,224,240,0.35);
  font-size: 1.3rem;
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--star-cyan); }
.footer-bottom {
  text-align: center;
  color: rgba(232,224,240,0.2);
  font-size: 0.8rem;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* Page hero (about/contact) */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  text-align: center;
  background: linear-gradient(180deg, #0d0221 0%, #150530 50%, #1a0a3e 100%);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
}
.page-hero .subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 16px auto 0;
}

/* About content */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}
.about-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--star-cyan);
  margin: 40px 0 16px;
}
.about-content p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Contact form */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  position: relative;
  z-index: 1;
}
.contact-form {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 48px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(20,5,50,0.6);
  border: 1px solid rgba(74,159,245,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--star-cyan);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.06);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Floating stars decoration */
.floating-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-planet { width: 150px; height: 150px; right: -40px; top: 10%; }
  .section { padding: 60px 16px; }
  .contact-form { padding: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
