/* paper.css — 暖白信笺（最后加载，覆盖旧样式）：令牌、六套温和对话色、列表卡片、信纸对话页、「我们」卡片、翻书页与信封转场。深色模式仍走 base.css 的深色块。 */

/* ---------- 1. 令牌：Claude 式暖白 ---------- */
:root {
  --bg: #F5F2EA;
  --surface: #FFFDF8;
  --surface-2: #FAF9F5;
  --ink: #1F1E1D;
  --ink-2: #4A4740;
  --muted: #8A867C;
  --placeholder: #8A867C;
  --line: #E6E1D6;
  --line-2: #EFEBE2;
  --paper: #FFFDF8;
  --desk: #ECE9E1;
  --glass: rgba(245, 242, 234, .86);
  --shadow-1: 0 6px 18px rgba(90, 60, 30, .06);
  --shadow-2: 0 14px 34px rgba(90, 60, 30, .12);
  --clay: #D97757;
  --clay-d: #B85C3E;
  --clay-soft: #F6E2D8;
  --env: #F1E8D8;
  --env-d: #E6D9C2;
  --env-l: #F5EEE2;
  --rule: rgba(217, 119, 87, .07);
}

/* ---------- 品牌字 Missive：衬线体（楷书写英文不好看），字号随之收小 ---------- */
.au-word, .app-splash-word, .app-intro-brand, .me-foot-mark, .me-about-word { font-family: var(--font-display); font-weight: 600; letter-spacing: .5px; }
.au-word { font-size: 56px; }
.app-splash-word, .app-intro-brand { font-size: 60px; }
.me-foot-mark { font-size: 18px; }
.me-about-word { font-size: 40px; }
.au-wm { font-family: var(--font-display); font-weight: 600; font-size: 300px; right: -30px; bottom: -40px; }

