﻿/* ==================================================================
   嵇宇 · 暖纸 / 双人双色
   参考「同频」的设计语言：纸张底色、两个人两种颜色、细线分隔
   ================================================================== */

:root,
[data-theme="sky"] {
  --bg: #e9edf3;
  --bg-deep: #e2e8f0;
  --paper: #f4f6f9;
  --card: #ffffff;
  --ink: #23272e;
  --muted: #6f7681;
  --faint: #9aa1ac;
  --line: rgba(35, 39, 46, 0.09);
  --line-2: rgba(35, 39, 46, 0.05);

  --me: #5b8fb5;
  --me-soft: #dfeaf3;
  --her: #c88a9d;
  --her-soft: #f6e4ea;

  --r: 20px;
  --shadow: 0 1px 2px rgba(30, 40, 60, 0.04), 0 6px 16px -12px rgba(30, 40, 60, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(30, 40, 60, 0.3);

  --glow-1: rgba(255, 255, 255, 0.95);
  --glow-2: rgba(223, 234, 243, 0.9);
}

[data-theme="lavender"] {
  --bg: #eee9f2;
  --bg-deep: #e7e0ec;
  --paper: #f6f3f8;
  --card: #ffffff;
  --ink: #26232b;
  --muted: #746e7c;
  --faint: #a09aa8;
  --line: rgba(38, 35, 43, 0.09);
  --line-2: rgba(38, 35, 43, 0.05);

  --me: #8a7ab5;
  --me-soft: #e8e2f4;
  --her: #c490a8;
  --her-soft: #f6e6ed;

  --glow-1: rgba(255, 255, 255, 0.95);
  --glow-2: rgba(232, 226, 244, 0.9);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(70% 55% at 18% 0%, var(--glow-1) 0%, transparent 60%),
    radial-gradient(60% 50% at 92% 100%, var(--glow-2) 0%, transparent 62%),
    var(--bg);
  background-attachment: fixed;
  transition: background 0.4s ease;
}

#app { height: 100%; }

.serif { font-family: "Songti SC", "Noto Serif SC", Georgia, serif; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

.label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin: 0 0 8px;
}

/* ============================== 登录 ============================== */

.login {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 34px 22px calc(34px + env(safe-area-inset-bottom));
  gap: 26px;
}

.brand { text-align: center; }

.brand-title {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 2.9rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--ink);
  line-height: 1.1;
}

.brand-names {
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--her);
}

.brand-sub {
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.seats { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }

.seat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.seat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--me); flex: none; }
.seat .dot.her { background: var(--her); }
.seat .dot.hollow { background: transparent; border: 1.5px dashed var(--faint); }
.seat-name { flex: 1; font-size: 1rem; letter-spacing: 0.03em; }
.seat-name.muted { color: var(--muted); font-size: 0.9rem; }

.footnote {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin: 0;
  text-align: center;
  line-height: 1.8;
}

