/* ============================================
   快连加速器 - 下载页样式
   ============================================ */

/* ---------- Download Hero ---------- */
.download-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-page) 100%);
  text-align: center;
}

.download-hero-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.download-hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Current Platform ---------- */
.current-platform {
  padding: 40px 0;
}

.current-platform-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.current-platform-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.current-platform-icon.windows {
  background: #E8F0FE;
  color: #0078D4;
}

.current-platform-icon.mac {
  background: #F0E8FE;
  color: #7B61FF;
}

.current-platform-icon.android {
  background: #E6F9F3;
  color: #22C997;
}

.current-platform-icon.ios {
  background: #FFF0E8;
  color: #FF6B35;
}

.current-platform-info {
  flex: 1;
}

.current-platform-info .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.current-platform-info .label svg {
  width: 12px;
  height: 12px;
}

.current-platform-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.current-platform-info p {
  font-size: 14px;
  color: var(--text-muted);
}

.current-platform-btn {
  flex-shrink: 0;
  padding: 14px 32px;
  font-size: 15px;
}

/* ---------- All Downloads ---------- */
.all-downloads {
  background: transparent;
}

.downloads-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-page);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.tab-btn.active {
  color: white;
  background: var(--primary);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
  border: 1.5px solid var(--border);
}

.download-card:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.download-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.download-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.download-card .version {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.download-card .size {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.download-card .dl-btn {
  width: 100%;
}

/* ---------- Download Steps ---------- */
.download-steps {
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--border);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq {
  background: transparent;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

.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);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .download-hero-title {
    font-size: 30px;
  }

  .current-platform-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .current-platform-btn {
    width: 100%;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .download-hero {
    padding: 100px 0 48px;
  }
  .download-hero-title {
    font-size: 26px;
  }
  .download-hero-desc {
    font-size: 15px;
  }
  .current-platform-card {
    padding: 28px 20px;
  }
  .current-platform-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  .faq-question {
    font-size: 14px;
  }
}
