@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2AABEE;
  --primary-dark: #229ED9;
  --secondary: #34C759;
  --accent: #FF9500;
  --bg: #0F172A;
  --bg-light: #1E293B;
  --bg-card: #162032;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #334155;
  --shadow: 0 10px 40px rgba(0,0,0,0.3);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.nav-menu a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-menu a.active {
  color: var(--primary);
  background: rgba(42, 171, 238, 0.12);
}

/* 移动端菜单按钮 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* ========== 按钮组件 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: #2DB34F;
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ========== Hero 区域 ========== */
.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== 区块标题 ========== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ========== 特性卡片 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(42, 171, 238, 0.1);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== 平台下载区 ========== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.platform-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.platform-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.platform-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ========== 功能介绍区 ========== */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row.reverse {
  direction: rtl;
}

.detail-row.reverse > * {
  direction: ltr;
}

.detail-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-visual svg {
  width: 200px;
  height: auto;
  max-width: 100%;
}

.detail-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

/* ========== 评价区 ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.review-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #FBBF24;
}

.review-stars svg {
  width: 16px;
  height: 16px;
}

.review-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== 数据统计 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== 对比表格 ========== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: rgba(42, 171, 238, 0.08);
  font-weight: 600;
  font-size: 0.95rem;
}

.compare-table td {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .check {
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text);
}

.compare-table .cross {
  color: #EF4444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========== 页脚 ========== */
.footer {
  background: #0B1120;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer .safe-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

/* ========== 下载页专用 ========== */
.download-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.download-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-hero > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.main-download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.main-download-card .platform-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.main-download-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.main-download-card .version-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.main-download-card .sys-require {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 18px;
  line-height: 1.6;
}

/* 安装步骤 */
.steps-list {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  margin-top: 2px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 版本日志 */
.changelog-list {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 14px;
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.changelog-tag {
  padding: 4px 12px;
  background: rgba(42, 171, 238, 0.12);
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.changelog-item ul {
  list-style: none;
  padding-left: 0;
}

.changelog-item li {
  font-size: 0.93rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.changelog-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

/* 系统要求表 */
.sys-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sys-table th,
.sys-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.sys-table th {
  background: rgba(42, 171, 238, 0.08);
  text-align: left;
  font-weight: 600;
}

.sys-table td {
  color: var(--text-muted);
}

/* ========== zh-cn 页 ========== */
.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-body p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

.article-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.article-body li {
  font-size: 0.98rem;
  color: var(--text-muted);
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.7;
}

.article-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}

.cta-banner h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.cta-banner p {
  margin-bottom: 24px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .detail-row.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .section-header h2 {
    font-size: 1.7rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px;
    gap: 4px;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .platforms-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn-large {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 120px 0 70px;
  }
  .hero-meta {
    flex-direction: column;
    gap: 12px;
  }
}
