:root {
  --primary: #8661C1;
  --primary-dark: #6C4FA3;
  --bg: #FFFFFF;
  --text: #242424;
  --light-gray: #F5F5F5;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 页眉 */
header.header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--primary-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  flex: 1;
  margin: 0 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  gap: 10px;
  list-style: none;
}

.lang-switcher a {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.lang-switcher a.active {
  background-color: var(--primary);
  color: white !important;
}

/* 英雄区 */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-download, .btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background-color: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-download:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 特性卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.feature-card {
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.feature-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 统计部分 */
.stats-section {
  background-color: var(--light-gray);
  padding: 60px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 14px;
  color: #666;
}

/* 下载部分 */
.download-section {
  padding: 60px 20px;
  text-align: center;
}

.download-section h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.download-section p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.platform {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.platform:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(134, 97, 193, 0.15);
}

.platform-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* 页脚 */
.footer {
  background-color: #2d2d2d;
  color: #ffffff;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* 主要内容 */
main {
  min-height: calc(100vh - 200px);
}

h1 {
  color: var(--primary);
}

h2, h3, h4, h5, h6 {
  color: var(--text);
  margin: 20px 0 10px 0;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 关于页面 */
.about-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
}

.about-content section {
  margin: 30px 0;
}

.about-content section h3 {
  font-size: 24px;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

.about-content section p {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

/* FAQ */
.faq-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.faq-item {
  margin: 20px 0;
  padding: 20px;
  border-left: 4px solid var(--primary);
  background-color: var(--light-gray);
  border-radius: 4px;
}

.faq-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.faq-item p {
  color: #666;
  margin: 0;
  font-size: 14px;
}

/* 下载页面 */
.download-list {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.download-card {
  padding: 25px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(134, 97, 193, 0.1);
}

.download-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.download-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.download-card .btn-download {
  display: inline-block;
  background-color: var(--primary);
  color: white;
}

.download-card .btn-download:hover {
  background-color: var(--primary-dark);
}

/* 功能页面 */
.features-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.feature-detailed {
  margin: 40px 0;
  padding: 30px;
  background-color: var(--light-gray);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.feature-detailed h3 {
  color: var(--primary);
  margin-top: 0;
}

.feature-detailed p {
  color: #666;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .download-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 14px;
  }
}
