/* ============ 《给毕业的自己的一封信》 夜空信笺 ============ */
[v-cloak] { display: none; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #070812, #10122b 60%, #1a1430);
  display: flex; justify-content: center;
}
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, textarea { font-family: inherit; outline: none; }
.serif { font-family: "Songti SC", "Noto Serif SC", "STSong", serif; }

#app { width: 100%; max-width: 440px; min-height: 100vh; display: flex; flex-direction: column; }

.screen {
  position: relative; width: 100%; flex: 1 0 auto; overflow: hidden;
  background: transparent; /* 星空由 .sky 常驻层提供 */
  display: flex; flex-direction: column;
}
.inner {
  position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 34px) 26px calc(env(safe-area-inset-bottom, 0px) + 26px);
}
.center-col { justify-content: center; text-align: center; }
.grow-col { flex: 1; display: flex; flex-direction: column; }
.gap { height: 16px; }

/* ---- 星星 ---- */
.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stars i { position: absolute; background: #fff; border-radius: 50%; animation: tw 3.4s infinite ease-in-out; }
@keyframes tw { 0%,100%{opacity:.2; transform:scale(.8)} 50%{opacity:.95; transform:scale(1.2)} }

/* ---- 文字 ---- */
.kicker { font-size: 11px; letter-spacing: 6px; color: #cdb87f; text-align: center; }
.title {
  font-family: "Songti SC", "Noto Serif SC", serif; color: #f5efe2;
  text-align: center; letter-spacing: 3px; font-weight: 700;
}
.title.big { font-size: 27px; margin-top: 6px; line-height: 1.6; }
.divider {
  width: 46px; height: 1px; margin: 14px auto; position: relative;
  background: linear-gradient(90deg, transparent, #cdb87f, transparent);
}
.divider::after {
  content: "◆"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%); color: #cdb87f; font-size: 7px;
}
.desc { color: #b9b3d6; font-size: 13px; text-align: center; line-height: 2.1; letter-spacing: 1.5px; margin-top: 12px; }
.desc .gold { color: #e9cf94; }
.err { color: #e28a80; font-size: 12px; margin-top: 8px; letter-spacing: 1px; }
.dev-hint { color: #8fa6dc; font-size: 12px; text-align: center; margin-top: 10px; letter-spacing: 1px; }

/* ---- 信封 ---- */
.env-scene { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 170px; position: relative; }
.env-scene.small { min-height: 130px; }
.envelope {
  width: 172px; height: 116px; border-radius: 8px; position: relative;
  background: linear-gradient(160deg, #f3e9d2, #e8d9b8);
  box-shadow: 0 14px 34px rgba(0,0,0,.45); transform: rotate(-3deg);
}
.envelope::before {
  content: ""; position: absolute; inset: 0; border-radius: 8px; opacity: .7;
  background:
    linear-gradient(135deg, transparent 49.5%, #dcc9a0 49.5%, #dcc9a0 50.5%, transparent 50.5%),
    linear-gradient(-135deg, transparent 49.5%, #dcc9a0 49.5%, #dcc9a0 50.5%, transparent 50.5%);
}
.seal {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a4443a, #7c2d28);
  box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #f5d9a8; font-family: "Songti SC", serif; font-size: 17px; font-weight: 700;
}
.glow { position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,217,168,.16), transparent 65%); }

/* ---- 按钮 ---- */
.btn-main {
  display: block; width: 100%; padding: 15px 0; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #e9cf94, #d4af6a); color: #2b2438;
  font-size: 15px; font-weight: 600; letter-spacing: 4px;
  box-shadow: 0 8px 22px rgba(212,175,106,.32);
}
.btn-ghost {
  display: block; width: 100%; margin-top: 14px; padding: 12px 0; border-radius: 999px;
  border: 1px solid rgba(205,184,127,.45); background: transparent;
  color: #cdb87f; font-size: 13px; letter-spacing: 3px;
}
.btn-ghost.solo { margin-top: 22px; }
.back {
  position: absolute; top: 24px; left: 0; background: transparent; border: none;
  color: #9d97bd; font-size: 15px; letter-spacing: 1px; padding: 4px 8px;
}

/* ---- 表单 ---- */
.field { margin: 18px 0; }
.field label { display: block; font-size: 11px; letter-spacing: 3px; color: #9d97bd; margin-bottom: 9px; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 12px; font-size: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #f5efe2; letter-spacing: 2px; caret-color: #d4af6a;
}
.input::placeholder { color: #6d688e; letter-spacing: 1px; }
.input:disabled { opacity: .6; }
.input-row { display: flex; gap: 10px; align-items: stretch; }
.input-row .input { flex: 1; }
.sms-btn {
  flex-shrink: 0; padding: 0 14px; border-radius: 10px; min-width: 96px;
  border: 1px solid rgba(205,184,127,.5); background: rgba(205,184,127,.08);
  color: #cdb87f; font-size: 12px; letter-spacing: 1px;
}

/* ---- 「已写过信」提示（一号一信） ---- */
.input.warn { border-color: rgba(224,150,120,.55); background: rgba(224,150,120,.06); }
.written-note {
  margin-top: 10px; border-radius: 14px; padding: 12px 14px;
  border: 1px solid rgba(212,175,106,.45);
  background: linear-gradient(135deg, rgba(212,175,106,.14), rgba(212,175,106,.06));
  animation: notedrop .32s ease-out both;
}
@keyframes notedrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.written-note .l1 { color: #e9cf94; font-size: 13px; letter-spacing: 1.5px; display: flex; align-items: center; gap: 7px; }
.written-note .l1 .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #e9cf94; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(233,207,148,.8);
}
.written-note .l2 { color: #b9b3d6; font-size: 11.5px; line-height: 1.9; letter-spacing: 1px; margin-top: 6px; padding-left: 13px; }
.written-note .l2 .g { color: #cdb87f; }
.written-note .go {
  display: inline-block; margin: 9px 0 0 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(212,175,106,.55); background: rgba(212,175,106,.1);
  color: #e9cf94; font-size: 11.5px; letter-spacing: 2px; font-family: inherit; cursor: pointer;
}
.written-tip { text-align: center; color: #8f89b3; font-size: 11px; letter-spacing: 1.5px; margin-top: 10px; }

/* ---- 未到开信日：倒计时锁定卡片 ---- */
.count-card {
  margin-top: 16px; border-radius: 18px; padding: 20px 16px 18px; text-align: center;
  border: 1px solid rgba(212,175,106,.4);
  background: linear-gradient(160deg, rgba(212,175,106,.13), rgba(212,175,106,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.count-card .big {
  font-family: "Songti SC", "Noto Serif SC", serif; color: #f5e8c4;
  font-size: 52px; font-weight: 700; line-height: 1;
  text-shadow: 0 0 24px rgba(233,207,148,.35);
}
.count-card .unit { color: #cdb87f; font-size: 13px; letter-spacing: 4px; margin-top: 8px; }
.count-card .date-line {
  margin-top: 14px; padding-top: 13px; border-top: 1px dashed rgba(212,175,106,.3);
  color: #b9b3d6; font-size: 12px; letter-spacing: 2px;
}
.count-card .date-line .g { color: #e9cf94; font-weight: 600; }
.count-card .progress { margin-top: 12px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.08); }
.count-card .progress i {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #8f6fc0, #e9cf94); transition: width .6s ease;
}
.count-card .progress-label {
  display: flex; justify-content: space-between; margin-top: 7px;
  color: #8f89b3; font-size: 10px; letter-spacing: 1px;
}
.envelope.lock-env { transform: rotate(-3deg) scale(.82); filter: brightness(.94); }
.lock-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 4px auto 0; width: fit-content; padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(224,150,120,.4); background: rgba(224,150,120,.07);
  color: #d9a08c; font-size: 11px; letter-spacing: 2px;
}
.hint-line {
  color: #8f89b3; font-size: 11px; letter-spacing: 1.5px; text-align: center;
  margin-top: 14px; line-height: 1.9;
}
.hint-line .gold { color: #cdb87f; font-weight: 600; }

.year-row { display: flex; gap: 10px; }
.year-opt {
  flex: 1; padding: 12px 6px; border-radius: 14px; text-align: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  transition: all .18s;
}
.year-opt.on {
  border-color: #d4af6a; background: rgba(212,175,106,.14);
  box-shadow: 0 0 0 1px rgba(212,175,106,.4), 0 6px 18px rgba(212,175,106,.15);
}
.year-opt .y { color: #f5efe2; font-size: 17px; font-family: "Songti SC", serif; font-weight: 700; }
.year-opt .t { color: #9d97bd; font-size: 10px; letter-spacing: 2px; margin-top: 4px; display: block; }
.year-opt.on .t { color: #d4af6a; }
.check-dot { width: 16px; height: 16px; border-radius: 50%; margin: 8px auto 0; border: 1px solid rgba(255,255,255,.25); }
.year-opt.on .check-dot { border-color: #d4af6a; background: radial-gradient(circle at 40% 35%, #f0d9a8, #d4af6a); }

.open-date { margin-top: 10px; font-size: 11px; color: #cdb87f; letter-spacing: 1px; }
.open-date .ic { font-size: 12px; }

/* ---- 信纸 ---- */
.paper {
  flex: 1; border-radius: 14px; position: relative; min-height: 200px;
  background: linear-gradient(165deg, #f7efdc, #efe3c6);
}
.paper textarea {
  width: 100%; height: 100%; min-height: 200px; resize: none; border: none;
  /* 横线画在 textarea 上并随内容滚动（local），与 28px 行高严格对齐 */
  background:
    repeating-linear-gradient(transparent, transparent 27px, rgba(150,130,90,.22) 27px, rgba(150,130,90,.22) 28px) local 0 28px,
    linear-gradient(165deg, #f7efdc, #efe3c6);
  padding: 28px 16px 26px; font-family: "Songti SC", "Noto Serif SC", serif;
  color: #4a4232; font-size: 14px; line-height: 28px; letter-spacing: 1px;
}
.paper textarea::placeholder { color: #b3a37c; }
.paper .count { position: absolute; right: 14px; bottom: 10px; font-size: 10px; color: #a89870; letter-spacing: 1px; }

/* ---- 封存成功 ---- */
.big-seal {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto; position: relative;
  background: radial-gradient(circle at 34% 28%, #b0514a, #7c2d28 70%);
  box-shadow: 0 12px 30px rgba(124,45,40,.5), inset 0 0 0 5px rgba(255,255,255,.12), inset 0 0 0 11px rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 42px; color: #f2d8a4; font-weight: 700;
  animation: stampIn .6s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes stampIn { from { transform: scale(2.2) rotate(-18deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.ticket {
  margin: 24px auto 0; max-width: 300px; text-align: left;
  background: rgba(255,255,255,.06); border: 1px dashed rgba(205,184,127,.5); border-radius: 14px;
  padding: 14px 16px; font-size: 12px; color: #b9b3d6; line-height: 2.1; letter-spacing: 1px;
}
.ticket b { color: #cdb87f; font-weight: 600; }

/* ---- 验证码 ---- */
.code-row { display: flex; gap: 9px; position: relative; cursor: text; }
.code-cell {
  flex: 1; height: 54px; border-radius: 12px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
  color: #f5efe2; font-size: 22px; font-family: "Songti SC", serif;
}
.code-cell.on { border-color: #d4af6a; box-shadow: 0 0 0 1px rgba(212,175,106,.5); }
.code-cell.on::after { content: ""; width: 1.5px; height: 22px; background: #d4af6a; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-hidden {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: none; font-size: 1px; color: transparent; caret-color: transparent;
}

.shield {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 6px;
  background: rgba(122,150,220,.08); border: 1px solid rgba(122,150,220,.22);
  border-radius: 12px; padding: 11px 13px;
}
.shield .ic { color: #8fa6dc; font-size: 13px; }
.shield p { font-size: 11px; color: #9aa4c8; line-height: 1.9; letter-spacing: .5px; }

/* ---- 读信 ---- */
.letter-paper {
  flex: 1; border-radius: 16px; padding: 26px 22px; margin-top: 6px; position: relative;
  background:
    repeating-linear-gradient(transparent, transparent 29px, rgba(150,130,90,.18) 29px, rgba(150,130,90,.18) 30px) 0 26px,
    linear-gradient(170deg, #f8f1de 0%, #f1e5c9 60%, #ecdcbc 100%);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 0 40px rgba(160,130,70,.08);
}
.letter-paper .body {
  font-family: "Songti SC", "Noto Serif SC", serif; color: #55492f;
  font-size: 14px; line-height: 30px; letter-spacing: 1px; white-space: pre-wrap; word-break: break-word;
}
.letter-paper .sign { text-align: right; font-family: "Songti SC", serif; color: #4a4232; font-size: 13px; line-height: 2; letter-spacing: 1px; margin-top: 18px; }

/* ---- 回批 ---- */
.reply-box { margin-top: 18px; display: flex; flex-direction: column; }
.reply-title, .reply-done {
  text-align: center; font-size: 12.5px; letter-spacing: 2px; color: #cdb87f;
  font-family: "Songti SC", serif; margin-bottom: 10px;
}
.reply-paper { flex: none; min-height: 120px; animation: none; }
.reply-paper textarea { min-height: 120px; padding: 20px 16px 26px; font-size: 13px; line-height: 26px;
  background:
    repeating-linear-gradient(transparent, transparent 25px, rgba(150,130,90,.22) 25px, rgba(150,130,90,.22) 26px) local 0 20px,
    linear-gradient(165deg, #f7efdc, #efe3c6);
}
.reply-paper .reply-text {
  padding: 20px 16px 22px; font-family: "Songti SC", serif; color: #4a4232;
  font-size: 13px; line-height: 26px; letter-spacing: 1px; white-space: pre-wrap; word-break: break-word;
}
.reply-btn { margin-top: 14px; }
.stamp-corner {
  position: absolute; top: 14px; right: 16px; width: 46px; height: 56px;
  background: linear-gradient(150deg, #e8d5a8, #d9c08c); border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); transform: rotate(4deg);
  display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 13px; color: #7c5f2e; letter-spacing: 1px;
}
.countdown { text-align: center; color: #cdb87f; font-size: 11px; letter-spacing: 3px; margin: 16px 0 4px; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 12vh; transform: translateX(-50%); z-index: 99;
  background: rgba(20,18,35,.92); color: #f0e6cf; font-size: 13px; letter-spacing: 1px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(205,184,127,.3);
  max-width: 82vw; text-align: center;
}
.fade-enter-active, .fade-leave-active { transition: opacity .25s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ============================================================
   常驻星空层 + 全元素动效（移植自动效预览版）
   ============================================================ */

/* ---- 星空层 ---- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nebula { position: absolute; inset: 0; overflow: hidden; }
.nebula i {
  position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5;
  animation: nebulaDrift 26s ease-in-out infinite alternate;
}
.nebula .n1 { width: 300px; height: 300px; top: -80px; left: -70px; background: radial-gradient(circle, rgba(112,88,190,.5), transparent 70%); }
.nebula .n2 { width: 260px; height: 260px; bottom: -70px; right: -60px; background: radial-gradient(circle, rgba(190,120,80,.3), transparent 70%); animation-delay: -9s; }
.nebula .n3 { width: 230px; height: 230px; top: 34%; right: -80px; background: radial-gradient(circle, rgba(70,110,190,.4), transparent 70%); animation-delay: -17s; }
@keyframes nebulaDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(28px,-20px) scale(1.15); } }
#app { position: relative; z-index: 1; }

/* ---- 每屏元素入场（错峰上浮） ---- */
.inner > * { animation: rise .6s cubic-bezier(.2,.9,.3,1) both; }
.inner > *:nth-child(1) { animation-delay: .05s; }
.inner > *:nth-child(2) { animation-delay: .12s; }
.inner > *:nth-child(3) { animation-delay: .19s; }
.inner > *:nth-child(4) { animation-delay: .26s; }
.inner > *:nth-child(5) { animation-delay: .33s; }
.inner > *:nth-child(6) { animation-delay: .40s; }
.inner > *:nth-child(7) { animation-delay: .47s; }
.inner > *:nth-child(8) { animation-delay: .54s; }
.inner > *:nth-child(n+9) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---- 首页：信封悬浮 + 光晕呼吸 ---- */
.glow { animation: glowPulse 4.5s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.16); opacity: 1; } }
.envelope { animation: floaty 5.5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-9px); } }

/* ---- 按钮：流光扫过 + 微光呼吸 ---- */
.btn-main { position: relative; overflow: hidden; animation: btnBreath 3.2s ease-in-out infinite; }
.btn-main::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  animation: sheen 3.6s ease-in-out infinite;
}
.btn-main:active { transform: scale(.97); }
@keyframes btnBreath { 0%,100% { box-shadow: 0 8px 22px rgba(212,175,106,.3); } 50% { box-shadow: 0 8px 30px rgba(212,175,106,.5); } }
@keyframes sheen { 0%,55% { left: -70%; } 85%,100% { left: 130%; } }

/* ---- 年份卡片选中脉冲 ---- */
.year-opt.on { animation: selPulse .5s ease-out; }
@keyframes selPulse { 0% { box-shadow: 0 0 0 0 rgba(212,175,106,.5); } 100% { box-shadow: 0 0 0 12px rgba(212,175,106,0); } }

/* ---- 信纸翻入 ---- */
.paper { animation: paperIn .7s .35s cubic-bezier(.2,1.1,.4,1) both; }
@keyframes paperIn { from { opacity: 0; transform: perspective(600px) rotateX(14deg) translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- 封存成功：盖章 + 扩散光环 ---- */
.big-seal { animation: stampIn .6s .3s cubic-bezier(.2,1.6,.4,1) both; }
.big-seal .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(233,207,148,.6); pointer-events: none;
  animation: ringOut 1.1s .85s ease-out both;
}
@keyframes ringOut { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

/* ---- 倒计时卡片：数字呼吸 + 进度条生长 ---- */
.count-card .big { animation: numBreath 3s ease-in-out infinite; }
@keyframes numBreath { 0%,100% { text-shadow: 0 0 18px rgba(233,207,148,.3); } 50% { text-shadow: 0 0 34px rgba(233,207,148,.6); } }
.count-card .progress i { transform-origin: left center; animation: growBar 1.4s .5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lock-badge { animation: badgeGlow 2.8s ease-in-out infinite; }
@keyframes badgeGlow { 0%,100% { box-shadow: 0 0 0 rgba(224,150,120,0); } 50% { box-shadow: 0 0 16px rgba(224,150,120,.25); } }
.countdown { animation: numBreath 3s ease-in-out infinite; }

/* ---- 验证码格子弹入 ---- */
.code-cell { animation: popIn .28s ease-out both; }
.code-cell:nth-child(1) { animation-delay: .05s; }
.code-cell:nth-child(2) { animation-delay: .11s; }
.code-cell:nth-child(3) { animation-delay: .17s; }
.code-cell:nth-child(4) { animation-delay: .23s; }
.code-cell:nth-child(5) { animation-delay: .29s; }
.code-cell:nth-child(6) { animation-delay: .35s; }
@keyframes popIn { from { transform: scale(.6); opacity: .3; } to { transform: scale(1); opacity: 1; } }

/* ---- 读信：信纸展开 + 墨迹渐显 ---- */
.letter-paper { animation: unfold 1s .25s cubic-bezier(.2,.9,.3,1) both; transform-origin: top center; }
@keyframes unfold { from { opacity: 0; transform: perspective(700px) rotateX(-32deg) scaleY(.78); } to { opacity: 1; transform: none; } }
.letter-paper .body { animation: inkReveal 1.6s .7s ease-out both; }
@keyframes inkReveal { from { opacity: 0; } to { opacity: 1; } }

/* ---- 隐私提示与政策入口 ---- */
.privacy-hint { margin-top: 8px; font-size: 10.5px; color: #8f89b3; letter-spacing: 1px; line-height: 1.8; }
.plink, .site-credits a {
  color: #cdb87f; text-decoration: none; border-bottom: 1px dotted rgba(205,184,127,.5);
}

/* ---- 全站落款（悬浮钉在视口底部，内容预留等高空间避免遮挡） ---- */
.site-credits {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 12px);
  text-align: center; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,8,18,0), rgba(7,8,18,.82) 55%);
}
.cr-line { line-height: 2; letter-spacing: 2.5px; }
.site-credits .c1 {
  font-size: 13px; font-weight: 600; color: #e8dcbc;
  font-family: "Songti SC", serif; letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(212,175,106,.35);
}
.site-credits .c2 { font-size: 11.5px; color: #b9b2d6; }
.site-credits .c3 { font-size: 11px; }
.site-credits a {
  pointer-events: auto; font-size: 11px; color: #cdb87f;
  border-bottom: 1px solid rgba(205,184,127,.55); padding-bottom: 1px;
}
.site-credits a:active { color: #f0dfae; }

/* 落款悬浮钉底（高约 95px），内容预留 118px 底部空间 */
.inner { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 118px); }

/* 减弱动态效果（系统无障碍设置） */
@media (prefers-reduced-motion: reduce) {
  .inner > *, .envelope, .glow, .btn-main, .btn-main::after, .big-seal, .big-seal .ring,
  .count-card .big, .count-card .progress i, .lock-badge, .code-cell,
  .letter-paper, .letter-paper .body, .nebula i {
    animation: none !important;
  }
}

/* ===== 完成作业登记（同意复选框行） ===== */
.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(232, 226, 213, 0.75);
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  background: rgba(16, 18, 43, 0.5);
}
.consent-row.on { border-color: rgba(212, 175, 55, 0.6); }
.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #d4af37;
  flex-shrink: 0;
}
