/* ============================================
   星黎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: #0d0810;
  color: #e4dce8;
  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, #ec4899, #f43f5e, #fb923c);
  -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-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 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(236, 72, 153, 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(236, 72, 153, 0.7);
}

.btn-download:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============================================
   NAVBAR — fixed top
   ============================================ */
.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(13, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
  background: rgba(13, 8, 16, 0.95);
  box-shadow: 0 1px 0 rgba(236, 72, 153, 0.08);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-icon img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

/* ============================================
   RENAME NOTICE — 独立于 header，不跟 navbar 重叠
   ============================================ */
.rename-notice {
  position: fixed;
  top: 68px; /* navbar 高度下方 */
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, rgba(236,72,153,0.95), rgba(244,63,94,0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.2);
  animation: noticeSlideDown 0.5s ease;
}

@keyframes noticeSlideDown {
  from { max-height: 0; opacity: 0; padding: 0; }
  to { max-height: 100px; opacity: 1; padding: 10px 0; }
}

.rename-notice.closing {
  animation: noticeSlideUp 0.3s ease forwards;
}

@keyframes noticeSlideUp {
  from { max-height: 100px; opacity: 1; padding: 10px 0; }
  to { max-height: 0; opacity: 0; padding: 0; }
}

.rename-notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 0 16px;
}

.rename-notice-icon {
  font-size: 18px;
  flex-shrink: 0;
  animation: noticeIconPulse 2s ease-in-out infinite;
}

@keyframes noticeIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.rename-notice-text {
  font-size: 13px;
  font-weight: 500;
  color: white;
  line-height: 1.5;
}

.rename-notice-text strong {
  font-weight: 700;
}

.rename-notice-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  line-height: 1;
}

.rename-notice-close:hover {
  background: rgba(255,255,255,0.35);
}

/* 公告隐藏时调整 hero 顶部间距 */
body.notice-hidden .hero {
  padding-top: 80px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, rgba(244,63,94,0.06) 40%, transparent 70%);
  pointer-events: none;
}

.hero-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.heart-particle {
  position: absolute;
  font-size: 16px;
  animation: heartFloat linear infinite;
  opacity: 0.3;
}

@keyframes heartFloat {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% { opacity: 0.4; }
  50% { opacity: 0.3; }
  90% { opacity: 0.1; }
  100% {
    transform: translateY(-100px) rotate(360deg) scale(1);
    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(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #f9a8d4;
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #f472b6;
  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: #8b7d94;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-desc strong {
  color: #d4c4db;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.download-hint {
  font-size: 13px;
  color: #6b5e73;
  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(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #f9a8d4;
  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: #8b7d94;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   ABOUT — 应用简介
   ============================================ */
.about {
  background: rgba(255,255,255,0.01);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236,72,153,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.about::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,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(30, 15, 35, 0.6);
  border: 1px solid rgba(236,72,153,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(236,72,153,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover {
  border-color: rgba(236, 72, 153, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 60px rgba(236,72,153,0.06);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(236, 72, 153, 0.1);
  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(236, 72, 153, 0.2);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2);
}

.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: #8b7d94;
  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(244,63,94,0.04) 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(30, 15, 35, 0.5);
  border: 1px solid rgba(236,72,153,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(236, 72, 153, 0.2);
  transform: translateX(6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  background: rgba(40, 20, 45, 0.6);
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  -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: #8b7d94;
  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(255,255,255,0.01);
  position: relative;
  overflow: hidden;
}

.faq::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236,72,153,0.04) 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(30, 15, 35, 0.5);
  border: 1px solid rgba(236,72,153,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(236,72,153,0.12);
  background: rgba(35, 18, 40, 0.6);
}

.faq-item.active {
  border-color: rgba(236,72,153,0.25);
  background: rgba(40, 20, 45, 0.7);
  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: #e4dce8;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-item.active .faq-question {
  color: #f9a8d4;
}

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #8b7d94;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: #f9a8d4;
}

.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: #a18da8;
  line-height: 1.8;
}

.faq-answer strong {
  color: #d4c4db;
}

/* ============================================
   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(236,72,153,0.15) 0%, 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: #8b7d94;
  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(236,72,153,0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b5e73;
  flex-wrap: wrap;
  gap: 12px;
}

.beian-link {
  color: #6b5e73;
  font-size: 13px;
  transition: color 0.2s;
}

.beian-link:hover {
  color: #a18da8;
}

/* ============================================
   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) {
  .hero {
    padding: 140px 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;
  }

  .rename-notice-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 0 50px;
  }

  .hero-title {
    font-size: 26px;
  }

  .btn-download {
    padding: 16px 32px;
    font-size: 17px;
  }

  .rename-notice {
    top: 60px;
  }

  .rename-notice-text {
    font-size: 11px;
  }

  .section-title {
    font-size: 24px;
  }

  .faq-question {
    font-size: 14px;
    padding: 16px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
