/* ========== 陈志杰 × 玉坎南 的小宇宙 · 浪漫星空风 ========== */
:root {
  --bg1: #070a1f;
  --bg2: #0d0f2e;
  --ink: #f4f0ff;
  --muted: #b9b3d9;
  --pink: #f9a8d4;
  --violet: #a78bfa;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --grad-text: linear-gradient(90deg, #ffb3d9, #c4b5fd);
}

* { box-sizing: border-box; }

/* 让 hidden 属性真正生效——防止被下方 .scene.center/.welcome 的
   display:flex/grid 声明覆盖，导致开场三场景叠在一起错位 */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(58, 32, 112, 0.85), transparent 62%),
    radial-gradient(1000px 700px at 8% 110%, rgba(53, 32, 107, 0.8), transparent 60%),
    radial-gradient(700px 500px at 50% 0%, rgba(70, 40, 130, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---------- 星空 ---------- */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#stars i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.4;
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.sky-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 78% 12%, rgba(255, 158, 203, 0.10), transparent 70%),
    radial-gradient(500px 260px at 15% 85%, rgba(167, 139, 250, 0.10), transparent 70%);
}

/* ---------- 月亮 ---------- */
.moon-wrap { position: fixed; top: 34px; right: 54px; z-index: 1; pointer-events: none; }
.moon {
  width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle at 35% 33%, #fff8dc, #ffe9a8 55%, #f3cb78);
  box-shadow:
    0 0 60px 18px rgba(255, 230, 160, 0.22),
    0 0 170px 70px rgba(255, 210, 140, 0.12);
  position: relative;
}
.moon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 62% 55%, rgba(180, 140, 90, 0.28) 0 8px, transparent 9px),
    radial-gradient(circle at 40% 68%, rgba(180, 140, 90, 0.22) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 30%, rgba(180, 140, 90, 0.2) 0 5px, transparent 6px);
}
.moon-wrap .moon-ring {
  position: absolute; inset: -26px; border-radius: 50%;
  border: 1px solid rgba(255, 230, 180, 0.18);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ---------- 通用 ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.title-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  font-family: inherit; font-size: 15px; cursor: pointer;
  border: none; border-radius: 999px;
  padding: 11px 22px; transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.4);
}
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn.ghost:hover { color: #fff; }
.btn.small { padding: 6px 14px; font-size: 13px; }

input, textarea, select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 11px 14px;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(249, 168, 212, 0.18);
}
input::placeholder, textarea::placeholder { color: rgba(185, 179, 217, 0.55); }
select option { color: #1a1a2e; }
textarea { resize: vertical; min-height: 56px; }

/* =========================================================
   惊喜开场 · 互动式启动页
   ========================================================= */
.stage-wrap {
  position: fixed; inset: 0; z-index: 20;
  overflow: hidden;
}
/* 特效画布：常驻全屏、最高层，解锁后的爱心雨也要能覆盖在主站/欢迎语之上 */
#fx {
  position: fixed; inset: 0; z-index: 40;
  width: 100%; height: 100%;
  pointer-events: none;
}
#floaters { position: absolute; inset: 0; pointer-events: none; }
.floater {
  position: absolute; bottom: -40px;
  font-size: 18px; opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.28; }
  85% { opacity: 0.12; }
  100% { transform: translateY(-105vh); opacity: 0; }
}

.scene { position: absolute; inset: 0; }
.scene.center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 20px; text-align: center;
  animation: fadeUp .8s ease both;
}

