/* 一汽奥迪·候鸟计划 H5（0924）· 参考奥迪官网：黑白为主、直角、留白、红色只做点缀 */
:root {
  --black: #000;
  --ink: #1A1A1A;
  --text: #333;
  --grey: #666;
  --muted: #999;
  --line: #D9D9D9;
  --soft: #F2F2F2;
  --red: #F0003C;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; touch-action: manipulation; }
html, body { min-height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: #000; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { max-width: 100%; }

.app { position: relative; max-width: 480px; min-height: 100vh; margin: 0 auto; background: #fff; overflow-x: hidden; }
.view { position: relative; min-height: 100vh; }
.view.enter { animation: viewIn .55s var(--ease) both; }
.view.enter-up { animation: viewIn .75s var(--ease) both; }
.view.enter-up > :not(.dock) { animation: slideUp .7s var(--ease) both; }
.view.enter-up > .dock { animation: fadeIn .5s ease .25s both; }

/* ---------- 按钮：直角，黑底白字；深色背景上用白底黑字 ---------- */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 52px; border-radius: 0;
  background: var(--black); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  transition: background-color .25s ease, color .25s ease, transform .15s ease;
}
.btn:active { transform: scale(.985); background: #333; }
.btn[disabled] { background: #B3B3B3; color: #fff; cursor: default; transform: none; }
.btn.loading[disabled] { background: #000; }
.btn-white { background: #fff; color: #000; }
.btn-white:active { background: #E5E5E5; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:active { background: #c90032; }
.btn-ol { background: #fff; color: #000; border: 1px solid #000; }
.btn-ol:active { background: var(--soft); }
.btn-ol[disabled] { background: #fff; color: #B3B3B3; border-color: var(--line); }
.btn.is-open { background: var(--red); }
.arr { position: relative; flex: none; display: inline-block; width: 18px; height: 10px; transition: transform .3s var(--ease); }
.arr::before { content: ""; position: absolute; left: 0; right: .5px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.arr::after { content: ""; position: absolute; right: 1px; top: 50%; box-sizing: border-box; width: 7px; height: 7px; margin-top: -3.5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.btn:not([disabled]) .arr { animation: nudge 2.4s ease-in-out 2s infinite; }
.btn[disabled] .arr { display: none; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.loading .arr { display: none; }

.line-bar { height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.line-bar i { display: block; width: 0; height: 100%; background: #fff; transition: width 1.4s var(--ease); }
.line-bar.red { background: var(--line); height: 3px; }
.line-bar.red i { background: var(--red); }

/* ---------- 跳动数字（逐位滚动） ---------- */
/* 每一位是一条 0–9 循环三遍的数字带，只往上滚，像里程表；基线与旁边文字对齐 */
.odo { display: inline-block; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.odo-d { display: inline-block; vertical-align: top; height: 1em; overflow: hidden; }
.odo-s { display: block; transition: transform 1.8s cubic-bezier(.14, .82, .2, 1); will-change: transform; }
.odo-s i { display: block; height: 1em; line-height: 1; font-style: normal; text-align: center; }
.live-dot { flex: none; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: 1px; animation: livePulse 1.6s ease-out infinite; }
.pool-plus { flex: none; align-self: center; margin-left: auto; padding: 4px 8px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1; opacity: 0; pointer-events: none; }
.pool-plus.show { animation: plusUp 2.6s var(--ease) both; }

/* ---------- 加载页 ---------- */
.loader { position: fixed; z-index: 200; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; transition: opacity .6s ease, visibility .6s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader-rings { width: 72px; height: auto; }
.loader-line { width: 160px; height: 2px; margin-top: 30px; background: #E5E5E5; overflow: hidden; }
.loader-line i { display: block; width: 0; height: 100%; background: #000; transition: width .35s ease; }
.loader-pct { margin-top: 14px; font-size: 12px; color: var(--muted); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.loader-pct b { font-size: 18px; color: #000; font-weight: 700; }
.loader-name { margin-top: 28px; font-size: 12px; letter-spacing: 6px; color: var(--grey); }

/* ---------- ① 首屏 ---------- */
.cover { height: 100vh; height: 100dvh; min-height: 600px; overflow: hidden; background: #5d6878; color: #fff; }
.cover-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: url("assets/hero-road-birds-20260925.jpg") 25% center / cover no-repeat; transform-origin: 50% 30%; }
.ready .cover-bg { animation: kenburns 18s var(--ease) both; }
.cover-shade-top { position: absolute; left: 0; right: 0; top: 0; height: 54%; background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.16) 64%, rgba(0,0,0,0)); }
.cover-shade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.68)); }
.birds { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; pointer-events: none; }
.bird { position: absolute; left: 105%; width: 22px; height: 9px; fill: none; stroke: rgba(255,255,255,.7); stroke-width: 2.2; stroke-linecap: round; }
.bird.b1 { top: 36%; animation: birdFly 20s linear 1.5s infinite, flap .8s ease-in-out infinite; }
.bird.b2 { top: 31%; width: 15px; animation: birdFly 27s linear 8s infinite, flap .7s ease-in-out infinite; }
.brand-plate { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: calc(var(--safe-top) + 68px); display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 0 24px 18px; background: #fff; }
.cover-rings { display: block; width: 79px; height: auto; }
.cover-faw { display: block; width: 102px; height: auto; }
.cover-test { position: absolute; z-index: 2; top: calc(var(--safe-top) + 82px); right: 24px; max-width: 240px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.8); background: rgba(0,0,0,.28); color: #fff; font-size: 10px; line-height: 1.35; text-align: right; }
.cover-title { position: absolute; z-index: 2; top: calc(var(--safe-top) + 148px); left: 24px; right: 24px; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.cover-heading { font-weight: 800; }
.cover-kicker { display: block; font-size: 15px; font-weight: 600; letter-spacing: 4px; color: rgba(255,255,255,.9); }
.cover-main { display: block; margin-top: 10px; font-size: clamp(46px, 15vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: 5px; }
.cover-sub { margin-top: 12px; font-size: 16px; letter-spacing: 1px; color: rgba(255,255,255,.92); }
.cover-foot { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: calc(var(--safe-bottom) + 18px); }
.pool-label { display: flex; align-items: center; font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.8); }
.pool-people { margin-left: auto; font-size: 12px; letter-spacing: .5px; }
.pool-people b { margin-right: 4px; color: #fff; font-weight: 700; }
.pool-number { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 10px; font-size: clamp(34px, 10.8vw, 42px); font-weight: 700; letter-spacing: 1px; }
.pool-number small { font-size: 14px; font-weight: 400; opacity: .8; }
.pool-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 10px; font-size: 12.5px; color: rgba(255,255,255,.8); }
.pool-meta b { color: #fff; font-weight: 700; }
.pool-meta em { font-style: normal; margin-left: 8px; padding: 1px 6px; background: var(--red); color: #fff; font-size: 11px; }
.cover-dates { margin-top: 18px; font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.8); }
.cover-foot .btn { margin-top: 14px; }
.swipe-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.6); }
.swipe-hint i { width: 9px; height: 9px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); animation: hintBounce 1.6s ease-in-out infinite; }
.anim { opacity: 0; }
.ready .anim { animation: fadeUp 1s var(--ease) both; }
.ready .a1 { animation-delay: .05s; }
.ready .a2 { animation-delay: .15s; }
.ready .a3 { animation-delay: .8s; }
.ready .a4 { animation-delay: 1s; }
.ready .a5 { animation-delay: 1.15s; }
.ready .a6 { animation-delay: 1.3s; }
.ready .a7 { animation-delay: 1.7s; }

/* ---------- ② 活动说明 ---------- */
.intro { background: #fff; padding-bottom: calc(var(--safe-bottom) + 112px); }
.intro-hero { position: relative; height: 62vh; min-height: 420px; max-height: 560px; overflow: hidden; background: #56606e; color: #fff; }
.intro-hero-bg { position: absolute; top: -4%; right: 0; bottom: 0; left: 0; background: url("assets/poster-wetland-20260925.jpg") center 55% / cover no-repeat; animation: kenburns 14s var(--ease) both; }
.intro-hero-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72)); }
.intro-hero-copy { position: absolute; left: 24px; right: 24px; bottom: 28px; }
.intro-kicker { font-size: 12px; letter-spacing: 4px; color: rgba(255,255,255,.85); }
.intro-poem { margin-top: 14px; font-size: clamp(18px, 4.5vw, 22px); line-height: 1.55; font-weight: 700; letter-spacing: 0; }
.intro-poem span + span { margin-top: 11px; }
.intro-body { padding: 0 24px; }
.intro-lead { padding: 30px 0 18px; font-size: 19px; font-weight: 700; letter-spacing: 1px; border-bottom: 1px solid var(--line); }
.para { margin-top: 22px; font-size: 15px; line-height: 1.95; color: var(--text); }
.para em { font-style: normal; }
.quote { margin-top: 30px; padding-left: 16px; border-left: 3px solid var(--red); font-size: 18px; line-height: 1.75; font-weight: 700; color: #000; }
.closing { margin-top: 30px; font-size: 15px; letter-spacing: 2px; color: var(--grey); }
.intro-audience { margin-top: 30px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.intro-audience small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }

/* 滚动进场 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.lines > span { display: block; opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s var(--ease); }
.lines.in > span { opacity: 1; transform: none; }
.lines.in > span:nth-child(2) { transition-delay: .12s; }
.lines.in > span:nth-child(3) { transition-delay: .24s; }
.lines.in > span:nth-child(4) { transition-delay: .36s; }
.lines.in > span:nth-child(5) { transition-delay: .48s; }

.dock {
  position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 12px 24px calc(var(--safe-bottom) + 10px);
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dock-links { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 9px; font-size: 12px; color: var(--grey); }
.dock-links b { color: #000; }
.dock-links i { width: 1px; height: 11px; background: var(--line); }

/* ---------- 表单 ---------- */
.form-view { background: #fff; }
.form { padding: 30px 24px calc(var(--safe-bottom) + 30px); }
.form-kicker { font-size: 11.5px; letter-spacing: 3px; color: var(--muted); }
.form-title { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.form-sub { margin-top: 8px; font-size: 14px; color: var(--grey); }
.field { position: relative; display: block; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #000; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field:first-of-type { margin-top: 18px; }
.field .lb { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--grey); margin-bottom: 7px; }
.field .lb em { font-style: normal; color: var(--muted); }
.promoter-field { border-left: 0; border-right: 0; border-top: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.promoter-field legend { width: 100%; padding: 16px 0 10px; }
.promoter-field label { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-size: 15px; }
.promoter-field input { width: 17px; height: 17px; accent-color: var(--red); }
.field input, .field select { width: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; color: #000; padding: 2px 0; -webkit-appearance: none; appearance: none; border-radius: 0; }
.promoter-field input[type="radio"] { flex: none; width: 17px; height: 17px; padding: 0; -webkit-appearance: radio; appearance: radio; accent-color: var(--red); }
.field input::placeholder { color: #BDBDBD; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center no-repeat; padding-right: 20px; }
.field select.empty { color: #BDBDBD; }
.select-pair { display: flex; gap: 20px; }
.select-pair select { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 12.5px; line-height: 1.6; color: var(--grey); }
.check input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: #000; border-radius: 0; }
.check a { color: #000; font-weight: 700; }
.form .btn { margin-top: 26px; }
.form-alt { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--grey); }
.form-alt b { color: #000; }
.note-line { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.8; color: var(--grey); }
.shake { animation: shake .45s ease; }

/* ---------- ④ 提交页 ---------- */
.page-links { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px 0; font-size: 14px; font-weight: 700; }
.page-links a:first-child { display: inline-flex; align-items: center; gap: 10px; }
.page-links a:last-child { font-weight: 400; color: var(--grey); }
.upload { padding-top: 16px; }
.status { position: relative; padding: 18px 18px 20px; background: #000; color: #fff; overflow: hidden; }
.status::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.09), rgba(255,255,255,0)); animation: shine 4.5s ease-in-out 1s infinite; }
.status-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid rgba(255,255,255,.5); font-size: 11.5px; letter-spacing: 1px; }
.upload.is-open .status-chip { border-color: var(--red); background: var(--red); }
.upload.is-open .status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dotPulse 1.2s ease-in-out infinite; }
.status-title { position: relative; z-index: 1; margin-top: 16px; font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.upload.is-closed .status { background: #1F1F1F; }
.upload.is-closed .steps-box, .upload.is-closed .shot-row, .upload.is-closed .field-title { opacity: .4; transition: opacity .4s; }
.upload.is-closed .shot-pick input { pointer-events: none; }
.field-title { display: block; margin: 24px 0 10px; font-size: 15px; font-weight: 700; }
.field-title.small { margin-top: 24px; font-size: 13.5px; color: var(--grey); font-weight: 400; }
.steps-box { display: flex; align-items: center; height: 56px; padding: 0 16px; border: 1px solid var(--line); transition: border-color .3s; }
.steps-box:focus-within { border-color: #000; }
.steps-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 24px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.steps-box input::placeholder { font-size: 15px; font-weight: 400; letter-spacing: 0; color: #BDBDBD; }
.steps-box span { font-size: 14px; color: var(--grey); }
.shot-row { display: flex; gap: 16px; align-items: flex-start; }
.shot-pick { position: relative; flex: none; width: 108px; height: 150px; border: 1px dashed #B3B3B3; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; transition: border-color .3s, transform .2s; }
.shot-pick:active { transform: scale(.97); }
.shot-pick input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; width: 100%; height: 100%; z-index: 3; cursor: pointer; }
.shot-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; color: var(--grey); }
.shot-empty i { position: relative; width: 22px; height: 22px; }
.shot-empty i::before, .shot-empty i::after { content: ""; position: absolute; left: 50%; top: 50%; background: #000; transform: translate(-50%, -50%); }
.shot-empty i::before { width: 22px; height: 1.5px; }
.shot-empty i::after { width: 1.5px; height: 22px; }
.shot-preview { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; animation: fadeIn .5s ease both; }
.shot-ok { position: absolute; z-index: 2; right: 0; top: 0; width: 26px; height: 26px; background: var(--red); display: none; }
.shot-ok::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.shot-pick.has-image { border: 1px solid var(--line); }
.shot-pick.has-image .shot-ok { display: block; animation: popIn .4s var(--ease) .1s both; }
.shot-tips { flex: 1; font-size: 13px; line-height: 1.8; color: var(--text); }
.shot-tips b { display: block; color: #000; }
.shot-tips small { display: block; margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.form-foot { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.qa-tools { margin-top: 24px; padding: 17px 15px 16px; border: 1px solid var(--line); background: var(--soft); }
.qa-title { list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); }
.qa-title::-webkit-details-marker { display: none; }
.qa-title::after { content: "+"; float: right; font-size: 19px; font-weight: 400; line-height: 16px; }
.qa-tools[open] .qa-title::after { content: "−"; }
.qa-copy { margin-top: 8px; font-size: 12px; line-height: 1.65; color: var(--grey); }
.qa-tools .btn { margin-top: 15px; height: 46px; font-size: 14px; }
.qa-tools .btn[disabled] { background: #fff; color: var(--muted); border-color: var(--line); }
.qa-card-note { margin-top: 16px; padding: 8px 10px; border-left: 2px solid var(--red); background: var(--soft); font-size: 12px; color: var(--text); }

/* ---------- ⑥ 集章卡 ---------- */
.card-view { background: #fff; padding-bottom: calc(var(--safe-bottom) + 96px); }
.card-pool { padding: 20px 24px 22px; background: #000; color: #fff; }
.card-pool-top { display: flex; justify-content: space-between; align-items: center; }
.rules-link { font-size: 13px; color: rgba(255,255,255,.75); }
.card-pool .pool-number { font-size: clamp(32px, 9.8vw, 38px); }
.card-inner { position: relative; padding: 0 20px; }
.me { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.me-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.me-row .who { font-weight: 700; color: #000; }
.me-row .code { color: var(--muted); font-size: 11.5px; letter-spacing: .5px; }
.me-row .code b { color: var(--grey); font-weight: 400; }
.me-row.big { margin: 10px 0 12px; align-items: baseline; }
.me-row .lit { font-size: 15px; }
.me-row .lit b { font-size: 30px; font-weight: 800; color: #000; margin: 0 2px; }
.me-row .lit em { font-style: normal; color: var(--muted); }
.me-row .total b { font-weight: 700; color: #000; }
.banned-note { margin-top: 12px; padding: 10px 12px; background: #FDECF0; color: var(--red); font-size: 13px; font-weight: 700; }
.grid-hint { margin: 16px 0 6px; text-align: center; font-size: 11.5px; letter-spacing: 1px; color: var(--muted); }
.route { position: relative; padding-top: 20px; }
.route-line { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.route-line path { fill: none; stroke-linecap: round; }
.route-line .seg-off { stroke: #CFCFCF; stroke-width: 1.2; stroke-dasharray: 3 5; }
.route-line .seg-on { stroke: var(--red); stroke-width: 1.6; animation: draw .7s var(--ease) both; }
.route-gull { position: absolute; z-index: 3; left: 0; top: 0; width: 38px; height: auto; pointer-events: none; opacity: 0; transition: transform 1.3s cubic-bezier(.3,.1,.2,1), opacity .4s; }
.route-gull.show { opacity: 1; }
.route-gull.hover { animation: gullHover 2.4s ease-in-out infinite; }
.grid26 { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 24px; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 2px 0; }
.cell.pop { animation: popIn .55s var(--ease) both; }
.cell .name { font-size: 11px; white-space: nowrap; color: #000; }
.cell.unlit .name { color: #A6A6A6; }
.cell.selected .name { font-weight: 700; color: var(--red); }
.stamp { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--red); box-shadow: 0 0 0 3px #fff; transition: transform .2s var(--ease); }
.cell:active .stamp { transform: scale(.9); }
.stamp img { width: 78%; position: relative; top: 1px; }
.stamp b { position: absolute; right: -5px; bottom: -5px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cell.unlit .stamp { background: #fff; border: 1.5px dashed #C4C4C4; }
.cell.unlit .stamp img { filter: grayscale(1); opacity: .35; }
.cell.unlit .stamp b { background: #C4C4C4; }
.cell.selected .stamp { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(240,0,60,.45); }
.cell.unlit.selected .stamp { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,0,0,.2); }
.cell.newest .stamp::after { content: ""; position: absolute; top: -4px; right: -4px; bottom: -4px; left: -4px; border-radius: 50%; animation: pulseRing 1.8s ease-out 1.2s infinite; }
.cell.slam .stamp { animation: stampSlam .8s cubic-bezier(.2,1.3,.4,1) 1.1s both; }
/* 终点第26站放在第5列正下方，路线在右侧拐下来 */
.final-row { position: relative; z-index: 2; display: flex; justify-content: flex-end; margin-top: 30px; padding-right: calc(10% - 28px); }
.final-row .cell { flex-direction: row; gap: 14px; }
.final-row .stamp { width: 56px; height: 56px; }
.final-name { text-align: right; }
.final-name b { display: block; font-size: 14.5px; font-weight: 800; color: #000; }
.final-name span { font-size: 11.5px; color: var(--muted); }
.unlit .final-name b { color: #A6A6A6; }
.final-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid #C4C4C4; color: #A6A6A6; font-size: 10.5px; font-style: normal; font-weight: 400; vertical-align: 2px; }
.lit .final-tag { border-color: var(--red); color: var(--red); }
.detail { margin-top: 20px; padding: 14px 0 0; border-top: 1px solid var(--line); min-height: 70px; }
.detail.swap { animation: fadeUp .45s var(--ease) both; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; }
.detail-head strong { font-size: 16px; font-weight: 800; }
.detail-head strong span { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.detail-head em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.detail p { margin-top: 6px; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.detail.unlit p { color: var(--muted); }
.detail-date-link { margin-top: 8px; border: 0; border-bottom: 1px solid var(--red); padding: 3px 0; background: transparent; color: var(--red); font: inherit; font-size: 13px; cursor: pointer; }
.day-archive { margin: 18px 0 8px; border-top: 1px solid var(--line); padding-top: 15px; }
.day-archive summary { color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.day-archive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.day-archive-date { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; border: 1px solid var(--line); padding: 10px 12px; background: #fff; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.day-archive-date b { font-size: 13px; }
.day-archive-date span { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.day-archive-date:focus-visible, .detail-date-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.dock-two { display: flex; gap: 10px; padding: 12px 20px calc(var(--safe-bottom) + 10px); }
.dock-two .btn { height: 50px; font-size: 15px; letter-spacing: 0; }
.dock-two .btn-ol { flex: 1; }
.dock-two .btn:not(.btn-ol) { flex: 1.3; }

/* ---------- 规则 ---------- */
.rules { background: #fff; }
.rules-body { padding: 30px 24px calc(var(--safe-bottom) + 40px); }
.rules-body h1 { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.rules-test { margin-top: 16px; padding: 10px 12px; border-left: 2px solid var(--red); background: var(--soft); font-size: 12px; line-height: 1.7; color: var(--text); }
.rules-body h2 { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 800; }
.rules-body ol { margin-top: 8px; padding-left: 20px; }
.rules-body li { margin-top: 6px; font-size: 14px; line-height: 1.75; color: var(--text); }
.rules-pending { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--grey); }
.rules-back { margin-top: 30px; }
.rules-back a { display: flex; align-items: center; justify-content: center; height: 50px; border: 1px solid #000; font-weight: 700; }

/* ---------- 弹层 ---------- */
.overlay { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; animation: fadeIn .25s ease both; }
.sheet { width: 100%; max-width: 342px; padding: 26px 22px 22px; background: #fff; text-align: center; animation: sheetIn .45s var(--ease) both; }
.stamp-title { margin-top: 12px; font-size: 22px; font-weight: 800; letter-spacing: 4px; color: #000; }
.seal-wrap { position: relative; display: flex; justify-content: center; align-items: center; height: 156px; margin-top: 14px; }
.seal-wrap svg { width: 150px; height: 150px; animation: stampSlam .8s cubic-bezier(.2,1.3,.4,1) .2s both; }
.seal-wrap .ripple { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 2px solid rgba(240,0,60,.6); opacity: 0; animation: ripple 1.1s ease-out .62s both; }
.seal-wrap .ripple.r2 { animation-delay: .82s; }
.stamp-sheet.impact { animation: sheetIn .45s var(--ease) both, impact .3s ease .64s; }
.stamp-place { margin-top: 12px; font-size: 21px; font-weight: 800; animation: fadeUp .5s var(--ease) .8s both; }
.stamp-place span { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--grey); }
.stamp-line { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--text); animation: fadeUp .5s var(--ease) .9s both; }
.stamp-steps { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--grey); animation: fadeUp .5s var(--ease) 1s both; }
.stamp-steps b { color: #000; font-size: 15px; }
.stamp-share { margin-top: 14px; padding: 11px 12px; border-left: 2px solid var(--red); background: var(--soft); color: var(--text); text-align: left; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; animation: fadeUp .5s var(--ease) 1.1s both; }
.stamp-sheet { background: linear-gradient(to bottom, rgba(255,255,255,.08), #fff 260px), url("assets/poster-wetland-20260925.jpg") center top / 100% auto no-repeat #fff; }
#stamp-dialog { align-items: flex-start; }
#stamp-dialog .stamp-sheet { margin: auto 0; }
.stamp-sheet .btn { margin-top: 16px; animation: fadeUp .5s var(--ease) 1.2s both; }
.fail-sheet h2 { font-size: 20px; font-weight: 800; }
.fail-sheet p { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: var(--text); text-wrap: balance; }
.fail-sheet .btn { margin-top: 22px; }
.cert-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 340px; }
.cert-heading { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.poster-choices { display: flex; width: 100%; margin-bottom: 12px; gap: 5px; }
.poster-choices button { flex: 1; min-width: 0; padding: 7px 4px; border: 1px solid rgba(255,255,255,.6); color: #fff; font-size: 12px; white-space: nowrap; }
.poster-choices button.active { background: #fff; color: #000; }
.cert-frame { position: relative; overflow: hidden; line-height: 0; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.cert-frame.show { animation: certIn .75s var(--ease) both; }
.cert-frame.show::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 45%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0)); animation: shine 1.3s ease-in-out .75s both; pointer-events: none; }
.cert-image { width: 100%; max-width: 320px; max-height: 72vh; object-fit: contain; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.cert-loading { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; padding: 60px 0; }
.cert-loading i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.cert-hint { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #fff; font-size: 14px; animation: fadeUp .5s var(--ease) .9s both; }
.cert-hint svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: hintDown 1.4s ease-in-out 1.4s infinite; }
.close-round { margin-top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); color: #fff; font-size: 16px; transition: transform .25s; }
.close-round:active { transform: rotate(90deg) scale(.9); }

.toast {
  position: fixed; z-index: 100; left: 50%; top: 44%; transform: translate(-50%, -40%);
  max-width: 84%; padding: 13px 20px; background: #000; color: #fff;
  font-size: 14px; text-align: center; line-height: 1.55; letter-spacing: .5px; text-wrap: balance;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%); }

/* ---------- 关键帧 ---------- */
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes charIn { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes birdFly { from { transform: translateX(0) translateY(0); } 50% { transform: translateX(-70vw) translateY(-12px); } to { transform: translateX(-140vw) translateY(4px); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.3); } }
@keyframes nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(5px); } 90% { transform: translateX(0); } }
@keyframes hintBounce { 0%, 100% { transform: translateY(2px) rotate(45deg); opacity: .9; } 50% { transform: translateY(-5px) rotate(45deg); opacity: .35; } }
@keyframes hintDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(240,0,60,.7); } 80%, 100% { box-shadow: 0 0 0 8px rgba(240,0,60,0); } }
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(420%) skewX(-18deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes stampSlam { 0% { opacity: 0; transform: scale(2.2) rotate(-18deg); } 55% { opacity: 1; transform: scale(.92) rotate(2deg); } 75% { transform: scale(1.04) rotate(0); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes ripple { 0% { opacity: .6; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes impact { 0% { transform: none; } 30% { transform: translateY(4px); } 100% { transform: none; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(240,0,60,.55); } 100% { box-shadow: 0 0 0 14px rgba(240,0,60,0); } }
@keyframes certIn { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes gullHover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes plusUp { 0% { opacity: 0; transform: translateY(8px); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

@media (min-width: 481px) { .app { box-shadow: 0 0 40px rgba(0,0,0,.4); } }
/* 矮屏（如 360×640）：标题整体上移、略缩小，少压到 KV 里的红嘴鸥 */
@media (max-height: 700px) {
  .cover-title { top: calc(var(--safe-top) + 119px); }
  .cover-main { margin-top: 6px; font-size: clamp(40px, 12.5vw, 52px); }
  .cover-sub { margin-top: 8px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .reveal, .lines > span { opacity: 1 !important; transform: none !important; }
  .route-line .seg-on { stroke-dashoffset: 0; }
}
