/* ===== 基础变量 ===== */
:root {
  --green: #2e9e5b;
  --green-dark: #1f7d45;
  --green-light: #e8f7ee;
  --ink: #1d2b24;
  --muted: #5c6b63;
  --bg: #ffffff;
  --bg-alt: #f5f9f6;
  --border: #e2ece6;
  --shadow: 0 10px 30px rgba(31, 125, 69, 0.08);
  --radius: 16px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-light); }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-logo { display: inline-flex; }
.brand-name { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 英雄区 ===== */
.hero {
  background: linear-gradient(180deg, var(--green-light) 0%, #ffffff 100%);
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.version-badge {
  display: inline-block; background: #fff; color: var(--green-dark);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; line-height: 1.2; letter-spacing: -0.5px; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 18px 0 18px; max-width: 520px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-tags span {
  background: #fff; border: 1px solid var(--border); color: var(--green-dark);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 窗口模拟 */
.hero-mock { perspective: 1200px; }
.win {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(31, 125, 69, 0.16); overflow: hidden;
  transform: rotateY(-8deg) rotateX(3deg);
}
.win-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 14px;
  background: #f3f6f4; border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.win-title { margin-left: 10px; font-size: 13px; color: var(--muted); }
.win-body { display: grid; grid-template-columns: 140px 1fr; min-height: 280px; }
.win-side { background: #fafcfa; border-right: 1px solid var(--border); padding: 14px 12px; }
.side-item { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.side-item.active { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.win-main { padding: 10px 14px; }
.file-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; padding: 9px 6px; font-size: 13px; border-bottom: 1px solid #f0f4f1; }
.file-row.head { color: #9aa8a0; font-weight: 600; border-bottom: 1px solid var(--border); }

/* ===== 数据条 ===== */
.stats { background: var(--green); color: #fff; padding: 38px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 38px; font-weight: 800; line-height: 1; }
.stat-label { margin-top: 8px; font-size: 14px; opacity: .92; }

/* ===== 通用 section ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 32px; letter-spacing: -0.5px; }
.section-desc { text-align: center; color: var(--muted); margin: 12px auto 40px; max-width: 620px; }

/* 功能卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* 界面预览 */
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }
.preview-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.preview-shot { padding: 28px; background: linear-gradient(135deg, #eef6f0, #ffffff); display: flex; justify-content: center; }
.preview-shot.dark { background: linear-gradient(135deg, #1f2b25, #2c3a32); }
.preview-card h3 { font-size: 18px; padding: 18px 22px 0; }
.preview-card p { color: var(--muted); font-size: 14px; padding: 6px 22px 22px; }

/* mini 窗口 */
.mini-win { width: 100%; max-width: 320px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.mini-win.dark { background: #243029; }
.mini-bar { height: 26px; background: #eef2ef; border-bottom: 1px solid #e3e9e5; }
.mini-win.dark .mini-bar { background: #1a241e; border-color: #2e3b33; }
.mini-body { display: grid; grid-template-columns: 80px 1fr; min-height: 150px; }
.mini-side { background: #f7faf8; border-right: 1px solid #eef2ef; }
.mini-win.dark .mini-side { background: #1f2a23; border-color: #2e3b33; }
.mini-files { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.mini-files span { height: 12px; border-radius: 4px; background: #e6efe9; }
.mini-files span:nth-child(2) { width: 70%; } .mini-files span:nth-child(3) { width: 90%; }
.mini-files span:nth-child(4) { width: 60%; } .mini-files span:nth-child(5) { width: 80%; }
.mini-win.dark .mini-files span { background: #34433a; }

/* 下载 */
.download-note { text-align: center; color: var(--green-dark); font-weight: 600; margin-bottom: 30px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dl-os { font-size: 22px; font-weight: 800; color: var(--green-dark); }
.dl-meta { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.dl-btns { display: flex; flex-direction: column; gap: 10px; }
.dl-size { margin-top: 16px; color: var(--muted); font-size: 13px; }
.dl-more { text-align: center; margin-top: 28px; color: var(--muted); }
.dl-more a { color: var(--green); font-weight: 600; }

/* 帮助 */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.help-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; display: flex; gap: 16px;
}
.help-step {
  flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--green);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.help-item h3 { font-size: 17px; margin-bottom: 10px; }
.help-item ol, .help-item .keys { padding-left: 18px; color: var(--muted); font-size: 14px; }
.help-item ol li { margin-bottom: 6px; }
.keys { list-style: none; padding-left: 0 !important; }
.keys li { margin-bottom: 8px; }
kbd {
  background: #eef2ef; border: 1px solid #d8e2dc; border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 8px; font-size: 12px; font-family: ui-monospace, monospace; color: var(--ink);
}

/* CTA */
.cta { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; padding: 64px 0; text-align: center; }
.cta h2 { font-size: 30px; }
.cta p { opacity: .9; margin: 12px 0 26px; }

/* 页脚 */
.footer { background: #122019; color: #cfe0d7; padding: 48px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.footer-brand .brand-name { color: #fff; font-size: 20px; font-weight: 700; }
.footer-brand p { margin-top: 8px; font-size: 14px; max-width: 280px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #cfe0d7; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #243a30; padding: 18px 0; font-size: 13px; color: #93a99c; text-align: center; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mock { max-width: 460px; margin: 0 auto; }
  .cards, .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 10px 20px 18px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 32px; }
  .cards, .dl-grid, .preview-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
}
