/* 紫鸟浏览器落地页 - 全局样式 */
:root {
  --primary: #3B71FE;
  --primary-dark: #2563EB;
  --primary-light: #EBF2FF;
  --accent: #FF6B35;
  --accent-glow: rgba(255, 107, 53, 0.4);
  --text-dark: #1A1F36;
  --text-gray: #64748B;
  --text-light: #94A3B8;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(59, 113, 254, 0.12);
  --shadow-lg: 0 12px 48px rgba(59, 113, 254, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航栏 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-gray);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== 下载按钮 ===== */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(59, 113, 254, 0.4);
  white-space: nowrap;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-download:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(59, 113, 254, 0.5);
}

.btn-download:hover::before {
  left: 100%;
}

.btn-download:active {
  transform: translateY(0) scale(0.98);
}

.btn-download .icon {
  font-size: 18px;
}

.btn-download-lg {
  padding: 18px 48px;
  font-size: 18px;
  box-shadow: 0 6px 28px rgba(59, 113, 254, 0.45);
}

.btn-download-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #FF4500 100%);
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-download-accent:hover {
  box-shadow: 0 8px 36px var(--accent-glow);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
  50% { box-shadow: 0 4px 32px rgba(255, 107, 53, 0.6); }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--primary-light);
}

/* ===== Hero 区域 ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(235,242,255,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text .subtitle {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 12px;
  font-weight: 500;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-gray);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== 通用区块 ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 特性卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== 数据展示 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
}

.stats-bar-item {
  text-align: center;
}

.stats-bar-item .num {
  font-size: 36px;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.stats-bar-item .label {
  font-size: 14px;
  opacity: 0.85;
}

/* ===== 平台支持 ===== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.platform-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.platform-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.platform-item span {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

/* ===== 用户评价 ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
}

.author-info strong {
  display: block;
  font-size: 14px;
}

.author-info span {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== CTA 区域 ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 36px;
}

/* ===== 下载页 ===== */
.download-hero {
  padding: 120px 0 60px;
  background: var(--bg-light);
  text-align: center;
}

.download-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-hero p {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto 40px;
}

.download-main-btn {
  margin-bottom: 48px;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.download-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.download-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.download-card .btn-download {
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--text-gray);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-keywords {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .features-grid,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .features-grid,
  .testimonials,
  .download-platforms,
  .download-steps,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
