@charset "utf-8";
/* ==========================================================================
   樱花漫画 · yhmhapp.net —— 共享样式表（唯一一份，四个页面共用）
   视觉方向：暖砂纸底 + 紫绀主色 + 珊瑚辅色；渲染语言＝折角纸卡，零投影
   断点：≤980px / ≤620px
   ========================================================================== */

:root {
  --paper: #faf4e9;
  --paper-2: #fdfaf3;
  --card: #ffffff;
  --ink: #241f3a;
  --muted: #635c81;
  --violet: #443c8f;
  --violet-d: #2c2666;
  --violet-l: #e9e6f7;
  --coral: #f2705c;
  --coral-d: #d3513e;
  --coral-l: #fde9e4;
  --gold: #e9b44c;
  --line: #e6ddee;
  --deep: #1b1738;
  --radius: 4px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.32; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 99;
  background: var(--violet);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ── 顶部导航 ───────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 244, 233, .96);
  border-bottom: 1.5px solid var(--line);
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand__txt {
  font-size: 21px;
  font-weight: 700;
  color: var(--violet-d);
  letter-spacing: .5px;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15.5px;
}
.nav a:hover { background: var(--violet-l); color: var(--violet-d); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--violet-l); color: var(--violet-d); font-weight: 700; }
.topbar__cta { flex: none; }
.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  color: var(--violet);
  font-size: 18px;
  line-height: 1;
}

