/* ===== 变量与基础 ===== */
:root {
  --primary: #00b368;
  --primary-deep: #009252;
  --primary-soft: #e6f7ef;
  --dark: #12281e;
  --border: #e4efe8;
  --bg: #f5faf7;
  --card: #ffffff;
  --text: #24332b;
  --muted: #5f6e66;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(0, 179, 104, .08);
  --shadow-hover: 0 14px 30px rgba(0, 179, 104, .16);
}

* {
  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;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 64px;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section[id] {
  scroll-margin-top: 70px;
}

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.header.scrolled {
  box-shadow: 0 6px 20px rgba(18, 40, 30, .08);
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  transition: color .3s;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width .3s;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-download {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .3s, transform .3s;
}

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

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  transition: background .3s, transform .3s, box-shadow .3s;
}

.btn:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-ios {
  background: var(--dark);
}

.btn-ios:hover {
  background: #1c3a2b;
}

.btn-lg {
  padding: 16px 38px;
  font-size: 17px;
}

/* ===== 首屏 Hero ===== */
.hero {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, #e9f8f0 0%, var(--bg) 100%);
}

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

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
}

.hero h1 span,
.download h1 span {
  color: var(--primary);
}

.hero-desc {
  margin: 18px 0 32px;
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
}

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

.hero-img {
  flex: 0 0 300px;
}

.hero-img img {
  border-radius: 22px;
  box-shadow: var(--shadow-hover);
}

/* ===== 通用模块 ===== */
.section {
  padding: 84px 0;
}

.section-white {
  background: #fff;
}

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

.section-sub {
  margin: 10px 0 44px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* ===== 通用卡片 ===== */
.about-card,
.feature-card,
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

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

.about-card h3,
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.about-card h3 {
  color: var(--primary);
}

.about-card p,
.feature-card p,
.review-text {
  font-size: 14px;
  color: var(--muted);
}

.works-grid,
.about-grid,
.features-grid,
.reviews-grid,
.data-grid {
  gap: 24px;
}

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

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.work-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* ===== 产品介绍 ===== */
.about-lead {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

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

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

.feature-card {
  padding: 32px 26px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

/* ===== 优势对比 ===== */
.compare-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 18px 24px;
  text-align: center;
  font-size: 15px;
}

.compare thead th {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}

.compare thead th:first-child,
.compare td:first-child {
  text-align: left;
}

.compare td:first-child {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.compare tbody tr + tr {
  border-top: 1px solid var(--border);
}

.compare .ok,
.compare .no {
  font-weight: 700;
  margin-right: 6px;
}

.compare .ok {
  color: var(--primary);
}

.compare .no {
  color: #c2cbc5;
}

.col-brand {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.col-other {
  color: var(--muted);
  white-space: nowrap;
}

/* ===== 平台数据 ===== */
#data {
  background: var(--dark);
}

#data .section-title {
  color: #fff;
}

#data .section-sub {
  color: rgba(255, 255, 255, .65);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.data-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  transition: transform .3s, border-color .3s;
}

.data-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .3);
}

.data-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  color: #4ade9e;
}

.data-label {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, .8);
}

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

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

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

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

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-card:nth-child(3n+2) .avatar {
  background: #ff8a3d;
}

.review-card:nth-child(3n) .avatar {
  background: #6c8cff;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.stars {
  color: #f5a623;
  font-size: 14px;
  letter-spacing: 3px;
}

.review-text {
  color: var(--muted);
}

/* ===== 版本更新 ===== */
.version-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 42px;
  box-shadow: var(--shadow);
}

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

.version-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.version-date {
  font-size: 14px;
  color: var(--muted);
}

.version-log li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  margin-bottom: 14px;
}

.version-log li:last-child {
  margin-bottom: 0;
}

.version-log li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

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

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .3s;
}

.faq-item.active {
  box-shadow: var(--shadow);
}

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

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s;
}

.faq-icon::before {
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 16px;
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--muted);
}

/* ===== 下载区域 ===== */
.download {
  background: linear-gradient(180deg, var(--bg) 0%, #e6f7ef 100%);
  text-align: center;
}

.download h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
}

.download-meta {
  margin: 14px 0 30px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.download-btns {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.download-tip {
  margin-top: 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-deep);
}

.download-sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== 底部页脚 ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .6);
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
}

.footer a {
  color: #fff;
  transition: color .3s;
}

.footer a:hover {
  color: #4ade9e;
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .3s;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--primary-deep);
}

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

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 12px;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .works-grid,
  .about-grid,
  .features-grid,
  .reviews-grid,
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 58px;
  }

  .nav {
    height: 58px;
    gap: 12px;
  }

  .logo {
    font-size: 20px;
  }

  .nav-menu {
    display: none;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 36px;
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
    margin: 16px auto 28px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .hero-img {
    flex-basis: auto;
    width: 260px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-sub {
    margin-bottom: 32px;
  }

  .works-grid,
  .about-grid,
  .features-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .compare th,
  .compare td {
    padding: 12px 10px;
    font-size: 12px;
  }

  .version-card {
    padding: 26px 20px;
  }

  .version-num {
    font-size: 20px;
  }

  .faq-q {
    font-size: 15px;
    padding: 18px 18px;
  }

  .faq-a p {
    padding: 0 18px 18px;
  }

  .download h1 {
    font-size: 26px;
  }

  .download-meta {
    font-size: 12px;
  }

  .download-btns {
    flex-direction: column;
    width: 100%;
  }

  .download-btns .btn {
    width: 100%;
  }

  .back-top {
    right: 14px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}
