/* 青谱官网 · 单页样式 v2.0（精致化重排）
   设计系统（产品物料/设计系统.typ）同源：
   青绿 #1F5C50 主色｜墨 #26241F 正文｜灰 #8A867C 辅注｜米白 #F5F1E6 底｜淡青带 #F2F5F5
   标题宋体（子集自托管）、正文系统黑体；
   图形语言＝脉线（全站唯一的线）＋ 装裱白衬 ＋ 青印落款 ＋ 分段色带节奏。 */

@font-face {
  font-family: "Qing Serif";
  src: url("../assets/fonts/QingSerif-Bold-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --qing: #1F5C50;
  --qing-deep: #174A40;
  --ink: #26241F;
  --gray: #8A867C;
  --mi: #F5F1E6;
  --band: #F2F5F5;
  --hairline: #E4E0D6;
  --dotline: #CBC7BB;
  --body2: #55524A;
  --shadow-fig: 0 1px 3px rgba(38, 36, 31, 0.05), 0 10px 26px rgba(38, 36, 31, 0.07);
  --serif: "Qing Serif", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--qing); color: #fff; }
:focus-visible { outline: 3px solid var(--qing); outline-offset: 2px; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* 装裱白衬：样张/实拍统一白衬底 + 双线框 + 浅投影（装裱过的样张，非 SaaS 卡片） */
.samples figure,
.xiufu figure,
.extra-grid figure,
.wide-fig {
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-fig);
  padding: 10px 10px 0;
  position: relative;
}
.samples figure::after,
.xiufu figure::after,
.extra-grid figure::after,
.wide-fig::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(38, 36, 31, 0.06);
  pointer-events: none;
}
.samples figcaption,
.xiufu figcaption,
.extra-grid figcaption,
.wide-fig figcaption {
  padding: 9px 4px 11px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ── 页头 ─────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--qing);
}
.brand img { height: 34px; width: auto; }
.top-cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--qing);
  text-decoration: none;
  border: 1.5px solid var(--qing);
  border-radius: 3px;
  padding: 5px 16px;
  transition: background 0.15s, color 0.15s;
}
.top-cta:hover { background: var(--qing); color: #fff; }

/* ── 首屏（居中海报式） ───────────── */
.hero { background: var(--mi); padding: 56px 0 64px; overflow: hidden; }
.hero-center {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  animation: rise 0.6s ease-out both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 品牌压顶：青｜谱 大字 + 小字行 */
.brand-top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brand-zh {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: 0.1em;
  color: var(--qing);
  line-height: 1;
}
.mai-s {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--qing);
  opacity: 0.7;
}
.brand-sub {
  font-size: 14px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gray);
}

/* 三列楹联：翼词（红）+ 主联（青） */
.couplet-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
}
.couplet {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--qing);
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.3;
}
.couplet span { display: block; }
.mai-v {
  display: block;
  width: 2px;
  height: 2.2em;
  margin: 14px auto;
  background: var(--qing);
  opacity: 0.55;
}
.wing {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: 0.22em;
  color: #A2372B;
  border-top: 1px solid rgba(162, 55, 43, 0.55);
  border-bottom: 1px solid rgba(162, 55, 43, 0.55);
  padding: 14px 0;
}

.sub {
  margin: 30px auto 0;
  font-size: 17px;
  max-width: 32em;
}

.price { margin-top: 24px; display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; }
.price b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  color: var(--qing);
  letter-spacing: 0.02em;
}
.price small { font-size: 14px; color: var(--gray); letter-spacing: 0.05em; }

.cta { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--qing);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(31, 92, 80, 0.22);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--qing-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31, 92, 80, 0.26); }
.btn.ghost {
  background: transparent;
  color: var(--qing);
  border: 1.5px solid var(--qing);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--qing); color: #fff; transform: translateY(-1px); }

/* 首屏实物：书影居中，落地投影 */
.hero-fig { margin-top: 40px; }
.still { position: relative; padding-bottom: 26px; }
.still::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 68%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(38, 36, 31, 0.20), rgba(38, 36, 31, 0));
}
.hero-fig .ph-book {
  width: min(340px, 66%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(2px 8px 18px rgba(38, 36, 31, 0.12));
}
.hero-fig figcaption { margin-top: 14px; text-align: center; font-size: 13px; letter-spacing: 0.04em; color: var(--gray); position: relative; z-index: 2; }

/* ── 信任条（深青反白带） ─────────── */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 26px;
  padding: 20px 24px;
  background: var(--qing);
  color: var(--mi);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}
.trust li { display: flex; align-items: center; gap: 26px; }
.trust li + li::before {
  content: "";
  width: 2px;
  height: 15px;
  background: var(--mi);
  opacity: 0.4;
}

