/* ==========================================================================
   汗汗漫画 · hanhancomics.org.cn
   视觉档 12：「海盐蓝紫 + 青柠」
   主色 长春花蓝紫 #5B6FE0 ／ 辅 青柠绿 #7FC22E ／ 点缀 明黄 #FFC93C
   本档四维差异：① 主色首次落在蓝紫（periwinkle）区间
                ② CTA 首次用「纯实底 + 同色厚度 + 内嵌浅色圆钮」（无渐变）
                ③ Hero 首次用 45° 斜切色带当纹理
                ④ Logo 母题首次用四叶风车
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/outfit.woff2) format('woff2');
}

:root {
  --pri: #5B6FE0;
  --pri-d: #3B4CB8;
  --pri-dd: #232F80;
  --pri-l: #E7EAFB;
  --acc: #7FC22E;
  --acc-d: #5A9114;
  --acc-l: #EDF7DC;
  --warm: #FFC93C;
  --warm-l: #FFF6DC;
  --star: #F6B93B;
  --bg: #F7F8FD;
  --bg2: #FFFFFF;
  --bg3: #EEF1FB;
  --line: #DFE4F4;
  --line2: #EDF0FA;
  --ink: #1E2340;
  --ink2: #4E5578;
  --ink3: #868DB0;
  --foot: #1B2150;
  --foot-t: #AEB6D8;
  --r: 18px;
  --sh: 0 10px 28px rgba(35, 47, 128, .08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.78;
}

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

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

code {
  word-break: break-all;
  overflow-wrap: anywhere;
  background: var(--bg3);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .92em;
  color: var(--pri-d);
}

.num { font-family: 'Outfit', var(--font); font-variant-numeric: tabular-nums; }

/* ── 跳过导航（必须原地隐藏，写 left:-9999px 会被越界探针判 FAIL）── */
.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ── 容器 ───────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
/* 长文页收窄正文列：限宽要连 .wrap 一起限，不要只给 .prose 写 max-width */
.wrap--prose { max-width: 940px; }

/* 与 __inner 同元素时只写上下内边距 */
.hero__inner { padding-top: 58px; padding-bottom: 104px; }

/* ── 吸顶导航 ───────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 10px 22px;
  display: flex; align-items: center; gap: 26px;
}

.brand { display: flex; align-items: center; gap: 10px; order: 1; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 10px rgba(59, 76, 184, .25); }
.brand__name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }

.nav__links { display: flex; align-items: center; gap: 4px; order: 2; margin-left: auto; }
.nav__links a {
  padding: 7px 13px; border-radius: 999px; color: var(--ink2);
  font-size: 15px; font-weight: 600;
}
.nav__links a:hover { background: var(--pri-l); color: var(--pri-d); text-decoration: none; }
.nav__links a.is-on { background: var(--pri-l); color: var(--pri-d); }

/* 窄屏时 CTA 必须是 .nav__inner 的直接子元素，order 才生效（否则折三行） */
.nav__cta { order: 3; }

/* ── 按钮 ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--pri);
  color: #fff; font-size: 16px; font-weight: 700; line-height: 1;
  padding: 15px 20px 15px 26px;
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--pri-dd), 0 12px 26px rgba(35, 47, 128, .24);
  transition: transform .16s ease, box-shadow .16s ease;
  text-align: center;
}
.btn:hover {
  color: #fff; text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--pri-dd), 0 16px 30px rgba(35, 47, 128, .28);
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pri-dd); }

/* CTA 右侧内嵌的浅色圆钮 —— 本档独有的按钮形态 */
.btn__dot {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; color: #fff;
}

.btn--sm { font-size: 14px; padding: 11px 14px 11px 18px; box-shadow: 0 4px 0 var(--pri-dd); }
.btn--sm .btn__dot { width: 20px; height: 20px; flex-basis: 20px; font-size: 11px; }
.btn--block { width: 100%; }

.btn--ghost {
  background: var(--bg2); color: var(--pri-d);
  box-shadow: inset 0 0 0 2px var(--pri-l), 0 4px 0 var(--bg3);
}
.btn--ghost:hover { background: var(--pri-l); color: var(--pri-dd); box-shadow: inset 0 0 0 2px var(--pri-l), 0 6px 0 var(--bg3); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, #FBFCFF 0%, #F2F4FE 46%, #EEF6E4 100%); }

/* 45° 斜切色带（本档纹理） */
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(118deg, transparent 0 56%, rgba(91, 111, 224, .085) 56% 69%, transparent 69%),
    linear-gradient(118deg, transparent 0 73%, rgba(127, 194, 46, .10) 73% 81%, transparent 81%),
    linear-gradient(118deg, transparent 0 85%, rgba(255, 201, 60, .16) 85% 90%, transparent 90%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 40px; align-items: center; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg2); color: var(--pri-d);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 15px;
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 3px 10px rgba(35, 47, 128, .06);
}
.hero__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }

h1 { font-size: 41px; line-height: 1.24; font-weight: 800; letter-spacing: .5px; margin: 16px 0 0; }
h1 .hl { color: var(--pri); }