/* ============================== 按钮 / 表单 ============================== */

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 11px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}
.btn:hover { background: #faf7f2; }
.btn:active { transform: scale(0.985); }

.btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.btn.dark:hover { background: #2c2822; }

.btn.her { background: var(--her); color: #fff; border-color: var(--her); font-weight: 600; }
.btn.me { background: var(--me); color: #fff; border-color: var(--me); font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }

.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fcfaf7;
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s, background 0.2s;
}
.input:focus { border-color: rgba(210, 121, 74, 0.5); background: #fff; }
.input.big { resize: none; }

.err { color: var(--her); font-size: 11.5px; min-height: 1.2em; margin: 2px 0; }

/* ============================== 弹层 ============================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 25, 22, 0.34);
  backdrop-filter: blur(3px);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.2s ease;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card-form {
  background: var(--card);
  border-radius: 26px 26px 0 0;
  width: 100%;
  max-width: 560px;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 -20px 50px -20px rgba(27, 25, 22, 0.3);
  animation: rise 0.26s cubic-bezier(0.22, 0.85, 0.2, 1);
  max-height: 88vh;
  overflow-y: auto;
}

.card-form h2 { margin: 2px 0 8px; font: inherit; font-size: 18px; letter-spacing: -0.02em; font-weight: 650; }

/* 弹层是纵向布局：所有直接子元素都不参与弹性拉伸，高度按内容走 */
.card-form > * { flex: 0 0 auto; }
.card-form > .row { display: flex; gap: 8px; }
.card-form > .row > .btn { flex: 1 1 0; }
.card-form > .btn { width: 100%; }

@media (min-width: 560px) {
  .overlay { align-items: center; }
  .card-form { border-radius: 22px; max-width: 420px; }
}

/* ============================== 页面骨架 ============================== */

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  background: transparent;
  position: relative;
}

.view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 20px calc(96px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.view::-webkit-scrollbar { width: 0; }

.view.chat-mode {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}
.view.chat-mode .chat { flex: 1; min-height: 0; }

/* ============================== 页头 ============================== */

.hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  margin: -6px -20px 0;
  padding: calc(26px + env(safe-area-inset-top)) 20px 26px;
  background: linear-gradient(168deg, var(--me-soft) 0%, rgba(255, 255, 255, 0) 76%);
  border-radius: 0 0 32px 32px;
}
.hdr .date { margin: 0 0 5px; font-size: 11.5px; color: var(--faint); letter-spacing: 0.04em; }
.hdr h1 { margin: 0; font-size: 25px; line-height: 1.24; letter-spacing: -0.025em; font-weight: 650; }
.hdr h1 .her-state { color: var(--her); }

.hdr::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(90deg, var(--me), var(--her) 55%, transparent);
  opacity: 0.32;
}

.hdr-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.mini-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.mini-btn:active { transform: scale(0.94); }

.ava-duo { display: flex; align-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; flex: none; padding-top: 2px; }
.ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
  color: #fff;
}
.ava.me { background: linear-gradient(150deg, #5c8aa6, #2f5771); z-index: 2; }
.ava.her { background: linear-gradient(150deg, #e79a66, #c4643a); margin-left: -10px; }

/* ============================== 卡片 ============================== */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: -0.005em; }
.card-head span { font-size: 11px; color: var(--faint); }

/* ============================== 双时钟 ============================== */

.duo { display: flex; align-items: stretch; gap: 10px; margin-bottom: 12px; }

.zone {
  flex: 1;
  border-radius: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.zone::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.zone.me::before { background: var(--me); }
.zone.her::before { background: var(--her); }
.zone .who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.zone .who i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.zone.me .who i { background: var(--me); }
.zone.her .who i { background: var(--her); }
.zone b {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.zone small { display: block; font-size: 10.5px; color: var(--faint); margin-top: 6px; }
.zone .wx { font-size: 10.5px; color: var(--muted); margin-top: 3px; min-height: 1em; }

.gap {
  width: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9.5px;
  color: var(--faint);
  text-align: center;
  flex: none;
}
.gap em { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.gap .line { width: 1px; height: 14px; border-left: 1px dashed rgba(27, 25, 22, 0.22); }

/* ============================== 24 小时轨 ============================== */

.axis { display: flex; justify-content: space-between; font-size: 9px; color: #c0b8ac; margin-bottom: 6px; padding: 0 1px; }
.rails { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.rail-row { display: flex; align-items: center; gap: 9px; }
.rail-tag { width: 26px; flex: none; font-size: 9.5px; color: var(--faint); text-align: right; }
.rail { position: relative; flex: 1; height: 12px; border-radius: 6px; background: #f2ede5; overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.seg.me { background: var(--me); opacity: 0.85; }
.seg.her { background: var(--her); opacity: 0.85; }
.nowline { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; z-index: 3; }
.nowline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}
.rail.overlap { background: #f5f1ea; }
.seg.ov { background: linear-gradient(90deg, var(--me), var(--her)); opacity: 0.9; }

.rail-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); line-height: 1.5; margin: 0; }
.rail-note b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.legend { display: flex; gap: 12px; font-size: 10px; color: var(--faint); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 3px; border-radius: 2px; display: inline-block; }

/* ============================== 倒计时（深色卡） ============================== */

.meet {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 18px;
  border-radius: var(--r);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.meet .label { color: var(--faint); }
.meet-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.meet-num { display: flex; align-items: baseline; gap: 6px; }
.meet-num b { font-size: 44px; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--me); }
.meet-num small { font-size: 12px; color: var(--muted); }
.meet-date { text-align: right; font-size: 11px; line-height: 1.6; color: var(--muted); }
.meet-date b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.meet-bar { height: 4px; border-radius: 4px; background: var(--me-soft); overflow: hidden; margin: 4px 0 8px; }
.meet-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--me), var(--her)); transition: width 0.4s ease; }
.meet-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.meet-foot b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.meet.plain { border-style: dashed; box-shadow: none; }

/* ============================== 今日一问 ============================== */

.prompt h3 { margin: 0 0 14px; font-size: 16px; line-height: 1.5; letter-spacing: -0.012em; font-weight: 600; }
.row { display: flex; gap: 8px; }

/* ============================== 信号 ============================== */

.signals { display: flex; gap: 8px; margin-bottom: 12px; }

.sig {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  transition: 0.18s;
  box-shadow: var(--shadow);
}
.sig:hover { border-color: rgba(210, 121, 74, 0.45); background: #fffcf9; }
.sig:active { transform: scale(0.97); }
.sig span { font-size: 10.5px; color: var(--muted); }
.sig svg { width: 18px; height: 18px; color: var(--her); }
.sig.hit { border-color: var(--her); background: var(--her-soft); }

/* ============================== 时刻 ============================== */

.mom {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.18s;
  box-shadow: var(--shadow);
}
.mom:hover { border-color: rgba(27, 25, 22, 0.18); }
.mom-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  font-weight: 600;
}
.dot.me { background: var(--me); }
.dot.her { background: var(--her); }
.mom-top .nm { font-size: 11.5px; font-weight: 600; }
.mom-top .tm { font-size: 10.5px; color: var(--faint); margin-left: auto; }
.art { height: 180px; border-radius: 12px; margin-bottom: 11px; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); border-radius: 12px; }
.mom p { margin: 0; font-size: 13px; line-height: 1.7; color: #3a352e; white-space: pre-wrap; word-break: break-word; }
.replies { margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 7px; }
.reply { display: flex; gap: 7px; font-size: 11.5px; line-height: 1.6; color: #5a5348; }
.reply b { flex: none; font-weight: 600; }
.reply b.me { color: var(--me); }
.reply b.her { color: var(--her); }
.reply-hint { margin-top: 10px; font-size: 11.5px; color: #b3aa9d; display: flex; align-items: center; gap: 6px; }
.mom-empty { font-size: 12px; color: var(--faint); text-align: center; padding: 30px 0; }

/* ============================== 清单 ============================== */

.mini-prog { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mini-prog .bar3 { flex: 1; height: 4px; border-radius: 3px; background: #f1ece4; overflow: hidden; }
.mini-prog .bar3 i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width 0.3s; }
.mini-prog span { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.checks { display: flex; flex-direction: column; gap: 2px; }
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  color: #3a352e;
}
.chk-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.chk:last-child { border-bottom: 0; }
.box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.4px solid rgba(27, 25, 22, 0.2);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.16s;
}
.box svg { width: 10px; height: 10px; color: #fff; opacity: 0; transition: 0.16s; }
.chk.done .box { background: var(--ink); border-color: var(--ink); }
.chk.done .box svg { opacity: 1; }
.chk.done .txt { color: #b3aa9d; text-decoration: line-through; }
.chk .txt { flex: 1; line-height: 1.4; }
.chk .tag { font-size: 9.5px; color: var(--faint); flex: none; }

/* ============================== 相册 ============================== */

.album { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.album-item { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; padding: 0; background: var(--paper); cursor: zoom-in; }
.album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-note { font-size: 11px; color: var(--faint); text-align: center; padding: 18px 0; }

/* ============================== 聊天 ============================== */

.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 10px;
}

.msg { display: flex; flex-direction: column; max-width: 80%; animation: rise 0.18s ease; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }

.bubble { padding: 9px 13px; border-radius: 17px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.mine .bubble { background: var(--me); color: #fff; border-bottom-right-radius: 5px; }
.msg.theirs .bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg .meta { font-size: 10px; color: var(--faint); margin-top: 3px; padding: 0 3px; }
.msg-media { max-width: 220px; border-radius: 14px; display: block; cursor: zoom-in; border: 1px solid var(--line); }
.audio-bubble { padding: 6px 8px; min-width: 200px; }
.audio-bubble audio { width: 100%; height: 34px; }
.read-flag { color: var(--faint); }

.composer {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  padding: 10px 0 calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  bottom: 0;
}

.icon-btn {
  flex: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 11px;
  width: 36px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn.recording { background: var(--her); border-color: var(--her); animation: pulse 1.1s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--her-soft); }
  50% { box-shadow: 0 0 0 6px rgba(210, 121, 74, 0.18); }
}

.send {
  flex: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 11px;
  padding: 10px 15px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  height: 38px;
}

/* ============================== 底部导航 ============================== */

.tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  height: 62px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 0;
  box-shadow: 0 14px 34px -14px rgba(30, 40, 60, 0.32), 0 2px 8px rgba(30, 40, 60, 0.06);
}

.tab {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #b3bac4;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  transition: color 0.16s;
  position: relative;
  padding: 0;
}
.tab svg { width: 20px; height: 20px; }
.tab.on { color: var(--ink); }
.tab.on::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--me), var(--her));
}

/* ============================== 设置 ============================== */

.settings { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.field-hint { font-size: 10.5px; color: var(--faint); }

.prefs-list { display: flex; flex-direction: column; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  color: #3a352e;
  cursor: pointer;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row input {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(27, 25, 22, 0.14);
  position: relative;
  cursor: pointer;
  transition: background 0.22s ease;
  margin: 0;
  flex: none;
}
.toggle-row input:checked { background: var(--ink); }
.toggle-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease;
}
.toggle-row input:checked::after { transform: translateX(18px); }

.palettes { display: flex; gap: 10px; }
.palette {
  flex: 1;
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--muted);
}
.palette.on { border-color: var(--ink); }
.palette .swatches { display: flex; gap: 4px; }
.palette .swatch { height: 20px; border-radius: 6px; flex: 1; }

/* ============================== 统计 ============================== */

.stats4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat4 { border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--card); }
.stat4 b { display: block; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-weight: 600; }
.stat4 span { font-size: 10.5px; color: var(--faint); }

/* ============================== 其他 ============================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  background: rgba(27, 25, 22, 0.94);
  color: var(--paper);
  font-size: 11.5px;
  padding: 9px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.24s;
  z-index: 80;
  white-space: nowrap;
  max-width: 88vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 20px;
  animation: fade 0.18s ease;
}
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox audio { width: 80vw; }

.doodle-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 25, 22, 0.4);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 70;
  padding: 20px;
}
.doodle-panel {
  background: var(--card);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.doodle-canvas { border-radius: 12px; touch-action: none; cursor: crosshair; border: 1px solid var(--line); }
.doodle-actions { display: flex; gap: 8px; }
.doodle-actions .btn { flex: 1; }

.entry-audio { width: 100%; height: 34px; margin-top: 6px; }

/* 小纸条 / 胶囊 / 情绪 等旧组件 */
.note-box { background: linear-gradient(160deg, var(--her-soft), #fdf8f2); border-radius: 14px; padding: 18px 16px; border: 1px dashed var(--line); }
.note-text { margin: 0; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: 16px; line-height: 1.8; color: var(--ink); }

.mood-row { display: flex; gap: 6px; justify-content: space-between; }
.mood-btn {
  flex: 1;
  appearance: none;
  border: 1px solid var(--line);
  background: #fcfaf7;
  border-radius: 12px;
  font-size: 17px;
  padding: 9px 0;
  cursor: pointer;
  transition: 0.16s;
}
.mood-btn.on { border-color: var(--her); background: var(--her-soft); }

.todo-section-label { font-size: 10px; letter-spacing: 0.14em; color: var(--faint); margin: 6px 0 4px; }

.suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.suggest-btn {
  appearance: none;
  border: 1px dashed var(--line);
  background: transparent;
  border-radius: 11px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.suggest-btn:hover { background: var(--paper); color: var(--ink); }

.todo-link {
  display: inline-block;
  font-size: 10.5px;
  color: var(--me);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 3px;
}

/* 删除 / 撤回 */

.del-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 15px;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
  flex: none;
}
.del-btn:hover { color: var(--her); }

.recalled-bubble {
  color: var(--faint) !important;
  font-style: italic;
  background: transparent !important;
  border: 1px dashed var(--line) !important;
  font-size: 11.5px !important;
}

.menu-item {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 13px;
  padding: 13px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.menu-item.danger { color: var(--her); border-color: var(--her-soft); }
.menu-item.cancel { color: var(--muted); }.todo-list { display: flex; flex-direction: column; gap: 2px; }
.todo-when { font-size: 10px; color: var(--her); margin-top: 2px; }
.todo-done { font-size: 9.5px; color: var(--faint); margin-top: 2px; letter-spacing: 0.08em; }
.todo-del { flex: none; appearance: none; border: none; background: none; color: var(--faint); font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1; }

/* 弹窗里的类型切换（注意：不要用 .seg，时间轴已经占用了这个类名） */
.kind-switch { display: flex; gap: 6px; width: 100%; }
.kind-btn {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--line);
  background: #fcfaf7;
  border-radius: 11px;
  padding: 9px 4px;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.kind-btn.on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }

.capsule-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.capsule { display: flex; gap: 10px; align-items: flex-start; background: #fcfaf7; border-radius: 12px; padding: 10px 12px; }
.capsule-icon { font-size: 15px; line-height: 1.4; }
.capsule-when { font-size: 11px; color: var(--muted); }
.capsule-from { font-size: 10px; color: var(--faint); margin-top: 2px; }
.capsule-text { margin-top: 6px; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.capsule.opened { background: var(--her-soft); }

.memory-box { background: #fcfaf7; border-radius: 12px; padding: 12px 14px; }
.memory-text { margin: 0; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: 14px; line-height: 1.7; color: var(--ink); }
.memory-meta { margin: 8px 0 0; font-size: 10px; color: var(--faint); }

.q-kicker { font-size: 10.5px; letter-spacing: 0.22em; color: var(--her); text-transform: uppercase; font-weight: 600; }
.q-full { margin: 0 0 4px; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--ink); }
.answer-block { background: #fcfaf7; border-radius: 12px; padding: 10px 12px; }
.answer-block p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.answer-who { font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.answer-wait { margin: 0; font-size: 11px; color: var(--faint); text-align: center; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fcfaf7; border-radius: 12px; padding: 10px 4px; }
.stat b { font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 9.5px; color: var(--faint); letter-spacing: 0.04em; }

.float { position: fixed; font-size: 20px; pointer-events: none; z-index: 70; animation: floatUp 1.1s ease-out forwards; }
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-90px) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================== 紧凑 / 折叠 ============================== */

.app.compact .view { padding-left: 14px; padding-right: 14px; }
.app.compact .hdr { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 12px; }
.app.compact .hdr h1 { font-size: 21px; }
.app.compact .card { padding: 12px; margin-bottom: 9px; }
.app.compact .card-head { margin-bottom: 10px; }
.app.compact .duo { gap: 8px; margin-bottom: 9px; }
.app.compact .zone { padding: 10px 12px; }
.app.compact .zone b { font-size: 22px; }
.app.compact .meet { padding: 14px; }
.app.compact .meet-num b { font-size: 36px; }
.app.compact .signals { gap: 6px; margin-bottom: 9px; }
.app.compact .sig { padding: 9px 6px; }

.today.collapsed .card,
.today.collapsed .signals { display: none; }
.today.collapsed .duo { margin-bottom: 0; }

/* ============================== 深夜电台 ============================== */

.radio-text {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

/* ============================== 云养猫 ============================== */

.cat { display: flex; align-items: center; gap: 14px; }
.cat-face { font-size: 44px; line-height: 1; flex: none; }
.cat-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.statbar { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); }
.statbar-label { width: 12px; flex: none; }
.statbar-track { flex: 1; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.statbar-track i { display: block; height: 100%; background: var(--me); border-radius: 3px; transition: width 0.3s; }
.statbar-val { width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.cat-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.cat-actions .btn { padding: 8px 0; font-size: 11.5px; }

/* ============================== 日历 ============================== */

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-w { text-align: center; font-size: 9.5px; color: var(--faint); padding-bottom: 4px; }
.cal-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ink);
  position: relative;
}
.cal-cell.blank { visibility: hidden; }
.cal-cell.today { background: var(--ink); color: var(--paper); }
.cal-cell.has::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--her);
}
.cal-cell.today.has::after { background: var(--paper); }
.cal-list { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.cal-item { font-size: 11.5px; color: var(--muted); }
.cal-item b { color: var(--ink); font-weight: 600; }

/* ============================== 成就 ============================== */

.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--line-2);
  font-size: 10px;
  color: var(--faint);
  text-align: center;
}
.ach.got { background: var(--her-soft); color: var(--ink); }
.ach-icon { font-size: 15px; color: var(--faint); }
.ach.got .ach-icon { color: var(--her); }

/* ============================== 年度报告 ============================== */

.report { display: flex; flex-direction: column; }
.report-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--muted);
}
.report-row:last-child { border-bottom: none; }
.report-row b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============================== 时间线 ============================== */

.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.tl-item { position: relative; margin-bottom: 16px; }
.tl-node {
  position: absolute;
  left: -17px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--paper);
}
.tl-node.me { background: var(--me); }
.tl-node.her { background: var(--her); }
.tl-meta { font-size: 10px; color: var(--faint); letter-spacing: 0.04em; }
.tl-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 3px;
  word-break: break-word;
}

/* ============================== 动画 ============================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 切页时整页淡入 */
.view > div { animation: fadeUp 0.3s cubic-bezier(0.22, 0.85, 0.2, 1) both; }

/* 卡片依次浮现 */
.card,
.tile,
.mom,
.stat4 {
  animation: fadeUp 0.34s cubic-bezier(0.22, 0.85, 0.2, 1) both;
}
.card:nth-child(2) { animation-delay: 0.03s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.09s; }
.card:nth-child(5) { animation-delay: 0.12s; }
.card:nth-child(n + 6) { animation-delay: 0.15s; }
.tile:nth-child(2) { animation-delay: 0.04s; }
.tile:nth-child(3) { animation-delay: 0.08s; }
.tile:nth-child(4) { animation-delay: 0.12s; }

/* 猫在呼吸 */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.cat-face { animation: breathe 3.2s ease-in-out infinite; transform-origin: center bottom; }

/* 标签切换时图标弹一下 */
@keyframes tabPop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-3px) scale(1.08); }
  100% { transform: translateY(0); }
}
.tab.on span { animation: tabPop 0.32s ease; }

