/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* ===== CSS 变量 ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg-dark: #0a0a1a;
  --bg-card: #12122a;
  --bg-card2: #1a1a35;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 8px 32px rgba(99, 102, 241, 0.4);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.app-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-btn);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== Hero 区域 ===== */
.hero {
  position: relative;
  padding: 120px 24px 0;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.hero-bg-blur {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--primary-light);
  width: fit-content;
}

.badge-star {
  color: var(--warning);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
}

.hero-desc strong {
  color: var(--text-primary);
}

/* 评分行 */
.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: var(--warning);
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.rating-count {
  font-size: 14px;
  color: var(--text-muted);
}

/* 下载按钮 */
.download-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 180px;
}

.btn-store:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.btn-ios {
  background: var(--text-primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-android {
  background: linear-gradient(135deg, #1a7735, #2db548);
  color: #fff;
  box-shadow: 0 4px 20px rgba(45, 181, 72, 0.3);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-sub {
  font-size: 11px;
  opacity: 0.7;
}

.store-name {
  font-size: 16px;
  font-weight: 700;
}

.platform-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* 手机展示 */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--bg-card);
  border-radius: 44px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-dark);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 浮动卡片 */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  animation: float 3s ease-in-out infinite;
}

.card-top {
  top: 80px;
  right: -30px;
  animation-delay: 0s;
}

.card-bottom {
  bottom: 100px;
  left: -30px;
  animation-delay: 1.5s;
}

.card-icon {
  font-size: 22px;
}

.card-title {
  font-size: 11px;
  color: var(--text-muted);
}

.card-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 统计数字 */
.stats-bar {
  max-width: 1200px;
  margin: 60px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== 通用 Section 样式 ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 500px;
  text-align: center;
}

/* ===== 功能区 ===== */
.features-section {
  padding: 100px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}

.card-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
  border-color: rgba(99, 102, 241, 0.35);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.icon-purple { background: rgba(99, 102, 241, 0.2); color: var(--primary-light); }
.icon-blue   { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.icon-green  { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.icon-orange { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.icon-pink   { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.icon-cyan   { background: rgba(6, 182, 212, 0.2);  color: #22d3ee; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.feature-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== 截图区 ===== */
.screenshots-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05), transparent);
}

.screenshots-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screenshot-item p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.screenshot-phone {
  width: 200px;
  height: 400px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.screenshot-item:hover .screenshot-phone {
  transform: translateY(-8px);
}

.screenshot-item.screenshot-main .screenshot-phone {
  width: 240px;
  height: 480px;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.25);
}

.screenshot-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 评价区 ===== */
.reviews-section {
  padding: 100px 24px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s, border-color 0.3s;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.reviewer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-stars {
  color: var(--warning);
  font-size: 14px;
  letter-spacing: 1px;
}

.review-platform {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card2);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* 综合评分 */
.overall-rating {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.rating-big {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stars-big {
  color: var(--warning);
  font-size: 22px;
  letter-spacing: 3px;
}

.rating-total {
  font-size: 14px;
  color: var(--text-muted);
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.bar {
  flex: 1;
  height: 7px;
  background: var(--bg-card2);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--warning);
  border-radius: 100px;
}

.bar-4 { background: #fbbf24; }
.bar-3 { background: var(--accent); }
.bar-2 { background: var(--danger); }

/* ===== FAQ 区 ===== */
.faq-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.03), transparent);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-q {
  list-style: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--primary-light);
  transition: transform 0.3s;
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-q:hover {
  background: rgba(99, 102, 241, 0.05);
}

.faq-a {
  padding: 0 24px 20px;
}

.faq-a p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ===== CTA 区 ===== */
.cta-section {
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 32px;
  padding: 70px 40px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 36px;
}

.cta-btns {
  justify-content: center;
}

.cta-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand {
  max-width: 200px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badge, .hero-desc, .platform-note {
    text-align: center;
  }

  .hero-phone {
    order: -1;
  }

  .float-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .nav-links { display: none; }

  .overall-rating {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-row {
    flex-direction: column;
    align-items: center;
  }

  .stats-bar {
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
  }

  .stat-divider { display: none; }

  .stat-item { width: 45%; }

  .footer-container { flex-direction: column; }

  .footer-links { gap: 30px; flex-wrap: wrap; }

  .footer-bottom { flex-direction: column; }

  .download-btns { flex-direction: column; }

  .btn-store { min-width: unset; width: 100%; justify-content: center; }
}
