﻿/* 包子漫画 · bzcomics.com.cn
   竖排书脊 + 章节式排版，纸质阅读感 */

:root {
  --cream: #fdfaf4;
  --cream-2: #f8f1e4;
  --ink: #221d18;
  --ink-soft: #574d43;
  --muted: #8d8275;
  --line: #e7dece;
  --line-2: #f0e8d9;
  --pink: #ed5d8c;
  --pink-deep: #c93f6c;
  --pink-wash: #fde6ee;
  --gold: #e9a93b;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shell: 1140px;
  --soft: 0 24px 60px -28px rgba(34, 29, 24, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

p, h1, h2, h3, figure, blockquote { margin: 0; }

em { font-style: normal; }

.col {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--pink-wash); }

/* ---------- 顶部 ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.mark img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 6px 16px -6px rgba(201, 63, 108, 0.6);
}

.mark span {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.mark span em {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: lowercase;
}

.mark-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-soft);
}

.mark-nav a {
  position: relative;
  padding: 4px 0;
}

.mark-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--pink);
  transition: width 0.28s ease;
}

.mark-nav a:hover { color: var(--pink-deep); }
.mark-nav a:hover::after { width: 100%; }

.mark-btn {
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: background 0.24s ease, transform 0.24s ease;
}

.mark-btn:not([hidden]) { display: inline-flex; }

.mark-btn:hover {
  background: var(--pink-deep);
  transform: translateY(-1px);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(circle at 88% 6%, rgba(237, 93, 140, 0.13), transparent 46%),
    radial-gradient(circle at 4% 92%, rgba(233, 169, 59, 0.14), transparent 44%);
}

.hero-in {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 306px;
  gap: 42px;
  align-items: start;
}

.spine {
  writing-mode: vertical-rl;
  justify-self: center;
  padding: 18px 0 22px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.36em;
  color: var(--muted);
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--pink-deep);
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.lead {
  max-width: 30em;
  margin-top: 26px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn-pink,
.btn-line {
  align-items: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-pink:not([hidden]) { display: inline-flex; }

.btn-pink {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(201, 63, 108, 0.9);
}

.btn-pink:hover {
  background: var(--pink-deep);
  transform: translateY(-2px);
}

.btn-line {
  display: inline-flex;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
}

.btn-line:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero-shot {
  position: relative;
  margin-top: 8px;
  isolation: isolate;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 26px -18px -20px 26px;
  border-radius: 20px;
  background: var(--pink-wash);
  border: 1px solid rgba(237, 93, 140, 0.28);
  z-index: -1;
}

.hero-shot img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--soft);
  background: var(--cream-2);
}

.hero-shot figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: right;
}

/* ---------- 章节通用 ---------- */

.reader,
.studio,
.words,
.ask {
  padding: 96px 0;
}

.reader { border-top: 1px solid var(--line-2); }

.sec { max-width: 620px; }

.sec-no {
  display: inline-block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--pink-deep);
  margin-bottom: 14px;
}

.sec-no::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  vertical-align: 4px;
  background: var(--pink);
}

.sec h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.sec p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 图文章节 ---------- */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}

.chapter:first-of-type { margin-top: 56px; }

.chapter-rev .chapter-fig { order: 2; }

.chapter-fig {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--soft);
}

.chapter-fig img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top center;
}

.chapter-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(34, 29, 24, 0.08);
  pointer-events: none;
}

.chapter-text h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1.4;
}

.chapter-text > p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.points li {
  position: relative;
  padding: 13px 0 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-soft);
}

.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---------- 画板与壁纸 ---------- */

.studio {
  background: var(--cream-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
}

.studio-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--soft);
}

.studio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line-2);
}

