@charset "utf-8";

/* ==========================================================================
   樱花漫画 · yinghuacomics.cn
   配色：晨雾蓝白底 + 天青蓝主色 + 樱粉辅色 + 竹青/暖黄点缀
   渲染语言：16px 圆角 + 1px 实线外框 + 内嵌虚线内框 + 零投影
   布局骨架：纵向虚线导轨 + 左右交替图文流
   动效：纯 CSS @keyframes（不依赖滚动位置）
   ========================================================================== */

:root {
  --bg: #F2F8FC;
  --bg2: #E7F1F9;
  --card: #FFFFFF;
  --line: #D8E8F2;
  --line2: #BEDDEE;
  --main: #2E8FC4;
  --main-d: #1C6B96;
  --main-l: #E1F0F9;
  --pink: #E9789F;
  --pink-d: #C4507A;
  --pink-l: #FDE8F0;
  --teal: #4FBFA0;
  --yellow: #F5C24B;
  --tx: #22333F;
  --tx2: #5A7080;
  --tx3: #8FA3B0;
  --dark: #123043;
  --r: 16px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 16px/1.75 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "tnum" 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--main-d); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sec { padding: 62px 0; }
.sec--alt { background: var(--bg2); }

/* ── 区块标题（H2 装饰：虚线圆环 + 渐隐横线）───────────────────── */
.h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(23px, 2.5vw, 30px);
  color: var(--tx);
  margin-bottom: 10px;
}
.h2::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px dashed var(--main);
  border-radius: 50%;
}
.h2::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line2), rgba(190, 221, 238, 0));
}
.sub {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--tx2);
  margin: 0 0 30px 32px;
  max-width: 780px;
}

/* ── 顶部导航 ─────────────────────────────────────────────── */
.hd {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.hd__in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.brand__tx { display: flex; flex-direction: column; line-height: 1.2; }
.brand__tx b { font-size: 19px; color: var(--tx); letter-spacing: .5px; }
.brand__tx i { font-style: normal; font-size: 11.5px; color: var(--main-d); letter-spacing: 2px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  display: block;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 15px;
  color: var(--tx2);
  text-decoration: none;
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--main-l); color: var(--main-d); }
.nav a.is-on { background: var(--main); color: #fff; font-weight: 700; }
.navbtn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.navbtn i { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--main-d); border-radius: 2px; }

/* ── Hero（H1 右侧主视觉）──────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #EAF5FC 0%, #F5FAFE 44%, #FDEDF4 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(58deg, rgba(46, 143, 196, .06) 0 3px, rgba(46, 143, 196, 0) 3px 17px);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--main) 0 50%, var(--pink) 50% 100%);
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 46px;
  align-items: center;
  /* ⚠️ 只写纵向内边距：写 padding 简写会把 .wrap 的左右 22px 一起清掉，
     表现为 hero 文案比其它区块更靠边（两闸都测不到，只能靠量 boundingRect 发现） */
  padding-top: 62px;
  padding-bottom: 66px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px dashed var(--main);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--main-d);
  background: rgba(255, 255, 255, .8);
}
.hero h1 {
  font-size: clamp(33px, 4.4vw, 52px);
  letter-spacing: -.5px;
  color: var(--tx);
  margin: 0 0 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--main), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--tx2);
  max-width: 620px;
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__note { font-size: 13.5px; color: var(--tx3); }
.phone {
  width: 100%;
  max-width: 296px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(150deg, var(--main), var(--pink));
}
.phone img { width: 100%; height: auto; border-radius: 24px; }

/* ── 按钮：左天青蓝 / 右樱粉 双色硬边分割 ───────────────────── */
.btn {
  position: relative;
  display: inline-block;
  padding: 15px 66px 15px 30px;
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--main) 0 52%, var(--pink) 52% 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease;
}
.btn::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
}
.btn::before {
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid var(--main-d);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  z-index: 2;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--main-d); outline-offset: 3px; }