/* ── 区块通用 ─────────────────────── */
section { padding: 68px 0 76px; scroll-margin-top: 62px; }
.band-mi { background: var(--mi); }
.band-tint { background: var(--band); }
.band-deep { background: var(--qing-deep); }

.sec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--qing);
  line-height: 1.35;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-title::after {
  content: "";
  flex: 0 0 auto;
  width: 52px;
  height: 2px;
  background: var(--qing);
  opacity: 0.55;
}
.sec-title.center { justify-content: center; }

/* 壹区题尾「包含」整体换行（手机端防孤字） */
.nb { white-space: nowrap; }

/* 序字（壹–柒：描边小方牌，编号感） */
.idx {
  font-style: normal;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--qing);
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--qing);
  border-radius: 3px;
  opacity: 0.85;
}

.lead { margin-top: 16px; font-size: 17px; max-width: 36em; }
.note {
  font-size: 14px;
  color: var(--gray);
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--hairline);
  line-height: 1.7;
}
.wide-fig { margin-top: 26px; }

/* ── 全包包含（价目牌：点线账目感） ── */
.included-band {
  margin-top: 22px;
  background: var(--band);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 8px 26px;
}
.included { display: grid; }
.included > div { padding: 14px 2px; border-bottom: 1px dotted var(--dotline); }
.included > div:last-child { border-bottom: 0; }
.included dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.included dt::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--qing);
  border-radius: 1px;
  transform: rotate(45deg);
  margin-right: 10px;
  vertical-align: 0.16em;
  opacity: 0.75;
}
.included dd { font-size: 15.5px; color: var(--body2); margin-top: 1px; padding-left: 16px; }

/* ── 世系总图（两款并排） ─────────── */
.duo { display: grid; gap: 22px; margin-top: 26px; }
.duo .wide-fig { margin-top: 0; }
.wide-fig.solo { margin-top: 30px; }

/* ── 样张（统一 3:4 白衬，contain 齐整） ── */
.samples {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
}
.samples figure a.zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: #fff;
}
.samples figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── 五步流程 ─────────────────────── */
.steps {
  list-style: none;
  margin-top: 26px;
  position: relative;
  padding-left: 46px;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 12px;
  width: 2px;
  background: var(--qing);
  opacity: 0.5;
}
.steps li { position: relative; padding-bottom: 28px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: -46px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--qing);
  color: var(--qing);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18.5px;
  color: var(--qing);
  display: block;
}
.steps span { display: block; font-size: 15.5px; color: var(--body2); margin-top: 2px; }

/* ── 加选（修复前后 + 价目卡，三列齐平） ── */
.extra-grid {
  margin-top: 26px;
  display: grid;
  gap: 18px;
  align-items: stretch;
}
.extra-grid figure a.zoom {
  display: block;
  aspect-ratio: 3 / 4;
  background: #fff;
}
.extra-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.extra-card {
  background: var(--band);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.extra-card b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.6;
  color: var(--qing);
}
.extra-card span { font-size: 15px; color: var(--body2); }

/* ── 隐私承诺 ─────────────────────── */
.privacy {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 22px;
}
.privacy b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--qing);
  display: block;
}
.privacy b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--qing);
  transform: rotate(45deg);
  margin-right: 10px;
  vertical-align: 0.12em;
  opacity: 0.7;
}
.privacy span { display: block; font-size: 15.5px; color: var(--body2); margin-top: 2px; padding-left: 18px; }

/* ── 业务介绍 ─────────────────────── */
.biz {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 22px;
}
.biz b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--qing);
  display: block;
}
.biz b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--qing);
  transform: rotate(45deg);
  margin-right: 10px;
  vertical-align: 0.14em;
  opacity: 0.7;
}
.biz span { display: block; font-size: 15.5px; color: var(--body2); margin-top: 2px; padding-left: 18px; }

.why-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}
.why {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 20px;
}
.why b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--qing);
  display: block;
}
.why b::before { content: ""; display: inline-block; width: 0.55em; height: 2px; background: var(--qing); margin-right: 10px; vertical-align: 0.24em; opacity: 0.7; }
.why span { display: block; font-size: 15.5px; color: var(--body2); margin-top: 2px; padding-left: calc(0.55em + 10px); }

.diff {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
}
.diff th {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15.5px;
  text-align: left;
  color: var(--qing);
  padding: 10px 14px;
  border-bottom: 2px solid var(--qing);
  white-space: nowrap;
}
.diff td {
  padding: 12px 14px;
  border-bottom: 1px dotted var(--dotline);
  vertical-align: top;
}
.diff td:first-child { color: var(--gray); width: 36%; }
.diff tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 759px) {
  .diff { font-size: 14px; }
  .diff th { padding: 8px 8px; font-size: 14.5px; }
  .diff td { padding: 10px 8px; }
}

