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

:root {
  --primary: #7B68EE;
  --primary-light: #9B7BFF;
  --primary-dark: #6A5ACD;
  --bg: #F5F7FA;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #6c6c7e;
  --border: #e8e8ee;
  --shadow: 0 4rpx 24rpx rgba(123, 104, 238, 0.08);
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* 导航栏 */
.navbar {
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 80px 24px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-slogan {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  opacity: 0.95;
}

.hero-painpoint {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.85;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

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

.hero-qrcode {
  text-align: center;
  padding-left: 20px;
}

.qrcode-img {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px;
}

.qrcode-hint {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.9;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-download {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(123, 104, 238, 0.3);
}

.btn-guide-link {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  margin-left: 8px;
  display: inline-flex;
}

.btn-guide-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(123, 104, 238, 0.3);
}

/* Section 通用 */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* Features Section */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(123, 104, 238, 0.08);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

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

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

/* 步骤链接 */
.step-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.step-link:hover {
  color: var(--primary-dark);
}

/* 下载区域 - 单卡片 */
.download-single {
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.download-bundle {
  width: 100%;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-bundle .download-icon-img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 16px;
}

.download-bundle .download-name {
  font-size: 24px;
  margin-bottom: 12px;
}

.download-bundle .download-desc {
  font-size: 16px;
  margin-bottom: 32px;
}

.download-bundle .btn-download {
  padding: 16px 48px;
  font-size: 18px;
  border-radius: 32px;
}

/* 响应式 */
@media (max-width: 768px) {
  .download-single {
    max-width: 100%;
  }
}

/* Guide Section */
.guide {
  background: var(--bg);
}

.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding: 32px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(123, 104, 238, 0.08);
}

.step:last-child {
  margin-bottom: 0;
}

.step-with-qrcode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.step-main {
  display: flex;
  gap: 24px;
  flex: 1;
}

.step-qrcode {
  text-align: center;
  flex-shrink: 0;
}

.step-qrcode-img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: white;
  padding: 6px;
}

.step-qrcode-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 安装教程页面二维码 */
.guide-qrcode {
  display: inline-block;
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.guide-qrcode-img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  display: block;
}

.guide-qrcode-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.step-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 安装指南区块 */
.install-guide {
  background: var(--bg);
}

.install-sections {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.install-section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(123, 104, 238, 0.08);
}

.install-section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.install-list {
  list-style: none;
  padding: 0;
}

.install-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.install-list li:last-child {
  border-bottom: none;
}

.install-list.ordered {
  counter-reset: install-step;
}

.install-list.ordered li {
  counter-increment: install-step;
  padding-left: 40px;
  position: relative;
}

.install-list.ordered li::before {
  content: counter(install-step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.install-list code {
  background: #f0f0f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  color: var(--text);
}

.install-tip {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: #fff8e1;
  border-left: 4px solid #ffc107;
}

.install-tip strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 16px;
}

.install-tip ul {
  list-style: none;
  padding: 0;
}

.install-tip li {
  padding: 6px 0;
  border-bottom: none;
  font-size: 15px;
}

/* FAQ 区块 */
.faq {
  background: var(--card-bg);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.faq-answer {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer code {
  background: #f0f0f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 14px;
}

/* 使用场景区块 - 轮播 */
.scenarios {
  background: var(--bg);
}

.scenarios-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.carousel-window {
  overflow: hidden;
  flex: 1;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.scenario-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(123, 104, 238, 0.08);
  transition: transform 0.3s ease;
  min-height: 280px;
}

.scenario-card:hover {
  transform: translateY(-4px);
}

.scenario-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.scenario-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.scenario-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.scenario-card.not-supported {
  opacity: 0.8;
  background: #f9f9fb;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 4px 16px rgba(123, 104, 238, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: white;
  color: var(--text-secondary);
}

/* 对比优势区块 */
.comparison {
  background: var(--card-bg);
}

.comparison-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comparison-item {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--bg);
  border-radius: 20px;
  align-items: flex-start;
}

.comparison-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.comparison-content {
  flex: 1;
}

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

.comparison-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 安装指南独立页面 */
.install-guide-page {
  background: var(--bg);
  padding-top: 40px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.page-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.page-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* 响应式补充 */
@media (max-width: 1024px) {
  .scenario-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .scenarios-carousel {
    gap: 8px;
  }

  .scenario-card {
    flex: 0 0 85%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .comparison-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .install-section {
    padding: 24px;
  }

  .install-list.ordered li {
    padding-left: 36px;
  }

  .page-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .scenario-card {
    flex: 0 0 90%;
    padding: 24px;
  }
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 24px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-qrcode {
  margin-bottom: 32px;
}

.footer-qrcode-img {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  background: white;
  padding: 8px;
  margin-bottom: 16px;
}

.footer-qrcode-text {
  font-size: 16px;
  opacity: 0.9;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.footer-server {
  font-size: 12px;
  opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-slogan {
    font-size: 18px;
  }

  .hero-painpoint {
    font-size: 16px;
  }

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

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

  .hero-qrcode {
    order: -1;
  }

  .qrcode-img {
    width: 160px;
    height: 160px;
  }

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

  .download-cards {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .section-title {
    font-size: 28px;
  }

  .section-container {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .nav-logo-text {
    font-size: 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .feature-card {
    padding: 32px 24px;
  }
}