/* ── 事实条 ───────────────────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}
.facts div { padding: 22px 20px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-size: 17px; color: var(--main-d); margin-bottom: 6px; }
.facts span { font-size: 13.5px; line-height: 1.6; color: var(--tx2); }

/* ── 纵向虚线导轨 + 左右交替流 ────────────────────────────── */
.flow { position: relative; padding: 4px 0; }
.flow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(180deg, var(--line2) 0 9px, rgba(190, 221, 238, 0) 9px 19px);
  animation: railGrow 1.05s cubic-bezier(.2, .7, .3, 1) both;
}
.flow__i {
  position: relative;
  width: calc(50% - 44px);
  margin-bottom: 26px;
  animation: inL .6s cubic-bezier(.2, .7, .3, 1) both;
}
.flow__i:nth-child(odd) { margin-right: auto; }
.flow__i:nth-child(even) { margin-left: auto; animation-name: inR; }
.flow__i::after {
  content: "";
  position: absolute;
  top: 42px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--main);
}
.flow__i:nth-child(odd)::after { right: -52px; }
.flow__i:nth-child(even)::after { left: -52px; border-color: var(--pink); }
.fcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 24px 22px;
}
.fcard::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--line2);
  border-radius: 11px;
  pointer-events: none;
}
.fcard h3 { font-size: 18.5px; color: var(--tx); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fcard h3 b {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--main-d);
  background: var(--main-l);
  border-radius: 8px;
  padding: 3px 8px;
}
.fcard p { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--tx2); }

/* ── 界面预览 ─────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.shot { margin: 0; }
.shot__b {
  position: relative;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(150deg, var(--main-l), var(--pink-l));
}
.shot__b::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed #fff;
  border-radius: 19px;
  pointer-events: none;
}
.shot img { width: 100%; height: auto; border-radius: 15px; }
.shot figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.68; color: var(--tx2); }

/* ── 深度内容入口 ─────────────────────────────────────────── */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.door {
  position: relative;
  display: block;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s;
}
.door::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--line2);
  border-radius: 11px;
  pointer-events: none;
}
.door:hover { transform: translateY(-3px); border-color: var(--main); }
.door em {
  display: inline-block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--pink-d);
  background: var(--pink-l);
  border-radius: 8px;
  padding: 3px 9px;
  margin-bottom: 12px;
}
.door h3 { font-size: 19px; color: var(--tx); margin-bottom: 10px; }
.door p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--tx2); }

/* ── 用户评价 ─────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote {
  position: relative;
  margin: 0;
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.quote::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--line2);
  border-radius: 11px;
  pointer-events: none;
}
.quote blockquote { margin: 0; }
.quote p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.9; color: var(--tx); }
.quote figcaption { font-size: 13px; color: var(--tx3); }

/* ── 常见问题（details）───────────────────────────────────── */
.faq details {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  margin-bottom: 13px;
}
.faq details[open] { border-color: var(--main); }
.faq summary {
  position: relative;
  padding: 17px 56px 17px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tx);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--main);
  border-bottom: 2.5px solid var(--main);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 22px 20px; font-size: 15px; line-height: 1.9; color: var(--tx2); }
.faq .a p { margin: 0 0 12px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ── 下载条 ───────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  padding: 46px 34px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #E9F4FB, #FCEBF2);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(58deg, rgba(46, 143, 196, .06) 0 3px, rgba(46, 143, 196, 0) 3px 17px);
}
.cta > * { position: relative; }
.cta .h2 { justify-content: center; text-align: center; }
.cta .h2::after { display: none; }
.cta h2 { font-size: clamp(21px, 2.3vw, 27px); margin-bottom: 12px; }
.cta p { margin: 0 auto 22px; max-width: 620px; font-size: 15.5px; line-height: 1.85; color: var(--tx2); }

/* ── 内页横幅 ─────────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 44px;
  background: linear-gradient(152deg, #EAF5FC 0%, #F5FAFE 46%, #FDEDF4 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(58deg, rgba(46, 143, 196, .06) 0 3px, rgba(46, 143, 196, 0) 3px 17px);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--main) 0 50%, var(--pink) 50% 100%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(27px, 3.3vw, 40px); color: var(--tx); margin: 0 0 16px; }
.page-lead { margin: 0; max-width: 800px; font-size: 16.5px; line-height: 1.9; color: var(--tx2); }
.crumb { margin: 0 0 14px; font-size: 13.5px; color: var(--tx3); }
.crumb a { color: var(--tx3); }

/* ── 正文 ─────────────────────────────────────────────────── */
.prose { max-width: 880px; }
.prose h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 8px 0 16px;
}
.prose h2::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px dashed var(--main);
  border-radius: 50%;
}
.prose h2::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line2), rgba(190, 221, 238, 0));
}
.prose h3 { font-size: 18.5px; color: var(--tx); margin: 26px 0 10px; }
.prose > p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.95; color: var(--tx2); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 9px; font-size: 16px; line-height: 1.9; color: var(--tx2); }
.prose li b { color: var(--tx); }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.block-gap { height: 42px; }

