/* 生生的门面。纸、皮、木、灯：颜色和书房里的东西一个来历。系统字体，没有外部文件。 */
:root {
  --paper: #f5eedc; --paper2: #ece2c8; --leather: #34432f; --leather2: #28341f; --wood: #4a3324;
  --warm: #ffe6b4; --night: #0e0d12; --ink: #2b2118; --ink2: #6a5a48; --red: #bf3a2c;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Songti SC", serif;
  --print: "Songti SC", "STSong", "SimSun", "宋体", serif;
  --fs-1: 14px; --fs-2: 16px; --fs-3: 19px; --fs-4: 26px; --fs-5: 32px; --fs-6: 84px;
  --gut: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: var(--fs-2)/1.8 var(--print); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul, ol, figure { margin: 0; }
code { font: 0.92em/1.5 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }

/* ——— 首屏：亮着灯的书房 ——— */
.hero { position: relative; min-height: 620px; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); color: var(--warm); }
.frames, .frames picture, .frames img, .veil { position: absolute; inset: 0; }
.frames img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 62%; }
.veil { background: linear-gradient(180deg, rgba(14,13,18,.32) 0%, rgba(14,13,18,0) 28%, rgba(14,13,18,.12) 52%, rgba(14,13,18,.86) 100%); pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 max(var(--gut), 6vw) clamp(64px, 12vh, 116px); max-width: 880px; text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.hero h1 { font: 400 var(--fs-6)/1.05 var(--hand); letter-spacing: .12em; color: var(--warm); margin-bottom: 8px; }
.lead { font: 400 var(--fs-4)/1.4 var(--hand); color: #fff3d6; margin-bottom: 12px; }
.sub { font-size: var(--fs-3); line-height: 1.8; color: #ead9b4; margin-bottom: 26px; }
.go { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; text-shadow: none; }
.hero-note { font: 400 var(--fs-1)/1.5 var(--hand); color: #d9ccae; letter-spacing: .06em; }
.down { position: absolute; left: 50%; bottom: 18px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; opacity: .7; }
.down span { width: 12px; height: 12px; border-right: 2px solid var(--warm); border-bottom: 2px solid var(--warm); transform: rotate(45deg); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .down span { animation: none; } html { scroll-behavior: auto; } }

/* ——— 按钮：不是蓝按钮。主要的盖一枚章，次要的是铅笔字 ——— */
.stamp {
  display: inline-block; padding: 8px 26px; font: 400 var(--fs-3)/1.6 var(--hand); letter-spacing: .2em; text-decoration: none; color: var(--red);
  background: rgba(245,238,220,.94); border: 3px solid var(--red); border-radius: 4px; outline: 1px solid var(--red); outline-offset: -8px;
  transform: rotate(-1.6deg); box-shadow: 0 3px 0 rgba(0,0,0,.25); transition: transform .12s ease, box-shadow .12s ease;
  min-height: 44px;
}
.stamp:hover, .stamp:focus-visible { transform: rotate(-1.6deg) translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.stamp:active { transform: rotate(-1.6deg) translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.stamp.big { font-size: var(--fs-4); padding: 12px 40px; letter-spacing: .12em; }
.soft { font: 400 var(--fs-3)/1.6 var(--hand); color: inherit; background: none; border: 0; border-bottom: 2px solid currentColor; padding: 4px 2px; cursor: pointer; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; opacity: .9; }
.soft:hover, .soft:focus-visible { opacity: 1; border-bottom-style: dashed; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.paper a:focus-visible, .paper button:focus-visible { outline-color: var(--red); }

/* ——— 纸页 ——— */
.paper { background-color: var(--paper); background-image: repeating-linear-gradient(0deg, rgba(120,90,50,.045) 0 1px, transparent 1px 34px), radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.5), transparent 60%); padding: clamp(56px, 9vw, 110px) 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(var(--gut), 4vw); }
.wrap.narrow { max-width: 760px; }
.kicker { font: 400 var(--fs-2)/1.6 var(--hand); letter-spacing: .3em; color: var(--ink2); margin-bottom: 8px; }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 12px; }
.kicker.light { color: #d8c8a0; }
h2 { text-wrap: balance; font: 400 var(--fs-5)/1.3 var(--hand); letter-spacing: .04em; margin-bottom: 26px; }
h2.light { color: var(--warm); }
.big { font-size: var(--fs-3); line-height: 1.9; color: #3b2f22; }
.fine { font-size: var(--fs-1); line-height: 1.9; color: var(--ink2); margin-top: 18px; max-width: 36em; }
.fine a, .check a { text-underline-offset: 3px; }

.plain, .list { list-style: none; padding: 0; display: grid; gap: 14px; }
.plain li, .list li { position: relative; padding-left: 22px; }
.plain li::before, .list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.plain b, .list b { font: 700 var(--fs-3)/1.6 var(--hand); display: block; color: var(--ink); }
.plain li { color: var(--ink2); font-size: var(--fs-2); line-height: 1.85; }
.list li { font-size: var(--fs-2); color: var(--ink2); line-height: 1.85; }
.gates li { padding-bottom: 14px; border-bottom: 1px dashed rgba(106,90,72,.35); }
.gates li:last-child { border-bottom: 0; }
.gates b { margin-bottom: 2px; }
.list.steps { counter-reset: s; margin-bottom: clamp(40px, 7vw, 64px); }
.list.steps li { counter-increment: s; padding-left: 44px; }
.list.steps li::before { content: counter(s); width: 26px; height: 26px; top: .3em; border-radius: 50%; background: none; border: 2px solid #c99b62; color: #e8d6b4; font: 700 13px/22px var(--hand); text-align: center; }

/* ——— 它的样子：钉在皮面上的照片 ——— */
.board { background: radial-gradient(ellipse at 50% 0%, #3f5239 0%, var(--leather) 45%, var(--leather2) 100%); padding: clamp(56px, 9vw, 110px) 0; color: var(--warm); }
.shot { margin: 0 0 clamp(40px, 7vw, 72px); display: grid; gap: 18px; }
.photo { position: relative; background: var(--paper); padding: 10px; border-radius: 2px; box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 2px 0 rgba(255,255,255,.08) inset; transform: rotate(-.7deg); }
.photo::before { content: ""; position: absolute; top: -13px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(224,196,130,.72); transform: rotate(1.6deg); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.photo img { width: 100%; border-radius: 1px; }
.shot figcaption { display: grid; gap: 4px; padding: 0 6px; }
.shot figcaption b { font: 700 var(--fs-3)/1.5 var(--hand); color: var(--warm); letter-spacing: .1em; }
.shot figcaption span { font-size: var(--fs-2); color: #d9ccae; line-height: 1.8; }
.shot.wide { max-width: 980px; margin-left: auto; margin-right: auto; }
.shot.wide.flip .photo { transform: rotate(.6deg); }
.pair { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 56px); max-width: 980px; margin: 0 auto; }
.pair .shot { margin: 0; align-content: start; }
.pair .shot:nth-child(2) .photo { transform: rotate(.9deg); }
.demo { text-align: center; font-size: var(--fs-1); color: #b9ad90; margin-top: 18px; }

/* ——— 下载 ——— */
.get .stamp { margin-top: 4px; }
.get-now { display: grid; gap: 10px; justify-items: start; margin: 34px 0 4px; padding: 20px 22px; background: rgba(255,255,255,.42); border: 1px dashed rgba(106,90,72,.5); border-radius: 4px; }
.get-now .fine { margin: 0; }
.get-now .alt { font: 400 var(--fs-2)/1.7 var(--hand); color: var(--ink2); }
.get-now .alt a { text-underline-offset: 3px; }
.step { font: 700 var(--fs-3)/1.6 var(--hand); margin: 30px 0 10px; }
.cmd { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; background: #2a2018; color: var(--warm); border-radius: 4px; padding: 14px 16px; box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.cmd code { flex: 1 1 280px; min-width: 0; font-size: var(--fs-1); user-select: all; }
.last { border-top: 1px solid rgba(106,90,72,.25); }

/* ——— 脚 ——— */
footer { background: var(--night); color: #cbbd9e; padding: 44px 0 56px; font-size: var(--fs-1); line-height: 1.9; }
footer .dim { color: #8f8570; margin-top: 4px; }
footer a { text-underline-offset: 3px; }

/* ——— 宽屏 ——— */
@media (min-width: 760px) {
  :root { --fs-4: 32px; --fs-5: 46px; --fs-6: 104px; }
  .pair { grid-template-columns: 1fr 1.06fr; align-items: start; }
  .shot.wide figcaption { grid-template-columns: auto 1fr; align-items: baseline; gap: 18px; }
}

/* ——— 手机 ——— */
@media (max-width: 520px) {
  .hero-text { padding-bottom: 80px; }
  .photo { padding: 6px; }
  .stamp.big { width: 100%; text-align: center; }
  .cmd { padding: 12px; }
  .get-now { padding: 16px; }
}

/* ——— 条款页 ——— */
.termspage { background: var(--paper); }
.topbar { background: var(--paper); padding: 14px 0 0; font: 400 var(--fs-3)/1.6 var(--hand); }
.topbar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink2); }
.topbar a:hover { color: var(--red); }
.terms { padding-top: 24px; }
.terms h1 { font: 400 var(--fs-5)/1.3 var(--hand); margin-bottom: 14px; }
.terms .draft { display: inline-block; font: 700 var(--fs-2)/1.6 var(--hand); color: var(--red); border: 2px solid var(--red); padding: 2px 14px; transform: rotate(-1.2deg); margin-bottom: 34px; }
.terms section { margin-bottom: 30px; }
.terms h2 { font: 700 var(--fs-3)/1.5 var(--hand); letter-spacing: .04em; margin-bottom: 10px; }
.terms p + p { margin-top: 10px; }
.terms section p { color: #3b2f22; }
.terms code { background: var(--paper2); padding: 1px 6px; border-radius: 3px; }
.tag { font: 400 var(--fs-1)/1.4 var(--hand); color: var(--red); border: 1px solid var(--red); padding: 0 8px; margin-left: 8px; vertical-align: middle; }
.terms .fine { margin-top: 10px; border-top: 1px dashed var(--ink2); padding-top: 16px; }
.termspage footer { margin-top: 0; }
