/* ===== 晴天主题（白光日间皮肤） =====
   只在 body.day-theme 下生效；不改动公共变量与原有夜间样式，
   所以把 body 上的 day-theme 去掉即可回到原版夜空。 */

body.day-theme {
  --ink: #12283c;
  --ink-soft: #35526b;
  --ink-mute: #64809a;
  --paper: rgba(250, 253, 255, .975);
  --paper-line: rgba(28, 72, 110, .13);
  /* 选色后仍跟随调色盘第一色，但压深到在白底可读 */
  --accent-ink: color-mix(in srgb, var(--accent-text) 52%, #0f2c3d);
  --accent-ink: hsl(from var(--accent-text) h s calc(l * .44));
  --accent-line: color-mix(in srgb, var(--accent-text) 58%, #35627f);
}

/* 1. 天空 */
body.day-theme .phone {
  background:
    radial-gradient(ellipse 54% 26% at 86% 1%, rgba(255, 255, 252, .95), rgba(255, 252, 236, .5) 32%, rgba(255, 250, 226, 0) 70%),
    linear-gradient(180deg, #48a0dd 0%, #6cb6e8 20%, #93cdef 42%, #b6dcf6 62%, #d7edfb 80%, #eefaff 93%, #ffffff 100%);
}
body.day-theme .background-sky { display: none; }
/* 云层：用多段色标的软边椭圆拼积云（不依赖 filter: blur，渲染开销小） */
body.day-theme .aurora {
  inset: 0;
  height: 100%;
  opacity: .96;
  animation: none;
  filter: none;
  background:
    /* 右上云团（压着太阳） */
    radial-gradient(ellipse 30% 3.8% at 79% 14%, rgba(255,255,255,.98) 0 40%, rgba(255,255,255,.78) 66%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 13% 4.6% at 71.5% 11.6%, rgba(255,255,255,.97) 0 38%, rgba(255,255,255,.72) 64%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 11% 5.2% at 79% 10.2%, rgba(255,255,255,.99) 0 40%, rgba(255,255,255,.75) 66%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 12% 4.2% at 87% 12.4%, rgba(255,255,255,.96) 0 38%, rgba(255,255,255,.7) 64%, rgba(255,255,255,0) 100%),
    /* 左侧中段云 */
    radial-gradient(ellipse 24% 3.4% at 12% 32.4%, rgba(255,255,255,.96) 0 38%, rgba(255,255,255,.68) 64%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 11% 4% at 7.5% 29.8%, rgba(255,255,255,.95) 0 38%, rgba(255,255,255,.66) 64%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 9% 3.4% at 19% 30.4%, rgba(255,255,255,.92) 0 36%, rgba(255,255,255,.6) 62%, rgba(255,255,255,0) 100%),
    /* 右侧中段云 */
    radial-gradient(ellipse 27% 3.4% at 89% 44.6%, rgba(255,255,255,.96) 0 38%, rgba(255,255,255,.68) 64%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 12% 4.2% at 82.5% 42.2%, rgba(255,255,255,.95) 0 38%, rgba(255,255,255,.66) 64%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 9% 3.4% at 93.5% 42.8%, rgba(255,255,255,.92) 0 36%, rgba(255,255,255,.6) 62%, rgba(255,255,255,0) 100%),
    /* 左下云团 */
    radial-gradient(ellipse 28% 3.8% at 6% 66.6%, rgba(255,255,255,.94) 0 38%, rgba(255,255,255,.66) 64%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 13% 4.4% at 1.5% 63.8%, rgba(255,255,255,.92) 0 36%, rgba(255,255,255,.62) 62%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 10% 3.6% at 16% 64.6%, rgba(255,255,255,.9) 0 36%, rgba(255,255,255,.58) 62%, rgba(255,255,255,0) 100%),
    /* 远处小云 */
    radial-gradient(ellipse 12% 1.8% at 62% 55%, rgba(255,255,255,.9) 0 36%, rgba(255,255,255,.55) 62%, rgba(255,255,255,0) 100%),
    /* 贴着地平线的白雾 */
    radial-gradient(ellipse 110% 3.4% at 50% 96%, rgba(255,255,255,.9) 0 34%, rgba(255,255,255,.5) 62%, rgba(255,255,255,0) 100%);
}
body.day-theme .aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 32% 2.4% at 78% 15.8%, rgba(138, 174, 206, .28), rgba(138, 174, 206, 0) 92%),
    radial-gradient(ellipse 24% 2% at 12% 34%, rgba(138, 174, 206, .24), rgba(138, 174, 206, 0) 92%),
    radial-gradient(ellipse 28% 2% at 89% 46.4%, rgba(138, 174, 206, .22), rgba(138, 174, 206, 0) 92%),
    radial-gradient(ellipse 26% 2% at 5% 68.2%, rgba(138, 174, 206, .2), rgba(138, 174, 206, 0) 92%);
}
body.day-theme .grain { opacity: .028; }
html:has(body.day-theme) {
  background: linear-gradient(180deg, #eef9ff 0%, #cbe7fa 38%, #a5d0ec 100%);
  background-attachment: fixed;
}
@media (min-width: 600px) {
  html:has(body.day-theme) { background: #cfe7f8; }
  body.day-theme { background: transparent; }
  body.day-theme .phone { border-color: rgba(255, 255, 255, .7); box-shadow: 0 30px 90px rgba(24, 70, 110, .28); }
}

/* 2. 顶栏与主标题 */
body.day-theme .micro { color: rgba(18, 45, 68, .5); }
body.day-theme .brand { color: var(--accent-ink); }
body.day-theme .round-button,
body.day-theme .scene-back {
  color: #17405f;
  border-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 4px 14px rgba(24, 70, 110, .13);
  backdrop-filter: blur(10px);
}
body.day-theme .round-button i { color: #17405f; }
/* 终章/蛋糕场景里顶栏按钮别变回深色 */
body.day-theme .phone.finale-open .round-button {
  color: #17405f;
  border-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 4px 16px rgba(24, 70, 110, .16);
}
body.day-theme .intro-copy h1 { color: var(--accent-ink); }
body.day-theme .sky-author { color: var(--ink-mute); }
body.day-theme .intro-copy > p:last-child { color: rgba(20, 50, 75, .72); }
body.day-theme .sky-whisper.show { color: rgba(20, 50, 75, .74); }

/* 3. 云朵节点与提示（原本的星点改成小云朵） */
body.day-theme .star-node {
  --cloud: rgba(255, 255, 255, .95);
  --cloud-puff: rgba(255, 255, 255, .96);
  --cloud-shadow: rgba(120, 158, 190, .24);
}
/* ::before 是云朵上方的圆鼓 + 左右两团肩部 */
body.day-theme .star-node::before {
  width: calc(var(--size) * 1.35);
  height: calc(var(--size) * 1.35);
  border-radius: 50%;
  background: var(--cloud-puff);
  transform: translate(-50%, calc(-100% + var(--size) * .25));
  box-shadow:
    calc(var(--size) * .66) calc(var(--size) * .16) 0 calc(var(--size) * -.26) var(--cloud-puff),
    calc(var(--size) * -.68) calc(var(--size) * .18) 0 calc(var(--size) * -.28) var(--cloud-puff),
    0 calc(var(--size) * .55) calc(var(--size) * .85) rgba(120, 158, 190, .16);
  animation: none;
}
/* ::after 是云朵的扁圆底座 */
body.day-theme .star-node::after {
  width: calc(var(--size) * 2.75);
  height: calc(var(--size) * 1);
  border-radius: 999px;
  background: var(--cloud);
  transform: translate(-50%, calc(-50% + var(--size) * .5));
  box-shadow:
    inset 0 calc(var(--size) * -.18) calc(var(--size) * .34) rgba(150, 182, 208, .28),
    0 calc(var(--size) * .18) calc(var(--size) * .48) var(--cloud-shadow);
  animation: none;
}
body.day-theme .star-node.available {
  --cloud: #ffffff;
  --cloud-puff: #ffffff;
  --cloud-shadow: rgba(132, 166, 196, .3);
}
body.day-theme .star-node.available::before {
  box-shadow:
    calc(var(--size) * .82) calc(var(--size) * .3) 0 calc(var(--size) * -.42) #ffffff,
    calc(var(--size) * -.84) calc(var(--size) * .32) 0 calc(var(--size) * -.44) #ffffff,
    0 calc(var(--size) * .1) calc(var(--size) * 1.2) rgba(255, 255, 255, .95);
}
body.day-theme .star-node.available::after {
  box-shadow:
    inset 0 calc(var(--size) * -.2) calc(var(--size) * .38) rgba(168, 196, 220, .34),
    0 0 calc(var(--size) * 1.2) rgba(255, 255, 255, .88),
    0 calc(var(--size) * .2) calc(var(--size) * .52) rgba(132, 166, 196, .3);
}
body.day-theme .star-node.lit {
  --cloud: #ffffff;
  --cloud-puff: #ffffff;
  --cloud-shadow: rgba(140, 174, 202, .32);
}
body.day-theme .star-node.lit::before {
  box-shadow:
    calc(var(--size) * .82) calc(var(--size) * .3) 0 calc(var(--size) * -.42) #ffffff,
    calc(var(--size) * -.84) calc(var(--size) * .32) 0 calc(var(--size) * -.44) #ffffff,
    0 0 calc(var(--size) * 1.6) rgba(255, 253, 246, .9);
}
body.day-theme .star-node.lit::after {
  box-shadow:
    inset 0 calc(var(--size) * -.18) calc(var(--size) * .34) rgba(172, 199, 222, .3),
    0 0 calc(var(--size) * 1.6) rgba(255, 255, 255, .92),
    0 calc(var(--size) * .18) calc(var(--size) * .48) rgba(140, 174, 202, .32);
}
/* 标签避开变大的云朵 */
body.day-theme .star-node .star-index { left: calc(50% + 20px); top: calc(50% + 12px); }
body.day-theme .star-node[data-side="left"] .star-index { right: calc(50% + 20px); }
body.day-theme .star-node.visible::before {
  animation: cloud-puff-breathe var(--breath-duration) ease-in-out infinite;
  animation-delay: var(--breath-delay);
}
body.day-theme .star-node.visible::after {
  animation: cloud-base-breathe calc(var(--breath-duration) * 1.15) ease-in-out infinite;
  animation-delay: var(--breath-delay);
}
@keyframes cloud-puff-breathe {
  0%, 100% { opacity: .84; }
  50% { opacity: 1; }
}
@keyframes cloud-base-breathe {
  0%, 100% { opacity: .9; }
  50% { opacity: .97; }
}
body.day-theme .star-ripple {
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  box-shadow: none;
}
/* 重合后的图别占满整个弹窗，给“保存”按钮留位置 */
body.day-theme .sunset-fusion canvas { max-height: 34svh; }
/* 流星改成淡淡掠过的云絮 */
body.day-theme .shooting-star {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45) 45%, rgba(255, 255, 255, .95));
  box-shadow: 0 0 14px rgba(255, 255, 255, .8);
}
body.day-theme .shooting-star::after { display: none; }

/* 密星（第十、第十一颗）也换成小云朵 */
body.day-theme .secret-star-core {
  width: 26px;
  height: 13px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 -5px 0 -2px #ffffff,
    7px -3px 0 -3px #ffffff,
    -7px -3px 0 -3px #ffffff,
    0 0 16px rgba(255, 255, 255, .95), 0 0 34px rgba(226, 238, 250, .5);
}
body.day-theme .secret-star-11 .secret-star-core {
  width: 22px;
  height: 11px;
  background: #f6f3ff;
  box-shadow:
    0 -4px 0 -2px #f6f3ff,
    6px -3px 0 -3px #f6f3ff,
    -6px -3px 0 -3px #f6f3ff,
    0 0 14px rgba(255, 255, 255, .92), 0 0 30px rgba(228, 233, 250, .5);
}
body.day-theme .secret-star::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .16) 45%, transparent 100%);
}
body.day-theme .secret-star-11::after {
  background: linear-gradient(90deg, rgba(235, 229, 255, .5), rgba(255, 255, 255, .12) 48%, transparent 100%);
}
body.day-theme .star-index,
body.day-theme .secret-star-label {
  color: rgba(23, 52, 75, .9);
  text-shadow: 0 0 6px #fff, 0 0 14px rgba(255, 255, 255, .92), 0 1px 2px rgba(255, 255, 255, .95);
}
body.day-theme .star-node.available .star-index,
body.day-theme .star-node.visible .star-index {
  color: rgba(23, 52, 75, .92);
  text-shadow: 0 0 6px #fff, 0 0 14px rgba(255, 255, 255, .92), 0 1px 2px rgba(255, 255, 255, .95);
}
body.day-theme .secret-star-11 .secret-star-label { color: rgba(60, 55, 80, .8); }
body.day-theme .gesture-hint { color: rgba(20, 50, 75, .7); }
body.day-theme .ambient-hint { color: rgba(20, 50, 75, .42); }

