* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: #FFF6EA url('assets/bg6.jpg') center top / cover fixed no-repeat;
  color: #4A3320;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,250,241,.70), rgba(255,248,238,.90));
}
.wrap { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 40px 20px 40px; }
.brand { text-align: center; margin-bottom: 26px; }
.brand-logo { display: block; width: 236px; max-width: 72%; height: auto; margin: 0 auto 8px;
  filter: drop-shadow(0 4px 10px rgba(150,105,60,.16)); }
.brand-sub { margin-top: 4px; font-size: 12px; letter-spacing: 3px; color: rgba(74,51,32,.58); }

.panel {
  background: rgba(255,253,248,.93);
  border: 1px solid rgba(181,121,43,.24);
  border-radius: 22px;
  padding: 36px 28px 28px;
  box-shadow: 0 20px 54px rgba(150,105,60,.18);
  backdrop-filter: blur(6px);
}
h1 { margin: 0; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: 3px; color: #4A3320; }
.sub { margin: 10px 0 0; text-align: center; font-size: 11px; letter-spacing: 4px; color: #B5792B; }
.divider { width: 54px; height: 1px; background: rgba(181,121,43,.45); margin: 22px auto; }
.lead { text-align: center; font-size: 15px; line-height: 2.05; color: rgba(74,51,32,.78); margin: 0 0 30px; }

label { display: block; text-align: center; font-size: 12px; letter-spacing: 4px; color: #A9681F; margin-bottom: 14px; }
input {
  display: block; width: 100%; height: 62px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(181,121,43,.36);
  border-radius: 12px;
  color: #4A3320; font-size: 25px; font-weight: 600; letter-spacing: 4px;
  text-align: center; text-transform: uppercase;
  outline: none; transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
input::placeholder { color: rgba(74,51,32,.30); font-size: 18px; font-weight: 400; letter-spacing: 2px; }
input:focus { border-color: #C8862F; box-shadow: 0 0 0 3px rgba(200,134,47,.14); }

button {
  display: block; width: 100%; height: 56px; margin-top: 18px;
  border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #E9A94F, #C8802F);
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 20px rgba(200,128,47,.24);
  transition: transform .12s, opacity .2s;
}
button:active { transform: scale(.985); }
button:disabled { opacity: .62; cursor: default; }
button.ghost { background: rgba(255,255,255,.74); color: #A9681F;
  border: 1px solid rgba(181,121,43,.38); font-size: 15px; box-shadow: none; }

.err { min-height: 20px; margin: 14px 0 0; text-align: center; font-size: 13px; color: #B4452F; line-height: 1.7; }
.privacy { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(181,121,43,.16);
  font-size: 11.5px; line-height: 1.9; color: rgba(74,51,32,.52); text-align: center; }
.status { text-align: center; font-size: 12.5px; color: #A9681F; margin: 16px 0 4px; }
.hint { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(233,169,79,.15);
  font-size: 13px; line-height: 1.7; text-align: center; color: #8A5416; }
.btns { display: flex; gap: 10px; margin-top: 12px; }
.btns button { margin-top: 0; flex: 1; height: 50px; font-size: 14px; letter-spacing: 1px; }
.btns button:first-child { flex: 1.35; }

#posterImg { display: block; width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(120,80,40,.22); }
.foot { margin-top: 30px; text-align: center; font-size: 11px; letter-spacing: 2px; color: rgba(74,51,32,.44); }
.hidden { display: none !important; }
.offscreen { position: absolute; left: -99999px; top: 0; width: 1080px; height: 2080px; pointer-events: none; }

/* ---------- 三页故事：原图直接铺底，不加蒙版 ---------- */
.story {
  --accent: #A4621B; --pad: 18px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(181,121,43,.26); border-radius: 22px;
  box-shadow: 0 20px 54px rgba(150,105,60,.20);
  min-height: 74vh;
}
.story-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  transition: opacity .45s;
}
.story-inner {
  position: relative; z-index: 1; min-height: 74vh;
  display: flex; flex-direction: column; padding: 22px 24px 26px;
}
.story-top { display: flex; align-items: center; justify-content: space-between; }
.story-logo { width: 108px; max-width: 34%; height: auto; }
.story-dots { display: flex; align-items: center; gap: 7px; }
.story-dots i { display: block; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(164,98,27,.30); transition: width .3s, background .3s; }
.story-dots i.on { width: 22px; border-radius: 6px; background: #A4621B; }

/* 与最终海报统一：不居中，文字沿一条边线走；边线跟随本页底图换到左/右，
   落位（上/中/下）与松紧也由 app.js 按底图打 class 决定。
   彩色只给大数字和单位，其余文字一律深棕/黑。 */
.story-body { flex: 1; display: flex; flex-direction: column; justify-content: center;
  text-align: left; padding: 18px 0 10px var(--pad);
  border-left: 2px solid var(--accent); }
.story.side-r .story-body { text-align: right; padding: 18px var(--pad) 10px 0;
  border-left: 0; border-right: 2px solid var(--accent); }
.story.v-top .story-body { justify-content: flex-start; padding-top: 32px; }
.story.v-bottom .story-body { justify-content: flex-end; padding-bottom: 24px; }
.story.inset-tight { --pad: 34px; }
.story.logo-r .story-top { flex-direction: row-reverse; }
@keyframes storyIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.story-body.play { animation: storyIn .48s ease both; }
.story-label { font-size: 13px; letter-spacing: 5px; color: #A4621B; font-weight: 700;
  text-shadow: 0 0 4px #fff, 0 0 9px #fff, 0 1px 12px rgba(255,255,255,.95); }
.story-big { margin-top: 16px; font-size: clamp(50px, 17vw, 94px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1px; color: var(--accent); word-break: break-all;
  text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 2px 18px rgba(255,255,255,.92); }
.story-big.long { font-size: clamp(34px, 9.8vw, 56px); letter-spacing: 0; }
.story-big em { font-style: normal; font-weight: 700; font-size: .34em; color: var(--accent);
  margin-left: .16em; letter-spacing: 0; }
.story-sub { margin-top: 16px; font-size: 13px; letter-spacing: 1px; color: #6E563E;
  text-shadow: 0 0 4px #fff, 0 0 9px #fff, 0 1px 10px rgba(255,255,255,.95); }
.story-lines { margin-top: 34px; font-size: 16px; line-height: 2.05; color: #43301F; font-weight: 600;
  text-shadow: 0 0 3px #fff, 0 0 7px #fff, 0 0 14px rgba(255,255,255,.96),
               0 1px 2px rgba(255,255,255,.9); }
.story-lines p { margin: 0; }
/* 留白矮 / 主体压中间的 bg3/5/6/8/9：数字收小、行距收紧 */
.story.compact .story-big { font-size: clamp(42px, 13vw, 74px); margin-top: 8px; }
.story.compact .story-big.long { font-size: clamp(29px, 8.6vw, 48px); }
.story.compact .story-sub { margin-top: 10px; }
.story.compact .story-lines { margin-top: 20px; font-size: 14.5px; line-height: 1.85; }
/* bg9：整块再往下坐一点，尽量让开中段的蓝车 */
.story.v-bottom.compact .story-body { padding-bottom: 8px; }

.story-foot { padding-top: 8px; }
.story-foot button { margin-top: 0; height: 54px; font-size: 16px; }
.story-hint { margin-top: 12px; text-align: center; font-size: 11.5px; letter-spacing: 1px;
  color: rgba(74,51,32,.62); text-shadow: 0 1px 8px rgba(255,255,255,.95); }

@media (max-width: 380px) {
  .wrap { padding: 30px 14px; }
  .panel { padding: 30px 20px 24px; }
  h1 { font-size: 26px; }
  .story-inner { padding: 18px 18px 22px; }
  .story-lines { font-size: 14.5px; margin-top: 26px; }
}