.lead-p { margin-top: 16px; font-size: 16.5px; color: var(--ink2); max-width: 34em; }

.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__meta { margin-top: 16px; font-size: 13.5px; color: var(--ink3); }

.hero__device { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.phone {
  width: 214px; border-radius: 22px; overflow: hidden;
  background: var(--bg2);
  box-shadow: 0 0 0 1px var(--line), 0 22px 46px rgba(35, 47, 128, .18);
}
.phone img { width: 100%; height: auto; }
.phone--mini { width: 128px; border-radius: 18px; margin-bottom: 34px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(35, 47, 128, .14); }

/* ── 数据条 ─────────────────────────────────────────────────────── */
.stats { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.stats__item { padding-left: 18px; border-left: 3px solid var(--pri-l); }
.stats__item:nth-child(2) { border-left-color: var(--acc-l); }
.stats__item:nth-child(3) { border-left-color: var(--warm-l); }
.stats__num { font-size: 30px; font-weight: 800; color: var(--pri-dd); line-height: 1.2; }
.stats__num em { font-style: normal; font-size: 15px; color: var(--ink3); margin-left: 3px; font-weight: 600; }
.stats__lbl { font-size: 13.5px; color: var(--ink2); }

/* ── 区块通用 ───────────────────────────────────────────────────── */
.sec { padding: 66px 0; }
.sec--alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec__head { max-width: 46em; margin-bottom: 30px; }
h2 { font-size: 28px; line-height: 1.34; font-weight: 800; letter-spacing: .3px; }
.sec__sub { margin-top: 10px; color: var(--ink2); font-size: 15.5px; }

/* ── 双栏问答行（本档首页骨架）─────────────────────────────────── */
.qa { border-top: 1px solid var(--line); }
.qa__row {
  display: grid; grid-template-columns: 300px 1fr; gap: 22px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.qa__row:hover { background: rgba(91, 111, 224, .045); }
.qa__q { font-weight: 800; font-size: 17px; color: var(--pri-dd); }
.qa__q span { display: block; font-size: 12.5px; font-weight: 700; color: var(--acc-d); letter-spacing: .4px; margin-top: 3px; }
.qa__a { color: var(--ink2); font-size: 15.5px; }
.qa__a a { font-weight: 700; white-space: nowrap; }

/* ── 功能卡 ─────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.fcard {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; box-shadow: var(--sh);
  display: flex; flex-direction: column;
}
.fcard__ico {
  width: 44px; height: 44px; border-radius: 13px; background: var(--pri-l);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.fcard__ico svg { width: 24px; height: 24px; }
.fcard:nth-child(3n+2) .fcard__ico { background: var(--acc-l); }
.fcard:nth-child(3n) .fcard__ico { background: var(--warm-l); }
.fcard h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.fcard p { color: var(--ink2); font-size: 15px; }
.fcard__use { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink3); }
.fcard__use b { color: var(--acc-d); font-weight: 700; }

/* ── 截图墙（竖屏截图，列数按图的比例定：3 列，不要按张数定）──── */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 1100px; margin: 0 auto; }
.shot { margin: 0; }
.shot__box {
  border-radius: 20px; overflow: hidden; background: var(--bg2);
  box-shadow: 0 0 0 1px var(--line), 0 16px 34px rgba(35, 47, 128, .12);
}
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink2); }
.shot figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* ── 评价 ───────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.quote { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); }
.quote__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.quote__top h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.5; }
.stars { color: var(--star); font-size: 14px; letter-spacing: 2px; white-space: nowrap; }
.quote p { font-size: 15px; color: var(--ink2); }
.quote__meta { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink3); }

/* ── 速览 FAQ ───────────────────────────────────────────────────── */
.mini-faq { display: grid; gap: 12px; }
.mini-faq h2 { font-size: 22px; margin: 26px 0 4px; }
.mini-faq h2:first-child { margin-top: 0; }
.mini-faq details {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px;
}
.mini-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--pri-dd); }
.mini-faq summary::marker { color: var(--acc); }
.mini-faq p { margin-top: 10px; color: var(--ink2); font-size: 15px; }

/* ── 表格 ───────────────────────────────────────────────────────── */
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl th { background: var(--bg3); font-weight: 800; color: var(--pri-dd); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.tbl-note { margin-top: 12px; font-size: 14px; color: var(--ink3); }

/* ── 正文散文区 ─────────────────────────────────────────────────── */
.prose { max-width: none; }
.prose > p { margin-bottom: 16px; color: var(--ink2); }
.prose h3 { font-size: 19px; font-weight: 800; margin: 30px 0 10px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px 1.35em; color: var(--ink2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose .box {
  background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--acc);
  border-radius: 14px; padding: 18px 20px; margin: 20px 0;
}
.prose .box p:last-child { margin-bottom: 0; }

.steps { counter-reset: st; list-style: none; margin: 0 0 16px; }
.steps li {
  counter-increment: st; position: relative; padding-left: 46px;
  margin-bottom: 16px; color: var(--ink2);
}
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pri); color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 var(--pri-dd);
}
.steps li b { color: var(--ink); }