.steps { list-style: none; padding: 0; counter-reset: st; }
.steps li {
  position: relative;
  padding: 0 0 20px 54px;
  counter-increment: st;
  font-size: 16px;
  line-height: 1.9;
  color: var(--tx2);
}
.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border: 1px dashed var(--main);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--main-d);
  text-align: center;
  line-height: 32px;
}
.steps li b { color: var(--tx); }

.fig { margin: 28px 0; }
.fig img { width: 100%; height: auto; border-radius: var(--r); }
.fig.narrow img { width: auto; max-width: min(100%, 336px); margin: 0 auto; }
.fig figcaption {
  margin-top: 11px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--tx3);
  text-align: center;
}
.fig.narrow figcaption { max-width: 336px; margin-left: auto; margin-right: auto; }

.tbl-scroll { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; }
.prose th, .prose td { padding: 13px 16px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--main-l); color: var(--main-d); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose td b { color: var(--tx); }
.prose > p.tbl-cap { margin: 0 0 10px; font-size: 14.5px; color: var(--tx); font-weight: 700; }
.prose > p.tbl-note { margin: 0 0 22px; font-size: 13.5px; line-height: 1.7; color: var(--tx3); }

.rel {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.rel h3 { font-size: 17px; margin-bottom: 12px; }
.rel ul { list-style: none; padding: 0; margin: 0; }
.rel li { margin-bottom: 10px; font-size: 15px; line-height: 1.8; color: var(--tx2); }
.rel li a { font-weight: 700; }

/* ── 页脚 ─────────────────────────────────────────────────── */
.ft { margin-top: 24px; padding: 50px 0 32px; background: var(--dark); color: #C3D9E7; }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.ft h4 { font-size: 15px; color: #fff; margin-bottom: 12px; letter-spacing: .5px; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin-bottom: 8px; font-size: 14px; }
.ft a { color: #C3D9E7; text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.ft__brand img { width: 40px; height: 40px; border-radius: 10px; }
.ft__brand b { font-size: 18px; color: #fff; }
.ft__desc { margin: 0; font-size: 14px; line-height: 1.85; color: #A9C3D4; }
.ft__dis {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px dashed #3C6076;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #B9D2E1;
}
.ft__cp { margin: 0; font-size: 13px; color: #8FADC0; }

/* ── 动效（纯 CSS，与滚动位置无关）────────────────────────── */
@keyframes inL { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes inR { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes railGrow { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); transform-origin: top; } }
@keyframes riseUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: riseUp .6s cubic-bezier(.2, .7, .3, 1) both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .16s; }
.d3 { animation-delay: .24s; }
.d4 { animation-delay: .32s; }
.d5 { animation-delay: .40s; }
.d6 { animation-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .flow::before, .flow__i, .rise { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── ≤980px ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .sec { padding: 48px 0; }
  .navbtn { display: block; }
  .nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }

  .hero__in { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; padding-bottom: 52px; }
  .hero__fig { order: -1; }
  .phone { max-width: 250px; }

  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(odd) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .flow::before { left: 11px; margin-left: 0; }
  .flow__i, .flow__i:nth-child(odd), .flow__i:nth-child(even) { width: 100%; margin-left: 0; margin-right: 0; padding-left: 52px; }
  .flow__i::after, .flow__i:nth-child(odd)::after, .flow__i:nth-child(even)::after { left: 4px; right: auto; }

  .shots { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .doors { grid-template-columns: 1fr; gap: 18px; }
  .quotes { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── ≤620px ───────────────────────────────────────────────── */
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .sec { padding: 38px 0; }
  .sub { margin-left: 0; }
  .h2 { gap: 10px; }
  .h2::before { width: 15px; height: 15px; }
  .hero__in { padding-top: 34px; padding-bottom: 42px; }
  .hero-lead { font-size: 15.5px; }
  .btn { width: 100%; text-align: center; padding: 15px 60px 15px 22px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
  .phone { max-width: 214px; }
  .shots { grid-template-columns: 1fr; gap: 20px; }
  .fcard { padding: 20px 18px 18px; }
  .flow__i, .flow__i:nth-child(odd), .flow__i:nth-child(even) { padding-left: 40px; }
  .flow::before { left: 8px; }
  .flow__i::after, .flow__i:nth-child(odd)::after, .flow__i:nth-child(even)::after { left: 1px; width: 14px; height: 14px; border-width: 3px; }
  .cta { padding: 32px 20px; }
  .ft__grid { grid-template-columns: 1fr; gap: 22px; }
  .prose > p, .prose li { font-size: 15.5px; }
  .fig.narrow img { max-width: min(100%, 260px); }
  .fig.narrow figcaption { max-width: 260px; }
  .rel { padding: 18px; }
}
