/* ===== 颜色与基础变量 ===== */
:root {
  --primary: #16a34a;
  --primary-dark: #12803d;
  --primary-deep: #0b5c2e;
  --primary-soft: #e8f7ef;
  --gold: #f59e0b;
  --gold-soft: #fff7e8;
  --text-strong: #1c2433;
  --text: #3d4757;
  --text-muted: #667386;
  --border: #e3e9e4;
  --border-light: #eef2ee;
  --bg: #ffffff;
  --bg-soft: #f6faf7;
  --card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(18, 128, 61, 0.08);
  --shadow-sm: 0 2px 10px rgba(15, 80, 40, 0.06);
  --shadow-hover: 0 12px 28px rgba(15, 80, 40, 0.14);
  --shadow-nav: 0 4px 16px rgba(15, 80, 40, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-primary { background: var(--primary); color: #fff; font-size: 16px; padding: 15px 30px; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-deep { background: var(--primary-deep); color: #fff; font-size: 16px; padding: 15px 30px; box-shadow: var(--shadow-sm); }
.btn-deep:hover { background: var(--primary); }

.btn-light { background: #fff; color: var(--primary-deep); font-size: 17px; padding: 16px 34px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.btn-light:hover { background: var(--gold-soft); color: var(--primary-dark); }

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-nav); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--text-strong); }
.logo-icon { flex: none; }
.logo span { letter-spacing: 1px; }

.nav-menu { display: flex; gap: 4px; }
.nav-menu a {
  display: block;
  padding: 8px 11px;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-menu a.active { color: var(--primary); font-weight: 600; background: var(--primary-soft); }

.btn-nav { font-size: 13px; padding: 9px 16px; box-shadow: var(--shadow-sm); }

/* ===== 首屏 Hero ===== */
.hero { padding: 148px 0 64px; background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 78%); }

.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.hero-copy h1 { font-size: 44px; line-height: 1.25; font-weight: 800; color: var(--text-strong); }

.ver-chip {
  display: inline-block;
  margin-left: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: #d97706;
  font-size: 15px;
  font-weight: 700;
  vertical-align: middle;
}

.hero-desc { margin-top: 18px; max-width: 520px; font-size: 16px; color: var(--text); }

.hero-btns { display: flex; gap: 16px; margin-top: 30px; }

.hero-img { text-align: center; }
.hero-img img {
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-hover);
}

/* ===== 通用区块 ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }

.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: 32px; line-height: 1.3; font-weight: 800; color: var(--text-strong); }
.sec-head p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

/* ===== 卡片通用 ===== */
.shot-card,
.feat-card,
.data-item,
.rev-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shot-card:hover,
.feat-card:hover,
.data-item:hover,
.rev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* ===== 界面截图 ===== */
.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.shot-card { overflow: hidden; }
.shot-title { padding: 14px 12px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-strong); }

/* ===== 产品介绍 ===== */
.intro-body { max-width: 820px; margin: 0 auto; }
.intro-body p { font-size: 16px; color: var(--text); margin-bottom: 14px; }

.intro-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.intro-chips span {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
}

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

.feat-card { padding: 30px 26px; }

.feat-icon,
.rev-avatar { display: flex; align-items: center; justify-content: center; }

.feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}
.feat-card h3 { font-size: 18px; font-weight: 700; color: var(--text-strong); }
.feat-card p { margin-top: 8px; font-size: 14.5px; color: var(--text); }

/* ===== 优势对比 ===== */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

