/* ============================================================
   包子漫画 · 官网样式
   暖白纸 + 近黑墨 + 品牌橙，条漫阅读页为视觉锚点
   字体：Noto Sans SC（黑体三档字重，不用宋体）
   ============================================================ */

:root {
  --paper: #FBFAF6;
  --white: #FFFFFF;
  --ink: #17120F;
  --ink-2: #463B33;
  --muted: #8A7F76;
  --line: #E7E1D6;
  --orange: #F5811F;
  --orange-d: #C96006;
  --orange-l: #FFC078;
  --sans: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --sec: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, ol, ul, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

/* ---------- 1. 基础组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-d); }
.btn-white { background: #fff; color: var(--orange-d); }
.btn-white:hover { background: #FFF3E4; }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn:active { transform: translateY(1px); }

.link-dot {
  display: inline-block;
  padding-bottom: 3px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px dotted var(--ink-2);
  transition: color .18s ease, border-color .18s ease;
}
.link-dot:hover { color: var(--orange-d); border-color: var(--orange-d); }

.dots { flex: 1; height: 9px; border-bottom: 1px dotted var(--line); }

/* ---------- 2. 页头 ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-size: 18px; font-weight: 900; letter-spacing: .02em; }
.brand-txt em {
  font-style: normal;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}

.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 2px 20px 14px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav.is-open { display: flex; box-shadow: 0 22px 34px -24px rgba(23, 18, 15, .45); }
.nav a { padding: 13px 2px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: var(--orange-d); }

.head-act { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 3. 首屏 ---------- */
.hero {
  padding-top: clamp(28px, 5vw, 62px);
  padding-bottom: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(88% 62% at 92% 4%, rgba(245, 129, 31, .10) 0%, rgba(245, 129, 31, 0) 62%),
    var(--paper);
  overflow: hidden;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ink-2);
}
.kicker i { display: block; width: 7px; height: 7px; background: var(--orange); }

