@charset "utf-8";

/* ==========================================================================
   虫虫漫画 · chongchongmh.net
   配色档 B21：青柠黄绿主 + 晴空蓝辅 + 蜜橘点缀，嫩芽浅黄绿底
   CTA：青柠绿实底 + 底边中央内凹 V 口（飘带形）
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --lime: #7BB93F;
  --lime-d: #5C9130;
  --lime-dd: #3E6620;
  --lime-l: #EDF7E0;
  --sky: #2B9FD8;
  --sky-d: #1C7AAB;
  --sky-l: #E4F2FB;
  --orange: #FF9A3C;
  --star: #F5A623;
  --bg: #F4FBEC;
  --panel: #FFFFFF;
  --panel-2: #FBFEF6;
  --ink: #1E2A1C;
  --ink-2: #4E5A4C;
  --ink-3: #8A968A;
  --line: #E3EFD8;
  --footer: #12261A;
  --footer-tx: #C6D8C2;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(40, 80, 30, .07);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* 超长无断点串（包名 / 路径 / URL）一律允许任意位置断行，避免顶出横向溢出 */
code {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
  background: var(--lime-l);
  color: var(--lime-dd);
  padding: 1px 6px;
  border-radius: 5px;
}

a { color: var(--sky-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.35; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }

.num, .brand-name b { font-family: "Fredoka", "Microsoft YaHei", sans-serif; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- 顶部导航 ---------- */
.nav-wrap {
  /*background: rgba(255, 255, 255, .94);*/
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 30px;
  backdrop-filter: saturate(1.1) blur(6px);
  max-width: 1120px;      /* 和 .wrap 一致 */
  margin: 0 auto;         /* 水平居中 */

}
.nav-wrap > .brand { order: 1; }
.nav-wrap > .nav { order: 2; margin-left: auto; }
.nav-wrap > .header-cta { order: 3; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name b { font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.brand-name .sub { font-size: 11px; color: var(--ink-3); letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 9px;
  white-space: nowrap;
}
.nav a:hover { background: var(--lime-l); color: var(--lime-dd); text-decoration: none; }
.nav a.on { background: var(--lime-l); color: var(--lime-dd); font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }

/* 主 CTA：实底 + 底边中央内凹 V 口 */
.cta {
  background: var(--lime);
  color: #fff;
  font-size: 16.5px;
  padding: 14px 30px 24px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
  letter-spacing: .5px;
}
.cta:hover { filter: brightness(1.07); color: #fff; }
.cta svg { flex: none; }

.cta--sm {
  font-size: 14px;
  padding: 8px 16px 15px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 68%, 0 100%);
}

.cta--ghost {
  background: transparent;
  color: var(--lime-dd);
  border: 2px solid var(--lime);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
}
.cta--ghost:hover { background: var(--lime-l); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(123, 185, 63, .20), transparent 42%),
    radial-gradient(circle at 88% 74%, rgba(43, 159, 216, .17), transparent 46%),
    repeating-linear-gradient(45deg, rgba(123, 185, 63, .085) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-45deg, rgba(43, 159, 216, .07) 0 1px, transparent 1px 13px),
    linear-gradient(162deg, #EAF8DC, #F8FDF4 46%, #E6F3FB);
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding-top: 62px; padding-bottom: 68px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 42px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero h1 {
  font-size: 38px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--lime-dd);
}
.hero .lead-p {
  font-size: 16.5px;
  color: var(--ink-2);
  margin-bottom: 26px;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* 设备模型 */
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}
.phone {
  width: 206px;
  flex: none;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 6px #fff, 0 16px 34px rgba(30, 70, 20, .19);
}
.phone img { width: 100%; height: auto; }
.phone.small { width: 142px; }

/* ---------- 事实条 ---------- */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.fact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.fact b {
  display: block;
  font-size: 21px;
  color: var(--lime-d);
  margin-bottom: 4px;
  font-family: "Fredoka", "Microsoft YaHei", sans-serif;
}
.fact span { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 区块 ---------- */
.sec { padding-top: 62px; padding-bottom: 62px; }
.sec--tint { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { margin-bottom: 30px; }
.sec-head h2 { color: var(--lime-dd); }
.sec-head-p { color: var(--ink-3); font-size: 15px; margin-top: 8px; max-width: 52em; }

/* ---------- 卡片栅格 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime-l);
  color: var(--lime-d);
  margin-bottom: 14px;
}
.card:nth-child(even) .ico { background: var(--sky-l); color: var(--sky-d); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card p + p { margin-top: 8px; }

/* ---------- 预览图 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 20px;
}
.shot { text-align: center; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 5px #fff, 0 10px 22px rgba(30, 70, 20, .14);
}
.shot figcaption { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* ---------- 步骤 ---------- */
.steps { list-style: none; counter-reset: st; display: grid; gap: 16px; }
.steps > li {
  position: relative;
  counter-increment: st;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 18px 62px;
  box-shadow: var(--shadow);
}
.steps > li::before {
  content: counter(st);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--lime);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- 深度内容入口（仅首页） ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}
.entry {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  padding: 22px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.entry:hover { transform: translateY(-3px); text-decoration: none; }
.entry:nth-child(2) { border-left-color: var(--sky); }
.entry:nth-child(3) { border-left-color: var(--orange); }
.entry h3 { margin-bottom: 8px; color: var(--lime-dd); }
.entry p { font-size: 14px; color: var(--ink-2); }
.entry .more { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--sky-d); font-weight: 700; }

/* ---------- 评价 ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.review .stars { color: var(--star); letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; }
.review p { font-size: 14.5px; color: var(--ink-2); }
.review cite { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-3); font-style: normal; }

/* ---------- 表格 ---------- */
.tbl-scroll { overflow-x: auto; }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
}
table.cmp th, table.cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp th { background: var(--lime-l); color: var(--lime-dd); font-weight: 700; white-space: nowrap; }
table.cmp tr:last-child td { border-bottom: 0; }
.tbl-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  box-shadow: var(--shadow);
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 16px 0;
  list-style: none;
  color: var(--lime-dd);
  position: relative;
  padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 15px;
  font-size: 20px;
  color: var(--lime);
  font-weight: 400;
}
details[open] summary::after { content: "–"; }
details .ans { padding-bottom: 18px; font-size: 14.5px; color: var(--ink-2); }
details .ans p + p { margin-top: 9px; }

/* ---------- 正文排版 ---------- */
.prose {
  padding-top: 46px;
  padding-bottom: 54px;
  font-size: 16px;
}
.prose > * + * { margin-top: 18px; }
.prose h2 { color: var(--lime-dd); margin-top: 40px; }
.prose h3 { margin-top: 26px; color: var(--ink); }
.prose p { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-2); }
.prose li + li { margin-top: 7px; }
.prose .lead-p { font-size: 16.5px; color: var(--ink-2); margin-top: 14px; }
.prose .shot { margin-top: 26px; }
.prose .shot img { border-radius: 16px; box-shadow: 0 0 0 5px #fff, 0 10px 22px rgba(30, 70, 20, .14); }
.prose .tip {
  background: var(--lime-l);
  border-left: 4px solid var(--lime);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--lime-dd);
}
.prose .tip strong { color: var(--lime-dd); }

/* ---------- 内页横幅 ---------- */
.page-hero {
  background:
    radial-gradient(circle at 84% 30%, rgba(43, 159, 216, .18), transparent 48%),
    repeating-linear-gradient(45deg, rgba(123, 185, 63, .09) 0 1px, transparent 1px 13px),
    linear-gradient(150deg, #ECF9E0, #F9FDF5 60%, #E7F4FC);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { padding-top: 46px; padding-bottom: 44px; }
.page-hero h1 { font-size: 30px; color: var(--lime-dd); }
.page-hero .lead-p { margin-top: 14px; font-size: 16.5px; color: var(--ink-2); max-width: 46em; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a { color: var(--ink-3); }

/* ---------- 底部下载通道 ---------- */
.band {
  background: linear-gradient(140deg, #E9F7DB, #F6FCF0 52%, #E5F2FB);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band__inner { padding-top: 46px; padding-bottom: 46px; }
.band-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
}
.band-grid > * { min-width: 0; }
.band h2 { color: var(--lime-dd); }
.band-txt { font-size: 15px; color: var(--ink-2); margin-top: 8px; max-width: 44em; }

/* ---------- 页脚 ---------- */
.footer { background: var(--footer); color: var(--footer-tx); padding-top: 46px; padding-bottom: 30px; font-size: 14px; }
.footer a { color: #DCEBD8; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-bottom: 30px;
}
.footer h4 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li + li { margin-top: 8px; }
.footer .disc {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 20px;
  font-size: 13px;
  color: #9EB79A;
  line-height: 1.8;
}
.footer .copy { margin-top: 10px; font-size: 13px; color: #7F987C; }
.footer-dl { margin-top: 4px; }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   断点
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero h1 { font-size: 32px; }
  .hero__inner { padding-top: 46px; padding-bottom: 50px; }
  .phone { width: 180px; }
  .phone.small { width: 126px; }
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: 50px; padding-bottom: 50px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }

  /* 吸顶栏显式排两行：品牌词 + CTA 一行，链接一行 */
  .nav-wrap { flex-wrap: wrap; gap: 8px 10px; padding-left: 14px; padding-right: 14px; }
  .nav-wrap > .brand { order: 1; }
  .nav-wrap > .header-cta { order: 2; margin-left: auto; }
  .nav-wrap > .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 2px; }
  .brand-name .sub { display: none; }
  .nav a { font-size: 13px; padding: 6px 7px; }
  .cta--sm { font-size: 13px; padding: 7px 13px 13px; }

  h1 { font-size: 27px; }
  .hero h1 { font-size: 27px; }
  .page-hero h1 { font-size: 23px; }
  h2 { font-size: 20px; }

  .hero__inner { padding-top: 34px; padding-bottom: 40px; }
  .hero-visual { gap: 12px; flex-wrap: wrap; }
  .phone { width: 44vw; max-width: 196px; }
  .phone.small { width: 30vw; max-width: 132px; }
  .hero .lead-p, .page-hero .lead-p { font-size: 15.5px; }

  .sec { padding-top: 42px; padding-bottom: 42px; }
  .wrap { padding-left: 14px; padding-right: 14px; }
  .prose { padding-top: 34px; padding-bottom: 40px; }
  .page-hero__inner { padding-top: 30px; padding-bottom: 30px; }
  .band__inner { padding-top: 36px; padding-bottom: 36px; }

  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shot figcaption { font-size: 12px; margin-top: 9px; }

  /* 窄屏表格可横向滑动，避免被压到逐字折行 */
  table.cmp { min-width: 540px; }
  .tbl-scroll { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }

  .steps > li { padding: 18px 18px 16px 58px; }
  .steps > li::before { left: 16px; top: 18px; }
  .cta { font-size: 15.5px; padding: 13px 24px 22px; }
}