/* ── FAQ ──────────────────────────── */
#faq details { margin-top: 4px; border-bottom: 1px dotted var(--dotline); }
#faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--qing);
  list-style: none;
  position: relative;
  padding: 14px 30px 14px 2px;
  transition: color 0.15s;
}
#faq summary:hover { color: var(--qing-deep); }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 21px;
  font-weight: 400;
  font-family: var(--sans);
  color: var(--gray);
}
#faq details[open] summary::after { content: "–"; }
#faq details p { margin: 0 0 16px; padding-left: 2px; font-size: 15.5px; color: var(--body2); }
#faq details:last-child { border-bottom: 0; }

/* ── 联系（深青反白区） ───────────── */
#contact { padding-bottom: 72px; }
.band-deep .sec-title { color: var(--mi); }
.band-deep .sec-title::after { background: var(--mi); opacity: 0.6; }
.band-deep .idx { color: var(--mi); border-color: rgba(245, 241, 230, 0.6); }
.contact-row {
  margin-top: 28px;
  display: flex;
  gap: 34px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.qr-chip {
  background: #fff;
  padding: 14px;
  border-radius: 6px;
  flex: 0 0 auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}
.qr-chip img { width: 150px; height: 150px; }
.contact-text { max-width: 24em; text-align: left; }
.contact-text p { font-size: 15.5px; color: rgba(245, 241, 230, 0.82); margin-top: 6px; }
.contact-title { font-family: var(--serif); font-weight: 700; font-size: 21px; color: #fff; }
.contact-name { font-weight: 700; color: #fff; }

/* ── 页脚（墨色收底） ─────────────── */
.foot {
  background: var(--ink);
  border-top: 1px solid rgba(245, 241, 230, 0.14);
  padding: 32px 20px 38px;
  text-align: center;
  font-size: 14px;
  color: rgba(245, 241, 230, 0.55);
}
.foot a { color: rgba(245, 241, 230, 0.55); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-mark { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--mi); }
.foot-mai {
  display: inline-block;
  width: 2px;
  height: 0.92em;
  background: var(--mi);
  opacity: 0.8;
  vertical-align: -0.08em;
  margin: 0 5px;
}

/* ── 点图看大图 ───────────────────── */
.zoom { display: block; }
.zoom img { transition: transform 0.25s ease; }
.zoom:hover img { transform: scale(1.015); }

/* ── 桌面适配 ─────────────────────── */
@media (min-width: 760px) {
  .hero { padding: 80px 0 92px; }
  .brand-zh { font-size: 56px; }
  .brand-sub { font-size: 15px; }
  .couplet-row { margin-top: 52px; gap: 16px 26px; flex-wrap: wrap; }
  /* 桌面横排：翼词成上方两个红色小标签，主联一行大字 */
  .wing {
    writing-mode: horizontal-tb;
    order: -1;
    font-size: 15px;
    letter-spacing: 0.24em;
    padding: 0;
    border: 0;
  }
  .wing:first-of-type::after {
    content: "·";
    margin-left: 22px;
    color: var(--qing);
    opacity: 0.45;
    letter-spacing: 0;
  }
  .couplet {
    order: 1;
    flex: 0 0 100%;
    writing-mode: horizontal-tb;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 0.04em;
  }
  .couplet span { display: inline; letter-spacing: 0.04em; }
  .couplet span:first-child::after { content: "，"; }
  .mai-v { display: none; }
  .sub { margin-top: 36px; font-size: 18px; }
  .price b { font-size: 36px; }
  .hero-fig { margin-top: 52px; }
  .hero-fig .ph-book { width: min(320px, 60%); }

  section { padding: 88px 0 96px; }
  .sec-title { font-size: 31px; }

  .included { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .included > div:nth-last-child(-n+2) { border-bottom: 0; }

  .duo { grid-template-columns: 1fr 1fr; }

  .samples { grid-template-columns: repeat(4, 1fr); }

  .steps { padding-left: 54px; max-width: 640px; }
  .steps li::before { left: -54px; }

  .extra-grid { grid-template-columns: 1fr 1fr 1.15fr; }
  .privacy { grid-template-columns: repeat(2, 1fr); gap: 26px 44px; }
  .biz { grid-template-columns: repeat(2, 1fr); gap: 26px 44px; }

  .contact-row { flex-wrap: nowrap; }
  .qr-chip img { width: 170px; height: 170px; }
}