/* 4. 进度 */
body.day-theme .progress-panel { background: linear-gradient(180deg, transparent, rgba(240, 249, 255, .94) 40%); }
body.day-theme .progress-meta { color: var(--ink-mute); }
body.day-theme .progress-meta strong { color: var(--accent-ink); }
body.day-theme .progress-dots span { background: rgba(20, 60, 95, .14); }
body.day-theme .progress-dots span.on { background: var(--accent-line); box-shadow: 0 0 9px rgba(255, 255, 255, .8); }
body.day-theme .progress-note { color: var(--ink-soft); }

/* 5. 弹窗（记忆卡片、成就） */
body.day-theme .memory-sheet,
body.day-theme .achievement-sheet {
  color: var(--ink);
  border-color: var(--paper-line);
  background: var(--paper);
  box-shadow: 0 -22px 60px rgba(24, 70, 110, .22);
}
body.day-theme .memory-sheet::backdrop,
body.day-theme .achievement-sheet::backdrop {
  background: rgba(146, 192, 224, .3);
  backdrop-filter: blur(2px);
}
body.day-theme .sheet-handle { background: rgba(20, 60, 100, .22); }
body.day-theme .close-button { color: #3b6285; }
body.day-theme .memory-index { color: var(--accent-ink); }
body.day-theme .memory-content h3,
body.day-theme .achievement-content h2 { color: var(--accent-ink); }
body.day-theme .memory-content p { color: #3f576c; }
body.day-theme .memory-content blockquote {
  color: #14324c;
  border-left-color: var(--accent-line);
}
body.day-theme .memory-card,
body.day-theme .sunset-card {
  border-color: var(--paper-line);
  background: rgba(255, 255, 255, .78);
}
body.day-theme .sunset-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-mute);
}
body.day-theme .sunset-pick {
  padding: 2px 7px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: .04em;
  cursor: pointer;
}

