/* 成分说 官网样式
   —— 纯静态、零依赖。改配色只动 :root 里这几个变量即可。 */

:root {
  --green: #00a860;
  --green-dark: #008a4f;
  --green-light: #e8f7f0;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --card: #ffffff;
  --line: #eceef1;
  --text: #1a1d24;
  --dim: #6b7280;
  --faint: #9aa1ad;
  --good: #00a860;
  --mid: #f5a623;
  --bad: #e74c3c;
  --radius: 16px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "HarmonyOS Sans", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 顶栏 ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.logo {
  font-size: 20px; font-weight: 800; color: var(--green);
  letter-spacing: -.5px; display: flex; align-items: center; gap: 8px;
}
.logo svg { width: 26px; height: 26px; }
nav { margin-left: auto; display: flex; gap: 28px; align-items: center; }
nav a { color: var(--text); font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--green); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--green-light) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { font-size: 18px; color: var(--dim); margin-bottom: 28px; max-width: 30em; }

.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(0, 168, 96, .28); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }

.hero-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* 手机示意 */
.phone {
  width: 260px; margin: 0 auto; border-radius: 32px;
  background: #fff; border: 10px solid #1a1d24;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18); overflow: hidden;
}
.phone .screen { padding: 18px 16px; }
.phone .bar { height: 6px; width: 46px; background: var(--line); border-radius: 99px; margin: 0 auto 14px; }
.p-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.p-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.p-card .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.p-card .row b { color: var(--text); }
.score {
  display: flex; align-items: baseline; gap: 6px; margin: 10px 0 6px;
}
.score .n { font-size: 32px; font-weight: 800; color: var(--good); line-height: 1; }
.score .u { font-size: 12px; color: var(--faint); }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: var(--green-light); color: var(--green-dark); }
.tag.warn { background: #fff4e0; color: #a35c00; }

/* ---------- 通用区块 ---------- */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.sec-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.sec-head p { color: var(--dim); font-size: 17px; }

/* 功能卡 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--green-dark); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15px; line-height: 1.7; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 15px; }

/* 下载 */
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 620px; margin: 0 auto; }
.dl .card { text-align: center; }
.dl .card .ico { margin: 0 auto 14px; }
.dl .card small { display: block; color: var(--faint); font-size: 13px; margin-top: 10px; }

/* ---------- 正文页（隐私/协议/关于）---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.doc .meta { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; padding-top: 12px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.doc p, .doc li { color: #374151; font-size: 15.5px; line-height: 1.85; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 6px; }
.doc .callout {
  background: var(--green-light); border-left: 4px solid var(--green);
  border-radius: 8px; padding: 14px 18px; margin: 24px 0; font-size: 15px;
}

/* ---------- 页脚 ---------- */
footer { background: #15181e; color: #9aa1ad; padding: 48px 0 32px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
footer a { color: #9aa1ad; display: block; margin-bottom: 8px; }
footer a:hover { color: #fff; }
footer .logo { color: #fff; margin-bottom: 12px; }
.foot-bottom {
  border-top: 1px solid #262b33; margin-top: 32px; padding-top: 20px;
  font-size: 13px; color: #6b7280; display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
/* 页脚备案号等行内链接：不能被 footer a 的 display:block 撑开 */
.foot-bottom a {
  display: inline; margin-bottom: 0; color: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}
.foot-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .grid, .steps { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
  }
  nav.open { display: flex; }
  nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