/* 日历的「今天」呼吸 */
@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 143, 181, 0.32); }
  50% { box-shadow: 0 0 0 5px rgba(91, 143, 181, 0); }
}
.cal-cell.today { animation: todayPulse 2.4s ease-in-out infinite; }

/* 成就点亮时星星弹出 */
@keyframes starPop {
  0% { transform: scale(0.4) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.25) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.ach.got .ach-icon { animation: starPop 0.55s cubic-bezier(0.22, 0.85, 0.2, 1) both; }

/* 点「想你 / 抱一下 / 晚安」时心跳一下 */
@keyframes heartPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.sig:active svg { animation: heartPop 0.3s ease; }

/* 弹层里的按钮按下反馈更明显一点 */
.btn:active { transform: scale(0.97); }
.tile:active { transform: scale(0.975); }

/* ---------- 戳一戳：中心涟漪 ---------- */
.ripple {
  position: fixed;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2px solid var(--her);
  pointer-events: none;
  z-index: 95;
  animation: rippleOut 0.62s ease-out forwards;
}
@keyframes rippleOut {
  from { transform: scale(0.4); opacity: 0.9; }
  to { transform: scale(9); opacity: 0; }
}

/* ---------- 爱心向上飘 ---------- */
.float-heart {
  position: fixed;
  pointer-events: none;
  z-index: 70;
  color: var(--her);
  line-height: 1;
  animation: heartFloat 1.5s ease-out forwards;
}
@keyframes heartFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-110px) scale(1.25) rotate(14deg); }
}

