/* 小窝 · 粉色玻璃主题。外观参数（模糊 / 透明度 / 蒙层 / 背景）由设置页实时改这些变量 */
:root {
  --blur: 18px;
  --card: .5;
  --veil: .06;
  --bg-img: url(/bg/sakura.svg);

  --ink: #3a2430;
  --ink-2: #6b4a5b;
  --muted: #a1808f;
  --pink-1: #fff1f6;
  --pink-2: #ffd9e6;
  --pink-3: #ffb1cb;
  --pink-4: #f47ea6;
  --pink-5: #e05a8c;
  --berry: #9b3466;
  --mint: #6fcf97;
  --danger: #c4456a;
  --line: rgba(255, 255, 255, .62);
  --shadow: 0 8px 30px rgba(160, 55, 100, .13);
  --shadow-sm: 0 2px 10px rgba(160, 55, 100, .10);

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
}

[hidden] { display: none !important; }
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 15.5px/1.6 var(--sans); color: var(--ink); background: #ffe3ee; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

#bg { position: fixed; inset: 0; z-index: -2; background: var(--bg-img) center / cover no-repeat, linear-gradient(170deg, #ffe6ef, #f7cfe4); }
#veil { position: fixed; inset: 0; z-index: -1; background: rgba(45, 12, 30, var(--veil)); pointer-events: none; }

