/* ============================================
   快连加速器 - 首页样式
   ============================================ */

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  background:
    radial-gradient(40vw 30vw at 88% 12%, rgba(34,201,151,0.12), transparent 60%),
    radial-gradient(36vw 28vw at 6% 30%, rgba(79,110,247,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-white) 0%, transparent 72%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mockup {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: var(--primary);
  opacity: 0.06;
  border-radius: 50%;
}

.hero-mockup::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: var(--accent);
  opacity: 0.08;
  border-radius: 50%;
}

.hero-dash-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
}
.hero-dash-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,201,151,0.18);
  animation: klPulse 1.8s infinite;
}
@keyframes klPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-dash-globe {
  width: 96px; height: 96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 10px 34px rgba(79,110,247,0.35);
  position: relative; z-index: 1;
}
.hero-dash-globe svg { width: 48px; height: 48px; }
.hero-dash-meta { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; position: relative; z-index: 1; }
.hero-bar-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-secondary); }
.hero-bar-row > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; width: auto; min-width: 32px; flex-shrink: 0; }
.hero-bar-arrow { width: 13px; height: 13px; flex-shrink: 0; color: var(--primary); }
.hero-bars { display: flex; gap: 5px; flex: 1; align-items: center; }
.hero-bars i { flex: 1; height: 10px; border-radius: 4px; background: var(--primary-bg); }
.hero-bars i:nth-child(1) { height: 6px; }
.hero-bars i:nth-child(2) { height: 8px; }
.hero-bars i:nth-child(4),
.hero-bars i:nth-child(5) { background: var(--primary); }
.hero-dash-ping {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  position: relative; z-index: 1;
}
.hero-dash-ping svg { width: 15px; height: 15px; color: var(--accent); }

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: klFloaty 4s ease-in-out infinite;
}
.hero-chip svg { width: 18px; height: 18px; color: var(--primary); }
.hero-chip-1 { top: 6%; left: -8%; }
.hero-chip-2 { bottom: 10%; right: -10%; animation-delay: 1.5s; }
@keyframes klFloaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Platforms ---------- */
.platforms {
  background: transparent;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  border: 1.5px solid var(--border);
}

.platform-card:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.platform-icon.windows {
  background: #E8F0FE;
  color: #0078D4;
}

.platform-icon.mac {
  background: #F0E8FE;
  color: #7B61FF;
}

.platform-icon.android {
  background: #E6F9F3;
  color: #22C997;
}

.platform-icon.ios {
  background: #FFF0E8;
  color: #FF6B35;
}

.platform-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.platform-version {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.platform-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.platform-download-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.platform-download-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.blue {
  background: var(--primary-bg);
  color: var(--primary);
}

.feature-icon.green {
  background: var(--accent-bg);
  color: var(--accent);
}

.feature-icon.orange {
  background: #FFF0E8;
  color: #FF6B35;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Why Section ---------- */
.why {
  background: transparent;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card-icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary), #6C5CE7);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta .section-badge {
  background: rgba(255,255,255,0.15);
  color: white;
}

.cta .section-title {
  color: white;
}

.cta .section-desc {
  color: rgba(255,255,255,0.8);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: white;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 320px;
  }

  .hero-title {
    font-size: 36px;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 56px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   首页新增区块 · 玻璃拟态升级
   ============================================================ */

/* ---------- 三步极速连接 ---------- */
.home-steps { background: transparent; }
.steps-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-item {
  padding: 32px 28px;
  text-align: center;
}
.step-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 8px 24px rgba(79,110,247,0.3);
}
.step-badge svg { width: 26px; height: 26px; }
.step-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.step-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ---------- 用户真实评价 ---------- */
.testimonials { background: transparent; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi-stars { display: flex; gap: 3px; color: #FFB020; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-quote { font-size: 14px; line-height: 1.8; color: var(--text-secondary); flex: 1; }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.testi-role { font-size: 12px; color: var(--text-muted); }

/* ---------- 常见问题预览 ---------- */
.faq-preview { background: transparent; }
.faq-preview .faq-list { max-width: 680px; margin: 0 auto; }
.faq-preview .faq-item { border-bottom: 1px solid var(--border-light); }
.faq-preview .faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-preview .faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 15px; font-weight: 600; color: var(--text-primary);
  text-align: left; transition: color var(--transition);
  background: none; cursor: pointer;
}
.faq-preview .faq-question:hover { color: var(--primary); }
.faq-preview .faq-question svg { width: 20px; height: 20px; color: var(--text-muted); transition: transform var(--transition); flex-shrink: 0; margin-left: 12px; }
.faq-preview .faq-item.active .faq-question svg { transform: rotate(180deg); color: var(--primary); }
.faq-preview .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-preview .faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-preview .faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.faq-more { text-align: center; margin-top: 32px; }

/* ---------- 深色适配：Hero 玻璃 ---------- */
[data-theme="dark"] .hero-mockup {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .hero-chip {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .hero-bars i { background: rgba(255,255,255,0.12); }
[data-theme="dark"] .hero-bars i:nth-child(4),
[data-theme="dark"] .hero-bars i:nth-child(5) { background: var(--primary); }

/* ---------- 新增区块响应式 ---------- */
@media (max-width: 968px) {
  .steps-band { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .testi-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-chip-1 { left: 0; }
  .hero-chip-2 { right: 0; }
}
