/* ===== Site 5: Modern Purple Theme ===== */
/* Design: Modern flat, purple accent, clean lines */

:root {
  --primary: #7C3AED;
  --primary-light: #F5F3FF;
  --primary-dark: #5B21B6;
  --primary-soft: #DDD6FE;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(124,58,237,0.08);
  --radius: 14px;
  --radius-sm: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 700; color: var(--primary);
  text-decoration: none;
}

.nav-links { display: flex; gap: 4px; list-style: none; }

.nav-links a {
  display: block; padding: 8px 18px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }

.hero {
  padding: 90px 0 100px;
  background: linear-gradient(165deg, #F5F3FF 0%, #EDE9FE 30%, var(--bg) 70%);
  text-align: center;
}

.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.12;
  margin-bottom: 20px; letter-spacing: -1.5px;
}

.hero h1 span { color: var(--primary); }

.hero-subtitle {
  font-size: 19px; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.75;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  text-decoration: none; transition: all 0.2s; font-family: inherit;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 16px 40px; font-size: 16px; }

.section { padding: 80px 0; }
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.section-desc { text-align: center; color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto 52px; }
.bg-alt { background: var(--bg-alt); }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px;
}

.feature-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-soft); transform: translateY(-3px); }

.feature-icon {
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: 12px; margin-bottom: 18px;
  color: var(--primary);
}

.feature-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.platforms-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}

.platform-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: all 0.2s;
}

.platform-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.platform-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-radius: 14px;
}

.platform-card h4 { font-size: 17px; margin-bottom: 8px; }
.platform-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.platform-card .btn { width: 100%; padding: 11px; font-size: 14px; }

.detail-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; margin-bottom: 64px;
}

.detail-block:nth-child(even) { direction: rtl; }
.detail-block:nth-child(even) > * { direction: ltr; }

.detail-block h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; color: var(--primary-dark); }
.detail-block p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }

.detail-visual {
  background: var(--bg-alt); border-radius: var(--radius); height: 280px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.review-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.review-stars { color: #FBBF24; margin-bottom: 12px; }
.review-card p { color: var(--text); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--primary); font-size: 14px;
}
.review-author span { font-weight: 500; font-size: 14px; color: var(--text-secondary); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; padding: 28px 16px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-item h4 { font-size: 38px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.stat-item p { color: var(--text-secondary); font-size: 15px; }

.comparison-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.comparison-table th, .comparison-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--bg-alt); font-weight: 600; }
.comparison-table td { color: var(--text-secondary); }
.comparison-table tr:hover td { background: #FAFBFC; }
.check-yes { color: #059669; font-weight: 600; }
.check-no { color: #DC2626; }

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; padding: 18px 22px; background: var(--bg); border: none;
  font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; color: var(--text);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon { color: var(--text-muted); transition: transform 0.2s; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 22px 18px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.download-hero { background: linear-gradient(165deg, #F5F3FF 0%, var(--bg) 50%); padding: 60px 0; text-align: center; }
.download-hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 12px; }
.download-hero p { color: var(--text-secondary); font-size: 17px; margin-bottom: 32px; }

.download-main {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; max-width: 560px; margin: 0 auto; text-align: center;
}
.version-meta { display: flex; justify-content: center; gap: 20px; margin: 18px 0; font-size: 14px; color: var(--text-secondary); }

.guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.guide-step { text-align: center; padding: 24px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.step-num { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 14px; }
.guide-step h4 { font-size: 15px; margin-bottom: 8px; }
.guide-step p { font-size: 13px; color: var(--text-secondary); }

.sys-req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.sys-req-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.sys-req-card h4 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; color: var(--primary); }
.sys-req-card ul { list-style: none; font-size: 14px; color: var(--text-secondary); }
.sys-req-card ul li { padding: 5px 0; border-bottom: 1px solid var(--border); }

.changelog-list { max-width: 780px; margin: 32px auto 0; }
.changelog-item { border-left: 2px solid var(--primary); padding-left: 24px; padding-bottom: 28px; position: relative; }
.changelog-item::before { content: ''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; }
.changelog-item:last-child { border-left-color: transparent; }
.changelog-item h4 { font-size: 17px; margin-bottom: 4px; }
.changelog-date { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.changelog-item ul { font-size: 14px; color: var(--text-secondary); padding-left: 18px; }

.article-content { max-width: 860px; margin: 0 auto; }
.article-content h2 { font-size: 28px; font-weight: 700; margin: 48px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-soft); color: var(--primary-dark); }
.article-content h3 { font-size: 21px; font-weight: 600; margin: 28px 0 12px; }
.article-content p { font-size: 15px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 14px; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; line-height: 1.8; color: var(--text-secondary); }
.tips-box { background: #FEF3C7; border-left: 3px solid #F59E0B; padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-size: 14px; }
.tips-box strong { color: #92400E; }

.footer { background: #1F2937; color: #9CA3AF; padding: 40px 0; text-align: center; font-size: 14px; }
.footer p { margin-bottom: 8px; }

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .detail-block { grid-template-columns: 1fr; gap: 32px; }
  .detail-block:nth-child(even) { direction: ltr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .platforms-grid { grid-template-columns: 1fr; }
  .download-main { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item h4 { font-size: 28px; }
}