.glass {
  background: rgba(255, 255, 255, var(--card));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* 深色背景（星夜 / 自己上传的暗照片）：卡片更实一点、小字更深一点 */
.bg-dark { --muted: #7c5568; --ink-2: #57364a; }
.bg-dark .glass, .bg-dark .bubble.ai, .bg-dark .think { background: rgba(255, 246, 250, calc(var(--card) + .18)); }
.bg-dark .time-sep, .bg-dark .page-foot, .bg-dark .date-label { color: #fff3f8; text-shadow: 0 1px 3px rgba(60, 20, 45, .6); }
.bg-dark .page-title, .bg-dark .page-head .kicker { color: #fff6fa; text-shadow: 0 2px 8px rgba(60, 20, 45, .45); }

/* 屏幕两侧的边缘贴纸：在背景之上、卡片之下，从屏幕边缘探出头来 */
#edge { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#edge img {
  position: absolute; width: var(--s); height: auto; image-rendering: pixelated;
  filter: drop-shadow(0 3px 5px rgba(150, 50, 90, .22));
  transform: translateY(-50%) rotate(var(--r));
}
#edge img.l { left: max(calc(var(--s) * -0.32), calc((100vw - 560px) / 2 - var(--s) * 0.85)); }
#edge img.r { right: max(calc(var(--s) * -0.32), calc((100vw - 560px) / 2 - var(--s) * 0.85)); }
.no-edge #edge { display: none; }
#app { z-index: 1; }

/* 贴纸装饰 */
.deco { position: absolute; width: 46px; height: 46px; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(150, 50, 90, .25)); z-index: 2; }
.no-stickers .deco { display: none; }

/* ───────── 外框与导航 ───────── */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
.nav {
  position: sticky; top: calc(env(safe-area-inset-top) + 8px); z-index: 10;
  margin: calc(env(safe-area-inset-top) + 8px) 12px 0; padding: 8px 12px 8px 8px;
  border-radius: 18px; display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; flex: none; font-family: var(--serif); font-weight: 600; font-size: 16px; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #ffc1d6, #f47ea6); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.logo svg { width: 20px; height: 20px; }
.tabs a:first-child { margin-left: auto; }
.tabs { flex: 1; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;mask-image: linear-gradient(90deg, transparent, #000 14px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); padding: 4px 0; }
.tabs a.on { color: var(--ink); font-weight: 700; }
body.in-chat .nav { display: none; }

.view { display: none; padding: 18px 14px calc(env(safe-area-inset-bottom) + 32px); }
.view.on { display: block; animation: rise .28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 4px 14px; }
.page-title { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
.card { border-radius: 22px; padding: 18px; position: relative; margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }

/* ───────── 主页 ───────── */
.together { padding: 22px 22px 18px; }
.together .top { display: flex; justify-content: space-between; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-4); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
.big-num { font-family: var(--serif); font-size: 96px; line-height: 1; margin: 14px 0 4px; letter-spacing: -.03em; }
.big-num small { font-family: var(--sans); font-size: 16px; color: var(--ink-2); letter-spacing: 0; margin-left: 8px; }
.together .bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.since { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.bar { width: 96px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.bar b { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--pink-3), var(--pink-5)); }
.milestone { font-size: 12px; color: var(--muted); margin-top: 6px; }
.quote { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.7; color: var(--ink-2); padding: 16px 20px; }
.quote small { display: block; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); margin-top: 6px; }
.chat-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 22px; margin-bottom: 14px; position: relative;
  background: linear-gradient(120deg, rgba(255, 168, 196, .78), rgba(255, 220, 232, .62) 55%, rgba(255, 255, 255, .55));
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.chat-card .avatar { width: 44px; height: 44px; font-size: 18px; }
.chat-card .t { flex: 1; min-width: 0; }
.chat-card b { font-size: 18px; font-weight: 600; display: block; }
.chat-card span { font-size: 12.5px; color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border-radius: 22px; padding: 16px; position: relative; min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile .ini { position: absolute; top: 14px; left: 16px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--pink-5); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.tile b { font-size: 16px; }
.tile span { font-size: 12px; color: var(--muted); }

/* ───────── 聊天 ───────── */
.chat-view.on { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 0; }
.chat-head {
  flex: none; display: flex; align-items: center; gap: 10px; position: relative;
  margin: calc(env(safe-area-inset-top) + 8px) 10px 0; padding: 8px 10px; border-radius: 20px; z-index: 3;
}
.avatar { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; font-family: var(--serif); font-weight: 600; color: #fff; background: linear-gradient(135deg, #ffc1d6, #f47ea6 70%, #e05a8c); box-shadow: var(--shadow-sm); }
.who { flex: 1; min-width: 0; }
.who-name { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.2; }
.who-status { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex: none; }
.who-status.typing { color: var(--pink-5); }
.who-status.typing i { background: var(--pink-4); animation: pulse 1.2s infinite; }
.who-status.warn { color: var(--danger); }
.who-status.warn i { background: var(--danger); }
.head-deco { width: 34px; height: 34px; right: 52px; top: -10px; transform: rotate(14deg); }
.icon-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); display: grid; place-items: center; padding: 0; }
.icon-btn:active { background: rgba(255, 255, 255, .6); }
.icon-btn.small { width: 28px; height: 28px; }

#scroller { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 12px 16px; }
.load-more { display: block; margin: 4px auto 10px; border: 0; background: rgba(255, 255, 255, .7); color: var(--ink-2); font-size: 12.5px; padding: 5px 14px; border-radius: 999px; }
.time-sep { text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-2); margin: 18px 0 8px; text-shadow: 0 1px 2px rgba(255, 255, 255, .8); }
.msg { display: flex; flex-direction: column; gap: 6px; margin: 7px 0; }
.msg.me { align-items: flex-end; }
.msg.ai { align-items: flex-start; }
.bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 20px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; animation: pop .2s ease-out;
}
.bubble.ai {
  background: rgba(255, 255, 255, calc(var(--card) + .32)); color: var(--ink); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow-sm); border-bottom-left-radius: 7px;
}
.bubble.me { background: linear-gradient(135deg, #f78fb2, #e45f8f); color: #fff; border-bottom-right-radius: 7px; box-shadow: 0 4px 14px rgba(224, 90, 140, .3); }
.bubble .q { display: block; border-left: 3px solid var(--pink-4); padding: 1px 8px; margin: 1px 0 6px; font-size: 13.5px; color: var(--ink-2); background: rgba(255, 228, 238, .65); border-radius: 5px; }
.bubble.me .q { border-color: rgba(255, 255, 255, .8); color: #fff; background: rgba(255, 255, 255, .18); }
.bubble.pressed { filter: brightness(.95); }
@keyframes pop { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
.quote-chip { max-width: 72%; font-size: 12px; color: var(--ink-2); background: rgba(255, 255, 255, .72); padding: 4px 10px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticker { width: 124px; height: 124px; object-fit: contain; -webkit-touch-callout: none; user-select: none; filter: drop-shadow(0 4px 8px rgba(150, 50, 90, .18)); }
.images { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 78%; }
.images img { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; background: var(--pink-1); box-shadow: var(--shadow-sm); }
.images.single img { width: auto; height: auto; max-width: 100%; max-height: 280px; }

/* 思考过程：云朵形状的“心声”气泡，左下角两个小圆点像漫画里的思考泡 */
.think {
  position: relative; max-width: 84%; margin: 0 0 8px 12px; border-radius: 22px; padding: 9px 14px 10px; cursor: pointer;
  background: rgba(255, 250, 252, calc(var(--card) * .8 + .1)); border: 1.5px dashed rgba(244, 126, 166, .6);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
.think::before, .think::after { content: ""; position: absolute; border-radius: 50%; background: inherit; border: 1.5px dashed rgba(244, 126, 166, .6); }
.think::before { width: 11px; height: 11px; left: -6px; bottom: -8px; }
.think::after { width: 6px; height: 6px; left: -13px; bottom: -14px; }
.think-h { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--pink-5); }
.think-h .who { font-family: var(--sans); letter-spacing: 0; font-size: 12px; font-weight: 600; }
.mood { font-family: var(--sans); letter-spacing: 0; font-size: 11.5px; padding: 0 8px; border-radius: 999px; background: rgba(255, 214, 228, .95); color: var(--berry); }
.think-h .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-4); }
.think.live .think-h .dot { animation: pulse 1s infinite; }
.think-h .sp { flex: 1; }
.think-lang { border: 0; background: rgba(255, 255, 255, .8); color: var(--ink-2); font-family: var(--sans); font-size: 11px; letter-spacing: 0; padding: 1px 8px; border-radius: 999px; }
.think-b { font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-top: 4px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.think.open .think-b { display: block; -webkit-line-clamp: unset; max-height: 50vh; overflow-y: auto; }

.tool { max-width: 80%; font-size: 12px; color: var(--ink-2); background: rgba(255, 255, 255, .7); padding: 3px 11px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool.running::after { content: " …"; }
.tool.error { color: var(--danger); }
.note { font-size: 12px; color: var(--ink-2); padding: 2px 4px; }
.drawing { margin: 0; max-width: 78%; width: 280px; border-radius: 20px; padding: 8px; cursor: zoom-in; background: rgba(255, 255, 255, calc(var(--card) + .3)); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.drawing img { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; }
.drawing figcaption { padding: 6px 4px 2px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 1px; }
.drawing figcaption b { font-family: var(--serif); color: var(--ink); font-size: 14px; }
.envelope { display: flex; align-items: center; gap: 12px; text-align: left; max-width: 78%; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255, 214, 228, .9), rgba(255, 255, 255, .8)); box-shadow: var(--shadow-sm); }
.envelope .seal { font-size: 26px; }
.envelope b { display: block; font-family: var(--serif); font-size: 15px; }
.envelope small { color: var(--muted); font-size: 12px; }
.sys-card { margin: 12px auto; max-width: 86%; width: fit-content; text-align: center; font-size: 12.5px; color: var(--ink-2); background: rgba(255, 255, 255, .72); padding: 6px 12px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sys-card.error, .sys-card.warn { color: var(--danger); }
.sys-card .drawing, .sys-card .envelope { max-width: 100%; text-align: left; }
.link-btn { border: 0; background: none; color: var(--pink-5); font-weight: 600; padding: 0 4px; font-size: 13px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-4); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.composer { flex: none; margin: 0 10px calc(env(safe-area-inset-bottom) + 8px); padding: 8px; border-radius: 24px; }
.row { display: flex; align-items: flex-end; gap: 4px; }
#input { flex: 1; min-width: 0; resize: none; border: 0; background: rgba(255, 255, 255, .78); color: var(--ink); border-radius: 18px; padding: 9px 14px; font: inherit; font-size: 16px; line-height: 1.4; max-height: 140px; outline: none; }
.send-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #f78fb2, #e05a8c); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(224, 90, 140, .35); }
.stop-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--pink-5); background: rgba(255, 255, 255, .7); color: var(--pink-5); display: grid; place-items: center; }
.quote-bar { display: flex; align-items: center; gap: 6px; margin: 0 4px 6px; padding: 4px 4px 4px 10px; font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .7); border-radius: 12px; border-left: 3px solid var(--pink-4); }
.quote-bar span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray { display: flex; gap: 6px; overflow-x: auto; padding: 0 4px 8px; }
.tray .thumb { position: relative; flex: none; }
.tray img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; display: block; }
.tray .thumb.uploading img { opacity: .45; }
.tray .x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 13px; line-height: 22px; padding: 0; }
.sticker-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; max-height: 36vh; overflow-y: auto; padding: 10px 2px 2px; }
.sticker-panel button { border: 0; background: rgba(255, 255, 255, .78); border-radius: 14px; padding: 4px; aspect-ratio: 1; display: grid; place-items: center; -webkit-touch-callout: none; user-select: none; }
.sticker-panel img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sticker-panel .add { border: 1.5px dashed var(--pink-3); background: transparent; color: var(--pink-4); font-size: 26px; }
.sticker-panel .hint { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); text-align: center; padding: 4px; }

