/* SpiriseBible 官网 —— 线稿 + 水彩晕开。色值与 App DESIGN.md 一致：paper / ink / candleGold / nightInk */
:root {
  --paper: #F8F6F0;
  --surface: #FFFFFF;
  --ink: #2D2D2D;
  --ink-soft: #7A7267;
  --ink-muted: #ADA69D;
  --gold: #D4A853;
  --gold-deep: #A9822F;
  --divider: #EDE7DC;
  --night: #1C1A17;
  --night-ink: #F3EEE3;
  --line: #3A2E24;
  --serif: "Merriweather", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  /* 纸纹：极淡的噪点，像水彩纸 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 99; }

/* ---------- 顶栏 ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 86%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--divider); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-soft); padding: 10px 2px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* ---------- 按钮（墨线描边） ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 16px; border: 1.6px solid var(--line); transition: transform .3s var(--ease), background .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.btn-primary:hover { background: #2a2722; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1; }
.btn span { line-height: 1.15; }
.btn.is-yours { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 手写注释 / 手绘线 ---------- */
.hand { font-family: var(--hand); font-size: 24px; color: var(--gold-deep); line-height: 1.1; }
.sketch path, .sketch circle, .sketch line, .sketch polyline, .sketch ellipse { fill: none; stroke: var(--line); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.sketch.gold path, .sketch.gold circle, .sketch.gold polyline { stroke: var(--gold); }
.draw path, .draw circle, .draw line, .draw polyline, .draw ellipse { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 1.8s var(--ease); }
.in .draw path, .in .draw circle, .in .draw line, .in .draw polyline, .in .draw ellipse,
.draw.in path, .draw.in circle, .draw.in line, .draw.in polyline, .draw.in ellipse { stroke-dashoffset: 0; }
.underline { position: relative; white-space: nowrap; }
.underline svg { position: absolute; left: -2%; bottom: -.28em; width: 104%; height: .5em; overflow: visible; }

/* ---------- 进场 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ---------- 首屏 ---------- */
.hero { padding: 40px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.08; margin: 14px 0 20px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.3; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.phone { position: relative; width: min(340px, 78vw); margin: 0 auto; aspect-ratio: 9 / 16; }
.phone video, .phone img.poster { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; border-radius: 26px; }
.phone svg.frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.phone .tag { position: absolute; right: -28px; top: 18%; transform: rotate(6deg); }
.phone .tag2 { position: absolute; left: -54px; bottom: 16%; transform: rotate(-7deg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .phone .tag, .phone .tag2 { display: none; }
}

/* ---------- 区块 ---------- */
section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--ink-soft); max-width: 36em; }
.rule { height: 22px; margin: 0 auto; max-width: var(--max); padding: 0 20px; }
.rule svg { width: 100%; height: 22px; }

/* ---------- 故事卡：线稿 → 水彩晕开 ---------- */
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { text-decoration: none; display: block; }
.art { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 0 var(--divider), 0 18px 40px -28px rgba(60, 40, 20, .35); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art .lines { -webkit-mask-image: radial-gradient(circle at 50% 62%, transparent var(--r), #000 calc(var(--r) + 14%));
  mask-image: radial-gradient(circle at 50% 62%, transparent var(--r), #000 calc(var(--r) + 14%)); transition: --r 2.4s var(--ease) .35s; }
.in .art .lines, .art.in .lines { --r: 120%; }
.card:hover .art { transform: translateY(-3px); }
.art { transition: transform .4s var(--ease); }
.card h3 { margin: 16px 0 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.meta { font-size: 13px; color: var(--ink-muted); margin-top: 8px; display: flex; gap: 10px; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--surface); border: 1.4px solid var(--line); border-radius: 999px;
  font-size: 12px; padding: 3px 10px; font-weight: 600; }
.play { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface);
  border: 1.4px solid var(--line); display: grid; place-items: center; }

/* ---------- 经文夜页 ---------- */
.night { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.night canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.night .wrap { position: relative; text-align: center; padding: 40px 20px; }
.scripture { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 36px); line-height: 1.55; max-width: 24em; margin: 0 auto; font-weight: 300; }
.scripture .w { opacity: 0; filter: blur(6px); transition: opacity 1s var(--ease), filter 1s var(--ease); }
.in .scripture .w { opacity: 1; filter: none; }
.ref { margin-top: 18px; color: var(--gold); letter-spacing: .2em; font-size: 13px; text-transform: uppercase; }

/* ---------- 功能 ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--divider); }
.feature svg { width: 54px; height: 54px; margin-bottom: 14px; }
.feature p { color: var(--ink-soft); margin: 8px 0 0; font-size: 15.5px; }
.ai-note { font-size: 12.5px; color: var(--ink-muted); }

/* ---------- 承诺 ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.promise div { border-top: 1.6px solid var(--line); padding-top: 16px; }
.promise p { color: var(--ink-soft); margin: 6px 0 0; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--divider); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-family: var(--serif); font-size: 19px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--gold-deep); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 46em; }

/* ---------- 下载 CTA ---------- */
.cta { background: var(--surface); border: 1px solid var(--divider); border-radius: 28px; padding: 44px 32px; display: grid;
  grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta p { color: var(--ink-soft); margin: 10px 0 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 34px 22px; } }

/* ---------- 故事详情 ---------- */
.story-head { padding: 34px 0 10px; }
.crumbs { font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-soft); }
.story-head h1 { font-size: clamp(36px, 5.6vw, 60px); margin: 14px 0 12px; }
.twist { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink-soft); margin: 0; }
.story-layout { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; padding-top: 26px; }
.story-video { position: sticky; top: 84px; }
.story-video video { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: var(--night); }
.story-video .store-row { margin-top: 16px; }
.pages { display: grid; gap: 40px; }
.page { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.page .art { box-shadow: none; border: 1px solid var(--divider); }
.page p { font-family: var(--serif); font-size: 20px; line-height: 1.7; margin: 0; }
.page .n { font-family: var(--hand); color: var(--gold-deep); font-size: 22px; }
.text-only p { font-family: var(--serif); font-size: 21px; line-height: 1.75; margin: 0 0 18px; }
.verse { background: var(--surface); border-left: 3px solid var(--gold); padding: 22px 24px; border-radius: 4px 16px 16px 4px; margin: 6px 0; }
.verse blockquote { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.7; }
.verse cite { display: block; margin-top: 10px; font-style: normal; color: var(--gold-deep); font-size: 14px; letter-spacing: .08em; }
.takeaway { font-family: var(--serif); font-size: 26px; line-height: 1.4; }
@media (max-width: 900px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-video { position: static; max-width: 380px; }
  .page { grid-template-columns: 1fr; }
  .page .art { max-width: 320px; }
}

/* ---------- TikTok 落地页 ---------- */
.tt { min-height: 100svh; display: flex; flex-direction: column; }
.tt main { flex: 1; padding: 20px 0 40px; }
.tt .wrap { max-width: 520px; }
.tt h1 { font-size: clamp(34px, 9vw, 46px); margin: 10px 0 12px; }
.tt video { width: 100%; max-width: 300px; margin: 18px auto; aspect-ratio: 9 / 16; border-radius: 22px; background: var(--night); }
.tt .btn { width: 100%; justify-content: center; }
.tt .store-row { flex-direction: column; }
.list { list-style: none; padding: 0; margin: 0; }
.list li a { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--divider); text-decoration: none; min-height: 44px; }
.list img { width: 54px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; }
.list strong { font-family: var(--serif); font-weight: 400; font-size: 18px; display: block; }
.list span { color: var(--ink-soft); font-size: 14px; }

/* ---------- 页脚 ---------- */
footer { padding: 48px 0 40px; border-top: 1px solid var(--divider); color: var(--ink-soft); font-size: 14px; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer a { color: var(--ink-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .draw path, .draw circle, .draw line, .draw polyline, .draw ellipse { stroke-dashoffset: 0; }
  .art .lines { display: none; }
  .scripture .w { opacity: 1; filter: none; }
}

/* ---------- 修正：手机顶栏 / 双列卡片 / 首屏注释位置 ---------- */
.nav-links .btn { white-space: nowrap; }
@media (max-width: 720px) { .nav-links { gap: 14px; } .nav-links a[href="/stories/"] { display: none; } }
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card h3 { font-size: 17px; margin-top: 10px; }
  .card p { font-size: 13.5px; }
  .badge { font-size: 10.5px; padding: 2px 8px; left: 8px; top: 8px; }
  .play { width: 38px; height: 38px; right: 8px; bottom: 8px; }
}
.phone .tag { right: -104px; top: 16%; }
.phone .tag2 { left: -96px; bottom: 14%; }
@media (max-width: 1100px) { .phone .tag, .phone .tag2 { display: none; } }

/* ---------- 阅读型内容页（主题经文 / 儿童故事 / 指南 / 每日经文） ---------- */
.prose-wrap { max-width: 760px; padding-top: 30px; padding-bottom: 20px; }
.prose-wrap h1 { font-size: clamp(34px, 5vw, 52px); margin: 12px 0 14px; }
.prose-wrap h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 12px; }
.prose-wrap > .lede { font-size: 19px; line-height: 1.75; }
.prose-wrap section { padding: 30px 0 0; }
.prose-wrap .cta { margin: 44px 0 10px; }
.verses { display: grid; gap: 16px; margin: 26px 0 8px; }
.verse.big blockquote { font-size: 23px; }
.prayer { background: var(--surface); border: 1px dashed var(--ink-muted); border-radius: var(--radius); padding: 22px 26px; margin-top: 34px; }
.prayer p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.75; margin: 6px 0 0; }
.related { margin-top: 34px; }
.grid.one { grid-template-columns: minmax(0, 240px); }
.faq.slim summary { font-size: 17px; }
.pill-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.4px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: 15px; background: var(--surface); transition: background .3s, transform .3s var(--ease); }
.pill-list a:hover { transform: translateY(-2px); }
.more { margin-top: 40px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 28px 0 30px; }
.topic { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 22px; transition: transform .35s var(--ease), border-color .3s; }
.topic:hover { transform: translateY(-3px); border-color: var(--gold); }
.topic h3 { margin: 4px 0 8px; }
.topic p { color: var(--ink-soft); font-size: 15px; margin: 0 0 10px; }
.topic .hand { font-size: 21px; }
.story-text { font-family: var(--serif); font-size: 20px; line-height: 1.85; margin: 10px 0 0; }
.talk ol { padding-left: 22px; margin: 0; }
.talk li { font-size: 18px; margin: 8px 0; }
.note { color: var(--ink-muted); font-size: 14.5px; margin-top: 28px; }
.next a { font-family: var(--serif); font-size: 20px; }
.guide section h2 { font-size: 22px; }
.guide section p { font-size: 18px; line-height: 1.8; color: var(--ink); margin: 0; }
.votd { border-radius: 26px; position: relative; overflow: hidden; margin-top: 18px; }
.votd .inner { position: relative; padding: 52px 30px; text-align: center; }
.past { list-style: none; padding: 0; margin: 0; }
.past li { display: grid; grid-template-columns: 64px 160px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 15px; }
.past time { color: var(--ink-muted); }
.past span { color: var(--ink-soft); }
@media (max-width: 600px) { .past li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 舒适度微调 ---------- */
body { font-size: 17.5px; line-height: 1.68; }
.reveal { transform: translateY(12px); transition-duration: .75s; }
.verse { box-shadow: 0 1px 0 var(--divider); }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); }