h1 {
  margin-top: 16px;
  font-size: clamp(2.7rem, 10.5vw, 5.4rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.01em;
}

.hero-sub {
  margin-top: 20px;
  max-width: 35ch;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.facts dt { font-size: 24px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts dd { margin-top: 6px; font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* ---------- 4. 阅读页示意 ---------- */
.stage { display: flex; flex-direction: column; align-items: center; padding-top: 26px; }

.book { position: relative; width: 300px; height: 430px; }

.sheet {
  position: absolute;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(23, 18, 15, .06);
}
.sheet-back {
  top: 20px;
  left: 58px;
  width: 256px;
  padding: 7px;
  transform: rotate(5.5deg);
  box-shadow: 0 20px 36px -26px rgba(23, 18, 15, .5), 0 0 0 1px rgba(23, 18, 15, .06);
  filter: brightness(.97);
}
.sheet-back img { opacity: .92; }
.sheet-front {
  top: 0;
  left: 0;
  width: 268px;
  padding: 8px 8px 10px;
  transform: rotate(-2.2deg);
  box-shadow: 0 32px 54px -30px rgba(23, 18, 15, .55), 0 0 0 1px rgba(23, 18, 15, .07);
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 2px 6px;
  font-size: 10px;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.sheet img { display: block; width: 100%; height: auto; border-radius: 2px; }

.sheet-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 2px 0;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pager { font-weight: 700; color: var(--ink-2); }
.bar { flex: 1; height: 2px; background: var(--line); }
.bar i { display: block; width: 26%; height: 100%; background: var(--orange); }

.live-chip {
  position: absolute;
  right: -10px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  transform: rotate(2deg);
  box-shadow: 0 14px 26px -16px rgba(23, 18, 15, .5), 0 0 0 1px rgba(23, 18, 15, .06);
}
.live-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.stage-cap { margin-top: 18px; font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* ---------- 5. 区块外壳 ---------- */
.sec { padding: var(--sec) 0; }
.sec-white { background: var(--white); border-block: 1px solid var(--line); }
.sec-ink { background: var(--ink); color: #FFFFFF; }
.sec-orange { background: var(--orange); color: #fff; }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ch-box {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  align-self: flex-end;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--orange-d);
  border: 1px solid var(--orange);
  border-radius: 3px;
}
.sec-head h2 {
  font-size: clamp(1.5rem, 5.6vw, 2.1rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.lead-dots {
  flex: 1 1 30px;
  min-width: 18px;
  height: 9px;
  border-bottom: 1px dotted var(--line);
}
.sec-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }

.sec-head-ink { border-color: rgba(255, 255, 255, .16); }
.sec-head-ink .ch-box { color: var(--orange-l); border-color: var(--orange-l); }
.sec-head-ink .lead-dots { border-color: rgba(255, 255, 255, .22); }
.sec-head-ink .sec-meta { color: rgba(255, 255, 255, .6); }

.sec-head-orange { border-color: rgba(255, 255, 255, .34); }
.sec-head-orange .ch-box { color: #fff; border-color: rgba(255, 255, 255, .72); }
.sec-head-orange .lead-dots { border-color: rgba(255, 255, 255, .4); }
.sec-head-orange .sec-meta { color: rgba(255, 255, 255, .8); }

.sec-note { margin-top: 20px; max-width: 48ch; font-size: 12px; line-height: 1.9; color: var(--muted); }

/* ---------- 6. 更新列表 ---------- */
.chapter-list { margin-top: 4px; }

.chapter {
  display: grid;
  grid-template-columns: 26px 60px minmax(0, 1fr);
  grid-template-areas:
    "no pic body"
    "no pic meta";
  align-items: center;
  gap: 2px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.c-no {
  grid-area: no;
  align-self: start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.c-pic { grid-area: pic; align-self: center; display: block; border-radius: 8px; overflow: hidden; background: var(--line); }
.c-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.c-body { grid-area: body; min-width: 0; }
.c-body h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.c-by { margin-top: 3px; font-size: 12px; color: var(--muted); }
.c-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.c-ep { color: var(--orange-d); font-weight: 700; }
.c-time { color: var(--muted); }
.chapter > .lead-dots { display: none; }

/* ---------- 7. 分类 ---------- */
.cate-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.cate-list li { padding: 16px 0 14px; border-top: 1px solid var(--line); }
.cate-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cate-top h3 { font-size: 19px; font-weight: 900; letter-spacing: .01em; }
.cate-top span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cate-bar { display: block; margin-top: 10px; height: 3px; background: var(--line); }
.cate-bar i { display: block; height: 100%; background: var(--ink); }
.is-max .cate-top span { color: var(--orange-d); font-weight: 700; }
.is-max .cate-bar i { background: var(--orange); }

/* ---------- 8. 功能 ---------- */
.feat-list { display: grid; margin-top: 6px; }
.feat { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.f-no { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--orange-l); }
.feat h3 { margin-top: 8px; font-size: 17px; font-weight: 900; }
.feat p { margin-top: 8px; max-width: 38ch; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .68); }

.feat-quote {
  margin-top: 32px;
  font-size: clamp(1.35rem, 5.4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--orange-l);
  text-wrap: balance;
  word-break: keep-all;
}

/* ---------- 9. 会员 ---------- */
.vip-in { display: grid; gap: 32px; }

.cmp {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.cmp th, .cmp td { padding: 11px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--muted); font-weight: 500; }
.cmp tbody th { font-weight: 700; color: var(--ink); }
.cmp td { color: var(--ink-2); }
.cmp .is-vip { color: var(--orange-d); font-weight: 700; }
.cmp thead .is-vip { color: var(--orange-d); }

.vip-in .btn { margin-top: 24px; }
.vip-note { margin-top: 16px; max-width: 44ch; font-size: 12px; line-height: 1.9; color: var(--muted); }

.vip-seal {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 128px;
  height: 128px;
  padding: 12px;
  text-align: center;
  color: var(--orange-d);
  border: 3px double var(--orange);
  border-radius: 6px;
  transform: rotate(-7deg);
  background:
    linear-gradient(180deg, rgba(245, 129, 31, .08), rgba(245, 129, 31, 0) 70%),
    #fff;
}
.seal-word { font-size: 15px; font-weight: 900; line-height: 1.2; letter-spacing: .08em; }
.seal-word.big { font-size: 26px; }
.seal-sub { margin-top: 4px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }

/* ---------- 10. 关于 ---------- */
.about-in { display: grid; gap: 30px; }
.statement {
  margin-top: 22px;
  font-size: clamp(1.45rem, 5.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.015em;
  text-wrap: balance;
  word-break: keep-all;
}
.about-p { margin-top: 16px; max-width: 46ch; font-size: 14px; line-height: 1.95; color: var(--ink-2); }

.spec { border-top: 2px solid var(--ink); align-self: start; }
.spec div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { font-size: 12px; color: var(--muted); }
.spec dd { font-size: 12px; color: var(--ink-2); }

/* ---------- 11. 下载 ---------- */
.dl-in { display: grid; gap: 30px; }
.dl-p { margin-top: 20px; max-width: 44ch; font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .94); }
.dl-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  font-size: 12px;
  letter-spacing: .02em;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px dashed rgba(255, 255, 255, .7);
  border-radius: 999px;
  transition: background-color .18s ease;
}
.domain:hover { background: rgba(255, 255, 255, .2); }
.ico-copy { width: 15px; height: 15px; }
.dl-note { margin-top: 16px; max-width: 46ch; font-size: 12px; line-height: 1.85; color: rgba(255, 255, 255, .82); }

.dl-art { display: flex; justify-content: center; padding-top: 4px; }

.fold-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 200px;
  height: 252px;
  padding: 24px 22px 20px;
  background: #fff;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
  box-shadow: 0 34px 54px -34px rgba(122, 57, 2, .6);
  transform: rotate(-3deg);
  color: var(--ink);
}
.fold-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(to bottom left, rgba(245, 129, 31, .2) 50%, rgba(245, 129, 31, 0) 50%);
}
.fold-label { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.fold-no { margin-top: 14px; font-size: 27px; font-weight: 900; letter-spacing: .02em; }
.fold-line { margin-top: 12px; height: 9px; border-bottom: 1px dotted var(--line); }
.fold-cap { margin-top: auto; font-size: 11px; color: var(--muted); }

/* ---------- 12. 页脚 ---------- */
.foot { background: var(--white); border-top: 1px solid var(--line); padding: 34px 0 26px; }
.foot-in { display: flex; flex-direction: column; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 32px; height: 32px; object-fit: contain; }
.foot-brand div { display: flex; flex-direction: column; line-height: 1.2; }
.foot-brand strong { font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.foot-brand span { margin-top: 3px; font-size: 11px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-nav a { font-size: 13px; color: var(--ink-2); }
.foot-nav a:hover { color: var(--orange-d); }
.foot-mail a { font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.foot-mail a:hover { color: var(--orange-d); border-color: var(--orange-d); }
.foot-base {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 13. toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 999px;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 639px) {
  .sec-head .lead-dots { display: none; }
  .sec-meta { margin-left: auto; }
}

@media (max-width: 399px) {
  .brand-txt strong { font-size: 16px; }
  .brand-txt em { font-size: 9px; letter-spacing: .08em; }
  .head-act .btn { padding: 9px 14px; font-size: 12px; }
  .book { width: 268px; height: 392px; }
  .sheet-front { width: 240px; }
  .sheet-back { width: 222px; left: 40px; }
}

@media (min-width: 640px) {
  :root { --sec: 78px; }
  .wrap { width: min(1140px, 100% - 64px); }
  .facts { gap: 24px; }
  .cate-list { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }

  .chapter {
    grid-template-columns: 34px 64px minmax(0, 12ch) minmax(30px, 1fr) auto auto;
    grid-template-areas: "no pic body lead meta meta";
    column-gap: 16px;
    padding: 18px 0;
  }
  .c-no { align-self: center; padding-top: 0; }
  .c-body h3 { font-size: 18px; }
  .c-meta { margin-top: 0; justify-content: flex-end; gap: 14px; font-size: 12px; }
  .chapter > .lead-dots { display: block; align-self: center; margin-bottom: 6px; }
  .c-ep { min-width: 68px; }
  .c-time { min-width: 76px; text-align: right; }

  .feat-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }

  .dl-in { grid-template-columns: minmax(0, 1fr) minmax(200px, 250px); gap: 56px; align-items: center; }
  .dl-art { justify-content: flex-end; }

  .foot-in { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot-base { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  :root { --sec: 92px; }
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    gap: 28px;
  }
  .nav a {
    position: relative;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ink-2);
    border-bottom: 0;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
  }
  .nav a:hover::after { transform: scaleX(1); }

  .hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    column-gap: clamp(24px, 4vw, 64px);
    align-items: start;
  }
  .hero-copy { padding-top: 14px; }
  .stage { padding-top: 4px; }
  .book { width: 326px; height: 462px; }
  .sheet-front { width: 292px; }
  .sheet-back { width: 268px; left: 54px; }
  .live-chip { right: -6px; }

  .vip-in { grid-template-columns: minmax(0, 1fr) 200px; gap: 0 64px; align-items: start; }
  .vip-seal { margin-top: 46px; width: 148px; height: 148px; }

  .about-in { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 64px; align-items: start; }
  .spec { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav a::after, .toast, .domain { transition: none; }
}