/* ---------- 一起听：音波 ---------- */
.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; flex: none; }
.eq i {
  width: 3px;
  height: 5px;
  background: var(--paper);
  border-radius: 2px;
  animation: eqBounce 0.9s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
@keyframes eqBounce {
  0%, 100% { height: 5px; }
  50% { height: 14px; }
}

/* ---------- 消息气泡：弹性出现 ---------- */
@keyframes bubbleIn {
  0% { opacity: 0; transform: translateY(8px) scale(0.96); }
  60% { opacity: 1; transform: translateY(-1px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
.msg { animation: bubbleIn 0.28s cubic-bezier(0.22, 0.85, 0.2, 1) both; }

/* ---------- 进度条平滑增长 ---------- */
.mini-prog .bar3 i {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: width 0.55s cubic-bezier(0.22, 0.85, 0.2, 1);
}

/* ---------- 冷静室 ---------- */
.cooldown-banner {
  background: var(--her-soft);
  color: var(--her);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 10px;
  animation: fadeUp 0.3s ease both;
}

.composer .input:disabled,
.composer .send:disabled,
.composer .icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- 被抱住时的暖光 ---------- */
body.hugging::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(200, 138, 157, 0.38), transparent 70%);
  pointer-events: none;
  z-index: 99;
  animation: hugGlow 4.2s ease-in-out;
}
@keyframes hugGlow {
  0% { opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- 券 / 猜数字 / 追剧 / 习惯 ---------- */
.coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--her-soft), var(--me-soft));
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}
.coupon.used { opacity: 0.45; filter: grayscale(1); }
.coupon-type { font-size: 13px; font-weight: 600; color: var(--ink); }
.coupon-note { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.guess-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
}
.guess-row b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }

