:root {
  --primary: #1f8a70;
  --primary-dark: #146b56;
  --primary-soft: #e7f4f0;
  --accent: #e8913a;
  --ink: #1c2b28;
  --muted: #62736f;
  --line: #e2ebe8;
  --bg: #f6f9f8;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 36px rgba(22, 78, 65, .08);
  --shadow-sm: 0 4px 16px rgba(22, 78, 65, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 248, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #37b394);
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(31, 138, 112, .3);
}
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--primary); }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
}
.header-cta:hover { background: var(--primary-dark); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(31, 138, 112, .16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(31,138,112,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(31,138,112,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0 84px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 800;
}
.hero h1 span { color: var(--primary); }
.hero-desc { margin: 0 0 28px; color: var(--muted); font-size: 16px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(31, 138, 112, .25); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 26px rgba(31, 138, 112, .32); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn svg { width: 16px; height: 16px; }

.check-panel {
  margin-top: 30px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
}
.check-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.check-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.check-label small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.check-row { display: flex; gap: 8px; align-items: stretch; }
.check-url {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  background: #f4f8f6; border: 1px dashed #c7dcd5; border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px; color: var(--primary-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center;
}
.btn-copy {
  flex: none; padding: 0 14px;
  background: var(--ink); color: #fff; border: 0; border-radius: 9px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-copy:hover { background: var(--primary-dark); }
.check-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.hero-art { display: grid; gap: 14px; }
.mock-window {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfdfc;
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9e4e0; }
.mock-bar span { margin-left: 8px; font-size: 11px; color: #93a5a0; font-family: ui-monospace, monospace; }
.mock-body { padding: 20px; }
.mock-line { height: 1px; background: var(--line); margin: 14px 0; }
.json-key { color: #b1562f; }
.json-str { color: var(--primary-dark); }
pre.code {
  margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px; line-height: 1.9; color: #465b56;
  word-break: break-all;
}
.mock-note {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 13px;
}
.mock-note strong { font-size: 15px; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 34px; }
.section-kicker { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { margin: 8px 0 8px; font-size: 30px; letter-spacing: -.8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 版本卡片 ---------- */
.version-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.version-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.version-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7dcd5; }
.version-card.is-latest { border-color: var(--primary); }
.version-card.is-latest::after {
  content: "最新版本"; position: absolute; top: -11px; right: 18px;
  padding: 3px 10px; border-radius: 100px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
}
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-version { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.card-version small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card-meta { font-size: 12px; color: var(--muted); }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 11px; font-weight: 700;
}
.tag.upgrade { background: #fff3e6; color: #b46b1c; }
.tag.beta { background: #f0eefb; color: #6a54b5; }
.card-note {
  margin: 16px 0 20px; color: var(--muted); font-size: 13px;
  line-height: 1.8; flex: 1;
}
.card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.card-stats { font-size: 12px; color: var(--muted); }
.btn-sm { padding: 9px 16px; border-radius: 9px; font-size: 13px; }
.btn-disabled { background: #eef2f0; color: #93a5a0; pointer-events: none; }

/* ---------- 更新日志 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -23px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
}
.timeline-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.timeline-head h3 { margin: 0; font-size: 17px; }
.timeline-date { font-size: 12px; color: var(--muted); }
.timeline-item p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- 接入指南 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.step {
  padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.step-num {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }
.code-block {
  background: #16231f; color: #d6e8e1; border-radius: 12px;
  padding: 18px 20px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px; line-height: 1.9; overflow-x: auto;
}
.code-block .c { color: #7f9c92; }
.notice {
  margin-top: 20px; padding: 14px 18px;
  background: var(--primary-soft); border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0; color: var(--primary-dark); font-size: 13px;
}

/* ---------- 页脚 ---------- */
.site-footer { background: #16231f; color: #a9c1b9; padding: 34px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner strong { color: #fff; font-size: 15px; }
.footer-inner a { color: #d6e8e1; }
.footer-inner a:hover { color: #6fdbb9; }

/* ---------- 提示气泡 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  padding: 11px 20px; border-radius: 10px;
  background: #16231f; color: #fff; font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 54px 0 64px; }
  .hero-art { max-width: 560px; }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 52px 0; }
  .check-row { flex-direction: column; }
  .btn-copy { padding: 10px; }
  .header-cta { display: none; }
  .card-bottom { align-items: flex-start; flex-direction: column; }
}