.studio-card h3 {
  padding: 24px 26px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.studio-card p {
  padding: 8px 26px 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- 读者留言 ---------- */

.word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.word {
  padding: 34px 30px 30px 0;
  border-bottom: 1px solid var(--line);
}

.word + .word {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.word p {
  position: relative;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.word p::before {
  content: "“";
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.7;
  color: var(--pink);
  margin-bottom: 14px;
}

.word footer {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.word footer em {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.word footer::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--pink);
  align-self: center;
}

/* ---------- 问答 ---------- */

.ask-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

.ask-list { border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.5px solid var(--pink);
  border-bottom: 1.5px solid var(--pink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.28s ease;
}

.qa[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.qa p {
  padding: 0 40px 24px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- 下载 ---------- */

.get { padding: 0 0 96px; }

.get-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
  padding: 44px 44px;
  border-radius: 26px;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.get-line::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 93, 140, 0.4), transparent 68%);
  pointer-events: none;
}

.get-copy h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.get-copy p {
  margin-top: 10px;
  font-size: 13.5px;
  color: rgba(253, 250, 244, 0.66);
}

.get-btns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.get-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid rgba(253, 250, 244, 0.24);
  border-radius: 14px;
  background: rgba(253, 250, 244, 0.04);
  transition: background 0.26s ease, border-color 0.26s ease, transform 0.26s ease;
}

.get-btn:not([hidden]) { display: flex; }

.get-btn strong {
  font-size: 14.5px;
  letter-spacing: 0.04em;
}

.get-btn em {
  font-size: 11.5px;
  color: rgba(253, 250, 244, 0.58);
  letter-spacing: 0.06em;
}

.get-btn:hover {
  background: var(--pink);
  border-color: var(--pink);
  transform: translateY(-2px);
}

.get-btn:hover em { color: rgba(255, 255, 255, 0.82); }

/* ---------- 页脚 ---------- */

.foot {
  border-top: 1px solid var(--line-2);
  padding: 34px 0 44px;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.foot-brand img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.foot-brand span {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.foot-brand span em {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--ink-soft);
}

.foot-nav a:hover { color: var(--pink-deep); }

.foot-copy {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- 出现动画 ---------- */

.lift {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.68, 0.28, 1);
}

.lift.on {
  opacity: 1;
  transform: none;
}

/* ---------- 404 ---------- */

.gone {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 60px 32px;
  background:
    radial-gradient(circle at 82% 12%, rgba(237, 93, 140, 0.14), transparent 46%),
    var(--cream);
}

.gone-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.gone-card img {
  width: 68px;
  height: 68px;
  margin: 0 auto 26px;
  border-radius: 18px;
  box-shadow: 0 14px 30px -14px rgba(201, 63, 108, 0.7);
}

.gone-code {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--pink-deep);
}

.gone-card h1 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.4;
}

.gone-card p {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.gone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 32px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 30px -16px rgba(201, 63, 108, 0.9);
}

.gone-link:hover { background: var(--pink-deep); }

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 54px minmax(0, 1fr) 260px; gap: 32px; }
  .chapter { gap: 40px; }
  .get-line { padding: 36px; gap: 28px; }
}

@media (max-width: 900px) {
  .mark-nav { display: none; }

  .hero { padding: 60px 0 72px; }

  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .spine { display: none; }

  .hero-shot {
    max-width: 340px;
    margin-top: 10px;
  }

  .reader,
  .studio,
  .words,
  .ask { padding: 72px 0; }

  .chapter,
  .chapter-rev {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin-top: 44px;
  }

  .chapter-rev .chapter-fig { order: 0; }

  .chapter-fig img { aspect-ratio: 16 / 11; }

  .ask-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }

  .get { padding-bottom: 72px; }

  .get-line {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 26px;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .col { padding: 0 20px; }

  .head-in { height: 64px; gap: 14px; }

  .mark span { font-size: 15px; }

  .mark span em { display: none; }

  .mark-btn { height: 34px; padding: 0 16px; font-size: 12.5px; }

  .hero-copy h1 span { letter-spacing: 0.08em; }

  .lead { font-size: 15px; }

  .studio-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 38px; }

  .word-grid { grid-template-columns: minmax(0, 1fr); margin-top: 38px; }

  .word,
  .word + .word {
    padding: 28px 0;
    border-left: 0;
  }

  .word + .word { border-top: 1px solid var(--line-2); }

  .get-btns { grid-template-columns: minmax(0, 1fr); }

  .get-btn { align-items: center; }

  .foot-in { gap: 16px; }

  .foot-nav { gap: 16px; }
}