.prog-item { margin-bottom: 12px; }
.prog-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.prog-head b { font-weight: 600; }
.prog-meta { font-size: 10.5px; color: var(--muted); }

.rate-big {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--me);
  font-variant-numeric: tabular-nums;
}

/* ============================== 音乐 ============================== */

.song-today {
  padding: 12px 14px;
  background: var(--me-soft);
  border-radius: 12px;
}

.song-list { display: flex; flex-direction: column; }

.song {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.song:last-child { border-bottom: none; }

.song-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--her-soft);
  color: var(--her);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.song-main { flex: 1; min-width: 0; }
.song-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.song-note { font-size: 11px; color: var(--faint); margin-top: 4px; font-style: italic; }

.listen-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  background: rgba(44, 42, 39, 0.95);
  color: var(--paper);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 45;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.3s ease both;
}
.listen-info {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listen-info b { font-weight: 600; }
.listen-actions { display: flex; gap: 6px; flex: none; }
.listen-actions .btn {
  flex: none;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}

/* ============================== 美学升级 ============================== */

/* 纸感背景：一层柔光 + 一层底色，不再是纯色板 */
body {
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(255, 255, 255, 0.92) 0%, transparent 60%),
    radial-gradient(70% 55% at 90% 100%, var(--glow-2) 0%, transparent 62%),
    var(--bg);
}

