/* 起点立体课本 · 网站样式
   和书里同一套：纸色、墨色，颜色只给知识点（红铅笔、蓝笔、发光的暖橙） */

:root {
  --paper: #fbf8f1;
  --paper-2: #f3eee3;
  --paper-3: #ebe4d5;
  --ink: #23262c;
  --ink-2: #555a62;
  --ink-3: #8a8d92;
  --line: rgba(35, 38, 44, .14);
  --red: #c8412b;
  --blue: #2c4f9a;
  --glow: #f0a24a;
  --cloth: #26407a;
  --cloth-2: #1d3364;
  --wood: #c9a37a;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --hand: "LXGW WenKai", "Kaiti SC", "KaiTi", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: min(1180px, calc(100vw - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.85 var(--serif);
  letter-spacing: .02em;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: var(--wrap); margin: 0 auto; }

/* 纸纹：全站一层很淡的颗粒 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .5  0 0 0 0 .42  0 0 0 .09 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

/* ---------- 开场：点亮起点 → 展开基线 → 打开关系 ---------- */
.intro {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity .7s var(--ease), visibility .7s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro svg { width: 96px; height: 64px; overflow: visible; }
.intro .dot { transform-origin: 5px 19px; transform: scale(0); animation: dot .45s var(--ease) .1s forwards; }
.intro .base { stroke-dasharray: 27; stroke-dashoffset: 27; animation: draw .45s var(--ease) .45s forwards; }
.intro .arc { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw .55s var(--ease) .8s forwards; }
.intro p { margin: 18px 0 0; font: 700 15px var(--serif); letter-spacing: .5em; text-indent: .5em; opacity: 0; animation: fade .5s 1.1s forwards; }
@keyframes dot { to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- 顶栏 ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, box-shadow .4s;
}
.top.solid { background: rgba(251, 248, 241, .9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 16px var(--serif); letter-spacing: .14em; }
.brand svg { width: 30px; height: 20px; }
.nav { display: flex; gap: 6px; font-size: 15px; }
.nav a { padding: 4px 10px; position: relative; color: var(--ink-2); transition: color .3s; }
.nav a:hover { color: var(--ink); }
.nav a + a::before { content: "·"; position: absolute; left: -5px; color: var(--ink-3); }

/* 红铅笔下划线：手画的一笔 */
.pencil { position: relative; white-space: nowrap; }
.pencil svg {
  position: absolute; left: -4%; bottom: -.22em; width: 108%; height: .5em;
  overflow: visible; pointer-events: none;
}
.pencil path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.in .pencil path, .pencil.in path { transition: stroke-dashoffset 1.1s var(--ease) .5s; stroke-dashoffset: 0; }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 72px; overflow: hidden; }
.hero .stage {
  position: absolute; inset: 0 0 0 30%;
  perspective: 1400px;
}
.hero .shot {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 92%, transparent),
                      linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero .shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero .shot img.on { opacity: 1; transform: scale(1); }
.hero .copy { position: relative; z-index: 2; max-width: 560px; }
.kicker { font: 400 15px var(--hand); color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--ink-3); }
h1 { font: 700 clamp(34px, 4.6vw, 62px)/1.32 var(--serif); letter-spacing: .04em; margin: 18px 0 22px; }
h1 .ln { display: block; overflow: hidden; }
h1 .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.in h1 .ln > span { transform: none; }
.in h1 .ln:nth-child(2) > span { transition-delay: .12s; }
.hero .sub { color: var(--ink-2); font-size: 17px; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.btn-ink {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px 13px 24px; background: var(--ink); color: var(--paper);
  font: 700 16px var(--serif); letter-spacing: .12em; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 10px 26px -12px rgba(35,38,44,.6);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 18px 32px -14px rgba(35,38,44,.7); }
.btn-ink i { font-style: normal; transition: transform .35s var(--ease); }
.btn-ink:hover i { transform: translateX(4px); }
.link-hand { font: 400 17px var(--hand); color: var(--red); border-bottom: 1px dashed currentColor; padding-bottom: 1px; }

/* 首屏里的手写批注 */
.note {
  position: absolute; z-index: 3;
  font: 400 16px/1.5 var(--hand); color: var(--red);
  opacity: 0; transform: translateY(8px) rotate(-3deg);
  transition: opacity .8s var(--ease) 1.6s, transform .8s var(--ease) 1.6s;
}
.in .note { opacity: 1; transform: rotate(-3deg); }
.note svg { position: absolute; overflow: visible; }
.note path { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; }

/* 竖屏手机：放成片 */
.phone {
  position: absolute; z-index: 3; right: max(4vw, calc((100vw - 1180px) / 2)); bottom: 7vh;
  width: clamp(150px, 13vw, 210px); aspect-ratio: 9 / 19.2;
  border-radius: 26px; padding: 7px; background: #1b1d22;
  box-shadow: 0 30px 60px -24px rgba(20, 22, 28, .55), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: rotate(4deg) translateY(30px); opacity: 0;
  transition: transform 1.2s var(--ease) .9s, opacity 1.2s var(--ease) .9s;
}
.in .phone { transform: rotate(4deg); opacity: 1; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; background: #e8e2d4; }
.phone::after { content: ""; position: absolute; top: 12px; left: 50%; width: 34%; height: 13px; transform: translateX(-50%); border-radius: 10px; background: #1b1d22; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  font: 400 13px var(--hand); color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--ink-3), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 通用段落 ---------- */
section { position: relative; }
.sec { padding: 120px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.sec-head h2 { font: 700 clamp(30px, 3.4vw, 44px)/1.2 var(--serif); letter-spacing: .08em; margin: 0; }
.sec-head h2 small { display: block; font: 400 14px var(--hand); color: var(--ink-3); letter-spacing: .1em; margin-bottom: 10px; }
.sec-head p { margin: 0; max-width: 380px; color: var(--ink-2); font-size: 15px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 书架：真的立在木板上的布面书 ---------- */
.shelf { position: relative; perspective: 1600px; }
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; align-items: end; padding: 0 12px; }
.book {
  position: relative; display: block;
  aspect-ratio: 3 / 4.1;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(2deg);
  transform-origin: 50% 100%;
  transition: transform .7s var(--ease);
}
.book:hover, .book:focus-visible { transform: rotateY(-4deg) rotateX(0) translateY(-18px) translateZ(30px); }
.book .cover {
  position: absolute; inset: 0;
  border-radius: 3px 6px 6px 3px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .16 0'/></filter><rect width='120' height='120' filter='url(%23c)'/></svg>"),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(100deg, var(--cloth-2), var(--cloth) 18%, #2c4a8a 60%, var(--cloth));
  box-shadow:
    inset 6px 0 8px -4px rgba(0,0,0,.45),
    inset -2px 0 0 rgba(255,255,255,.08),
    0 26px 40px -22px rgba(20,22,28,.7);
  display: flex; flex-direction: column; align-items: center; padding: 14% 11% 9%;
}
.book .cover::before { /* 书脊的折痕 */
  content: ""; position: absolute; left: 7%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.12)); box-shadow: 1px 0 0 rgba(255,255,255,.07);
}
.book .spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 34px;
  transform: rotateY(-90deg); transform-origin: 0 50%;
  background: linear-gradient(90deg, #172a53, var(--cloth-2));
  border-radius: 3px 0 0 3px;
  writing-mode: vertical-rl; color: rgba(251,248,241,.8);
  font: 700 12px var(--serif); letter-spacing: .3em; display: grid; place-items: center;
}
.book .pages { /* 书页厚度 */
  position: absolute; top: 3px; bottom: 3px; right: -1px; width: 22px;
  transform: rotateY(90deg) translateZ(-1px); transform-origin: 100% 50%;
  background: repeating-linear-gradient(90deg, #f6f1e6 0 1px, #e3dccd 1px 2px);
}
.label {
  width: 100%; background: var(--paper); color: var(--ink);
  padding: 10% 8% 9%; text-align: center; border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.label svg.mk { width: 26px; height: 17px; margin: 0 auto 6px; }
.label .grade { font-size: 11px; color: var(--ink-2); letter-spacing: .08em; }
.label .title { font: 700 clamp(15px, 1.5vw, 19px)/1.4 var(--serif); letter-spacing: .1em; margin-top: 2px; }
.label .art { height: 64px; margin: 8px auto 0; }
.book .mark-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; color: rgba(251,248,241,.75); font: 700 11px var(--serif); letter-spacing: .2em; }
.book .mark-foot svg { width: 18px; height: 12px; }
.book .ribbon { position: absolute; bottom: -14px; left: 22%; width: 8px; height: 22px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }

/* 在做的书：铅笔线稿 */
.book.draft .cover {
  background: var(--paper);
  box-shadow: 0 22px 34px -24px rgba(20,22,28,.35);
  border: 1.4px dashed rgba(35,38,44,.38);
}
.book.draft .cover::before { background: rgba(35,38,44,.2); box-shadow: none; }
.book.draft .spine { background: var(--paper-2); color: var(--ink-3); border: 1.4px dashed rgba(35,38,44,.3); }
.book.draft .label { background: transparent; box-shadow: none; color: var(--ink-2); }
.book.draft .mark-foot { color: var(--ink-3); }
.book.draft .tag { position: absolute; top: 12px; right: -10px; font: 400 14px var(--hand); color: var(--red); transform: rotate(8deg); }
.book.draft .ribbon { display: none; }

.plank {
  height: 22px; margin: 0 -10px; position: relative; z-index: -1;
  background: linear-gradient(180deg, #d9b98f, var(--wood) 40%, #a98257);
  border-radius: 2px;
  box-shadow: 0 18px 30px -16px rgba(60, 40, 20, .55);
}
.plank::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: linear-gradient(#8e6a44, transparent); opacity: .5; }
.book-caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding: 22px 12px 0; }
.book-caps div { font-size: 14px; color: var(--ink-2); }
.book-caps b { display: block; font-weight: 700; color: var(--ink); font-size: 15px; }
.book-caps .go { font: 400 15px var(--hand); color: var(--red); }

/* ---------- 图鉴墙 ---------- */
.atlas { background: #e9e4d9; }
.atlas .rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(24px, calc((100vw - 1180px) / 2)) 30px;
  scrollbar-width: none;
}
.atlas .rail::-webkit-scrollbar { display: none; }
.spec {
  flex: 0 0 auto; width: clamp(200px, 19vw, 248px); aspect-ratio: 9 / 16;
  position: relative; scroll-snap-align: start; border-radius: 4px; overflow: hidden;
  background: #ddd6c8; box-shadow: 0 18px 40px -26px rgba(20,22,28,.6);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.spec:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -26px rgba(20,22,28,.7); }
.spec video, .spec img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spec video { opacity: 0; transition: opacity .6s; }
.spec.playing video { opacity: 1; }
.atlas .drag { font: 400 14px var(--hand); color: var(--ink-3); }

/* ---------- 怎么玩 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step figure { margin: 0 0 22px; aspect-ratio: 4 / 3.2; overflow: hidden; border-radius: 3px; background: var(--paper-2); position: relative; box-shadow: 0 20px 40px -30px rgba(20,22,28,.6); }
.step figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.step:hover figure img { transform: scale(1.05); }
.step .no { font: 400 30px var(--hand); color: var(--red); line-height: 1; }
.step h3 { font: 700 21px var(--serif); letter-spacing: .1em; margin: 8px 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 线下活动 ---------- */
.offline { background: var(--ink); color: var(--paper); overflow: hidden; }
.offline .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.offline h2 { font: 700 clamp(30px, 3.4vw, 46px)/1.3 var(--serif); letter-spacing: .06em; margin: 14px 0 22px; }
.offline .kicker { color: rgba(251,248,241,.6); }
.offline .kicker::before { background: rgba(251,248,241,.4); }
.offline p { color: rgba(251,248,241,.72); margin: 0 0 26px; }
.flow { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 14px; }
.flow li { display: flex; gap: 16px; align-items: baseline; font-size: 17px; }
.flow li b { font: 400 22px var(--hand); color: var(--glow); width: 22px; }
.free { display: inline-block; font: 700 15px var(--serif); letter-spacing: .2em; color: var(--ink); background: var(--paper); padding: 8px 18px; border-radius: 2px; }
.free + span { margin-left: 14px; font: 400 15px var(--hand); color: rgba(251,248,241,.6); }

/* 好奇心卡片（用 HTML 画一张真卡） */
.qcard {
  width: min(360px, 100%); margin-left: auto; aspect-ratio: 100 / 148;
  background: #fff; color: var(--ink); border-radius: 3px; padding: 7% 7% 6%;
  display: flex; flex-direction: column; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.7);
  transform: rotate(-4deg); transition: transform .8s var(--ease);
}
.qcard:hover { transform: rotate(-1deg) translateY(-6px); }
.qcard .hd { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-2); }
.qcard .hd span:first-child { display: flex; gap: 6px; align-items: center; font-weight: 700; color: var(--ink); font-size: 12px; }
.qcard .hd svg { width: 18px; height: 12px; }
.qcard .sky { margin: 10px 0 12px; aspect-ratio: 3 / 2; border-radius: 1px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 70% 34%, #fff7dc 0 7%, rgba(255,240,200,.35) 8%, transparent 16%), linear-gradient(#0f1d3a, #22396b 70%, #2d4677); }
.qcard .sky::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -8%; height: 46%;
  background: radial-gradient(ellipse at 20% 100%, #0a0f1c 40%, transparent 41%), radial-gradient(ellipse at 55% 110%, #0a0f1c 46%, transparent 47%), radial-gradient(ellipse at 90% 100%, #0a0f1c 38%, transparent 39%); }
.qcard .q { font-weight: 700; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.4; }
.qcard .meta { font-size: 10px; color: var(--ink-3); margin: 3px 0 9px; }
.qcard .lb { font-size: 11px; color: #1f6b4f; font-weight: 700; }
.qcard .ex { font-size: 10.5px; line-height: 1.7; margin: 2px 0 8px; }
.qcard .think { font-size: 10.5px; border: 1px solid #1f6b4f; color: #1f6b4f; padding: 5px 8px; }
.qcard .ft { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: var(--ink-2); }
.qcard .qr { width: 30px; height: 30px; background:
  conic-gradient(from 90deg at 30% 30%, #23262c 25%, transparent 0) 0 0/8px 8px, #fff; outline: 2px solid #23262c; outline-offset: -2px; }

/* ---------- 关于 ---------- */
.about .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.about blockquote { margin: 0; font: 400 clamp(22px, 2.3vw, 30px)/1.7 var(--hand); color: var(--ink); }
.about blockquote em { font-style: normal; color: var(--red); }
.about .txt p { color: var(--ink-2); margin: 0 0 18px; }
.about .find { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; }
.about .find b { color: var(--ink); }

footer { padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  :root { --wrap: calc(100vw - 40px); }
  .nav { display: none; }
  .hero { align-items: flex-start; padding-top: 92px; min-height: auto; flex-direction: column; }
  .hero .stage { position: relative; inset: auto; width: 100%; height: 62vw; margin-top: 30px; order: 2; }
  .hero .shot { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent); }
  .hero .copy { padding: 0 20px; }
  .phone { right: 22px; bottom: -18px; width: 112px; border-radius: 18px; padding: 5px; }
  .phone video { border-radius: 14px; }
  .phone::after { top: 8px; height: 8px; }
  .note.n2 { display: none; }
  .scroll-hint { display: none; }
  .sec { padding: 84px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .books, .book-caps { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .books .book:nth-child(n+3) { margin-top: 30px; }
  .plank { display: none; }
  .book-caps { display: none; }
  .book-cap-m { display: block !important; }
  .steps { grid-template-columns: 1fr; gap: 50px; }
  .offline .grid, .about .grid { grid-template-columns: 1fr; gap: 50px; }
  .qcard { margin: 0 auto; width: 78%; }
}
.book-cap-m { display: none; margin-top: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.book-cap-m b { display: block; color: var(--ink); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none; }
  .reveal, h1 .ln > span, .phone, .note { opacity: 1 !important; transform: none !important; }
  .pencil path { stroke-dashoffset: 0; }
}

/* =========================================================
   第二版首屏：台灯下的书，往下滑就翻开（电影感）
   ========================================================= */
body.dark-top .top:not(.solid) { color: var(--paper); }
body.dark-top .top:not(.solid) .brand svg * { stroke: var(--paper); }
body.dark-top .top:not(.solid) .brand svg circle { fill: var(--paper); }
body.dark-top .top:not(.solid) .nav a { color: rgba(251,248,241,.7); }
body.dark-top .top:not(.solid) .nav a:hover { color: var(--paper); }
.intro.dark { background: #0d0c0b; }
.intro.dark svg * { stroke: #f3d9a8; }
.intro.dark svg circle { fill: #f3d9a8; }
.intro.dark p { color: #f3d9a8; }

.cine { position: relative; height: 290vh; background: #0d0c0b; color: var(--paper); }
.cine .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine .frame { position: absolute; inset: 0; will-change: transform; }
.cine .frame img, .cine .frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%;
}
.cine .frame .open { opacity: 0; }
.cine .frame video { opacity: 0; }
.cine .frame video.ready { opacity: 1; }
.cine .frame video.ready ~ img { opacity: 0 !important; }
.cine .vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 72% 40%, transparent 35%, rgba(8,7,6,.55) 75%, rgba(8,7,6,.9)),
    linear-gradient(90deg, rgba(8,7,6,.82) 0, rgba(8,7,6,.45) 34%, transparent 56%);
}
.cine canvas.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.cine .grain { position: absolute; inset: -50%; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23g)'/></svg>");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }

.cine .beat {
  position: absolute; left: max(24px, calc((100vw - 1180px) / 2)); top: 50%; max-width: 560px;
  transform: translateY(-50%); opacity: 0; will-change: opacity, transform;
}
.cine .beat .hand { font: 400 clamp(20px, 2.2vw, 28px)/1.6 var(--hand); color: #f3d9a8; }
.cine .beat .kicker { color: rgba(251,248,241,.6); }
.cine .beat .kicker::before { background: rgba(251,248,241,.4); }
.cine h1 { color: var(--paper); text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.cine h1 .ln > span { transform: none; }
.cine .sub { color: rgba(251,248,241,.72); }
.cine .btn-ink { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 18px 40px -16px rgba(240,162,74,.45); }
.cine .link-hand { color: #f3d9a8; }
.cine .pencil path { stroke: #e2603f; }
.cine .progress { position: absolute; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 34px; display: flex; gap: 8px; align-items: center; font: 400 13px var(--hand); color: rgba(251,248,241,.55); }
.cine .progress i { display: block; width: 90px; height: 1px; background: rgba(251,248,241,.2); position: relative; overflow: hidden; }
.cine .progress i b { position: absolute; inset: 0; background: #f3d9a8; transform-origin: left; transform: scaleX(0); }
.cine .hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font: 400 13px var(--hand); color: rgba(251,248,241,.55); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cine .hint span { width: 1px; height: 34px; background: linear-gradient(rgba(243,217,168,.7), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }

/* 从暗到纸的过渡 */
.dusk { height: 160px; background: linear-gradient(#0d0c0b, var(--paper)); }

/* 从平面到立体：大图 + 文字 */
.flatpop .grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.flatpop figure { margin: 0; border-radius: 4px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(20,22,28,.55); position: relative; }
.flatpop figure img { width: 100%; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.flatpop figure.in img { transform: none; }
.flatpop figure figcaption { position: absolute; left: 18px; bottom: 14px; font: 400 15px var(--hand); color: #f3d9a8; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.flatpop h2 { font: 700 clamp(28px, 3vw, 40px)/1.35 var(--serif); letter-spacing: .06em; margin: 12px 0 18px; }
.flatpop p { color: var(--ink-2); margin: 0 0 14px; }

/* 书架上方的横幅 */
.banner { height: clamp(220px, 34vw, 460px); position: relative; overflow: hidden; margin-bottom: 70px; border-radius: 4px; }
.banner img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,11,.5), transparent 45%); }
.banner h2 { position: absolute; z-index: 2; left: 34px; top: 26px; margin: 0; color: var(--paper); font: 700 clamp(30px, 3.4vw, 46px)/1.2 var(--serif); letter-spacing: .1em; }
.banner h2 small { display: block; font: 400 15px var(--hand); color: #f3d9a8; letter-spacing: .1em; margin-bottom: 8px; }

.offline .photo { margin: 0 0 28px; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.about .cloth { margin: 0 0 30px; border-radius: 4px; overflow: hidden; }

@media (max-width: 860px) {
  .cine { height: 260vh; }
  .cine .frame img, .cine .frame video { object-position: 74% 50%; }
  .cine .vignette { background: linear-gradient(180deg, rgba(8,7,6,.85) 0, rgba(8,7,6,.35) 46%, rgba(8,7,6,.2) 70%, rgba(8,7,6,.75)); }
  .cine .beat { top: 16%; transform: none; padding-right: 20px; }
  .cine .progress { display: none; }
  .flatpop .grid { grid-template-columns: 1fr; gap: 36px; }
  .banner h2 { left: 20px; top: 18px; }
}
body.dark-top .top.solid { background: rgba(13,12,11,.55); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
body.dark-top .top.solid { color: var(--paper); }
body.dark-top .top.solid .brand svg * { stroke: var(--paper); }
body.dark-top .top.solid .brand svg circle { fill: var(--paper); }
body.dark-top .top.solid .nav a { color: rgba(251,248,241,.7); }
.cine .beat { max-width: min(820px, calc(100vw - 48px)); }
.cine h1 { font-size: clamp(30px, 3.9vw, 56px); }
@media (min-width: 861px) { .cine h1 .ln { white-space: nowrap; } }
h1, h2 { text-wrap: balance; }
@media (max-width: 860px) {
  .cine h1 { font-size: clamp(25px, 7.2vw, 32px); }
  .cine .sub { font-size: 15px; }
}
.flatpop h2 { font-size: clamp(26px, 2.6vw, 36px); }
/* 不用视频：翻开的那张图从台灯处被"照亮"出来 */
.cine .frame .open {
  opacity: 1;
  --r: 0%;
  -webkit-mask-image: radial-gradient(circle at 78% 6%, #000 calc(var(--r) - 18%), transparent var(--r));
          mask-image: radial-gradient(circle at 78% 6%, #000 calc(var(--r) - 18%), transparent var(--r));
}
.cine .flare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 78% 6%, rgba(255,220,160,.9), rgba(255,190,120,.35) 22%, transparent 55%);
  mix-blend-mode: screen;
}

/* =========== 按 Codex 评审第二轮调整 =========== */
:root { --ink-2: #56564e; --ink-3: #74746a; --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.nav, .btn-ink, .kicker, .label .grade, .book-caps div, .book-cap-m, .flow li, .free, .qcard, .save, .open .t small, .more a { font-family: var(--sans); }
.nav { font-size: 14px; gap: 12px; }
.sec { padding: 112px 0; }
.sec-head h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.25; }
.sec-head p, .flatpop p, .about .txt p, .step p { font-size: 16px; line-height: 1.85; max-width: 32em; }
.dusk { height: 110px; }
.flatpop { padding-top: 64px; }

/* 首屏：电脑标题宽度、手机单独构图 */
.cine { height: 240vh; height: 240svh; }
.cine h1 { font-size: clamp(40px, 3.9vw, 58px); line-height: 1.2; max-width: 11.8em; }
.cine .grp { white-space: nowrap; }
@media (max-width: 860px) {
  .cine { height: 190vh; height: 190svh; }
  .cine h1 { font-size: clamp(26px, 7.2vw, 31px); line-height: 1.28; }
  .cine h1 .ln { white-space: normal; }
  .cine .beat { left: 24px; right: 24px; top: 13%; }
  .cine .sub { font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
  .cine .btn-ink { height: 48px; }
  .cine .frame img.open { object-position: 50% 62%; }
  .cine .vignette { background: linear-gradient(180deg, rgba(12,11,9,.86) 0, rgba(12,11,9,.6) 30%, rgba(12,11,9,0) 52%, rgba(12,11,9,.5)); }
}

/* 怎么玩：中间一步用真实操作录屏 */
.step figure video { width: 100%; height: 100%; object-fit: cover; }
.step figure .tag { position: absolute; right: 10px; bottom: 8px; font: 13px var(--sans); color: #fff; background: rgba(35,38,44,.62); padding: 2px 8px; border-radius: 2px; }
@media (max-width: 860px) { .steps { gap: 44px; } .step figure { aspect-ratio: 4 / 3; } }

/* 图鉴：统一纸色底，降低花哨 */
.atlas { background: #e8e3d6; }
.spec { background: #ede8dc; }
.spec img, .spec video { filter: saturate(.86) contrast(.98); }
@media (max-width: 860px) { .spec { width: 72vw; } .atlas .rail { gap: 16px; padding-left: 24px; } }

/* 线下活动：蓝墨色，编号用纸色，去掉金黄 */
.offline { background: #1d2530; }
.offline .grid { grid-template-columns: 7fr 5fr; gap: 64px; }
.offline h2 { font-size: clamp(27px, 2.8vw, 40px); line-height: 1.32; }
.flow li { font-size: 16px; line-height: 1.7; display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.flow li b { color: var(--paper); font: 400 18px var(--hand); width: auto; }
.flow li em { font-style: normal; color: #e07a62; }
.offline p, .free + span { color: #bdb5a6; }
.qcard { width: min(330px, 100%); transform: rotate(-2deg); box-shadow: 0 22px 44px -22px rgba(0,0,0,.6); }
@media (max-width: 860px) { .offline .grid { grid-template-columns: 1fr; gap: 44px; } .sec { padding: 64px 0; } }

/* 关于：标志被画出来 */
.about .draw { width: 64px; height: 42px; margin-bottom: 22px; overflow: visible; }
.about .draw .dot { transform-origin: 5px 19px; transform: scale(0); transition: transform .35s var(--ease); }
.about .draw .base { stroke-dasharray: 27; stroke-dashoffset: 27; transition: stroke-dashoffset .35s var(--ease) .25s; }
.about .draw .arc { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .45s var(--ease) .55s; }
.about .in .draw .dot { transform: scale(1); }
.about .in .draw .base, .about .in .draw .arc { stroke-dashoffset: 0; }

/* 书架：在做的书不动 */
.book.draft:hover { transform: rotateY(-14deg) rotateX(2deg); }

.atlas a.spec { display:block; color:inherit; text-decoration:none; cursor:pointer; }

/* 手机：封面签纸不超出书皮 */
@media (max-width: 560px) { .label .art { height: 36px; margin-top: 4px; } .label .title { letter-spacing: .04em; } }
