/* 连续叙事沿用电影舞台，章节各自拥有独立的滚动镜头。 */
.guide-index { padding: 95px 9%; background: #151a14; border-top: 1px solid #ffffff12; }
.guide-index small, .story-kicker { color: #b9dc8d; font-size: 10px; letter-spacing: 3px; }
.guide-index h2 { font-size: clamp(28px, 4vw, 49px); font-weight: 500; letter-spacing: -1.5px; margin: 19px 0 15px; }
.guide-index p { color: #97a48d; font-size: 13px; line-height: 1.9; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.guide-links a { text-decoration: none; color: #c2ceba; font-size: 12px; padding: 10px 15px; border: 1px solid #435138; border-radius: 24px; transition: background .2s, color .2s; }
.guide-links a:hover { background: #d4f994; color: #203019; }
.story { position: relative; height: 185vh; }
.story-stage { position: sticky; top: 0; min-height: 750px; height: 100svh; overflow: hidden; background: radial-gradient(ellipse at 26% 50%, #283326 0, transparent 53%), #101310; }
.story:nth-child(even) .story-stage { background: radial-gradient(ellipse at 26% 50%, #29302b 0, transparent 53%), #111512; }
.story-top { position: absolute; top: 32px; left: 4.5%; right: 4.5%; border-bottom: 1px solid #ffffff16; padding-bottom: 22px; display: flex; justify-content: space-between; font-size: 11px; color: #8e9e82; }
.story-top a { text-decoration: none; color: #aabb9a; }
.story-layout { position: absolute; inset: 105px 9% 96px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; }
.story-device { position: relative; display: flex; justify-content: center; }
.story-device .phone { rotate: -1deg; }
.story-copy { max-width: 440px; }
.story-copy h2 { font-size: clamp(35px, 4.4vw, 64px); line-height: 1.2; font-weight: 500; letter-spacing: -2px; margin: 20px 0; }
.story-copy h2 em { font-style: normal; color: #d4f994; }
.story-lead { font-size: 14px; line-height: 1.9; color: #abb7a2; margin-bottom: 23px; }
.story-audience { border-top: 1px solid #ffffff1b; padding-top: 18px; }
.story-audience h3 { font-size: 11px; font-weight: 400; color: #a5b598; margin: 0 0 11px; }
.story-audience h3 strong { font-size: 21px; color: #d4f994; margin-right: 8px; font-weight: 550; }
.story-audience p { color: #aab8a0; font-size: 12px; line-height: 1.85; margin: 0; }
.story-audience p b { color: #e0e9d8; font-weight: 500; }
.story-route { color: #8c9f7b; font-size: 10px; line-height: 1.8; margin: 20px 0 0; }
.story-beats { position: absolute; bottom: 29px; left: 4.5%; right: 4.5%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story-beat { background: transparent; color: #687a5a; border: 0; border-top: 1px solid #35402d; text-align: left; font-size: 11px; padding: 13px 0; transition: color .25s, border-color .25s; }
.story-beat.active { color: #d4f994; border-color: #d4f994; }
.story-beat small { font-size: 9px; margin-right: 10px; }
.story-caption { display: block; margin-top: 18px; font-size: 9px; line-height: 1.7; color: #718466; }
/* 手机场景内部使用统一组件，内容始终展示为教学示例。 */
.demo-screen { background: #f6f8f2; height: 100%; color: #2d3c28; overflow: hidden; }
.demo-nav { height: 49px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4eadb; padding: 0 17px; font-size: 12px; background: #fafcf7; }
.demo-nav span { font-size: 17px; color: #7c8e6c; }
.demo-nav small { font-size: 8px; font-weight: 400; color: #9caa8e; }
.demo-content { padding: 17px 15px; }
.demo-eyebrow { color: #9aaa8b; font-size: 8px; letter-spacing: 1px; margin: 0 0 12px; }
.demo-contact { display: flex; gap: 8px; align-items: center; font-size: 10px; margin-bottom: 14px; }
.demo-avatar { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #e0ead6, #b8cfa4); display: grid; place-items: center; color: #617a4f; }
.demo-contact small { display: block; margin-top: 4px; color: #98a58a; font-size: 8px; }
.demo-message { background: #fff; border: 1px solid #e7ecdf; padding: 12px; line-height: 1.8; font-size: 11px; border-radius: 3px 12px 12px; }
.demo-panel { position: absolute; bottom: 0; left: 0; right: 0; height: 310px; padding: 13px 13px 22px; border-top: 1px solid #dce5d0; background: linear-gradient(#f9fbf4, #edf2e4); }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; margin-bottom: 13px; }
.demo-toolbar small { font-size: 8px; font-weight: 400; color: #80966f; }
.demo-tabs { display: flex; border-radius: 8px; background: #e9efdf; padding: 3px; gap: 2px; margin-bottom: 13px; }
.demo-tabs span { flex: 1; text-align: center; font-size: 9px; padding: 7px 0; color: #94a185; border-radius: 6px; }
.demo-tabs .on { background: #fff; color: #426037; box-shadow: 0 2px 5px #32471e08; }
.demo-draft { border: 1px solid #d9e3cc; border-radius: 10px; padding: 11px; font-size: 10px; line-height: 1.85; min-height: 60px; background: #fff; }
.demo-draft small { display: block; color: #a0ae90; font-size: 8px; margin-bottom: 4px; }
.demo-primary { width: 100%; border: 0; border-radius: 9px; padding: 10px; color: #f5faee; background: #355b3d; font-size: 10px; margin-top: 12px; }
.demo-option { width: 100%; text-align: left; border: 1px solid #dee7d2; background: #fff; border-radius: 9px; padding: 10px; color: #3a5230; font-size: 10px; line-height: 1.7; margin-top: 7px; }
.demo-option small { display: block; font-size: 7px; color: #94a281; margin-bottom: 3px; }
.demo-composer { position: absolute; bottom: 310px; left: 0; right: 0; display: flex; align-items: center; gap: 7px; padding: 9px 11px; height: 45px; background: #fbfcf8; border-top: 1px solid #e2e9d9; font-size: 9px; }
.demo-composer > span { background: #fff; border: 1px solid #e0e7d6; border-radius: 7px; flex: 1; min-height: 29px; padding: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-composer button { border: 0; background: #385b3b; color: #fff; padding: 8px; border-radius: 7px; font-size: 9px; }
.demo-result { margin: 13px 0 0 auto; max-width: 205px; background: #dcebcf; padding: 10px; border-radius: 12px 3px 12px 12px; font-size: 10px; line-height: 1.8; }
.demo-group { background: #fff; border: 1px solid #e3ead9; border-radius: 13px; margin-bottom: 13px; padding: 4px 12px; }
.demo-field { padding: 12px 0; border-bottom: 1px solid #edf1e7; font-size: 10px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.demo-field:last-child { border-bottom: 0; }
.demo-field span { color: #97a88a; text-align: right; }
.demo-field .chosen { color: #4e713c; }
.demo-note { font-size: 9px; line-height: 1.9; color: #93a283; margin: 12px 2px; }
.demo-document { padding: 15px; border-radius: 12px; background: #fff; border: 1px solid #dfe7d5; margin: 13px 0; }
.demo-document h4 { font-size: 13px; font-weight: 550; margin: 0 0 12px; }
.demo-document pre { margin: 0; font: 10px/1.9 -apple-system, sans-serif; color: #788e68; white-space: pre-wrap; }
.demo-tag { display: inline-block; font-size: 8px; padding: 5px 8px; border-radius: 6px; background: #e9f1df; color: #6f8c57; margin: 0 4px 6px 0; }
.demo-sheet-title { margin: 5px 0 16px; font-size: 23px; font-weight: 550; letter-spacing: -.8px; }
.demo-state { color: #94aa7b; font-size: 9px; text-align: center; margin-top: 12px; }
.demo-option.selected { border-color: #8ba776; background: #f0f6e9; }
.intimacy-control { margin-top: 22px; padding: 17px 18px; border: 1px solid #4c5f3e; border-radius: 13px; background: #1b2419; }
.intimacy-heading { display: flex; align-items: center; justify-content: space-between; color: #b9cca8; font-size: 11px; }
.intimacy-heading output { color: #d4f994; font-size: 24px; font-variant-numeric: tabular-nums; }
.intimacy-control input { width: 100%; accent-color: #d4f994; margin: 15px 0 5px; cursor: ew-resize; }
.intimacy-scale { display: flex; justify-content: space-between; font-size: 9px; color: #829574; }
.intimacy-label { color: #8ca37a; font-size: 9px; margin-top: 10px; }
.demo-heart { width: 90px; height: 90px; border-radius: 30px; display: grid; place-items: center; margin: 13px auto 17px; font-size: 43px; color: #ba7d83; background: radial-gradient(ellipse at 30% 20%, #fff, #f0d9db); box-shadow: inset 0 0 0 1px #fff, 0 10px 25px #98586010; }
.demo-intimacy-score { font-size: 36px; text-align: center; font-weight: 500; color: #71565a; margin-bottom: 4px; }
.demo-intimacy-name { text-align: center; font-size: 9px; color: #aa8f8f; margin-bottom: 20px; }
.guide-finish { padding: 110px 9%; text-align: center; background: #182016; }
.guide-finish h2 { font-size: clamp(32px, 5vw, 65px); font-weight: 500; letter-spacing: -2px; margin: 0 0 23px; }
.guide-finish p { color: #a2b195; font-size: 13px; line-height: 2; }
.guide-finish a { display: inline-block; margin-top: 25px; color: #d4f994; font-size: 12px; text-decoration: none; border-bottom: 1px solid #68844b; padding-bottom: 8px; }
@media (max-width: 1050px) { .story-layout { gap: 35px; } .story-copy h2 { font-size: 42px; } .story-lead { font-size: 12px; } .story-audience p { font-size: 11px; } }
@media (max-width: 800px) { .story-layout { inset: 100px 7% 95px; gap: 25px; } .story-device .phone { zoom: .8; } .story-copy h2 { font-size: 35px; } .story-audience h3 strong { font-size: 18px; } }
@media (max-width: 560px) {
  .guide-index { padding: 65px 7%; } .guide-links { gap: 8px; } .guide-links a { font-size: 10px; padding: 9px 12px; }
  .story-stage { min-height: 780px; } .story-top { top: 20px; padding-bottom: 15px; font-size: 9px; }
  .story-layout { inset: 73px 7% 77px; display: flex; flex-direction: column; gap: 19px; justify-content: flex-start; }
  .story-device .phone { width: 300px; height: 610px; zoom: .52; } .story-copy { width: 100%; max-width: 360px; }
  .story-kicker { font-size: 8px; letter-spacing: 2px; } .story-copy h2 { font-size: 28px; letter-spacing: -1px; margin: 9px 0; } .story-copy h2 br { display: none; }
  .story-lead { font-size: 10px; line-height: 1.7; margin: 0 0 12px; } .story-audience { padding-top: 10px; } .story-audience h3 { margin-bottom: 6px; font-size: 9px; } .story-audience h3 strong { font-size: 17px; }
  .story-audience p { font-size: 10px; line-height: 1.7; } .story-route { font-size: 8px; margin-top: 10px; } .story-caption { font-size: 7px; margin-top: 8px; }
  .story-beats { bottom: 16px; gap: 9px; } .story-beat { font-size: 9px; } .story-beat small { display: none; }
  .intimacy-control { margin-top: 10px; padding: 9px 12px; } .intimacy-heading { font-size: 9px; } .intimacy-heading output { font-size: 18px; } .intimacy-control input { margin: 8px 0 3px; } .intimacy-label { display: none; }
  .story:has(.intimacy-control) .story-stage { min-height: 875px; }
}
@media (prefers-reduced-motion: reduce) { .story-beat { transition: none; } }
/* App 内嵌视图已留出原生导航与操作区，按实际可用高度收紧手机演示。 */
@media (max-width: 560px) {
  html.in-app-guide .stage, html.in-app-guide .story-stage { min-height: 100svh; }
  html.in-app-guide .layout { top: 70px; bottom: 80px; }
  html.in-app-guide .device-wrap, html.in-app-guide .story-device { height: 232px; }
  html.in-app-guide .device-wrap .phone, html.in-app-guide .story-device .phone {
    width: 300px; height: 610px; zoom: 1; transform: scale(.38); transform-origin: top center;
  }
  html.in-app-guide .story-layout { top: 65px; bottom: 67px; gap: 13px; }
  html.in-app-guide .story-copy h2 { font-size: 25px; }
  html.in-app-guide .story:has(.intimacy-control) .story-device { height: 177px; }
  html.in-app-guide .story:has(.intimacy-control) .phone { transform: scale(.29); }
}
@media (max-width: 560px) and (min-height: 740px) {
  html.in-app-guide .device-wrap, html.in-app-guide .story-device { height: 293px; }
  html.in-app-guide .device-wrap .phone, html.in-app-guide .story-device .phone { transform: scale(.48); }
  html.in-app-guide .story:has(.intimacy-control) .story-device { height: 232px; }
  html.in-app-guide .story:has(.intimacy-control) .phone { transform: scale(.38); }
}

/* 防止 iOS 在缩放的演示手机内自动放大文字，保持原始布局比例。 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
