/* 成为提灯人 · 阶段 A 预览页专用样式（只在 lamp.html 载入，不影响其他页面）
 * 沿用全站色票：米白纸张、墨色、深绿、柔和金。Logo 只作为图片显示，从不修改。 */

.lamp-banner { margin-top: 20px; }
.lamp { max-width: 640px; margin: 0 auto; padding: 8px 16px 64px; text-align: center; scroll-margin-top: 120px; }
.lamp-head { padding: 28px 0 8px; }
.lamp-brand { font: 12px var(--sans); letter-spacing: .3em; color: var(--gold); margin: 0; }
.lamp-head h1 { font-size: clamp(30px, 8vw, 44px); font-weight: 500; letter-spacing: .16em; margin: 10px 0 4px; }
.lamp-motto { color: var(--muted); margin: 0; letter-spacing: .12em; }
.lamp-motto em { font-style: normal; }

.lamp-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px 26px; margin: 24px 0; }
.lamp-step h2 { font-size: clamp(21px, 5.4vw, 26px); font-weight: 500; letter-spacing: .06em; margin: 6px 0 18px; outline: none; }
.lamp-step p { margin: 0 0 12px; font-size: 16px; }
.lamp-lines { line-height: 2.1; }
.lamp-wishes { color: var(--ink); font-size: 17px; }
.lamp-nav { margin-top: 22px; }
.lamp-nav .btn { min-width: 112px; min-height: 44px; }

/* 一次只显示一步（有 JavaScript 时）；没有 JavaScript 时，全部步骤依次排列可读 */
.lamp-js .lamp-step { display: none; }
.lamp-js .lamp-step.is-current { display: block; }
.lamp-exit { display: none; }
.lamp-js .lamp-exit { display: flex; justify-content: space-between; gap: 12px; margin: 4px 2px 0; }
.lamp-js .lamp-exit.at-start [data-back] { visibility: hidden; }
.lamp-link { background: none; border: 0; padding: 10px 2px; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold-soft); }
.lamp-link:hover { color: var(--gold); }

/* 04 点灯：Logo 本身不变，只在其后方加一层柔金光晕 */
.lamp-light { position: relative; display: block; width: min(320px, 86%); margin: 4px auto 14px; padding: 18px 0; background: none; border: 0; cursor: pointer; border-radius: 50%; }
.lamp-light picture, .lamp-light img { position: relative; display: block; width: 100%; height: auto; }
.lamp-glow { position: absolute; left: 50%; top: 42%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6); border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 130, .62) 0%, rgba(215, 180, 110, .32) 38%, rgba(215, 201, 169, 0) 70%);
  opacity: 0; transition: opacity 2.4s ease, transform 2.4s ease; pointer-events: none; }
.lamp-light.is-lit .lamp-glow { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
.lamp-light.is-lit { cursor: default; }
.lamp-touch { color: var(--gold); letter-spacing: .06em; }
.lamp-js .lamp-after { display: none; }
.lamp-js .lamp-after.is-shown { display: block; animation: lamp-fade 1.2s ease both; }
@keyframes lamp-fade { from { opacity: 0; } to { opacity: 1; } }

/* 05 称呼 */
.lamp-input { width: min(320px, 100%); margin: 8px auto 14px; display: block; padding: 10px 12px; border: 1px solid var(--gold-soft); border-radius: var(--radius); background: #fff; color: var(--ink); text-align: center; font-size: 17px; }
.lamp-input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px #d7c9a955; }

/* 06 提灯人卡（4:5 竖版，与生成的 PNG 同一版式） */
.lamp-card { width: min(360px, 100%); aspect-ratio: 4 / 5; margin: 6px auto 14px; padding: 7% 8% 6%; background: var(--paper); border: 1px solid var(--gold-soft); box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lamp-card picture { width: 70%; display: block; margin: 0 auto 7%; }
.lamp-card img { width: 100%; height: auto; display: block; }
.lamp-step .lamp-card p { margin: 0; line-height: 1.6; }
.lamp-step .card-title { font-size: 32px; letter-spacing: .3em; padding-left: .3em; line-height: 1.4; }
.card-title strong { font-weight: 600; }
.lamp-step .card-name { font-size: 19px; margin-top: 3% !important; overflow-wrap: anywhere; }
.lamp-step .card-date { font-size: 14px; color: var(--muted); margin-top: 6% !important; }
.lamp-note { font-size: 14px !important; color: var(--muted); }
.lamp-actions .btn { min-width: 0; }
.lamp-step p.source { font-size: 13px; line-height: 1.8; color: var(--muted); }
.lamp-share-hint { margin-top: 14px !important; }
.lamp-share-fallback { margin-top: 16px; text-align: left; }
.lamp-share-fallback textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 14px; line-height: 1.7; resize: vertical; }
.lamp-status { min-height: 1.6em; margin-top: 10px !important; }
.lamp-next { margin-top: 6px !important; }

.lamp-pass { font-size: 19px !important; letter-spacing: .12em; color: var(--gold); margin-top: 18px !important; }
.lamp-sign { color: var(--muted); }

.lamp-notice { margin-top: 36px; text-align: left; color: var(--muted); }
.lamp-notice hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 14px; }
.lamp-notice p { font-size: 13px; margin: 0 0 8px; }

@media (max-width: 360px) {
  .lamp-step { padding: 22px 14px; }
  .lamp-step .card-title { font-size: 26px; }
  .lamp-actions .btn { padding: 10px 14px; }
}