/* 04 我的天空先藏起来，等他上传后才亮 */
.mine-card img { transition: filter .9s ease, opacity .9s ease; }
.mine-card.is-locked img { filter: blur(16px) saturate(.75) brightness(.9); opacity: .4; }
.mine-card.is-revealed img { filter: none; opacity: 1; animation: mine-sky-in .9s ease both; }
@keyframes mine-sky-in {
  from { opacity: .4; filter: blur(12px); }
  to { opacity: 1; filter: blur(0); }
}
.sunset-lock {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  font-family: Georgia, "Songti SC", serif;
  font-size: 9px;
  line-height: 2;
  letter-spacing: .02em;
  white-space: nowrap;
  color: rgba(23, 52, 75, .82);
  background: rgba(247, 252, 255, .5);
  z-index: 2;
  pointer-events: none;
}
body.day-theme .sunset-upload {
  color: var(--ink-mute);
  background: linear-gradient(145deg, rgba(214, 235, 249, .95), rgba(255, 255, 255, .95));
}
body.day-theme .timeline-mark { color: var(--ink-mute); }
body.day-theme .timeline-mark::before {
  background: linear-gradient(90deg, rgba(42, 90, 122, .14), var(--accent-line), rgba(42, 90, 122, .14));
}
body.day-theme .compare-result { color: var(--accent-ink) !important; }
body.day-theme .small-note { color: var(--ink-mute) !important; }
body.day-theme .action-button {
  color: #14344e;
  border-color: var(--paper-line);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 3px 10px rgba(24, 70, 110, .1);
}
body.day-theme .action-button:disabled { opacity: .45; }
body.day-theme .secondary-button { color: var(--ink-soft); border-color: rgba(20, 60, 100, .14); background: rgba(255, 255, 255, .66); }
body.day-theme .memory-grid,
body.day-theme .memory-content form,
body.day-theme .keyword-grid input,
body.day-theme .memory-content input[type="text"],
body.day-theme .memory-content input:not([type]) {
  color: #16374f;
}
body.day-theme .memory-content input {
  border-color: rgba(28, 72, 110, .22);
  background: rgba(236, 246, 253, .9);
}
body.day-theme .memory-content input:focus {
  border-color: var(--accent-line);
  background: #fff;
}
body.day-theme .memory-content input::placeholder { color: rgba(30, 70, 105, .38); }
body.day-theme .memory-comment-form {
  border-color: var(--paper-line);
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}
body.day-theme .memory-comment-form input { color: #16374f; }
body.day-theme .memory-comment-form input::placeholder { color: rgba(30, 70, 105, .38); }
body.day-theme .memory-comment-form button { color: #2a5a7a; background: rgba(42, 90, 122, .08); }
body.day-theme .memory-reaction { color: #2d4f6b; border-color: var(--paper-line); background: rgba(255, 255, 255, .8); }
body.day-theme .palette-swatch { border-color: rgba(255, 255, 255, .7); }
body.day-theme .palette-swatch.selected {
  outline: 3px solid rgba(255, 255, 255, .95);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(24, 66, 100, .3), 0 8px 18px rgba(24, 70, 110, .18);
}
/* 键盘聚焦环：白天背景下不用浏览器默认的黑框 */
body.day-theme .phone :focus-visible,
body.day-theme .memory-sheet :focus-visible,
body.day-theme .achievement-sheet :focus-visible {
  outline: 2px solid rgba(22, 72, 112, .55);
  outline-offset: 3px;
  border-radius: 8px;
}
body.day-theme .star-node:focus-visible { outline-offset: 6px; border-radius: 50%; }
body.day-theme .achievement-item { color: rgba(20, 60, 95, .2); border-color: var(--paper-line); background: rgba(255, 255, 255, .7); }
body.day-theme .achievement-item.locked { color: rgba(30, 65, 100, .24); background: linear-gradient(145deg, rgba(255, 255, 255, .8), rgba(240, 249, 255, .7)); }
body.day-theme .achievement-item.unlocked { color: var(--accent-ink); border-color: var(--accent-line); background: rgba(255, 252, 240, .9); }
body.day-theme .achievement-item.unlocked .achievement-svg { color: var(--accent-ink); filter: none; }
body.day-theme .achievement-detail { color: var(--ink-soft) !important; }
body.day-theme .achievement-unlock-card { color: var(--ink); background: var(--paper); }
body.day-theme .achievement-unlock-card h3 { color: var(--accent-ink); }

/* 年岁小数学题、聊天截图与引用句 */
body.day-theme .math-board {
  border-color: var(--paper-line);
  background: rgba(255, 255, 255, .72);
}
body.day-theme .math-board .birthday-code { color: var(--ink-mute); letter-spacing: .06em; }
body.day-theme .equation { color: #16374f; }
body.day-theme .equation input {
  color: var(--accent-ink);
  border-bottom-color: var(--accent-line);
  background: transparent;
}
body.day-theme .math-result { color: var(--accent-ink) !important; }
body.day-theme .math-board .equation { margin: 0 0 22px; }
body.day-theme .math-board .equation:last-of-type { margin-bottom: 10px; }
body.day-theme .math-hint {
  margin: -12px 0 20px;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
  text-align: center;
}
body.day-theme .equation input { width: 58px; }
body.day-theme .math-aside { color: var(--ink-mute); }
body.day-theme .lyric-quote { color: #14324c; }
body.day-theme .memory-media { border-radius: 10px; }
body.day-theme .memory-media.contain { border-radius: 12px; box-shadow: 0 6px 18px rgba(24, 70, 110, .16); }

/* 终章提示条：白天的天空很亮，原金色小字几乎看不见，改成深色字+浅白底 */
body.day-theme .firework-hint {
  z-index: 12;
  bottom: calc(196px + env(safe-area-inset-bottom));
  width: auto;
  max-width: 88%;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 20px rgba(24, 70, 110, .10);
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}

/* 6. 照片画廊（沿用横滑结构，只调浅色细节） */
body.day-theme .photo-gallery .gallery-slide img { border-color: rgba(28, 72, 110, .12); background: #eaf4fc; }
body.day-theme .photo-gallery .gallery-caption { color: var(--ink-soft); }
body.day-theme .photo-gallery .gallery-thumb { border-color: transparent; }
body.day-theme .photo-gallery .gallery-thumb.active { border-color: var(--accent-line); }
/* 05 现在分两部分：第一部分标题 + 多张缩略图横滑 */
.memory-2018-card .gallery-label {
  margin: 20px 0 -8px;
  color: var(--ink-mute);
  font-family: Georgia, "Songti SC", serif;
  font-size: 9px;
  letter-spacing: .22em;
}
body.day-theme .photo-gallery .gallery-thumbs.many {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
body.day-theme .photo-gallery .gallery-thumbs.many::-webkit-scrollbar { display: none; }
body.day-theme .photo-gallery .gallery-thumbs.many .gallery-thumb { flex: 0 0 58px; }

/* 05 改成“第一部分横滑 + 点击进入第二部分”，不再靠竖向滚动 */
body.day-theme .photo-gallery .gallery-track {
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
/* 图别占太高，让缩略图和“进入第二部分”按钮留在同一屏里；完整保留照片比例，不裁切 */
body.day-theme .memory-2018-card .gallery-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(250px, 44vh, 390px);
  background: transparent;
  border: 0;
  border-radius: 10px;
}
/* 每张照片下面的手写备注 */
body.day-theme .memory-2018-card .gallery-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.day-theme .memory-2018-card .gallery-note {
  display: block;
  min-height: 2.9em;
  margin: 9px 2px 0;
  padding: 0 8px;
  color: var(--ink-soft);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: .02em;
  text-align: center;
}
/* 颜文字不许被折行拆开 */
body.day-theme .memory-2018-card .gallery-kao-wrap {
  display: inline-block;
  white-space: nowrap;
}
body.day-theme .memory-2018-card .gallery-kao {
  display: inline;
  white-space: nowrap;
  word-break: keep-all;
}
body.day-theme .photo-gallery .gallery-thumbs { gap: 6px; }
body.day-theme .photo-gallery .gallery-thumbs .gallery-thumb { padding: 2px; }
body.day-theme .photo-gallery .gallery-thumbs .gallery-thumb img {
  display: block;
  width: 100%;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
body.day-theme .photo-gallery .gallery-thumbs.many { display: flex; }
body.day-theme .photo-gallery .gallery-thumbs .gallery-thumb { flex: 0 0 auto; }
.photo-gallery .gallery-caption { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gallery-count {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--ink-mute);
  opacity: .9;
}
.gallery-nav {
  display: flex;
  gap: 8px;
  margin: 2px 0 18px;
}
.gallery-nav-button {
  flex: 1 1 0;
  padding: 11px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-nav-button.primary {
  border-color: var(--accent-line);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(24, 70, 110, .1);
}
.gallery-nav-button:active { transform: scale(.97); }
.gallery-nav-button[hidden] { display: none; }

/* 09 合照华容道 */
.puzzle-stage { margin: 18px 0 10px; }
.puzzle-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
  aspect-ratio: 1;
  padding: 3px;
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  background: rgba(226, 240, 251, .92);
  overflow: hidden;
  transition: box-shadow .5s ease;
}
.puzzle-tile {
  padding: 0;
  border: 0;
  border-radius: 6px;
  background-image: url(assets/gallery-puzzle.jpg);
  background-size: 300% 300%;
  background-repeat: no-repeat;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(24, 70, 110, .14);
  transition: filter .2s ease, transform .18s ease;
}
.puzzle-tile:hover { filter: brightness(1.03); }
.puzzle-tile:active { transform: scale(.985); }
.puzzle-tile:focus-visible { outline: 2px solid rgba(28, 72, 110, .5); outline-offset: 1px; }
.puzzle-blank {
  border-radius: 6px;
  background: rgba(255, 255, 255, .75);
  box-shadow: inset 0 0 0 1px rgba(28, 72, 110, .1);
}
.puzzle-stage.is-solved .puzzle-board {
  box-shadow: 0 0 0 2px rgba(226, 196, 130, .75), 0 12px 30px rgba(198, 168, 108, .26);
}
.puzzle-stage.is-solved .puzzle-tile { cursor: default; }
.puzzle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
  color: var(--ink-mute);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: .08em;
}
.puzzle-reset {
  padding: 7px 14px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .9);
  font-size: 10px;
  letter-spacing: .04em;
  cursor: pointer;
}
.puzzle-ref {
  width: 34px;
  height: 34px;
  margin-left: auto;
  margin-right: 8px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--paper-line);
  opacity: .9;
}
.puzzle-win {
  margin-top: 14px;
  padding: 16px 14px 4px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  text-align: center;
}
.puzzle-win-title {
  margin: 0 0 8px !important;
  color: var(--accent-ink) !important;
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px !important;
  line-height: 1.65 !important;
}
.clue-line { margin: 0 !important; color: var(--ink-soft) !important; font-size: 12px !important; }
.clue-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(226, 194, 123, .3);
  color: #6b5327;
  font-size: 10px;
  letter-spacing: .1em;
}

/* 标题加粗一点 */
body.day-theme .intro-copy h1 {
  font-weight: 700;
  letter-spacing: .005em;
}

/* 素材清单容器：隐藏但不影响布局，只为让发布打包时带上脚本引用的图片 */
.asset-shelf {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 10 · 菜菜的祝福 */
.blessing-card .blessing-quote {
  margin: 24px 0 16px;
  padding: 2px 0 2px 16px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  line-height: 2.1;
}
.blessing-card .blessing-sign {
  margin: 0 0 8px !important;
  color: var(--ink-mute) !important;
  font-size: 12px !important;
  letter-spacing: .08em;
  text-align: right;
}

/* 7. 提示条 */
body.day-theme .toast {
  color: #14324c;
  border-color: var(--paper-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 26px rgba(24, 70, 110, .16);
}

/* 8. 信件与回家场景 */
body.day-theme .letter-view {
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 250, 226, .9), transparent 30%),
    linear-gradient(180deg, #bfe0f5 0%, #e6f3fc 62%, #f7fcff 100%);
}
body.day-theme .letter-journey {
  background:
    radial-gradient(circle at 74% 14%, rgba(255, 248, 219, .95), transparent 26%),
    linear-gradient(180deg, #6fb4e7 0%, #a6d3ef 42%, #dbeeeb 72%, #cddfc9 100%);
}
body.day-theme .journey-sky { opacity: 0; }
body.day-theme .journey-ground {
  background: linear-gradient(180deg, #b3d4a9, #8ab583 58%, #6f9c6c 100%);
  box-shadow: 0 -12px 46px rgba(40, 90, 70, .16);
}
body.day-theme .journey-caption { color: #14415f; }
body.day-theme .letter-prompt { color: rgba(40, 60, 50, .72); }

/* 9. 终章 */
body.day-theme .finale {
  background:
    radial-gradient(circle at 46% 22%, rgba(255, 246, 214, .95), transparent 42%),
    linear-gradient(180deg, #a9d3ef 0%, #dceffb 52%, #fbf7ee 100%);
}
body.day-theme .finale-copy h2 { color: var(--accent-ink); }
body.day-theme .finale-copy > p:last-child { color: rgba(25, 55, 80, .7); }
body.day-theme .finale .micro,
body.day-theme .finale-copy .micro { color: rgba(20, 50, 75, .5); }
body.day-theme .cake small { color: rgba(20, 50, 75, .55); }
body.day-theme .blow-button {
  color: #16374f;
  border-color: rgba(28, 72, 110, .18);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 6px 18px rgba(24, 70, 110, .12);
}
body.day-theme .blow-button b { color: #16374f; }
body.day-theme .birthday-bunting { color: var(--accent-ink); }

/* 终章留言框 */
body.day-theme .message-box {
  border-color: rgba(28, 72, 110, .14);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(24, 70, 110, .14);
}
body.day-theme .message-box label,
body.day-theme .message-box.all-secrets label { color: rgba(20, 50, 75, .58); }
body.day-theme .message-box input,
body.day-theme .message-box textarea {
  color: #16374f;
  border-color: rgba(28, 72, 110, .18);
  background: rgba(255, 255, 255, .92);
}
body.day-theme .message-box input::placeholder,
body.day-theme .message-box textarea::placeholder { color: rgba(30, 70, 105, .4); }
body.day-theme .message-box button {
  color: var(--accent-ink);
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, .95);
}
body.day-theme .message-box p { color: var(--ink-mute); }

/* 信里的小颜文字别被拆开 */
body.day-theme .letter-body .kao-inline,
.letter-body .kao-inline {
  display: inline-block;
  white-space: nowrap;
}

/* 10 · 填空：手写纸上的三道小题 */
body.day-theme .fill-sheet {
  margin: 22px 0 18px;
  padding: 20px 18px 14px;
  border: 1px dashed rgba(28, 72, 110, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}
body.day-theme .fill-sheet.is-solved {
  border-style: solid;
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, .9);
}
body.day-theme .fill-item + .fill-item {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px dashed rgba(28, 72, 110, .12);
}
body.day-theme .fill-question {
  margin: 0;
  color: #16374f;
  font-size: 13px;
  line-height: 2.35;
  letter-spacing: .01em;
}
body.day-theme .fill-input {
  width: 88px;
  margin: 0 4px;
  padding: 1px 4px 3px;
  border: 0;
  border-bottom: 1px solid var(--accent-line);
  border-radius: 0;
  background: transparent;
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
body.day-theme .fill-input:focus { outline: none; border-bottom-color: var(--accent-ink); }
body.day-theme .fill-input.is-wrong { border-bottom-color: #c4697a; color: #c4697a; }
body.day-theme .fill-input:disabled { color: var(--accent-ink); opacity: .9; }
body.day-theme .fill-note {
  margin: 6px 0 0;
  color: var(--ink-mute);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .02em;
}
body.day-theme .fill-status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
  text-align: center;
}
body.day-theme .fill-status.is-right { color: var(--accent-ink); }
body.day-theme .fill-answers {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.95;
  letter-spacing: .03em;
  text-align: center;
}
body.day-theme .fill-br { display: block; content: ''; margin-top: 2px; }

/* 全对以后的许愿 */
body.day-theme .wish-box {
  margin: 4px 0 18px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(28, 72, 110, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  text-align: center;
}
body.day-theme .wish-label {
  margin: 0 0 10px;
  color: var(--accent-ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 11px;
  letter-spacing: .08em;
}
body.day-theme .wish-form { display: flex; gap: 8px; align-items: center; }
body.day-theme .wish-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(28, 72, 110, .16);
  border-radius: 999px;
  background: #fff;
  color: #16374f;
  font-family: inherit;
  font-size: 11.5px;
}
body.day-theme .wish-form input::placeholder { color: rgba(30, 70, 105, .42); }
body.day-theme .wish-form input:focus { outline: none; border-color: var(--accent-line); }
body.day-theme .wish-form button {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: .06em;
  cursor: pointer;
}
body.day-theme .wish-saved {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .02em;
}