/* ---------- 2. 对话色：六套温和暖色（旧主题名映射过来，存储不变；只写 .t-x，深色模式的规则优先级更高会覆盖它） ---------- */
.t-sakura   { --c-soft: #EFC9BF; --c-deep: #B5544A; --c-wm: #B5544A; }
.t-apricot  { --c-soft: #EBD9AE; --c-deep: #956F22; --c-wm: #956F22; }
.t-sky      { --c-soft: #C9D8E3; --c-deep: #4D6D85; --c-wm: #4D6D85; }
.t-mint     { --c-soft: #CCDCC4; --c-deep: #5B7752; --c-wm: #5B7752; }
.t-peach    { --c-soft: #EFCDB5; --c-deep: #A65F3A; --c-wm: #A65F3A; }
.t-lavender { --c-soft: #D6CFE3; --c-deep: #6C5E8C; --c-wm: #6C5E8C; }
.t-celadon  { --c-soft: #C8DDD8; --c-deep: #4E7770; --c-wm: #4E7770; }

/* ---------- 3. 列表：标题衬线、聊天行收进一张圆角卡片 ---------- */
.ls-title { font-family: var(--font-display); font-weight: 600; letter-spacing: 1px; }
.ls-label { letter-spacing: 2px; color: var(--muted); }
.ls-sep { display: none; }
.ls-list { margin: 0 12px 28px; padding: 0; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ls-list:empty { box-shadow: none; }
.ls-main { background: var(--surface); padding: 14px 16px 14px 12px; }
.ls-name { font-family: var(--font-display); font-weight: 600; }
.ls-badge, .ls-badge-slot > * { background: var(--clay); color: #fff; }

/* 底栏：活动 tab 下一颗陶土色小圆点（替换三色短条），角标陶土色 */
.app-tabbar { border-top-color: var(--line-2); }
.app-tab-ind > i { width: 4px; height: 4px; border-radius: 2px; background: var(--clay); }
.app-tab-ind > i + i { display: none; }
.app-tab-badge { background: var(--clay); color: #fff; }

/* ---------- 4. 对话页：信纸横线、素净页头、气泡 ---------- */
.app-view.ct-root { background: var(--surface) repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); }
.ct-head-bg { background-color: color-mix(in srgb, var(--surface) 94%, transparent); border-radius: 0; box-shadow: 0 1px 0 var(--line); }
.ct-wm { display: none; }
.ct-head { color: var(--ink); }
.ct-name { font-family: var(--font-display); font-weight: 600; }
.ct-row--them .ct-plain { padding: 9px 14px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); border-radius: 18px 18px 18px 6px; font-family: var(--font-display); font-size: 15.5px; line-height: 1.6; }
.ct-row--me .ct-bubble { background: var(--clay-soft); color: #4A2E22; border-radius: 18px 18px 6px 18px; font-size: 15.5px; }
.ct-card { background: var(--surface-2); border-radius: 24px; }
.ct-card:has(.ct-input:focus) { box-shadow: 0 0 0 1.5px var(--clay), var(--shadow-1); }
/* 伴侣对话的信头 */
.pp-lhead { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 20px 10px; color: var(--muted); font-size: 12px; letter-spacing: 1px; pointer-events: none; }
.pp-lhead .pp-to { font-family: var(--font-display); font-size: 20px; color: var(--ink); letter-spacing: 2px; }
.pp-lhead .pp-wx { margin-left: auto; width: 28px; height: 28px; font-size: 15px; }

/* ---------- 5. 「我们」卡片 ---------- */
.pp-wax { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #FFF4EC; background: radial-gradient(circle at 35% 30%, #E89778, var(--clay) 55%, var(--clay-d)); box-shadow: 0 2px 6px rgba(184, 92, 62, .35); font-family: var(--font-char); line-height: 1; }
.pp-couple { position: relative; display: block; width: auto; margin: 6px 16px 20px; padding: 16px 18px 14px; border-radius: 24px; background: var(--surface); overflow: hidden; cursor: pointer; text-align: left; color: var(--ink);
  box-shadow: 0 10px 28px rgba(120, 80, 50, .08), 0 0 0 1px rgba(217, 119, 87, .16); transition: transform .25s cubic-bezier(.22, .8, .2, 1); }
.pp-couple:active { transform: scale(.985); }
.pp-couple::before { content: ""; position: absolute; left: -10%; right: -10%; top: -62px; height: 120px; border-bottom: 1px solid rgba(217, 119, 87, .18);
  clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(180deg, rgba(246, 226, 216, .55), rgba(246, 226, 216, 0)); }
.pp-row { position: relative; display: flex; align-items: center; justify-content: space-between; }
.pp-lab { font-size: 11px; letter-spacing: 3px; color: var(--clay-d); font-weight: 600; }
.pp-days { font-family: var(--font-display); font-size: 13px; color: var(--ink-2); }
.pp-days b { font-size: 20px; font-weight: 600; color: var(--clay-d); margin: 0 2px; }
.pp-couple[hidden], .pp-badge[hidden], .pp-status[hidden] { display: none; }
.pp-status { position: relative; text-align: center; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-wax .ui-char { color: inherit; font-size: inherit; }
.pp-date { margin-left: 10px; font-size: 12px; color: var(--muted); letter-spacing: 1px; align-self: flex-end; padding-bottom: 6px; margin-right: auto; white-space: nowrap; }
.pp-pair { position: relative; display: flex; align-items: flex-start; justify-content: center; margin: 16px 0 8px; }
.pp-who { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 116px; }
.pp-who .ui-avatar > .ui-char { --size: 44px; }
.pp-pair .pp-tm { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-top: 2px; }
.pp-pair .pp-city { font-size: 11px; color: var(--muted); }
.pp-link { position: relative; flex: 1; max-width: 80px; height: 1px; margin-top: 24px; background: repeating-linear-gradient(90deg, rgba(217, 119, 87, .55) 0 4px, transparent 4px 8px); }
.pp-link .pp-wax { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.pp-acts { position: relative; display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.pp-chip { display: flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); cursor: pointer; transition: transform .16s; }
.pp-chip:active { transform: scale(.96); }
.pp-last { position: relative; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; }
.pp-last span { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-last small { font-size: 11px; color: var(--muted); }
.pp-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--clay); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- 6. 翻书页 ---------- */
.app.pp-book { perspective: 1500px; }
.app.pp-book .app-tabs { z-index: 4; transform-style: preserve-3d; transform-origin: 0 50%; overflow: visible; will-change: transform; }
.app.pp-book .app-tabs > :not(.pp-back) { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pp-back { position: absolute; inset: 0; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none;
  background: var(--surface) repeating-linear-gradient(180deg, transparent 0 31px, rgba(217, 119, 87, .06) 31px 32px); box-shadow: inset -30px 0 40px -20px rgba(90, 60, 30, .18); }
.pp-shade { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(60, 40, 20, 0), rgba(60, 40, 20, .10) 60%, rgba(60, 40, 20, .22)); }
.pp-pshade { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(60, 40, 20, .25), rgba(60, 40, 20, 0) 70%); }

/* ---------- 7. 信封与信纸（伴侣专属转场层），所有角都磨圆 ---------- */
.pp-ov { position: absolute; inset: 0; z-index: 5; pointer-events: auto; overflow: hidden; }
.pp-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); opacity: 0; }
.pp-envw { position: absolute; inset: 0; will-change: transform, opacity; }
.pp-eb, .pp-ef, .pp-fl, .pp-lt, .pp-seal { position: absolute; }
.pp-eb, .pp-ef, .pp-fl { width: 300px; height: 196px; }
.pp-eb { border-radius: 18px; z-index: 1; background: var(--env) repeating-linear-gradient(135deg, rgba(217, 119, 87, .09) 0 6px, transparent 6px 12px); box-shadow: 0 22px 46px rgba(90, 60, 30, .16), 0 2px 6px rgba(90, 60, 30, .06); }
.pp-ef { z-index: 3; background: linear-gradient(180deg, var(--env-l), var(--env)); clip-path: path('M0 6 Q0 0 6 2 L130 96 Q150 110 170 96 L294 2 Q300 0 300 6 V178 Q300 196 282 196 H18 Q0 196 0 178 Z'); }
.pp-fl { z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; }
.pp-fl i { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; clip-path: path('M0 18 Q0 0 18 0 H282 Q300 0 300 18 L176 104 Q150 122 124 104 Z'); }
.pp-fl .pp-fr { background: linear-gradient(180deg, var(--env-l), var(--env-d)); }
.pp-fl .pp-bk { background: var(--clay-soft) repeating-linear-gradient(90deg, rgba(217, 119, 87, .15) 0 3px, transparent 3px 9px); transform: rotateX(180deg); }
.pp-seal { width: 36px; height: 36px; z-index: 5; font-size: 20px; box-shadow: 0 3px 10px rgba(184, 92, 62, .35); }
.pp-lt { width: 270px; height: 330px; z-index: 2; perspective: 1200px; filter: drop-shadow(0 10px 22px rgba(90, 60, 30, .12)); }
.pp-lp { position: absolute; left: 0; width: 100%; height: 110px; background: var(--surface) repeating-linear-gradient(180deg, transparent 0 21px, rgba(217, 119, 87, .09) 21px 22px); transform-style: preserve-3d; }
.pp-lp.t { top: 0; transform-origin: 50% 100%; border-radius: 16px 16px 0 0; }
.pp-lp.m { top: 110px; }
.pp-lp.b { top: 220px; transform-origin: 50% 0; border-radius: 0 0 16px 16px; }
.pp-lp.m span { position: absolute; left: 20px; top: 14px; font-family: var(--font-display); font-size: 15px; color: var(--ink-2); }

/* ---------- 8. 深色：手动深色（data-theme="dark"）和跟随系统深色（无 data-theme，只靠媒体查询）两种都要写 ---------- */
:root[data-theme="dark"] { --env: #3A322B; --env-d: #312A24; --env-l: #433A32; --clay-soft: #4A3128; --rule: rgba(217, 119, 87, .10); }
:root[data-theme="dark"] .pp-couple::before { opacity: .18; }
:root[data-theme="dark"] .ct-row--me .ct-bubble { background: var(--c-soft); color: var(--c-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --env: #3A322B; --env-d: #312A24; --env-l: #433A32; --clay-soft: #4A3128; --rule: rgba(217, 119, 87, .10); }
  :root:not([data-theme="light"]) .pp-couple::before { opacity: .18; }
  :root:not([data-theme="light"]) .ct-row--me .ct-bubble { background: var(--c-soft); color: var(--c-ink); }
}

/* ---------- 9. 情侣空间：两地时钟、双向状态、今天的小惦记、Susurro 开关 ---------- */
html:not(.fr-full) .me-row[data-act="susurro"] { display: none; }
.pp-me { cursor: pointer; }
.pp-status i { font-style: normal; color: var(--muted); }
.pp-note { position: relative; margin: -4px 0 12px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--clay-soft) 60%, transparent);
  font-family: var(--font-display); font-size: 13.5px; color: var(--clay-d); text-align: center; }
.pp-note[hidden] { display: none; }
.pp-acts { gap: 6px; }
.pp-acts .pp-chip { padding: 0 11px; font-size: 12px; }
.pp-form { display: flex; flex-direction: column; gap: 10px; }
.pp-form-t { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.pp-pre { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-in { height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.pp-in:focus { outline: none; border-color: var(--clay); }
.ui-btn.pp-ok { background: var(--clay); color: #fff; margin-top: 4px; }

/* ---------- 10. 打卡邮票：报平安 / 晚安 / 我爱你；两条短色条 = 我和 ta 今天点过没有 ---------- */
.pp-rite { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.pp-rite[hidden], .pp-chip[hidden] { display: none; }
.pp-stamp { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--clay) 38%, transparent);
  background: var(--surface-2); color: var(--ink-2); font: inherit; cursor: pointer; transition: background-color .3s, border-color .3s; }
.pp-stamp b { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--ink); }
.pp-stamp .pp-n { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pp-stamp.is-done { background: color-mix(in srgb, var(--clay-soft) 70%, transparent); border-style: solid; border-color: color-mix(in srgb, var(--clay) 30%, transparent); }
.pp-stamp.is-done b, .pp-stamp.is-done .pp-n { color: var(--clay-d); }
.pp-bars { display: flex; gap: 4px; margin-top: 3px; }
.pp-bars i { display: block; width: 12px; height: 3px; border-radius: 1.5px; background: var(--line); transition: background-color .3s; }
.pp-bars i.on { background: var(--c-soft); }
:root[data-theme="dark"] .pp-bars i { background: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .pp-bars i.on { background: var(--clay); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pp-bars i { background: rgba(255, 255, 255, .1); }
  :root:not([data-theme="light"]) .pp-bars i.on { background: var(--clay); }
}

/* ---------- 11. 私密照片 / 视频：封着火漆的信封；看一次的全屏层；聊天里的视频 ---------- */
.ct-sealed { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 200px; max-width: 100%; padding: 30px 14px 12px; border-radius: 6px;
  background: var(--env); box-shadow: 0 6px 16px rgba(90, 60, 30, .12), inset 0 0 0 1px var(--env-d); transform: rotate(var(--rot, 0deg)); overflow: hidden; text-align: center; }
.ct-seal-flap { position: absolute; left: 0; right: 0; top: 0; height: 46px; background: var(--env-l); clip-path: polygon(0 0, 100% 0, 50% 100%); box-shadow: inset 0 -1px 0 var(--env-d); }
.ct-seal-flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(90, 60, 30, .06)); }
.ct-seal-wax { position: absolute; left: 50%; top: 26px; display: grid; place-items: center; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E58C6E, var(--clay) 55%, var(--clay-d)); color: #FFF4EE; box-shadow: 0 2px 6px rgba(140, 60, 30, .35), inset 0 0 0 3px rgba(255, 255, 255, .12); }
.ct-seal-h { margin-top: 34px; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 2px; color: var(--ink); }
.ct-seal-t { font-size: 12px; color: var(--ink-2); }
.ct-seal-b { display: flex; gap: 6px; margin-top: 6px; }
.ct-pv { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--clay) 40%, transparent); background: var(--surface); color: var(--clay-d); font: inherit; font-size: 12.5px; cursor: pointer; }
.ct-pv.is-main { background: var(--clay); border-color: var(--clay); color: #fff; }
.ct-pv:disabled { opacity: .55; }
.ct-video .ct-frame { min-height: 120px; background: #2A2723; }
.ct-video .ui-polaroid-img { height: var(--ct-ph, 200px); }
.ct-vplay { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(31, 30, 29, .55); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ct-vplay svg { margin-left: 3px; }
.ct-vdur { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 9px; background: rgba(31, 30, 29, .55); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.pv-layer { position: absolute; inset: 0; z-index: 95; display: flex; flex-direction: column; background: #0E0D0C; color: #F5F2EA; pointer-events: auto; -webkit-user-select: none; user-select: none; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px 18px; }
.pv-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #E9C9BA; }
.pv-x { color: #F5F2EA; }
.pv-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 16px); }
.pv-stage img, .pv-stage video { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-touch-callout: none; }
.pv-load { font-size: 14px; color: #B8B2A6; }

/* 安全码 */
.cs-safe { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.cs-safe-t, .cs-safe-s { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.cs-safe-s { font-size: 12px; color: var(--muted); }
.cs-safe-code { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; padding: 16px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 17px; letter-spacing: 1px; text-align: center; color: var(--ink); }

/* 聊天背景：自己的照片（只在这台设备上），叠一层纸色让字看得清 */
.app-view.ct-root.bg-photo { background: linear-gradient(color-mix(in srgb, var(--surface) 62%, transparent), color-mix(in srgb, var(--surface) 62%, transparent)), var(--ct-bgimg) center / cover no-repeat; }

/* ---------- 12. 偷看一眼：小家伙从屏幕下沿探出头 ---------- */
.pk-layer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; justify-content: center; height: 110px; overflow: hidden; pointer-events: none; }
.pk-bob { align-self: flex-end; transform: translateY(100%); }
.pk-layer.is-mine .pk-bob { transform: translateY(100%) scale(.8); }
.pk-svg { display: block; color: var(--ink); filter: drop-shadow(0 -2px 8px rgba(90, 60, 30, .15)); }
.pk-head { fill: var(--env); stroke: var(--clay-d); stroke-width: 2; }
.pk-ear { fill: var(--clay-soft); stroke: var(--clay-d); stroke-width: 2; stroke-linejoin: round; }
.pk-eye { fill: currentColor; }
.pk-blush { fill: var(--clay); opacity: .35; }
.pk-paw { fill: var(--env-l); stroke: var(--clay-d); stroke-width: 2; }

/* ---------- 13. 「我」页、拼贴页：信笺版（纸色卡片、衬线标题、字 + 短色条、陶土细节；个人颜色只留在字和色条上） ---------- */
.me-header .ui-title-lg, .mo-head .ui-title-lg { font-family: var(--font-display); letter-spacing: 1px; }
.me-card { border-radius: 24px; background: var(--surface); box-shadow: 0 10px 28px rgba(120, 80, 50, .08), 0 0 0 1px rgba(217, 119, 87, .16); }
.me-card::before { content: ""; position: absolute; left: -10%; right: -10%; top: -62px; height: 120px; border-bottom: 1px solid rgba(217, 119, 87, .18); pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(180deg, rgba(246, 226, 216, .55), rgba(246, 226, 216, 0)); }
.me-skin { background: color-mix(in srgb, var(--c-soft) 55%, var(--surface)); color: var(--ink); }   /* 名片：纸色里调进所选颜色，换色时擦除照常 */
.me-card::before { z-index: 3; }
.me-char { color: var(--c-deep); }
.me-char-box::after { content: ""; display: block; width: 30px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--c-soft); box-shadow: inset 0 0 0 1px rgba(31, 29, 26, .06); transition: background-color var(--dur-3) var(--ease-out); }
.me-name { font-family: var(--font-display); }
.me-edit { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.me-card.is-editing .me-edit { background: var(--clay); color: #fff; }
.me-stats { border-top: 1px dashed var(--line); }
.me-stat-n { color: var(--clay-d); }
.me-stat-l { color: var(--muted); opacity: 1; }
.me-sec-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--ink-2); }
.me-group { border-radius: 18px; box-shadow: 0 4px 14px rgba(90, 60, 30, .04); }
.me-sw[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--clay); }
.mo-sub { font-family: var(--font-display); letter-spacing: 1px; }
.mo-compose { border-radius: 20px; border-color: rgba(217, 119, 87, .16); box-shadow: 0 6px 18px rgba(90, 60, 30, .06);
  background: var(--surface) repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); }
.mo-post { border-radius: 20px; border-color: rgba(217, 119, 87, .14); box-shadow: 0 6px 18px rgba(90, 60, 30, .05); }
.mo-name { font-family: var(--font-display); font-weight: 600; }
.mo-text { font-family: var(--font-display); font-size: 15.5px; line-height: 1.75; }
.mo-actions { padding-top: 2px; border-top: 1px dashed var(--line); }
:root[data-theme="dark"] .me-card::before { opacity: .18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .me-card::before { opacity: .18; } }

/* 自己发的私密照片 / 视频：照常显示，下面一条小签（有人申请时在这里同意） */
.ct-pvwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 100%; }
.ct-pvbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: 260px; padding: 6px 10px; border-radius: 12px;
  background: var(--env); box-shadow: inset 0 0 0 1px var(--env-d); font-size: 12px; color: var(--ink-2); }
.ct-pvbar > svg { flex: none; color: var(--clay-d); }
.ct-pvask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ---------- 14. 换色：页头留一层所选颜色的半透明（透出下面的信纸），擦除用同一个颜色，结束时停在这层上，不再闪回白色 ---------- */
.ct-head-bg { border-radius: 0 0 26px 26px; background-color: color-mix(in srgb, var(--c-soft) 74%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.2); backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--c-deep) 14%, transparent), 0 10px 26px rgba(40, 28, 18, .08); }
.ct-wipe { background: color-mix(in srgb, var(--c-soft) 74%, var(--surface)); }
/* 流光：一层很淡的光泽在页头里慢慢游走（所选颜色的深浅 + 一道柔光），减少动态时不动 */
.ct-head-bg::before { content: ""; position: absolute; inset: -60% -50%; pointer-events: none; opacity: .85;
  background:
    radial-gradient(32% 46% at 22% 38%, color-mix(in srgb, var(--c-deep) 20%, transparent), transparent 72%),
    radial-gradient(30% 40% at 76% 62%, rgba(255, 255, 255, .42), transparent 70%),
    linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .22) 48%, transparent 58%);
  mix-blend-mode: soft-light; animation: ct-sheen 16s ease-in-out infinite alternate; }
.ct-head-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .12); }
@keyframes ct-sheen {
  0% { transform: translate3d(-9%, -3%, 0) rotate(-2deg); }
  50% { transform: translate3d(5%, 4%, 0) rotate(3deg); }
  100% { transform: translate3d(11%, -2%, 0) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) { .ct-head-bg::before { animation: none; } }
:root[data-theme="dark"] .ct-head-bg::before { opacity: .5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ct-head-bg::before { opacity: .5; } }