/* 大标题：衬线 + 收紧的字距，拉开层级 */
.hdr h1 {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hdr .date {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* 分区标题：一条渐隐的线，把段落分开 */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
  font-weight: 600;
  margin: 24px 2px 12px;
  text-transform: uppercase;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* 卡片：边框更淡，阴影更柔，靠层次而不是描边 */
.card {
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(44, 42, 39, 0.03), 0 10px 26px -22px rgba(44, 42, 39, 0.22);
}

.card-head h3 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* 数字统一用等宽数字 + 紧字距 */
.meet-num b,
.zone b,
.stat4 b,
.stat b,
.rate-big {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* 按钮：圆角统一，深色按钮带一点投影 */
.btn {
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(44, 42, 39, 0.04);
}
.btn.dark {
  box-shadow: 0 6px 16px -8px rgba(44, 42, 39, 0.45);
}
.btn.ghost {
  box-shadow: none;
}

/* 输入框：聚焦时一圈淡淡的色环 */
.input:focus {
  border-color: var(--me);
  box-shadow: 0 0 0 3px var(--me-soft);
}

/* 宫格图标统一饱和度，避免 emoji 太跳 */
.tile-icon {
  font-size: 20px;
  filter: saturate(0.85);
}

/* 底部导航上方加一层渐隐，滚动时不会硬切 */
.tabbar::before { display: none; }

/* 空状态：给一个图形 + 一句引导，不再是干巴巴的灰字 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 10px;
  text-align: center;
}
.empty-emoji {
  font-size: 26px;
  opacity: 0.5;
  filter: saturate(0.7);
}
.empty-state p {
  margin: 0;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.6;
}

/* 小徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--muted);
}
.badge.her { background: var(--her-soft); color: var(--her); }
.badge.me { background: var(--me-soft); color: var(--me); }

/* ============================== 色感 ============================== */

/* 背景里两团很淡的色雾，让纸面有温度 */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -18vh;
  left: -12vw;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, var(--me-soft), transparent 68%);
  opacity: 0.9;
}
body::after {
  bottom: -20vh;
  right: -14vw;
  width: 66vw;
  height: 66vw;
  background: radial-gradient(circle, var(--her-soft), transparent 68%);
  opacity: 0.85;
}

#app { position: relative; z-index: 1; }

/* 双时钟：各自带自己的颜色 */
.zone.me {
  background: linear-gradient(158deg, var(--me-soft) 0%, #ffffff 62%);
  border-color: transparent;
}
.zone.her {
  background: linear-gradient(158deg, var(--her-soft) 0%, #ffffff 62%);
  border-color: transparent;
}

/* 倒计时：蓝到粉的渐变，有色彩但不刺眼 */
.meet {
  background: linear-gradient(135deg, var(--me-soft) 0%, #ffffff 48%, var(--her-soft) 100%);
  border-color: transparent;
}
.meet.plain {
  background: var(--card);
  border-color: var(--line);
}

/* 每张卡片的标题前加一道渐变竖线 */
.card-head h3 {
  position: relative;
  padding-left: 11px;
}
.card-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--me), var(--her));
}

/* 分区标题前加一个彩色小点 */
.section-title::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--her);
  opacity: 0.85;
  flex: none;
}

/* 统计数字再大一号，作为视觉重量 */
.stat4 b {
  font-size: 24px;
  font-weight: 650;
  color: var(--ink);
}

/* 云养猫卡片：淡淡的暖色底，让它成为视觉焦点之一 */
.card:has(.cat) {
  background: linear-gradient(160deg, #fffaf3 0%, #ffffff 55%);
  border-color: transparent;
}

/* 宫格里的图标底衬 */
.tile-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

/* 时刻卡的艺术图：加一点内发光，不再平 */
.art::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -40px 60px -30px rgba(0, 0, 0, 0.25);
}

/* ============================== 设计细节 ============================== */

/* 纸纹：一层极淡的颗粒，让纯色区块有材质 */
#app::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* 标题排版：日期前一道短横线，标题下方一道渐隐长线 */
.hdr .date::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--her);
  opacity: 0.7;
}

.hdr h1 {
  font-size: 30px;
  line-height: 1.18;
}

.hdr::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--me), var(--her) 55%, transparent);
  opacity: 0.45;
}

/* 重点卡片的顶部彩条 */
.card { position: relative; }
.card.accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--me), var(--her));
  opacity: 0.9;
}

/* 卡片右上角的装饰点 */
.card.accent::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--her);
  opacity: 0.35;
}

/* 首屏时钟：数字用衬线，像一块老表 */
.zone b {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* 倒计时数字用衬线，更有分量 */
.meet-num b {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-weight: 600;
}

/* 底部导航的选中态：加一道渐变 */
.tab.on::before {
  background: linear-gradient(90deg, var(--me), var(--her));
  width: 22px;
}

/* ============================== 聊天搜索 ============================== */

.chat-search { flex: none; }

/* ============================== 情绪历史 ============================== */

.mood-history { display: flex; flex-direction: column; gap: 5px; }

.mood-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 2px;
  border-bottom: 1px solid var(--line-2);
}
.mood-day:last-child { border-bottom: none; }

.mood-day-label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }

.mood-day-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  line-height: 1;
}
.mood-day-icons i {
  font-style: normal;
  color: var(--line);
  font-size: 10px;
}

/* ============================== 图标容器 ============================== */

.tile-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(44, 42, 39, 0.05);
  margin-bottom: 5px;
  font-size: 0;
  color: var(--muted);
  filter: none;
}
.tile-icon > span { display: block; line-height: 0; }
.tile-icon svg { display: block; }
.tile.me .tile-icon { color: var(--me); }
.tile.her .tile-icon { color: var(--her); }
.tile.paper .tile-icon { color: var(--muted); }