/* ───────── 回忆（日历） ───────── */
.cal { padding: 16px 14px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.cal-nav { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); display: grid; place-items: center; font-size: 15px; color: var(--ink-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.cal-grid .wd { font-family: var(--mono); font-size: 10px; color: var(--muted); padding-bottom: 6px; }
.day { position: relative; border: 0; background: none; height: 40px; border-radius: 12px; font-size: 14px; color: var(--ink-2); display: grid; place-items: center; }
.day.out { visibility: hidden; }
.day.chat { color: var(--ink); font-weight: 700; }
.day.diary::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--pink-4); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--pink-3); }
.day.sel { background: linear-gradient(135deg, #f78fb2, #c8467b); color: #fff; box-shadow: 0 4px 12px rgba(200, 70, 123, .35); }
.day.sel::after { background: #fff; }
.entry-date { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255, 255, 255, .7); padding-bottom: 10px; margin-bottom: 10px; }
.entry-date b { font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 500; }
.entry-text { white-space: pre-wrap; line-height: 1.85; font-size: 14.5px; }
.entry-meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.mini-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.mini-list div { font-size: 13px; background: rgba(255, 255, 255, .6); border-radius: 12px; padding: 7px 10px; }
.thumbs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: none; }

/* ───────── 相册 ───────── */
.seg { display: inline-flex; background: rgba(255, 255, 255, .6); border-radius: 999px; padding: 3px; gap: 2px; margin: 0 4px 14px; }
.seg button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.upload { width: 100%; border-radius: 22px; padding: 20px; text-align: center; margin-bottom: 16px; border: 1.5px dashed rgba(244, 126, 166, .55) !important; position: relative; }
.upload .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .9); display: grid; place-items: center; margin: 0 auto 8px; color: var(--pink-5); }
.upload b { display: block; font-size: 14px; font-weight: 500; }
.date-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-2); margin: 6px 6px 8px; display: flex; align-items: center; gap: 8px; }
.date-label::after { content: ""; flex: 1; border-top: 1px dashed rgba(160, 80, 120, .3); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ph { border-radius: 20px; overflow: hidden; padding: 0; text-align: left; border: 1px solid var(--line); }
.ph .img { aspect-ratio: 4 / 5; background: repeating-linear-gradient(135deg, rgba(255, 214, 228, .9) 0 12px, rgba(255, 236, 243, .9) 12px 24px); display: block; width: 100%; object-fit: cover; }
.ph .meta { padding: 9px 11px 10px; }
.ph .cap { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .cmt { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.ph .cmt em { font-style: normal; color: var(--pink-5); font-weight: 600; }
.ph .cmt.pending { color: var(--muted); animation: pulse 1.6s infinite; }
.ph .tm { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 4px; }
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.art-card { border-radius: 20px; padding: 8px; text-align: left; border: 1px solid var(--line); }
.art-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #fff; display: block; }
.art-meta { padding: 6px 4px 2px; display: flex; flex-direction: column; }
.art-meta b { font-family: var(--serif); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-meta small { color: var(--muted); font-size: 11px; }
.page-foot { text-align: center; color: var(--ink-2); font-family: var(--serif); font-style: italic; font-size: 13px; margin: 22px 0 8px; text-shadow: 0 1px 2px rgba(255, 255, 255, .8); }

/* ───────── 信 / 列表 / 表单 ───────── */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; }
.item .grow { flex: 1; min-width: 0; }
.item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item .x { flex: none; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 4px; }
.item.current { box-shadow: 0 0 0 2px var(--pink-4), var(--shadow); }
.item b { font-family: var(--serif); font-size: 15px; }
.badge { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 7px; background: rgba(255, 214, 228, .9); color: var(--berry); margin-left: 4px; vertical-align: 1px; }
.letter-paper {
  border-radius: 10px; padding: 28px 22px 32px; font-family: var(--serif); line-height: 32px; font-size: 16px;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(244, 126, 166, .18) 31px 32px), rgba(255, 252, 250, .93);
  box-shadow: var(--shadow); position: relative;
}
.letter-paper h2 { font-size: 20px; margin: 0 0 16px; line-height: 32px; text-align: center; letter-spacing: .06em; font-weight: 600; }
.letter-paper p { margin: 0; white-space: pre-wrap; text-indent: 2em; }
.letter-paper .sign { text-align: right; margin-top: 24px; }
.letter-paper .sign-date { text-align: right; color: var(--muted); font-size: 13px; }

.sec { border-radius: 22px; padding: 16px 16px 18px; margin-bottom: 14px; position: relative; }
.sec > .kicker { display: block; margin-bottom: 4px; }
.sec h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 2px; }
.sec .hint { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 10px; }
.field { width: 100%; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .78); color: var(--ink); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 16px; outline: none; }
.field:focus { border-color: var(--pink-3); }
textarea.field { resize: vertical; line-height: 1.55; }
label.lbl { display: block; font-size: 12.5px; color: var(--ink-2); margin: 12px 0 4px; }
.btn { border: 0; border-radius: 14px; padding: 10px 18px; background: linear-gradient(135deg, #f78fb2, #e05a8c); color: #fff; font-weight: 600; margin-top: 12px; box-shadow: 0 4px 12px rgba(224, 90, 140, .3); }
.btn.ghost { background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn.danger { background: rgba(255, 255, 255, .7); color: var(--danger); box-shadow: none; border: 1px solid currentColor; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14.5px; }
.toggle small { display: block; font-size: 12px; color: var(--muted); }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(160, 120, 140, .3); transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .2s; }
.switch input:checked + span { background: var(--pink-4); }
.switch input:checked + span::after { transform: translateX(18px); }
.slider { margin: 12px 0 4px; }
.slider .lab { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.slider code { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.slider .val { font-family: var(--mono); font-size: 12px; color: var(--pink-5); }
input[type=range] { width: 100%; accent-color: var(--pink-4); margin-top: 6px; }
.radio-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.radio-row button { border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .6); border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--ink-2); }
.radio-row button.on { background: linear-gradient(135deg, #f78fb2, #e05a8c); color: #fff; border-color: transparent; }
.bg-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.bg-opt { aspect-ratio: 3 / 5; border-radius: 14px; border: 2px solid transparent; background-size: cover; background-position: center; padding: 0; position: relative; box-shadow: var(--shadow-sm); }
.bg-opt.on { border-color: var(--pink-5); }
.bg-opt span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; padding: 3px; background: rgba(255, 255, 255, .78); border-radius: 0 0 12px 12px; color: var(--ink-2); }
.bg-opt.add { border: 1.5px dashed var(--pink-3); background: rgba(255, 255, 255, .5); color: var(--pink-5); font-size: 26px; display: grid; place-items: center; }
.code { font-family: var(--mono); font-size: 12px; word-break: break-all; background: rgba(255, 255, 255, .72); padding: 8px 10px; border-radius: 12px; user-select: all; }
.warn { color: var(--danger); font-size: 13px; }
pre.prompt { white-space: pre-wrap; font-size: 12px; background: rgba(255, 255, 255, .72); padding: 10px; border-radius: 12px; max-height: 50vh; overflow: auto; }
details.more summary { cursor: pointer; color: var(--ink-2); font-size: 13px; margin-top: 10px; }
.sub-head { display: flex; align-items: center; gap: 6px; margin: 2px 0 12px; }
.sub-head .t { flex: 1; font-family: var(--serif); font-size: 22px; }

/* ───────── 弹层 ───────── */
#sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(60, 20, 40, .3); animation: fade .15s; }
.sheet-panel {
  position: absolute; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 8px); max-width: 520px; margin: 0 auto; max-height: 86vh; overflow-y: auto;
  background: rgba(255, 248, 251, .95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 24px; padding: 8px; box-shadow: 0 10px 40px rgba(120, 40, 80, .25); animation: up .2s ease-out;
}
.sheet-title { font-size: 13px; color: var(--muted); text-align: center; padding: 8px 12px 6px; white-space: pre-wrap; word-break: break-word; }
.sheet-btn { display: block; width: 100%; border: 0; background: none; padding: 13px; font-size: 16px; border-radius: 14px; }
.sheet-btn:active { background: rgba(255, 214, 228, .6); }
.sheet-btn.danger { color: var(--danger); }
.sheet-btn.cancel { color: var(--muted); }
.sheet-form { padding: 4px 8px 8px; }
.sheet-form .preview { display: block; margin: 6px auto 0; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
#viewer { position: fixed; inset: 0; z-index: 50; background: rgba(40, 14, 28, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px); animation: fade .15s; }
#viewer img { max-width: 100%; max-height: 66vh; object-fit: contain; border-radius: 12px; background: #fff; }
#viewer .cap { color: #fdeef4; text-align: center; margin-top: 14px; font-size: 14px; max-width: 520px; }
#viewer .cap b { display: block; font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
#viewer .cap em { font-style: normal; color: #ffb1cb; }
#viewer .vbtns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
#viewer .vbtns button { border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fdeef4; border-radius: 999px; padding: 6px 16px; font-size: 14px; }
#toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 70px); transform: translateX(-50%); z-index: 60; background: rgba(58, 36, 48, .92); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 14px; max-width: 80vw; text-align: center; animation: fade .15s; }

/* 登录页 */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login form { width: 100%; max-width: 330px; text-align: center; border-radius: 28px; padding: 30px 24px; position: relative; }
.login h1 { font-family: var(--serif); font-weight: 500; letter-spacing: .1em; margin: 12px 0 4px; }
.login p { color: var(--ink-2); margin: 0 0 22px; font-size: 14px; }
.login img { width: 72px; height: 72px; border-radius: 20px; box-shadow: var(--shadow); }
.login .btn { width: 100%; margin-top: 12px; padding: 12px; }
.login .err { color: var(--danger); font-size: 13px; min-height: 20px; margin-top: 8px; }

/* ───────── 语音 ───────── */
#micBtn.on { color: var(--pink-5); }
.hold-btn { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 15px; font-weight: 600; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.hold-btn.active { background: linear-gradient(135deg, #f78fb2, #e05a8c); color: #fff; }
#recOverlay { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; pointer-events: none; background: rgba(58, 36, 48, .12); }
.rec-card { width: 200px; padding: 18px 16px 14px; border-radius: 26px; background: rgba(255, 241, 246, .96); box-shadow: var(--shadow); text-align: center; }
#recOverlay.cancel .rec-card { background: rgba(255, 225, 230, .97); }
#recOverlay.cancel .rec-tip { color: var(--danger); font-weight: 600; }
.rec-wave { height: 40px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.rec-wave i { width: 4px; height: 4px; border-radius: 2px; background: var(--pink-5); transition: height .08s; }
.rec-time { font-family: var(--mono); font-size: 20px; color: var(--ink); margin-top: 6px; }
.rec-tip { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.voice-wrap { display: flex; flex-direction: column; gap: 4px; max-width: 80%; }
.voice-wrap.me { align-items: flex-end; }
.voice { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #f78fb2, #e45f8f); box-shadow: 0 4px 14px rgba(224, 90, 140, .3); }
.voice.me { flex-direction: row-reverse; border-bottom-right-radius: 7px; }
.voice.ai { background: rgba(255, 255, 255, .9); color: var(--pink-5); border-bottom-left-radius: 7px; }
.vplay { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 11px solid currentColor; flex: none; }
.voice.ai .vplay { border-right: 0; border-left: 11px solid currentColor; }
.voice.playing .vplay { width: 10px; height: 13px; border: 0; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; }
.vbars { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 3px; overflow: hidden; }
.vbars i { width: 3px; border-radius: 2px; background: currentColor; opacity: .75; }
.voice.playing .vbars i { animation: vb .9s infinite ease-in-out; }
.voice.playing .vbars i:nth-child(2n) { animation-delay: .2s; }
.voice.playing .vbars i:nth-child(3n) { animation-delay: .4s; }
@keyframes vb { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.15); } }
.vdur { font-size: 13px; font-family: var(--mono); flex: none; }
.vtext { font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .78); padding: 6px 10px; border-radius: 12px; white-space: pre-wrap; word-break: break-word; }
.vtext.dim { color: var(--muted); }
.vtone { font-size: 11.5px; color: var(--berry); background: rgba(255, 214, 228, .9); padding: 1px 9px; border-radius: 999px; }
.msg.pending { opacity: .6; }

/* ───────── 位置 ───────── */
.loc-card { display: block; width: 262px; max-width: 80%; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.map { position: relative; overflow: hidden; max-width: 100%; background: #f3e9ee; }
.map img { position: absolute; width: 256px; height: 256px; max-width: none; filter: saturate(.75) sepia(.12) hue-rotate(-12deg); }
.map .pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #f78fb2, #e05a8c); border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(160, 55, 100, .35); }
.map .osm { position: absolute; right: 4px; bottom: 2px; font-size: 8.5px; color: rgba(58, 36, 48, .55); background: rgba(255, 255, 255, .6); padding: 0 3px; border-radius: 3px; }
.loc-t { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.loc-t b { font-family: var(--serif); font-size: 14.5px; }
.loc-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-t .wx { font-size: 12px; color: var(--berry); }

/* ───────── 一起听 ───────── */
.song-card { width: 270px; max-width: 82%; border-radius: 18px; padding: 10px; background: linear-gradient(135deg, rgba(255, 228, 238, .95), rgba(255, 255, 255, .9)); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.song-note { font-size: 13px; color: var(--ink-2); margin: 0 2px 8px; font-family: var(--serif); font-style: italic; }
.song-main { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.song-main img, .cover-ph { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 2px 8px rgba(160, 55, 100, .2); background: var(--pink-2); display: grid; place-items: center; color: var(--pink-5); font-size: 22px; }
.song-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.song-t b { font-family: var(--serif); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-t em { font-style: normal; font-size: 11.5px; color: var(--berry); }
.song-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.song-acts button { border: 0; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; background: rgba(255, 255, 255, .9); color: var(--pink-5); font-weight: 600; }
.song-row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.song-hero { display: flex; gap: 14px; align-items: flex-start; }
.song-hero > img { width: 108px; height: 108px; border-radius: 18px; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.song-hero h3 { font-size: 19px; }
.song-hero .btn-row .btn { margin-top: 8px; padding: 8px 14px; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chips span { font-size: 11.5px; padding: 1px 9px; border-radius: 999px; background: rgba(255, 214, 228, .9); color: var(--berry); }
.lyrics { display: flex; flex-direction: column; gap: 2px; max-height: 56vh; overflow-y: auto; }
.ly { display: flex; gap: 10px; align-items: baseline; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.ly small { display: block; font-size: 12px; color: var(--muted); }
.ly .lt { font-family: var(--mono); font-size: 10.5px; color: var(--muted); flex: none; width: 34px; }
.ly.on { background: rgba(255, 214, 228, .85); color: var(--ink); font-weight: 600; }
.ly:active { background: rgba(255, 255, 255, .7); }

/* ───────── 设置里的快捷指令教程 ───────── */
.steps { margin: 6px 0 4px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.steps code { font-family: var(--mono); font-size: 12px; background: rgba(255, 255, 255, .8); padding: 0 5px; border-radius: 5px; color: var(--berry); }
.code-row { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.code-row .code { flex: 1; min-width: 0; }

/* ───────── 表情面板：搜索 + 分组 ───────── */
.sticker-panel { display: block; }
.stk-search { width: 100%; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .85); padding: 8px 12px; font: inherit; font-size: 15px; outline: none; color: var(--ink); }
.stk-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.stk-tabs::-webkit-scrollbar { display: none; }
.stk-tabs button { flex: none; border: 0; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; background: rgba(255, 255, 255, .7); color: var(--ink-2); white-space: nowrap; }
.stk-tabs button.on { background: linear-gradient(135deg, #f78fb2, #e05a8c); color: #fff; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 30vh; overflow-y: auto; padding: 4px 2px 2px; }
.stk-grid button { border: 0; background: rgba(255, 255, 255, .78); border-radius: 14px; padding: 4px; aspect-ratio: 1; display: grid; place-items: center; -webkit-touch-callout: none; user-select: none; }
.stk-grid img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.stk-grid .add { border: 1.5px dashed var(--pink-3); background: transparent; color: var(--pink-4); font-size: 26px; }
.stk-grid .hint { grid-column: 1 / -1; }
.sticker-panel > .hint { font-size: 12px; color: var(--ink-2); text-align: center; padding: 6px 4px 0; }

/* ───────── 我们的空间 ───────── */
.sp-compose textarea { resize: vertical; }
.sp-compose .btn-row .btn { margin-top: 8px; }
.post { border-radius: 22px; padding: 14px 14px 10px; margin-bottom: 12px; }
.post-h { display: flex; align-items: center; gap: 10px; }
.pav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f78fb2, #e05a8c); flex: none; }
.pav.me { background: linear-gradient(135deg, #9fb4ff, #7d8cf0); }
.pwho { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pwho b { font-size: 14.5px; }
.pwho small { font-size: 11.5px; color: var(--muted); }
.pdate { font-size: 12px; color: var(--berry); margin: 8px 0 0; }
.ptext { margin: 8px 2px 4px; font-size: 15px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.ptext.serif { font-family: var(--serif); }
.psongs { font-size: 12px; color: var(--ink-2); background: rgba(255, 255, 255, .6); border-radius: 10px; padding: 5px 9px; margin: 6px 0 2px; }
.sp-imgs { display: grid; gap: 4px; margin: 8px 0 2px; }
.sp-imgs.n1 { grid-template-columns: minmax(0, 72%); }
.sp-imgs.n2 { grid-template-columns: 1fr 1fr; }
.sp-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.sp-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--pink-1); }
.sp-imgs.n1 img { aspect-ratio: auto; max-height: 300px; }
.post-acts { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.post-acts button { border: 0; background: none; color: var(--ink-2); font-size: 13px; padding: 4px 8px; border-radius: 999px; }
.post-acts button.on { color: var(--pink-5); font-weight: 600; }
.post-acts .del { color: var(--muted); font-size: 12px; }
.post-acts .sp { flex: 1; }
.ailike { font-size: 11.5px; color: var(--berry); background: rgba(255, 214, 228, .9); border-radius: 999px; padding: 0 8px; }
.pcmts { margin-top: 6px; background: rgba(255, 255, 255, .55); border-radius: 14px; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; }
.pcmt { font-size: 13.5px; line-height: 1.5; color: var(--ink); -webkit-touch-callout: none; }
.pcmt b { font-weight: 600; color: var(--pink-5); }
.pcmt.me b { color: #6f7fe6; }
.pcmt .sp-imgs { grid-template-columns: repeat(3, 64px); }
.pcmt-box { margin-top: 8px; }
.pcmt-row { display: flex; gap: 6px; align-items: center; }
.pcmt-row .field { flex: 1; min-width: 0; padding: 8px 12px; font-size: 15px; }
.pcmt-box .tray img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }

/* ───────── 陪伴模式 ───────── */
.cmp-pill { display: flex; align-items: center; gap: 6px; margin: 6px auto 0; width: fit-content; max-width: 92%; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; color: var(--berry); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-sm); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.cmp-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.6s infinite; flex: none; }
.cmp-card h3 { font-size: 18px; }
