/* ============================================
   Bubbly — AI情感伴侣下载页样式
   配色：蓝紫粉清新渐变系
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #080e1a;
  color: #e4e8f0;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Gradient Text — 蓝紫渐变 --- */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

/* 下载按钮 */
.btn-download {
  padding: 18px 48px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 16px;
  gap: 12px;
  letter-spacing: 1px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-download:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.7);
}

.btn-download:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============================================
   ANNOUNCEMENT BAR — 显眼公告
   ============================================ */
.announcement-bar {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.announcement-icon {
  font-size: 20px;
  flex-shrink: 0;
  animation: warnBounce 0.8s ease-in-out infinite alternate;
}

@keyframes warnBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

.announcement-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.announcement-text strong {
  color: #fef08a;
  font-weight: 700;
}

/* 公告显示时，Hero 需要更多顶部空间 */
.announcement-bar ~ main .hero {
  padding-top: 150px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
  background: rgba(8, 14, 26, 0.95);
  box-shadow: 0 1px 0 rgba(99, 102, 241, 0.1);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-icon img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.06) 35%, rgba(244,114,182,0.03) 60%, transparent 75%);
  pointer-events: none;
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.3);
  animation: bubbleFloat linear infinite;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 0.5; }
  50% { opacity: 0.3; }
  90% { opacity: 0.1; }
  100% {
    transform: translateY(-100px) scale(1.2);
    opacity: 0;
  }
}

.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.download-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #818cf8;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: white;
}

.hero-desc {
  font-size: 17px;
  color: #8892b0;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-desc strong {
  color: #ccd6f6;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.download-hint {
  font-size: 13px;
  color: #5a6680;
  margin-top: 4px;
}

/* ============================================
   SECTIONS SHARED
   ============================================ */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 17px;
  color: #8892b0;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   ABOUT — 应用简介
   ============================================ */
.about {
  background: rgba(99, 102, 241, 0.02);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.about::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244,114,182,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.about-card {
  background: rgba(15, 20, 40, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 0% 0%, rgba(99,102,241,0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 60px rgba(99,102,241,0.08);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.about-card:hover .about-card-icon {
  background: rgba(99, 102, 241, 0.22);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.about-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.about-card p {
  font-size: 14px;
  color: #8892b0;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================
   GUIDE — 使用说明
   ============================================ */
.guide {
  position: relative;
  overflow: hidden;
}

.guide::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(15, 20, 40, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.06);
  border-radius: 20px;
  padding: 28px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.guide-step:hover {
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  background: rgba(20, 25, 50, 0.7);
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  min-width: 70px;
  text-align: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: #8892b0;
  line-height: 1.7;
}

.step-icon {
  font-size: 40px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.guide-step:hover .step-icon {
  transform: scale(1.15);
}

.guide-cta {
  text-align: center;
}

/* ============================================
   FAQ — 常见问题
   ============================================ */
.faq {
  background: rgba(99, 102, 241, 0.02);
  position: relative;
  overflow: hidden;
}

.faq::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.faq-item {
  background: rgba(15, 20, 40, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.15);
  background: rgba(20, 25, 45, 0.7);
}

.faq-item.active {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(25, 30, 55, 0.8);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #e4e8f0;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-item.active .faq-question {
  color: #a5b4fc;
}

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #8892b0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: #a5b4fc;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: #8892b0;
  line-height: 1.8;
}

.faq-answer strong {
  color: #ccd6f6;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  text-align: center;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.06) 50%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: 42px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 18px;
  color: #8892b0;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0 30px;
  border-top: 1px solid rgba(99, 102, 241, 0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #5a6680;
  flex-wrap: wrap;
  gap: 12px;
}

.beian-link {
  color: #5a6680;
  font-size: 13px;
  transition: color 0.2s;
}

.beian-link:hover {
  color: #8892b0;
}

/* ============================================
   SCROLL ANIMATIONS (AOS)
   ============================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .announcement-bar {
    top: 60px;
    padding: 10px 0;
  }

  .announcement-text {
    font-size: 12px;
  }

  .announcement-bar ~ main .hero {
    padding-top: 140px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 28px;
  }

  .guide-step {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .step-number {
    font-size: 36px;
    min-width: auto;
  }

  .step-icon {
    font-size: 32px;
  }

  .cta h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .announcement-bar {
    top: 56px;
    padding: 8px 0;
  }

  .announcement-text {
    font-size: 11px;
  }

  .announcement-icon {
    font-size: 16px;
  }

  .announcement-bar ~ main .hero {
    padding-top: 130px;
  }

  .hero {
    padding: 90px 0 50px;
  }

  .hero-title {
    font-size: 26px;
  }

  .btn-download {
    padding: 16px 32px;
    font-size: 17px;
  }

  .section-title {
    font-size: 24px;
  }

  .faq-question {
    font-size: 14px;
    padding: 16px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