.compare-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 15px 16px;
  text-align: left;
  white-space: nowrap;
  font-size: 14.5px;
}
.compare-table thead th {
  background: var(--primary-deep);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.th-best em {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}
.compare-table tbody td { border-top: 1px solid var(--border-light); color: var(--text); }
.compare-table tbody tr:nth-child(even) td:not(.td-best) { background: var(--bg-soft); }
.td-best { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

.compare-tip { display: none; margin-top: 12px; text-align: center; font-size: 12px; color: var(--text-muted); }

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

.data-item { padding: 30px 16px; text-align: center; }

.data-num { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.data-label { margin-top: 6px; font-size: 14px; color: var(--text-muted); }

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

.rev-card { padding: 24px; }

.rev-head { display: flex; align-items: center; gap: 14px; }
.rev-avatar {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 700;
}
.rev-name { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.rev-stars { font-size: 15px; color: var(--gold); letter-spacing: 3px; margin-top: 2px; }
.rev-text { margin-top: 14px; font-size: 14.5px; color: var(--text); }

/* ===== 版本更新 ===== */
.version-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-sm);
}
.version-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border-light); }
.version-no { font-size: 30px; font-weight: 800; color: var(--primary); }
.version-date { font-size: 14px; color: var(--text-muted); }

.changelog { margin-top: 18px; }
.changelog li { position: relative; padding: 7px 0 7px 26px; font-size: 15px; color: var(--text); }
.changelog li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* ===== FAQ 折叠 ===== */
.faq { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--primary); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  text-align: left;
}
.faq-arrow { flex: none; color: var(--primary); transition: transform 0.3s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 22px 20px; font-size: 14.5px; color: var(--text); }

/* ===== 下载区域 ===== */
.download {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: #fff;
}
.download h1 { font-size: 38px; font-weight: 800; }
.download .ver-chip { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.45); color: #ffe9b8; }

.dl-meta { margin-top: 16px; font-size: 14px; color: #d9f0e4; }

.dl-btns { display: flex; justify-content: center; gap: 18px; margin-top: 34px; }

.dl-slogan { margin-top: 26px; font-size: 15px; color: #ffe9b8; }

/* ===== 页脚 ===== */
.footer { background: var(--primary-deep); color: #bcdccb; text-align: center; padding: 26px 20px; font-size: 14px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--gold); }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.25s ease;
}
.to-top:hover { background: var(--primary-dark); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ===== 平板适配 ===== */
@media (max-width: 1024px) {
  .nav-menu a { padding: 8px 8px; font-size: 13px; }
  .hero { padding: 128px 0 56px; }
  .hero-copy h1 { font-size: 36px; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 32px; }
}

/* ===== 手机适配 ===== */
@media (max-width: 820px) {
  .nav-menu { display: none; }
  html { scroll-padding-top: 72px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { height: 56px; }
  .logo { min-height: 44px; }
  .btn-nav { min-height: 40px; padding: 11px 18px; }

  .hero { padding: 100px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy h1 { font-size: 30px; }
  .ver-chip { font-size: 14px; padding: 4px 11px; }
  .hero-desc { font-size: 15px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .hero-img img { max-width: 320px; }

  .section { padding: 52px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head h2 { font-size: 25px; }
  .sec-head p { font-size: 14px; }

  .shot-grid, .feat-grid, .rev-grid { grid-template-columns: 1fr; gap: 18px; }
  .data-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .compare-table { min-width: 600px; }
  .compare-tip { display: block; font-size: 13px; }
  .compare-wrap { border-radius: var(--radius-md); }

  .data-num { font-size: 30px; }

  .version-card { padding: 24px 20px; }
  .version-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .version-no { font-size: 26px; }

  .faq-q { font-size: 15px; padding: 16px 18px; }
  .faq-a p { padding: 0 18px 18px; }

  .download { padding: 64px 0; }
  .download h1 { font-size: 29px; }
  .dl-meta { font-size: 12.5px; }
  .dl-btns { flex-direction: column; width: 100%; }
  .dl-btns .btn { width: 100%; }
  .dl-slogan { font-size: 14px; }

  .to-top { right: 16px; bottom: 20px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot-card, .feat-card, .rev-card, .data-item, .btn, .to-top, .faq-a, .faq-arrow { transition: none; }
}