/* ============================== 横向滚动区 ============================== */

.hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { height: 0; }

.hcard {
  flex: 0 0 64%;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(44, 42, 39, 0.03), 0 10px 26px -22px rgba(44, 42, 39, 0.2);
  min-height: 96px;
}
.hcard-art {
  height: 74px;
  border-radius: 11px;
  flex: none;
}
.hcard-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hcard-meta { font-size: 9.5px; color: var(--faint); margin-top: auto; }

/* ============================== 空状态插画 ============================== */

.empty-state svg { opacity: 0.42; }
.empty-state .illus { font-size: 0; margin-bottom: 2px; }

/* ============================== 宫格 ============================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.tile {
  appearance: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-height: 84px;
  transition: transform 0.12s ease, background 0.2s ease;
}
.tile:active { transform: scale(0.98); }
.tile.me { background: var(--me-soft); border-color: transparent; }
.tile.her { background: var(--her-soft); border-color: transparent; }
.tile.paper { background: #fbfaf7; }

.tile-icon { font-size: 19px; line-height: 1; margin-bottom: 3px; }
.tile-title { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tile-sub {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分区标题，用来打破一整列白卡片的重复感 */
.section-title {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin: 20px 2px 10px;
}
.section-title:first-child { margin-top: 4px; }

/* 卡片投影加强：和背景拉开距离 */
.card {
  box-shadow: 0 1px 3px rgba(30, 40, 60, 0.05), 0 16px 34px -24px rgba(30, 40, 60, 0.3);
}
.zone {
  box-shadow: 0 2px 5px rgba(30, 40, 60, 0.05), 0 18px 36px -26px rgba(30, 40, 60, 0.32);
}
.tile, .hcard {
  box-shadow: 0 1px 3px rgba(30, 40, 60, 0.05), 0 14px 30px -24px rgba(30, 40, 60, 0.28);
}
/* ============================== 树 / 日记 / 护照 / 定位 ============================== */

.tree-body { display: flex; align-items: center; gap: 16px; padding: 6px 0; }
.tree-emoji {
  font-size: 46px;
  line-height: 1;
  flex: none;
  filter: drop-shadow(0 6px 10px rgba(60, 90, 60, 0.18));
  animation: breathe 4s ease-in-out infinite;
}
.tree-info { flex: 1; min-width: 0; }
.tree-days { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

.diary-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.diary-item:last-child { border-bottom: none; }
.diary-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.passport-list { display: flex; flex-wrap: wrap; gap: 8px; }
.stamp {
  width: 104px;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px dashed var(--her);
  background: var(--her-soft);
  transform: rotate(-2deg);
}
.stamp:nth-child(even) { transform: rotate(2deg); }
.stamp-city { font-size: 13px; font-weight: 650; color: var(--ink); }
.stamp-date { font-size: 10px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stamp-note { font-size: 10.5px; color: var(--muted); margin-top: 5px; line-height: 1.4; }

.loc-box {
  text-align: center;
  padding: 18px 12px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--me-soft), var(--her-soft));
}
.loc-dist {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lastyear-item { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.lastyear-item:last-child { border-bottom: none; }
/* ============================== 真心话大冒险 ============================== */

.td-modes { display: flex; gap: 6px; margin-bottom: 4px; }
.td-mode {
  flex: 1;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 11px;
  padding: 9px 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.td-mode.on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }

.td-warn {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: var(--her);
  text-align: center;
  letter-spacing: 0.04em;
}

.td-card {
  min-height: 148px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  margin-top: 10px;
  text-align: center;
}
.td-card.hidden {
  background: linear-gradient(145deg, var(--her-soft), var(--me-soft));
  border-color: transparent;
}
.td-card.has { animation: cardFlip 0.42s cubic-bezier(0.22, 0.85, 0.2, 1); }
@keyframes cardFlip {
  0% { transform: rotateY(88deg) scale(0.92); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.td-kind {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--her);
  font-weight: 600;
  margin-bottom: 8px;
}
.td-text {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.td-by { font-size: 10px; color: var(--faint); margin-top: 10px; }
.td-empty { font-size: 12px; color: var(--faint); }
/* ============================== 五子棋 / 地球 ============================== */

.gomoku-canvas {
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  touch-action: manipulation;
  cursor: pointer;
}

.globe-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}

.globe-canvas {
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 12px 24px rgba(90, 120, 150, 0.28));
}
/* ============================== 记忆翻牌 / 你画我猜 ============================== */

.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }

.mem-card {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--me-soft), var(--her-soft));
  font-size: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  padding: 0;
}
.mem-card:active { transform: scale(0.94); }
.mem-card.shown {
  background: var(--card);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(30, 40, 60, 0.12);
}
.mem-scores { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.pic-word {
  text-align: center;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding: 18px 0;
}
.pic-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.pic-frame img { width: 100%; display: block; }
.pic-answer {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--her);
  font-weight: 600;
}
/* ============================== 拼图 / 猜拳 / 成语 ============================== */

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 1;
  width: 100%;
}

.puzzle-cell {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-size: 300% 300%;
  background-repeat: no-repeat;
  transition: outline 0.15s ease, opacity 0.2s ease;
}
.puzzle-cell.sel { outline: 3px solid var(--her); outline-offset: -3px; z-index: 2; }
.puzzle-cell.done { cursor: default; }

.rps-score { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.rps-row { display: flex; gap: 10px; justify-content: center; margin: 8px 0; }

.rps-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  width: 84px;
  height: 84px;
  font-size: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}
.rps-btn:active { transform: scale(0.93); }
.rps-btn.on { border-color: var(--her); background: var(--her-soft); }
.rps-btn.disabled { opacity: 0.5; }