/* ── 按钮 ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--coral { background: var(--coral); color: #fff; border-color: var(--coral-d); }
.btn--coral:hover { background: var(--coral-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--violet-d); border-color: var(--violet); }
.btn--ghost:hover { background: var(--violet-l); }
.btn--paper { background: var(--card); color: var(--violet-d); border-color: var(--violet-d); }
.btn--sm { padding: 9px 18px; font-size: 15px; }
.btn__tip { display: block; width: 100%; font-size: 13.5px; color: var(--muted); font-weight: 400; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fdf9f0 0%, #f6efe2 100%);
  border-bottom: 1.5px solid var(--line);
  padding-top: 58px;
  padding-bottom: 66px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg, rgba(68, 60, 143, .055) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 46%;
  height: 78%;
  background: var(--coral-l);
  transform: rotate(-7deg);
  border-radius: 26px;
  pointer-events: none;
}
.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 46px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--violet-l);
  color: var(--violet-d);
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.kicker i {
  width: 8px;
  height: 8px;
  background: var(--coral);
  transform: rotate(45deg);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.2;
  letter-spacing: .5px;
  color: var(--violet-d);
}
.hero h1 em { font-style: normal; color: var(--coral-d); }
.hero-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 34em;
  margin-top: 6px;
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 6px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.hero__meta li { display: flex; align-items: center; gap: 7px; }
.hero__meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.hero__shot { margin: 0; text-align: center; }
.hero__shot img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7.5px var(--violet-l);
  border-radius: 16px;
  animation: floatY 7s ease-in-out infinite;
}
.hero__cap {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 16px;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ── 通用区块 ───────────────────────────────────────────── */
.block { padding-top: 62px; padding-bottom: 62px; }
.block--alt { background: var(--paper-2); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.sec-head { margin-bottom: 30px; }
.h2 {
  font-size: 27px;
  color: var(--violet-d);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.h2::before {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background: var(--violet);
  transform: rotate(45deg);
  animation: unfold .5s ease-out both;
}
@keyframes unfold {
  from { opacity: .1; transform: rotate(45deg) scale(.5); }
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}
.sub { color: var(--muted); font-size: 16px; margin: 0; }

/* ── 卡片（折角纸卡）────────────────────────────────────── */
.card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.card--fold::after {
  content: "";
  position: absolute;
  top: -1.5px;
  right: -1.5px;
  width: 0;
  height: 0;
  border-top: 20px solid var(--violet-l);
  border-left: 20px solid transparent;
}
.card h3 { font-size: 19px; color: var(--violet-d); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card__no {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-d);
  background: var(--coral-l);
  padding: 3px 9px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── 截图预览 ───────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shot { margin: 0; }
.shot img {
  width: 100%;
  display: block;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6.5px var(--line);
  border-radius: 14px;
}
.shot figcaption {
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}
.shot figcaption b { color: var(--violet-d); display: block; font-size: 15.5px; }

/* ── 数据条 ────────────────────────────────────────────── */
.facts {
  background: linear-gradient(140deg, var(--deep) 0%, var(--violet-d) 60%, #4a3f96 100%);
  color: #fff;
  padding-top: 44px;
  padding-bottom: 44px;
}
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.fact { border-left: 3px solid var(--gold); padding-left: 16px; }
.fact b { display: block; font-size: 26px; color: #fff; line-height: 1.3; }
.fact span { font-size: 14.5px; color: #cfc9e8; }
.facts .h2 { color: #fff; }
.facts .h2::before { background: var(--gold); }
.facts .sub { color: #cfc9e8; }

/* ── 入口卡 ────────────────────────────────────────────── */
.entry { display: block; color: inherit; }
.entry:hover { text-decoration: none; }
.entry:hover .card { border-color: var(--violet); }
.entry .card { transition: border-color .18s ease, transform .18s ease; height: 100%; }
.entry:hover .card { transform: translateY(-3px); }
.entry__more { display: inline-block; margin-top: 14px; color: var(--coral-d); font-weight: 700; font-size: 15px; }

/* ── 评价 ──────────────────────────────────────────────── */
.quote {
  background: var(--paper);
  border-left: 4px solid var(--violet);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  margin: 0;
}
.quote p { font-size: 15.5px; color: var(--ink); margin-bottom: 12px; }
.quote footer { font-size: 14px; color: var(--muted); }
.quote cite { font-style: normal; font-weight: 700; color: var(--violet-d); }

/* ── 折叠问答 ──────────────────────────────────────────── */
.qa { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; }
.qa summary {
  cursor: pointer;
  padding: 17px 52px 17px 22px;
  font-weight: 700;
  color: var(--violet-d);
  font-size: 16.5px;
  list-style: none;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  color: var(--coral-d);
  font-size: 22px;
  font-weight: 700;
}
.qa[open] summary::after { content: "–"; }
.qa__body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.qa__body p:last-child { margin-bottom: 0; }

/* ── CTA ───────────────────────────────────────────────── */
.cta {
  background: var(--deep);
  color: #fff;
  padding-top: 58px;
  padding-bottom: 58px;
  text-align: center;
}
.cta .h2 { color: #fff; justify-content: center; }
.cta .h2::before { background: var(--coral); }
.cta p { color: #cfc9e8; max-width: 40em; margin-left: auto; margin-right: auto; }
.cta .btn--coral { margin-top: 10px; }
.cta__note { font-size: 14px; color: #a49dc4; margin-top: 16px; }

/* ── 页脚 ──────────────────────────────────────────────── */
.foot { background: #201b3d; color: #b8b2d2; padding-top: 46px; padding-bottom: 26px; font-size: 14.5px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.foot h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.foot a { color: #cfc9e8; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 9px; }
.foot__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot__brand img { width: 30px; height: 30px; }
.foot__brand span { color: #fff; font-weight: 700; font-size: 19px; }
.disclaimer {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #3a3263;
  color: #9a93bd;
  font-size: 13.5px;
}
.copy { margin: 10px 0 0; color: #8b83b0; font-size: 13px; }

/* ── 内页横幅与锚点条 ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(120deg, var(--violet-d) 0%, #4b3fa0 58%, var(--coral-d) 190%);
  color: #fff;
  padding-top: 52px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border: 18px solid rgba(255, 255, 255, .13);
  transform: rotate(45deg);
}
.page-hero h1 { font-size: clamp(27px, 3.6vw, 38px); color: #fff; position: relative; z-index: 1; }
.page-hero .lead {
  color: #e2ddf4;
  font-size: 16.5px;
  max-width: 48em;
  margin: 0;
  position: relative;
  z-index: 1;
}
.crumb { font-size: 14px; color: #c3bce4; margin-bottom: 14px; position: relative; z-index: 1; }
.crumb a { color: #e2ddf4; }

.anchors {
  position: sticky;
  top: 68px;
  z-index: 12;
  background: rgba(253, 250, 243, .97);
  border-bottom: 1.5px solid var(--line);
  overflow-x: auto;
}
.anchors ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  white-space: nowrap;
}
.anchors a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
}
.anchors a:hover { background: var(--violet-l); color: var(--violet-d); text-decoration: none; }

/* ── 正文元素 ──────────────────────────────────────────── */
.lead { font-size: 17px; color: var(--muted); }
.prose h2 { font-size: 24px; color: var(--violet-d); margin-top: 1.9em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 18.5px; color: var(--violet-d); margin-top: 1.6em; }
.prose p { color: #3c3659; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; color: #3c3659; }
.prose li b, .prose p b { color: var(--violet-d); }
.prose > .block-note + h2 { margin-top: 1.6em; }

.cardline {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--violet);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 20px;
}
.cardline h3 { margin-top: 0; }

.steps { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: st; }
.steps li {
  position: relative;
  padding: 16px 20px 16px 62px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.steps li::before {
  counter-increment: st;
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 15px;
  color: var(--coral-d);
  font-weight: 700;
  font-size: 15px;
  background: var(--coral-l);
  border-radius: var(--radius);
  padding: 3px 7px;
}
.steps b { color: var(--violet-d); display: block; font-size: 16.5px; }
.steps span { color: var(--muted); font-size: 15.5px; }

.kv { list-style: none; padding: 0; margin: 0 0 12px; }
.kv li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1.5px dashed var(--line);
}
.kv b { color: var(--violet-d); }
.kv span { color: var(--muted); }

.figure { margin: 0 0 26px; }
.figure img {
  width: 100%;
  display: block;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6.5px var(--line);
  border-radius: 14px;
}
.figure figcaption { font-size: 14.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.figure--narrow img { max-width: 300px; margin: 0 auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.split .figure { margin-bottom: 0; }

.cross { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.cross a { display: block; }
.cross .card { height: 100%; }
.cross a:hover { text-decoration: none; }
.cross a:hover .card { border-color: var(--violet); }
.cross b { display: block; color: var(--violet-d); margin-bottom: 6px; font-size: 16px; }
.cross span { color: var(--muted); font-size: 14.5px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0 0 22px; }
.tag-row li {
  background: var(--violet-l);
  color: var(--violet-d);
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; gap: 34px; }
  .hero::after { width: 62%; height: 62%; opacity: .55; }
  .hero__shot img { max-width: 262px; animation: none; }
  .grid--3, .grid--4, .cross { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .kv li { grid-template-columns: 150px 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .topbar__in { min-height: 58px; }
  .brand__txt { font-size: 18.5px; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    background: var(--paper-2);
    border-bottom: 1.5px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 14px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; }
  .burger { display: block; }
  .topbar__cta { display: none; }
  .anchors { top: 58px; }
  .hero { padding-top: 38px; padding-bottom: 44px; }
  .block { padding-top: 44px; padding-bottom: 44px; }
  .grid--3, .grid--4, .cross, .facts__grid, .foot__grid { grid-template-columns: 1fr; }
  .h2 { font-size: 22px; }
  .page-hero { padding-top: 36px; padding-bottom: 34px; }
  .page-hero::after { width: 130px; height: 130px; border-width: 12px; }
  .kv li { grid-template-columns: 1fr; gap: 4px; }
  .card, .cardline { padding: 20px 18px; }
  .steps li { padding: 14px 16px 14px 56px; }
  .btn { width: 100%; }
  .hero__btns .btn { width: 100%; }
  .anchors ul { padding: 8px 0; }
}
