/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --accent: #00c853;
  --accent-light: #e8f5e9;
  --text-primary: #1a1a2e;
  --text-secondary: #5f6368;
  --text-light: #9aa0a6;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #1a1a2e;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #07c160;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #06ae56;
  transform: translateY(-1px);
}

/* Hero 区域 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 100px 20px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 50%, #fff5f5 100%);
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #07c160;
  color: white;
  border: none;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
}

.hero-btn:hover {
  background: #06ae56;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

.hero-visual {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 28px;
  overflow: hidden;
}

.app-preview {
  padding: 20px 16px;
}

.preview-header {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 16px 0 20px;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
  color: var(--text-secondary);
}

.preview-card i {
  color: var(--primary);
  font-size: 18px;
}

.preview-card.accent {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
}

.preview-card.accent i {
  color: white;
}


/* 功能区域 */
.features {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header.light {
  color: white;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-header.light .section-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon.ai {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.feature-icon.spot {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: white;
}

.feature-icon.weather {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
}

.feature-icon.social {
  background: linear-gradient(135deg, #fa709a, #fee140);
  color: white;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* 使用场景 */
.scenarios {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--bg-dark), #2d2d44);
  color: white;
}

.scenario-list {
  max-width: 500px;
  margin: 0 auto;
}

.scenario-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.scenario-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.scenario-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  min-width: 40px;
}

.scenario-content {
  flex: 1;
}

.scenario-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.scenario-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.scenario-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
}

/* 用户评价 */
.testimonials {
  padding: 80px 20px;
  background: var(--bg-primary);
}

.testimonial-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 12px;
  margin-top: 2px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 扫码区域 */
.qr-section {
  padding: 60px 20px 80px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.qr-card {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.qr-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.qr-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.qr-content {
  margin-bottom: 24px;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.qr-placeholder i {
  font-size: 48px;
  color: #07c160;
}

.qr-placeholder span {
  font-size: 13px;
}

.qr-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tip-item i {
  color: var(--primary);
}

.tip-divider {
  color: var(--text-light);
  font-size: 12px;
}

.qr-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.qr-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.qr-feature i {
  color: var(--accent);
}

/* 页脚 */
.footer {
  padding: 40px 20px;
  background: var(--bg-dark);
  text-align: center;
  color: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.footer-brand span {
  font-size: 18px;
  font-weight: 600;
}

.footer-slogan {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* 响应式适配 */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-stats {
    gap: 16px;
    padding: 16px;
  }
  
  .stat-num {
    font-size: 20px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .phone-mockup {
    width: 220px;
    height: 440px;
  }
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    padding: 120px 40px;
  }
  
  .hero-content {
    text-align: left;
    flex: 1;
  }
  
  .hero-stats {
    justify-content: flex-start;
  }
  
  .hero-visual {
    margin-top: 0;
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
  
  .testimonial-grid {
    flex-direction: row;
    max-width: 900px;
  }
  
  .testimonial-card {
    flex: 1;
  }
}


/* Toast 提示 */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 24px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
