:root {
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-dark: #4F46E5;
  --accent: #F59E0B;
  --dark: #0F172A;
  --text: #1E293B;
  --text-light: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --bg-card: #FFFFFF;
  --shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
  --shadow-hover: 0 12px 32px rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  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);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-download {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.nav-download:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero区 */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 60%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.hero-image {
  flex: 0 0 420px;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* 通用section */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

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

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

/* 作品预览 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.work-card img {
  width: 100%;
}

/* 产品介绍 */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.intro-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.intro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.intro-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.intro-icon svg {
  width: 28px;
  height: 28px;
}

.intro-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.intro-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* 核心功能 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.feature-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
}

/* 优势对比 */
.compare-table {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-header {
  background: var(--primary);
}

.compare-header .compare-cell {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.compare-cell {
  padding: 18px 24px;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
}

.compare-cell.highlight {
  color: var(--primary);
  font-weight: 600;
}

/* 平台数据 */
.data-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.data-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.data-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.data-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.data-label {
  font-size: 14px;
  color: var(--text-light);
}

/* 用户评价 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

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

.review-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.review-stars {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
}

.review-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* 版本更新 */
.update-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.update-version {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.update-date {
  font-size: 15px;
  color: var(--text-light);
}

.update-list {
  list-style: none;
}

.update-list li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  padding: 10px 0 10px 28px;
  position: relative;
}

.update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

/* 下载区域 */
.download-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}

.download-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.download-meta {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.btn-download {
  padding: 16px 40px;
  font-size: 17px;
  min-width: 260px;
}

.btn-android {
  background: #fff;
  color: var(--primary);
}

.btn-android:hover {
  background: #F0F0FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-ios {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ios:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.download-tip {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

/* 页脚 */
.footer {
  background: var(--dark);
  padding: 32px 0;
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
}

.footer-link:hover {
  color: #fff;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 34px;
  }
  .hero-image {
    flex: 0 0 360px;
  }
  .works-grid,
  .intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .nav-container {
    padding: 0 20px;
    height: 56px;
  }
  .nav-menu {
    display: none;
  }
  .nav-logo {
    font-size: 18px;
  }
  .nav-download {
    padding: 7px 16px;
    font-size: 13px;
  }
  .hero {
    padding: 90px 0 60px;
  }
  .hero-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hero-image {
    flex: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .section {
    padding: 56px 0;
  }
  .section-title {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .data-item {
    padding: 24px 12px;
  }
  .data-num {
    font-size: 28px;
  }
  .compare-cell {
    padding: 14px 12px;
    font-size: 13px;
  }
  .compare-header .compare-cell {
    font-size: 14px;
  }
  .update-card {
    padding: 24px 20px;
  }
  .update-version {
    font-size: 22px;
  }
  .update-date {
    font-size: 13px;
  }
  .update-list li {
    font-size: 14px;
  }
  .faq-question {
    font-size: 15px;
    padding: 16px 18px;
  }
  .faq-answer p {
    padding: 0 18px 16px;
    font-size: 14px;
  }
  .download-title {
    font-size: 26px;
  }
  .download-meta {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-download {
    width: 100%;
    min-width: auto;
    font-size: 16px;
    padding: 14px 24px;
  }
  .download-tip {
    font-size: 14px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