/* ----- 礼物 ----- */
.stage-hint { font-size: 16px; color: #ffe3f2; letter-spacing: 1px; }
.stage-sub { font-size: 12px; color: rgba(185, 179, 217, 0.6); margin-top: -4px; }

.gift {
  position: relative; width: 160px; height: 142px;
  cursor: pointer; margin-bottom: 14px;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
.gift-body {
  position: absolute; bottom: 0; left: 5px;
  width: 150px; height: 96px;
  background: linear-gradient(180deg, #c084fc, #7c3aed);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.ribbon-v {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 26px; transform: translateX(-50%);
  background: linear-gradient(180deg, #f9a8d4, #ec4899);
  border-radius: 4px;
}
.ribbon-h {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 14px; transform: translateY(-50%);
  background: linear-gradient(90deg, #f9a8d4, #ec4899);
  border-radius: 4px;
}
.gift-lid {
  position: absolute; top: 6px; left: -10px;
  width: 180px; height: 46px;
  background: linear-gradient(180deg, #a78bfa, #6d28d9);
  border-radius: 12px; z-index: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.bow {
  position: absolute; left: 50%; top: -16px;
  width: 26px; height: 26px; transform: translateX(-50%);
  background: #f472b6; border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.8);
}
.bow-l, .bow-r {
  position: absolute; top: -8px; width: 30px; height: 22px;
  background: #ec4899; border-radius: 60% 15% 60% 15%;
  z-index: 1;
}
.bow-l { left: calc(50% - 34px); transform: rotate(-22deg); }
.bow-r { right: calc(50% - 34px); transform: rotate(22deg); }
.gift-glow {
  position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 168, 212, 0.35), transparent 65%);
  animation: glowPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* 礼物被点开后 */
.gift.opening { pointer-events: none; animation: none; }
.gift.opening .gift-lid {
  animation: lidOpen .6s ease forwards;
}
@keyframes lidOpen {
  to { transform: translateY(-90px) rotate(-14deg); opacity: 0.6; }
}
.gift.opening .gift-body { animation: bodyPop .5s ease forwards; }
@keyframes bodyPop {
  50% { transform: scale(1.12); }
  100% { transform: scale(1.02); }
}

/* ----- 来信 ----- */
.msg-heart { font-size: 56px; animation: beat 1.2s ease-in-out infinite; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
}
.msg-type {
  min-height: 190px; max-width: 560px;
  font-size: 21px; line-height: 2; color: #ffe9f5;
  letter-spacing: 1px;
}
.msg-type p { margin: 6px 0; animation: fadeUp .4s ease both; }
.msg-type p.hl { color: #fff; font-weight: 700; }
#msgNext { margin-top: 8px; }

/* ----- 问答开门 ----- */
.gate-card {
  width: min(92vw, 420px);
  padding: 34px 30px 26px;
  text-align: center;
}
.gate-heart { font-size: 46px; }
.gate-card h1 { margin: 10px 0 4px; font-size: 30px; letter-spacing: 2px; }
.gate-sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.q-prompt { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.q-question {
  font-size: 20px; font-weight: 700; color: #ffe9f5;
  margin: 12px 0 18px;
}
#gateForm { display: flex; flex-direction: column; gap: 12px; }
#gateForm input { text-align: center; letter-spacing: 2px; }
.gate-err { color: #fda4af; font-size: 13px; margin: 2px 0 0; }

/* 脚本出错 / 关闭 JS 时的兜底提示 */
.js-error {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 99; max-width: 90vw; padding: 10px 16px;
  background: rgba(60, 20, 60, .88); border: 1px solid #f9a8d4; border-radius: 10px;
  color: #fbcfe8; font-size: 13px; line-height: 1.5; text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}

/* 页脚版本标识（排查是否旧文件用，恋爱中的人不必在意它） */
.ver-tag {
  font-size: 11px; color: rgba(255,255,255,.28); margin-left: 6px;
  letter-spacing: .5px; user-select: none;
}

.shake { animation: shake .45s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(7px); }
}

/* ----- 欢迎回家 ----- */
.welcome {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  font-size: 34px; font-weight: 800; letter-spacing: 4px;
  background: radial-gradient(circle at 50% 45%, rgba(13, 10, 40, 0.88), rgba(7, 10, 31, 0.96));
  color: #ffe9f5;
  opacity: 0; transition: opacity 1s ease;
  pointer-events: none;
}
.welcome.show { opacity: 1; }

/* ---------- 顶栏 & 导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(7, 10, 31, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand { font-weight: 700; letter-spacing: 1px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.today { color: var(--muted); font-size: 13px; }

.tabs {
  position: sticky; top: 57px; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px;
  background: rgba(7, 10, 31, 0.45);
  backdrop-filter: blur(12px);
}
.tab {
  flex: 0 0 auto;
  font-family: inherit; font-size: 14px; cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px; padding: 8px 16px;
  transition: all .15s ease;
}
.tab:hover { color: #fff; }
.tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

main {
  position: relative; z-index: 2;
  max-width: 940px; margin: 0 auto;
  padding: 20px 16px 40px;
}
.section { display: none; animation: fadeUp .45s ease both; }
.section.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sec-head h2 { margin: 18px 0 4px; font-size: 22px; }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- 首页 ---------- */
.countdown { text-align: center; padding: 42px 20px 36px; }
.cd-couple { font-size: 17px; color: var(--muted); letter-spacing: 2px; margin-bottom: 8px; }
.cd-couple .and { color: var(--pink); font-size: 13px; margin: 0 6px; }
.cd-days {
  font-size: clamp(72px, 18vw, 108px);
  font-weight: 800; line-height: 1.02;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffd7ea, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(196, 181, 253, 0.25);
}
.cd-label { color: var(--muted); letter-spacing: 4px; font-size: 14px; margin-top: 6px; }
.cd-detail { color: var(--muted); line-height: 1.9; font-size: 14px; margin-top: 18px; }
.cd-detail b { color: var(--pink); font-weight: 600; }

.mood { margin-top: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mood-title { color: var(--muted); font-size: 14px; }
.mood-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mood-btn {
  font-size: 26px; cursor: pointer; background: transparent;
  border: none; border-radius: 12px; padding: 4px 8px;
  opacity: 0.5; filter: grayscale(0.5);
  transition: all .15s ease;
}
.mood-btn:hover { opacity: 0.9; filter: none; }
.mood-btn.sel { opacity: 1; filter: none; transform: scale(1.25); background: rgba(255, 255, 255, 0.1); }
.mood-who { display: flex; gap: 8px; flex-wrap: wrap; }
.who-btn {
  font-size: 12px; cursor: pointer; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18); color: var(--muted);
  border-radius: 999px; padding: 4px 12px;
  transition: all .15s ease;
}
.who-btn:hover { color: #fff; border-color: var(--pink); }
.who-btn.sel { color: #fff; background: rgba(244, 114, 182, 0.18); border-color: var(--pink); }
.mood-today { color: var(--muted); font-size: 13px; }

.home-msg { margin-top: 16px; padding: 26px 20px; text-align: center; }
.home-quote { font-size: 18px; color: #ffe3f2; font-style: italic; }
.home-note { color: var(--muted); font-size: 13px; margin-top: 12px; letter-spacing: 2px; }

/* ---------- 一键报位置 ---------- */
.locate { margin-top: 16px; padding: 22px 20px; text-align: center; }
.locate-title { font-size: 18px; color: #ffe3f2; margin-bottom: 6px; letter-spacing: 2px; }
#locateBtn { margin-top: 14px; }
#locateOut { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.9; }
.loc-fine { font-size: 13px; color: var(--muted); }
.loc-coord { margin-top: 6px; color: #fff; font-weight: 600; letter-spacing: 1px; }
.loc-link { margin-top: 12px; }
.loc-link a { color: var(--pink); word-break: break-all; text-decoration: none; }
.loc-err { color: #fca5a5; }

/* ---------- 相册 · 星空圆盘 ---------- */
.orbit-stage {
  position: relative;
  width: min(88vw, 400px);
  aspect-ratio: 1;
  margin: 10px auto 6px;
}
.orbit-stage::before,
.orbit-stage::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.orbit-stage::before { width: 72%; height: 72%; transform: translate(-50%, -50%); }
.orbit-stage::after { width: 100%; height: 100%; transform: translate(-50%, -50%); opacity: 0.5; }
.orbit-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
  font-size: 30px;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.8));
  animation: moonFloat 4s ease-in-out infinite;
}
.orbit-core span { font-size: 12px; letter-spacing: 3px; color: rgba(255, 255, 255, 0.65); }
@keyframes moonFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -55%); }
}
.orbit-disk { position: absolute; inset: 0; }
.orbit-star-pos {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: starIn 0.9s ease forwards;
}
@keyframes starIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.orbit-star {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07), 0 10px 26px rgba(0, 0, 0, 0.45);
  cursor: pointer; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: twinkle 3s ease-in-out infinite;
}
.orbit-star:hover {
  transform: scale(1.14);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 0 28px rgba(255, 255, 255, 0.28);
  z-index: 3;
}
.orbit-star:active { transform: scale(0.96); }
.orbit-star .o-emoji { font-size: 26px; line-height: 1; }
.orbit-star .o-name {
  font-size: 9px; max-width: 64px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: 0.95;
}
@keyframes twinkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

/* 照片星：渐变流动光环 */
.star-photo { background-size: cover; background-position: center; }
.star-photo::before {
  content: '';
  position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff9ecb, #a78bfa, #59c9a5, #f6d365, #ff9ecb);
  filter: blur(9px); opacity: 0.6; z-index: -1;
  animation: orbSpin 5s linear infinite;
}
@keyframes orbSpin { to { transform: rotate(360deg); } }

/* ---------- 相册弹窗 ---------- */
.album-modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 8, 22, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.am-card {
  width: min(86vw, 320px); border-radius: 20px; padding: 34px 22px 24px; text-align: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: popIn 0.28s ease;
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.am-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: rgba(255, 255, 255, 0.7); font-size: 22px; cursor: pointer;
}
.am-close:hover { color: #fff; }
.am-emoji {
  width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.18), 0 10px 30px rgba(0, 0, 0, 0.35);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.am-title { font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 8px; }
.am-note { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------- 表单 & 列表 ---------- */
.form {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch;
  padding: 14px; margin-top: 16px;
}
.form select { flex: 0 0 auto; }
.form textarea { flex: 1 1 240px; }
.form input { flex: 1 1 220px; }
.form .btn { flex: 0 0 auto; align-self: center; }

.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.card-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
}
.avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
}
.c-body { flex: 1 1 auto; min-width: 0; }
.c-name { font-size: 14px; font-weight: 600; }
.c-date { font-size: 12px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.c-text { margin-top: 4px; font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.del-btn {
  flex: 0 0 auto;
  background: transparent; border: none; cursor: pointer;
  color: rgba(185, 179, 217, 0.45); font-size: 14px; padding: 4px;
  transition: color .15s ease;
}
.del-btn:hover { color: #fda4af; }

.wish-list { list-style: none; margin: 16px 0 0; padding: 8px 10px; }
.wish-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px; border-radius: 12px;
}
.wish-list li + li { border-top: 1px dashed rgba(255, 255, 255, 0.1); }
.wish-check {
  width: 20px; height: 20px; flex: 0 0 auto;
  accent-color: #f472b6; cursor: pointer;
}
.wish-text { flex: 1 1 auto; font-size: 15px; transition: all .2s ease; }
.wish-list li.done .wish-text { text-decoration: line-through; color: var(--muted); opacity: 0.65; }

/* ---------- 互动 ---------- */
#quiz { margin-top: 16px; }
.q-card { padding: 18px 20px; margin-bottom: 14px; }
.q-title { font-weight: 600; margin-bottom: 12px; font-size: 16px; }
.opt {
  display: block; width: 100%; text-align: left;
  font-family: inherit; font-size: 15px; cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 10px 14px; margin-top: 8px;
  transition: all .15s ease;
}
.opt:hover { background: rgba(255, 255, 255, 0.1); }
.opt.sel { border-color: var(--pink); background: rgba(249, 168, 212, 0.12); }
.opt.correct { border-color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.opt.wrong { border-color: #f87171; background: rgba(248, 113, 113, 0.12); }
.q-note { display: none; margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.q-card.graded .q-note { display: block; }
#quizScore { margin: 4px 0 16px; font-size: 18px; font-weight: 700; }
#quizSubmit { margin-top: 2px; }

footer { text-align: center; color: rgba(185, 179, 217, 0.5); font-size: 13px; padding: 30px 0 10px; }

/* ---------- 小屏 ---------- */
@media (max-width: 640px) {
  .moon-wrap { top: 20px; right: 20px; transform: scale(0.6); opacity: 0.85; }
  .tabs { top: 56px; }
  .cd-days { font-size: 76px; }
  .msg-type { font-size: 18px; }
  .gift { transform: scale(0.9); }
}