/* .prose > p（0,1,1）会压过 .tbl-note（0,1,0）的字号与颜色，这里提高优先级修掉 */
.prose > p.tbl-note { margin-top: 12px; font-size: 14px; color: var(--ink3); }
.prose > p.sec__sub { margin-bottom: 0; }

/* ── 内页横幅 ───────────────────────────────────────────────────── */
.page-hero { background: linear-gradient(150deg, #FBFCFF, #F1F3FE 58%, #EDF5E3); border-bottom: 1px solid var(--line); }
.page-hero__inner { padding-top: 46px; padding-bottom: 46px; }
.crumb { font-size: 13.5px; color: var(--ink3); }
.crumb a { color: var(--ink3); }
.page-hero h1 { font-size: 33px; margin-top: 10px; }

/* ── 下载条 ─────────────────────────────────────────────────────── */
.cta { background: linear-gradient(135deg, #2A3793, #3B4CB8 52%, #5B6FE0); color: #fff; }
.cta__inner { padding-top: 52px; padding-bottom: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta h2 { color: #fff; font-size: 26px; }
.cta p { color: #D3D9F8; font-size: 15px; margin-top: 8px; }
.cta .btn { background: #fff; color: var(--pri-dd); box-shadow: 0 5px 0 rgba(15, 22, 60, .55), 0 14px 30px rgba(9, 14, 45, .3); }
.cta .btn:hover { background: #fff; color: var(--pri-dd); }
.cta .btn__dot { background: rgba(35, 47, 128, .14); color: var(--pri-dd); }

/* ── 页脚 ───────────────────────────────────────────────────────── */
.foot { background: var(--foot); color: var(--foot-t); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 50px; padding-bottom: 30px; }
.foot h3 { font-size: 15px; color: #fff; margin-bottom: 12px; font-weight: 800; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 8px; font-size: 14.5px; }
.foot a { color: var(--foot-t); }
.foot a:hover { color: #fff; }
.foot__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot__brand img { width: 36px; height: 36px; border-radius: 10px; }
.foot__brand span { color: #fff; font-weight: 800; font-size: 17px; }
.foot__desc { font-size: 14.5px; max-width: 30em; }
.foot__note { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; padding-bottom: 30px; }
.foot__note p { font-size: 13.5px; color: #8D96C0; }
.foot__note p + p { margin-top: 8px; }
.foot__copy { margin-top: 14px; font-size: 13px; color: #7C86B2; }

/* ── 渐显（三层保险：<head> 加 .js / CSS 两态 / JS 兜底）──────── */
.reveal { transition: opacity .5s ease, transform .5s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ── 响应式 ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; padding-bottom: 74px; }
  h1 { font-size: 34px; }
  .hero__device { justify-content: flex-start; }
  .phone { width: 190px; }
  .phone--mini { width: 112px; margin-bottom: 26px; }
  .stats__row { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .qa__row { grid-template-columns: 1fr; gap: 8px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .sec { padding: 54px 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav__inner { flex-wrap: wrap; gap: 8px 10px; padding: 8px 16px; }
  .brand__logo { width: 34px; height: 34px; border-radius: 9px; }
  .brand__name { font-size: 17px; }
  /* order 只在同一 flex 容器内生效：CTA 必须是 .nav__inner 的直接子元素，
     且三个子元素要显式给 order，否则窄屏会折成三行（首屏被吃掉一截）。 */
  .nav__cta { order: 2; margin-left: auto; }
  .nav__links { order: 3; flex-basis: 100%; margin-left: 0; overflow-x: auto; gap: 2px; padding-bottom: 4px; }
  .nav__links a { padding: 5px 8px; font-size: 13.5px; white-space: nowrap; }
  .nav__links::-webkit-scrollbar { height: 0; }

  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .page-hero h1 { font-size: 24px; }
  .lead-p { font-size: 15.5px; }
  .hero__eyebrow { font-size: 12px; padding: 4px 12px; }
  .hero__btns { gap: 12px; }
  /* 正文与下载条按钮铺满，导航里的 CTA 保持自动宽度（写死 100% 会把导航顶成三行） */
  .btn { font-size: 15px; padding: 13px 16px 13px 20px; }
  .btn--sm { font-size: 14px; padding: 10px 13px 10px 17px; }
  .hero__btns .btn, .cta .btn { width: 100%; }
  .hero__device { justify-content: center; }
  .phone { width: 168px; }
  .phone--mini { width: 96px; margin-bottom: 20px; }
  .stats__row { padding-top: 20px; padding-bottom: 20px; }
  .stats__num { font-size: 24px; }
  .stats__item { padding-left: 12px; }
  .sec { padding: 42px 0; }
  .cards, .quotes, .shots { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .shot figcaption { font-size: 13px; }
  .cta__inner { padding-top: 38px; padding-bottom: 38px; }
  .cta h2 { font-size: 21px; }
  .foot__grid { grid-template-columns: 1fr; gap: 24px; }
  .tbl { min-width: 552px; }
  .tbl-note { font-size: 13px; }
}