.idiom-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  justify-content: center;
}
.idiom-word {
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.idiom-word.last {
  background: var(--her-soft);
  border-color: transparent;
  color: var(--ink);
  font-weight: 600;
}
/* ============================== 3D 组件 ============================== */

/* 照片转盘 */
.carousel {
  perspective: 1000px;
  height: 300px;
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
  margin: 0 -20px;
}
.carousel-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.carousel-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 168px;
  margin-left: -64px;
  margin-top: -84px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -16px rgba(30, 40, 60, 0.4);
  backface-visibility: hidden;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-hint {
  text-align: center;
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* 骰子 */
.dice-wrap {
  perspective: 700px;
  display: grid;
  place-items: center;
  height: 150px;
  margin: 6px 0;
}
.dice {
  width: 72px;
  height: 72px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dice-face {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #eef1f5);
  border: 1px solid rgba(35, 39, 46, 0.08);
  box-shadow: inset 0 0 18px rgba(120, 140, 170, 0.12);
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--her);
  backface-visibility: hidden;
}
.dice-face.f1 { transform: translateZ(36px); }
.dice-face.f2 { transform: rotateY(180deg) translateZ(36px); }
.dice-face.f3 { transform: rotateY(90deg) translateZ(36px); }
.dice-face.f4 { transform: rotateY(-90deg) translateZ(36px); }
.dice-face.f5 { transform: rotateX(90deg) translateZ(36px); }
.dice-face.f6 { transform: rotateX(-90deg) translateZ(36px); }

/* 星空 */
.sky {
  width: 100%;
  height: 180px;
  display: block;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 120%, #1c2736, #0d131c 70%);
  margin-bottom: 12px;
}
/* ============================== 实时状态 ============================== */

.typing-hint {
  min-height: 15px;
  font-size: 10.5px;
  color: var(--faint);
  padding: 0 4px 4px;
  letter-spacing: 0.04em;
}

.zone .who i.on {
  background: #4caf9a;
  box-shadow: 0 0 0 3px rgba(76, 175, 154, 0.18);
}
/* ============================== 开场动画 ============================== */

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(70% 55% at 25% 20%, var(--me-soft) 0%, transparent 62%),
    radial-gradient(60% 50% at 80% 85%, var(--her-soft) 0%, transparent 62%),
    var(--bg);
  animation: splashOut 0.62s cubic-bezier(0.4, 0, 0.2, 1) 2.6s forwards;
}

@keyframes splashOut {
  to { opacity: 0; visibility: hidden; }
}

.splash-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: 31%;
  margin-top: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 68%);
  opacity: 0;
  animation: glowBurst 0.9s ease-out 0.72s forwards;
}

@keyframes glowBurst {
  0% { opacity: 0; transform: scale(0.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(2.4); }
}

/* 太阳：细线圆 + 八道短射线，用你的颜色 */
.splash-sun {
  position: absolute;
  top: 31%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 1.5px solid var(--me);
  background: var(--me-soft);
  animation: sunIn 0.95s cubic-bezier(0.22, 0.9, 0.2, 1) forwards;
}

.splash-sun::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--me) 0deg 1.4deg, transparent 1.4deg 45deg);
  -webkit-mask: radial-gradient(circle, transparent 0 54%, #000 56%);
  mask: radial-gradient(circle, transparent 0 54%, #000 56%);
  animation: sunSpin 14s linear infinite;
  opacity: 0.7;
}

@keyframes sunSpin {
  to { transform: rotate(360deg); }
}

@keyframes sunIn {
  0% { transform: translate(-210px, 64px) scale(0.45); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translate(-78px, -8px) scale(1); opacity: 1; }
}

/* 月亮：一道月牙，用她的颜色 */
.splash-moon {
  position: absolute;
  top: 31%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--her);
  -webkit-mask: radial-gradient(circle at 70% 40%, transparent 0 56%, #000 58%);
  mask: radial-gradient(circle at 70% 40%, transparent 0 56%, #000 58%);
  filter: drop-shadow(0 0 10px rgba(200, 138, 157, 0.45));
  animation: moonIn 0.95s cubic-bezier(0.22, 0.9, 0.2, 1) forwards;
}

@keyframes moonIn {
  0% { transform: translate(210px, 64px) scale(0.45) rotate(-20deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translate(48px, -8px) scale(1) rotate(0); opacity: 1; }
}

.splash-title {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  opacity: 0;
  letter-spacing: 1.1em;
  text-indent: 1.1em;
  margin-top: 6px;
  animation: titleIn 1s cubic-bezier(0.22, 0.9, 0.2, 1) 0.9s forwards;
}

@keyframes titleIn {
  0% { opacity: 0; letter-spacing: 1.1em; transform: translateY(10px); }
  100% { opacity: 1; letter-spacing: 0.32em; transform: none; }
}

.splash-line {
  width: 0;
  height: 1px;
  margin: 20px 0 18px;
  background: linear-gradient(90deg, var(--me), var(--her));
  opacity: 0.8;
  animation: lineGrow 0.75s cubic-bezier(0.22, 0.9, 0.2, 1) 1.5s forwards;
}

@keyframes lineGrow {
  to { width: 168px; }
}

.splash-names {
  font-size: 11.5px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--faint);
  opacity: 0;
  animation: namesIn 0.7s ease 1.8s forwards;
}

@keyframes namesIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #splash { animation-duration: 0.001ms; animation-delay: 0.3s; }
  .splash-dot, .splash-title, .splash-line, .splash-names, .splash-glow {
    animation-duration: 0.001ms;
  }
}