/* 手机版视觉修订：暖杏橙、奶油底和更清楚的触控层级。 */
body.mobile {
  --bg: #fff7ee;
  --phone-bg: #fff9f2;
  --ink: #3c3029;
  --ink-2: #67594f;
  --ink-3: #837366;
  --line: #eadbcd;
  --line-soft: #f3e8dc;
  --primary: #e87b42;
  --primary-deep: #ae4b24;
  --primary-soft: #fff0e4;
  --todo: #e87b42;
  --todo-soft: #fff0e4;
  --card: #fffefa;
}

body { letter-spacing: 0; }
button, input, textarea { font: inherit; }
button, .tab, .me-row, .nav-item, .seg-item, .quick-input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible, .tab:focus-visible, .nav-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
button:disabled { opacity: .58; cursor: wait; }

/* 演示导览使用现有手机版信息架构。 */
.stage { gap: 34px; }
.nav-panel { width: 242px; position: sticky; top: 66px; }
.nav-panel h1 { font-size: 19px; letter-spacing: 0; }
.nav-panel .sub { font-size: 12px; line-height: 1.65; color: var(--ink-2); }
.nav-group { font-size: 10px; letter-spacing: 1.4px; color: var(--ink-2); margin-top: 18px; }
.nav-item { min-height: 38px; font-size: 12.5px; color: var(--ink-2); }
.nav-item.active { color: var(--primary-deep); }
.nav-tip { font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }

/* 主要内容保持温暖，但让文字和点击目标足够清楚。 */
.phone { background: var(--phone-bg); }
.scroll { scrollbar-width: none; }
.kb-note, .mini, .b2, .j-sec-b, .me-card .sub,
.sec-count, .tl-date-hint, .tl2-sub { color: var(--ink-2); }
.kb-note { font-size: 12.5px; line-height: 1.6; }
.btn, .me-row, .topbar-back { min-height: 44px; }
.btn { font-size: 14px; font-weight: 600; }
.topbar { background: linear-gradient(to bottom, var(--phone-bg) 74%, rgba(250,247,241,0)); }
.topbar-back { width: 40px; height: 40px; min-width: 40px; min-height: 40px; flex: 0 0 40px; box-sizing: border-box; }
.topbar-title { font-size: 15px; font-weight: 650; }

body.mobile { background: var(--phone-bg); }
body.mobile .phone { max-width: 520px; }
body.mobile .scroll {
  padding: 24px 20px calc(104px + env(safe-area-inset-bottom));
}
body.mobile .screen:has(.topbar) .scroll { padding-top: 76px; }
body.mobile.auth-locked .screen:not(#s-auth),
body.mobile.auth-locked .tabbar,
body.mobile.auth-locked .float-star,
body.mobile.auth-locked .ob-top { display: none !important; }
body.mobile .topbar-back svg { width: 18px; height: 18px; flex: none; }
body.mobile #s-auth .scroll { padding-top: max(48px, env(safe-area-inset-top)); }
body.mobile .voice-hero {
  min-height: 220px;
  height: auto;
  padding: 23px 24px;
  margin-top: 18px;
  border-radius: 24px;
  background: linear-gradient(128deg, #f1a36b 0%, #e8844b 53%, #d56738 100%);
  box-shadow: 0 15px 30px rgba(208, 99, 48, .20);
}
body.mobile .voice-hero .v-title { font-size: 25px; line-height: 1.3; text-shadow: 0 1px 8px rgba(128, 56, 24, .18); }
body.mobile .voice-hero .v-main { font-size: 14px; }
body.mobile .voice-hero .v-sub { font-size: 11.5px; opacity: .95; }
body.mobile .type-line { margin-top: 18px; gap: 8px; flex-wrap: wrap; }
body.mobile .type-line > span:first-child { width: 100%; font-size: 11.5px; color: var(--ink-2); }
body.mobile .type-chip { font-size: 11.5px; color: var(--ink-2); }
body.mobile .quick-input {
  min-height: 52px;
  margin-top: 16px;
  border-radius: 14px;
  border-color: #ead7c7;
  background: #fffefa;
  box-shadow: 0 5px 18px rgba(139, 82, 44, .06);
}
body.mobile .quick-input .q-placeholder { color: var(--ink-2); font-size: 13.5px; }
body.mobile .section-head { margin: 30px 0 15px; align-items: end; gap: 12px; }
body.mobile .sec-kicker { color: var(--primary-deep); font-size: 10px; letter-spacing: 1.2px; }
body.mobile .sec-title { color: var(--ink); font-size: 21px; line-height: 1.25; }
body.mobile .sec-count { font-size: 11.5px; }
body.mobile .seg-item { min-height: 38px; font-size: 13px; }
body.mobile .tl-date-row { margin-top: 14px; }
body.mobile .tl2-txt, body.mobile .todo-row { color: var(--ink); font-size: 13.5px; }
body.mobile .tl2-time { color: var(--ink-2); font-size: 11px; }
body.mobile .tl2-card { border-color: var(--line); }
body.mobile .empty-illu div { color: var(--ink-2); font-size: 12.5px; }

/* 底部导航成为稳定的触控锚点。 */
body.mobile .tabbar {
  left: 0; right: 0; bottom: 0;
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  border-color: var(--line);
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 -7px 26px rgba(117, 71, 38, .09);
}
body.mobile .tab { min-height: 50px; color: var(--ink-2); font-size: 11.5px; }
body.mobile .tab.active { color: var(--primary-deep); font-weight: 650; background: rgba(255, 237, 220, .72); }
body.mobile .tab .tab-text { font-size: 11.5px; }
body.mobile .tab.active::after { display: none; }

/* 账本：金额、期间、明细三级信息。 */
body.mobile .ledger-sum {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f0a16b 0%, #e78148 52%, #d36535 100%);
  box-shadow: 0 15px 30px rgba(207, 99, 46, .19);
}
body.mobile .ledger-sum .amt { font-size: 34px; font-weight: 700; line-height: 1.25; }
body.mobile .ledger-sum .lab { font-size: 13px; }
body.mobile .ledger-sum .sub { font-size: 12px; opacity: .95; }
body.mobile .range-tabs { gap: 4px; }
body.mobile .range-tabs .rt {
  min-height: 34px; display: inline-flex; align-items: center;
  padding: 5px 9px; font-size: 11px; color: #fff;
}
body.mobile .range-tabs .rt.on { color: var(--primary-deep); }
body.mobile .ov-card, body.mobile .bill-item,
body.mobile .me-group, body.mobile .todo-paper {
  background: #fffefa;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(112, 70, 42, .055);
}
body.mobile .bill-item .b1 { font-size: 14px; color: var(--ink); }
body.mobile .bill-item .b2 { font-size: 11.5px; color: var(--ink-2); }
body.mobile .bill-item .bamt { font-size: 15px; color: var(--ink); }
body.mobile .lg-group { font-size: 12px; color: var(--ink-2); }
body.mobile .ovb-line, body.mobile .stack-legend { color: var(--ink-2); }

/* 手账、我的、设置和隐私共享一套列表节奏。 */
body.mobile .j-sec-b { font-size: 14px; line-height: 1.75; }
body.mobile .me-group { padding: 2px 0; border-radius: 18px; }
body.mobile .me-card { min-height: 66px; }
body.mobile .me-row { min-height: 55px; font-size: 14px; color: var(--ink); }
body.mobile .me-gt { color: var(--ink-2); font-size: 11.5px; }
body.mobile .me-row .badge-num, body.mobile .me-row .soon { color: var(--ink-2); }
body.mobile .profile-card, body.mobile .me-card-group, body.mobile .search-bar,
body.mobile .journal.paper {
  border-color: var(--line);
  background: #fffefa;
  box-shadow: 0 6px 22px rgba(112, 70, 42, .06);
}
body.mobile .profile-card { gap: 14px; }
body.mobile .me-card { min-height: 63px; }
body.mobile .me-s { color: var(--ink-2); font-size: 12px; }
body.mobile .me-sec-t { color: var(--primary-deep); }
body.mobile .journal.paper { border-radius: 18px; }
body.mobile .paper-rule { background: var(--primary); }
body.mobile .paper-date, body.mobile .paper-kicker { color: var(--primary-deep); }
body.mobile .search-bar { border-radius: 15px; min-height: 50px; }
body.mobile .search-bar input { font-size: 16px; }
body.mobile #search-go { min-height: 36px; padding: 6px 12px; border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); font-size: 12px; font-weight: 650; cursor: pointer; }
body.mobile .profile-link { border: 0; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); padding: 8px 11px; font-size: 12px; cursor: pointer; white-space: nowrap; }
body.mobile .sr-q .chip { min-height: 36px; display: inline-flex; align-items: center; }
body.mobile .search-intro { margin-top: 25px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 17px; background: #fffefa; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
body.mobile .search-intro strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 15px; }
body.mobile .empty-illu { padding: 24px 0 12px; }
body.mobile .empty-illu img { width: min(58%, 216px); }
body.mobile .empty-cta { max-width: 220px; margin: 14px auto 0; }
body.mobile .toast { bottom: calc(90px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); white-space: normal; text-align: center; line-height: 1.5; }
body.mobile:not([data-cur="s-ledger"]):not([data-cur="s-diary"]) .float-star { display: none; }
body.mobile .wave i { animation-play-state: paused; height: 11px; opacity: .35; }
body.mobile .voice-mic.recording ~ .voice-cancel { color: var(--primary-deep); }
body.mobile #s-voice:has(.voice-mic.recording) .wave i { animation-play-state: running; opacity: .9; }
body.mobile #s-voice:has(.voice-mic.recording) .voice-text .cursor { display: inline-block; }
body.mobile #s-voice .voice-text .cursor { display: none; }
body.mobile .voice-mic { background: linear-gradient(145deg, #ed8e54, #d76c3a); cursor: pointer; }
body.mobile .voice-cancel { color: var(--ink-2); }

.nn-sheet-mask { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(55, 38, 26, .34); backdrop-filter: blur(3px); }
.nn-sheet-panel { width: 100%; max-width: 520px; max-height: min(78dvh, 720px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px calc(28px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fffaf4; border: 1px solid #f0dfd0; box-shadow: 0 -12px 42px rgba(87, 48, 27, .18); }
.nn-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.nn-sheet-head b { font-size: 17px; color: var(--ink); }
.nn-sheet-close { border: 0; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); min-width: 50px; min-height: 36px; padding: 6px 12px; font-size: 12px; cursor: pointer; }

/* 设置页：清楚的分组、功能说明和状态反馈。 */
body.mobile .settings-hero { position: relative; overflow: hidden; padding: 24px 23px; min-height: 140px; border-radius: 22px; border: 1px solid #f3d5bc; background: linear-gradient(130deg, #fff3e7 0%, #ffdfc3 100%); box-shadow: 0 9px 26px rgba(169, 99, 52, .08); }
body.mobile .settings-hero::after { content: '✦'; position: absolute; right: 18px; top: -12px; font-size: 118px; line-height: 1; color: rgba(231, 125, 63, .16); transform: rotate(-17deg); pointer-events: none; }
body.mobile .settings-hero-kicker { position: relative; z-index: 1; color: var(--primary-deep); font-size: 11px; font-weight: 700; letter-spacing: 2px; }
body.mobile .settings-hero-title { position: relative; z-index: 1; margin-top: 12px; color: var(--ink); font: 700 27px/1.22 "Songti SC", "STSong", "SimSun", serif; }
body.mobile .settings-hero-sub { position: relative; z-index: 1; margin-top: 10px; color: var(--ink-2); font-size: 12px; }
body.mobile .settings-section-title { display: flex; align-items: center; gap: 9px; margin: 24px 3px 10px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .4px; }
body.mobile .settings-section-title::before { content: ''; width: 4px; height: 15px; border-radius: 4px; background: var(--primary); }
body.mobile .settings-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fffefa; box-shadow: 0 7px 22px rgba(112, 70, 42, .055); }
body.mobile #s-settings .me-row.setting-row { display: flex; align-items: center; justify-content: flex-start; min-height: 70px; gap: 12px; padding: 13px 15px; border: 0; background: transparent; color: var(--ink); }
body.mobile #s-settings .me-row.setting-row + .me-row.setting-row { border-top: 1px solid var(--line-soft); }
body.mobile #s-settings .setting-row:active:not(.is-static):not(.is-unavailable) { background: #fff6ed; }
body.mobile .setting-icon { width: 39px; height: 39px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 18px; font-weight: 600; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
body.mobile .si-bday, body.mobile .si-profile, body.mobile .si-guide { background: #fff0e4; color: #d76935; }
body.mobile .si-cycle, body.mobile .si-privacy { background: #ecf3ec; color: #66816c; }
body.mobile .si-access, body.mobile .si-version { background: #f2edf5; color: #8c7793; }
body.mobile .si-photo, body.mobile .si-import { background: #edf2f6; color: #708796; }
body.mobile .si-password, body.mobile .si-switch { background: #f7efe5; color: #9d7752; }
body.mobile .si-logout { background: #fbeeea; color: #ba6952; }
body.mobile .setting-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
body.mobile .setting-copy strong { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.25; }
body.mobile .setting-copy small { color: var(--ink-2); font-size: 11.5px; line-height: 1.35; }
body.mobile .setting-chevron { margin-left: auto; color: #ad9b8c; font-size: 20px; line-height: 1; }
body.mobile .setting-value { margin-left: auto; color: var(--ink-2); font-size: 12px; font-weight: 600; }
body.mobile .setting-soon { margin-left: auto; flex: none; border: 1px solid #e9d8c8; border-radius: 999px; padding: 4px 7px; background: #fbf4eb; color: var(--ink-2); font-size: 10px; }
body.mobile #s-settings .setting-row.is-static, body.mobile #s-settings .setting-row.is-unavailable { cursor: default; }
body.mobile #s-settings .setting-row.is-unavailable { opacity: .72; }
body.mobile #s-settings .setting-row .sw { margin-left: auto; flex: none; }
body.mobile #s-settings #acc-logout .setting-copy strong { color: #ad523d; }
body.mobile .settings-foot { padding: 25px 0 10px; text-align: center; color: var(--ink-3); font: 11px/1.6 "Songti SC", serif; letter-spacing: 1px; }

body.mobile #float-chat { overflow: visible; border-radius: 0; background: transparent; box-shadow: none; animation: nn-star-float 3.6s ease-in-out infinite; }
body.mobile #float-chat::before { inset: -11px; border-radius: 50%; background: radial-gradient(circle,rgba(255,204,119,.55),rgba(255,191,102,.2) 44%,transparent 72%); animation: nn-star-glow 3.6s ease-in-out infinite; }
body.mobile #float-chat .brand-mark { width: 100%; height: 100%; animation: none; filter: drop-shadow(0 0 5px rgba(255,185,94,.6)); }
body.mobile #float-chat .brand-mark svg { width: 100%; height: 100%; }
body.mobile #float-chat .star-eyes { fill: #825036; transform-box: fill-box; transform-origin: center; animation: nn-star-blink 6.4s ease-in-out infinite; }
body.mobile #float-chat .star-eye-shine { fill: #fffdf5; }
body.mobile #float-chat .star-mouth { fill: none; stroke: #a56542; stroke-width: 1.7; stroke-linecap: round; }
@keyframes nn-star-float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.065); } }
@keyframes nn-star-glow { 0%,100% { opacity: .45; transform: scale(.92); } 50% { opacity: .9; transform: scale(1.12); } }
@keyframes nn-star-blink { 0%,43%,47%,78%,82%,100% { transform: scaleY(1); } 45%,80% { transform: scaleY(.08); } }
@media (prefers-reduced-motion: reduce) { body.mobile #float-chat, body.mobile #float-chat::before, body.mobile #float-chat .star-eyes { animation: none; } }
body.mobile.elder .tab, body.mobile.elder .me-row, body.mobile.elder .setting-copy strong,
body.mobile.elder .bill-item .b1, body.mobile.elder .tl2-txt,
body.mobile.elder .btn { font-size: 16px; }
body.mobile.elder .setting-copy small, body.mobile.elder .kb-note,
body.mobile.elder .me-s, body.mobile.elder .me-gt { font-size: 14px; }
body.mobile.elder .settings-card .setting-row { min-height: 78px; }
body.mobile .record-overview { padding: 20px; border: 1px solid #f0ddca; background: linear-gradient(145deg,#fffefa,#fff7ef); }
body.mobile .record-overview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--ink-2); font-size: 12px; }
body.mobile .record-overview-head strong { color: var(--primary-deep); font: 700 34px/1 "Songti SC",serif; }
body.mobile .record-overview-head small { margin-left: 5px; color: var(--ink-2); font: 12px "PingFang SC",sans-serif; }
body.mobile .record-overview-meta { margin-top: 11px; color: var(--ink-2); font-size: 12px; }
body.mobile .record-overview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
body.mobile .record-overview-grid > div { min-width: 0; padding: 12px 4px; border-radius: 12px; background: #fff; text-align: center; }
body.mobile .record-overview-grid b { display: block; color: var(--ink); font-size: 19px; line-height: 1.2; }
body.mobile .record-overview-grid span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 11px; }
body.mobile .record-source { margin: 15px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.6; }
body.mobile .record-empty { padding: 15px 6px; text-align: center; }
body.mobile .record-empty > span { display: block; color: var(--primary); font-size: 32px; }
body.mobile .record-empty strong { display: block; margin-top: 8px; color: var(--ink); font: 700 19px/1.35 "Songti SC",serif; }
body.mobile .record-empty p { margin: 10px auto 17px; max-width: 260px; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
body.mobile .record-empty button { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--primary); color: #fff; font: 600 12px "PingFang SC",sans-serif; }
body.mobile #s-talk .chat { min-height: 100%; }
body.mobile .talk-welcome { max-width: 340px; margin: min(13vh,95px) auto 20px; padding: 25px 22px 22px; border: 1px solid #f0ddca; border-radius: 22px; background: linear-gradient(145deg,#fffefa,#fff2e6); text-align: center; box-shadow: 0 12px 26px rgba(112,70,42,.06); }
body.mobile .talk-welcome img { width: 46px; height: 46px; border-radius: 15px; }
body.mobile .talk-welcome > span { display: block; margin-top: 8px; color: var(--primary-deep); font-size: 11px; letter-spacing: 1px; }
body.mobile .talk-welcome h2 { margin: 10px 0; color: var(--ink); font: 700 20px/1.35 "Songti SC",serif; }
body.mobile .talk-welcome p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.75; }
body.mobile .talk-starters { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
body.mobile .talk-starters button, body.mobile .talk-error button { border: 1px solid #eccab0; border-radius: 999px; padding: 9px 12px; background: #fff; color: var(--primary-deep); font-size: 12px; }
body.mobile #talk-voice { border: 0; cursor: pointer; }
body.mobile #talk-voice.recording { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(232,123,66,.16); }
body.mobile.elder .record-overview-meta, body.mobile.elder .record-source, body.mobile.elder .talk-welcome p { font-size: 14px; }
.privacy-note {
  margin: 14px 2px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,253,249,.75);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
}
.setting-help { color: var(--ink-2); font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
#claim-pass {
  display: block; width: 100%; min-height: 46px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 16px;
}

@media (max-width: 370px) {
  body.mobile .scroll { padding-left: 16px; padding-right: 16px; }
  body.mobile .voice-hero { padding: 20px; }
  body.mobile .range-tabs .rt { padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 时间轴：与手账同一页纸上的细排记录，时间只作索引。 */
body.mobile #home-tl-date { gap: 5px; margin: 12px 0 5px; padding: 0 0 7px; border-bottom: 1px solid #f0e5da; }
body.mobile #home-tl-date .tl-nav { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; padding: 0; border-radius: 8px; background: transparent; color: #a48772; font-size: 16px; }
body.mobile #home-tl-date .tl-date { padding: 0 2px; color: #775744; font: 600 12px/1.3 system-ui, sans-serif; cursor: pointer; }
body.mobile #home-tl-date .tl-date-hint { margin-left: auto; color: #ae9684; font-size: 10px; white-space: nowrap; }
body.mobile #tl2 { padding: 0 0 3px; }
body.mobile #tl2::before { left: 45px; top: 17px; bottom: 22px; width: 1px; background: #efdfd0; }
body.mobile #tl2 .tl2-item { display: block; overflow: hidden; margin: 0; border-radius: 0; min-height: 56px; cursor: auto; touch-action: pan-y; }
body.mobile #tl2 .tl2-main { position: relative; z-index: 2; display: flex; align-items: stretch; gap: 0; width: 100%; min-height: 56px; padding: 0; border: 0; background: #fffaf5; box-shadow: none; transition: transform .24s cubic-bezier(.2,.8,.2,1); }
body.mobile #tl2 .tl2-item.swiped .tl2-main { transform: translateX(-168px); }
body.mobile #tl2 .tl2-time { width: 35px; flex: none; align-self: flex-start; padding-top: 16px; text-align: left; color: #ab9381; font: 500 10px/1.35 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
body.mobile #tl2 .tl2-dot { display: block; position: absolute; left: 42px; top: 18px; width: 6px; height: 6px; margin: 0; border: 2px solid #fffaf5; background: #dba882; box-shadow: none; }
body.mobile #tl2 .tl2-card { flex: 1; min-width: 0; margin: 0 0 0 20px; padding: 12px 34px 12px 0; border: 0; border-bottom: 1px solid #efe4da; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
body.mobile #tl2 .tl2-item:last-child .tl2-card { border-bottom: 0; }
body.mobile #tl2 .tl2-title { display: block; white-space: normal; }
body.mobile #tl2 .tl2-txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; color: #58483e; font: 400 13.5px/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; letter-spacing: 0; }
body.mobile #tl2 .tl2-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
body.mobile #tl2 .tl2-amt { display: inline; margin: 0; padding: 0; border: 0; background: none; color: #b87752; font: 600 11.5px/1.3 system-ui, sans-serif; }
body.mobile #tl2 .tl-done { display: inline; margin: 0; color: #84937b; font-size: 10.5px; }
body.mobile #tl2 .tl-thumb { display: block; width: 66px; height: 66px; max-width: 100%; margin: 8px 0 0; border-radius: 8px; object-fit: cover; }
body.mobile #tl2 .tl-reveal { position: absolute; z-index: 3; top: 10px; right: 1px; width: 26px; height: 26px; margin: 0; border: 0; border-radius: 8px; background: transparent; color: #ac8d77; font-size: 18px; line-height: 1; cursor: pointer; }
body.mobile #tl2 .tl-acts { position: absolute; z-index: 1; display: flex; gap: 0; top: 0; right: 0; width: 168px; height: 100%; transform: none; opacity: 1; }
body.mobile #tl2 .tl-acts button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 56px; height: 100%; padding: 4px 0; border: 0; border-radius: 0; background: #f4ddc9; color: #8f5435; cursor: pointer; }
body.mobile #tl2 .tl-acts button[data-act="cam"] { background: #eeb182; color: #633a27; }
body.mobile #tl2 .tl-acts button[data-act="del"] { background: #cf806c; color: #fff; }
body.mobile #tl2 .tl-acts .tl-action-icon { display: block; font: 500 21px/1 system-ui, sans-serif; }
body.mobile #tl2 .tl-acts button span:last-child { display: block; font: 600 10.5px/1.2 system-ui, sans-serif; }
body.mobile #tl2 .tl2-item.swiped { transform: none; }
body.mobile #tl2 .tl2-item:active .tl2-card { transform: none; }
body.mobile.elder #tl2 .tl2-txt { font-size: 16px; }
/* 两种视图共用同一张浅色纸页，切换时外框不跳变。 */
body.mobile #tl2, body.mobile #todo-paper {
  box-sizing: border-box; width: 100%; min-height: 80px;
  padding: 6px 15px; border: 1px solid #eaded2; border-radius: 17px;
  background: #fffefa; box-shadow: 0 4px 14px rgba(131, 91, 62, .045);
}
body.mobile #tl2 .tl2-main { background: #fffefa; }
body.mobile #tl2 .tl2-dot { border-color: #fffefa; }
body.mobile #todo-paper { margin-top: 0; }
body.mobile #todo-paper .todo-row { gap: 12px; min-height: 54px; padding: 10px 0; border-bottom: 1px solid #f0e6db; }
body.mobile #todo-paper .todo-row:last-child { border-bottom: 0; }
body.mobile #todo-paper .entry-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 3px; }
body.mobile #todo-paper .todo-txt { display: block; color: #58483e; font: 400 13.5px/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
body.mobile #todo-paper .entry-meta { color: #a99383; font: 500 10.5px/1.3 system-ui, sans-serif; }
body.mobile #todo-paper .entry-mark { display: block; flex: none; width: 7px; height: 7px; margin: 0 6px; border-radius: 50%; background: #dba882; }
body.mobile #todo-paper .todo-box { width: 18px; height: 18px; border-color: #d4bea9; }
body.mobile #todo-paper .todo-row.done .todo-txt { color: #a99383; }
body.mobile #todo-paper .todo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 122px; text-align: center; }
body.mobile #todo-paper .todo-empty span { color: #e1a77d; font-size: 20px; line-height: 1; }
body.mobile #todo-paper .todo-empty strong { margin-top: 8px; color: #725948; font: 600 13px/1.4 system-ui, sans-serif; }
body.mobile #todo-paper .todo-empty p { margin: 5px 0 0; color: #a28b79; font-size: 11px; line-height: 1.5; }
/* 首页是纵向弹性布局，记录区不能被挤成固定的 120px。 */
body.mobile #home-tl, body.mobile #home-cl { flex: none; }
/* 主视觉只保留输入和记录两层，写一句成为轻量入口。 */
body.mobile #s-home .voice-hero { min-height: 178px; padding: 20px 23px; margin-top: 12px; box-shadow: 0 10px 23px rgba(208, 99, 48, .14); }
body.mobile #s-home .voice-hero .v-title { margin-top: 10px; font-size: 23px; }
body.mobile #s-home .quick-input { box-sizing: border-box; height: 47px; min-height: 47px; margin-top: 1px; padding: 0 4px; border: 0; border-bottom: 1px solid #eadfd3; border-radius: 0; background: transparent; box-shadow: none; }
body.mobile #s-home .quick-input .q-icon { color: #bf825d; }
body.mobile #s-home .section-head { margin: 18px 0 10px; }
body.mobile #tl2-add, body.mobile #cl-add { box-sizing: border-box; width: 100%; min-height: 42px; margin-top: 3px !important; padding: 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #b47850; font-size: 12px; }
.timeline-edit-form { display: grid; gap: 17px; }
.timeline-edit-form label { display: grid; gap: 8px; min-width: 0; color: #75533f; font-size: 12px; font-weight: 700; }
.timeline-edit-form textarea, .timeline-edit-form input { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #ecd5c1; border-radius: 13px; padding: 12px 13px; background: #fffefa; color: #4a382e; font-size: 16px; outline: none; }
.timeline-edit-form textarea { min-height: 102px; resize: vertical; font-family: "Kaiti SC", "KaiTi", "STKaiti", "Songti SC", serif; line-height: 1.55; }
.timeline-edit-form textarea:focus, .timeline-edit-form input:focus { border-color: #e6935e; box-shadow: 0 0 0 3px rgba(232,123,66,.12); }
.timeline-edit-when { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.timeline-edit-form p { margin: -4px 0 0; color: var(--ink-2); font-size: 11.5px; line-height: 1.5; }
.timeline-edit-actions { display: flex; gap: 10px; margin-top: 1px; }
.timeline-edit-actions .btn { flex: 1; }
.ledger-edit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ledger-edit-form select { box-sizing: border-box; width: 100%; min-height: 46px; border: 1px solid #ecd5c1; border-radius: 13px; padding: 10px 12px; background: #fffefa; color: #4a382e; font-size: 15px; }
.ledger-edit-form .ledger-check { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #fff7ee; color: #785540; font-size: 12px; font-weight: 500; }
.ledger-edit-form .ledger-check input { flex: none; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #d97942; }
body.mobile #bill-list .editable-bill { cursor: pointer; }
body.mobile #bill-list .editable-bill:focus-visible { outline: 2px solid #df9c70; outline-offset: 2px; }
body.mobile #bill-list .bill-side { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 3px; }
body.mobile #bill-list .bill-edit-cue { color: #ad8e78; font-size: 10px; line-height: 1.2; white-space: nowrap; }
body.mobile #bill-list .ledger-checked { color: #748b6b; font-weight: 600; }
@media (max-width: 370px) {
  .timeline-edit-when { grid-template-columns: 1fr; }
  .ledger-edit-pair { grid-template-columns: 1fr; }
}

/* 手账配图始终可用，空白手账也能先收照片。 */
body.mobile #j-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0 0; }
body.mobile #j-photos .j-photo { width: 72px; height: 72px; overflow: hidden; border-radius: 12px; }
body.mobile #j-photos .j-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.mobile #j-photos .j-photo-add { width: 72px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #e5b68f; border-radius: 12px; background: #fff8f0; color: #a95b32; font-size: 23px; cursor: pointer; }
body.mobile #j-photos .j-photo-add span { font-size: 10px; line-height: 1.3; }
body.mobile .journal-update { width: 100%; margin: 10px 0 14px; padding: 12px 14px; border: 1px solid #eec8a7; border-radius: 13px; background: #fff0e2; color: #9e4c26; font-size: 12px; font-weight: 650; cursor: pointer; }
body.mobile .journal-update[hidden] { display: none; }
.journal-status { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; padding: 11px 13px; border: 1px solid #f0d9c5; border-radius: 13px; background: #fff4e8; color: #925637; font-size: 12px; line-height: 1.45; }
.journal-status[hidden], .journal-status button[hidden] { display: none; }
.journal-status-mark { flex: none; width: 13px; height: 13px; border: 2px solid #e8b28a; border-top-color: #bd7046; border-radius: 50%; }
.journal-status.loading .journal-status-mark { animation: journalSpin .9s linear infinite; }
.journal-status.error .journal-status-mark { border: 0; width: auto; height: auto; color: #bb7046; }
.journal-status.error .journal-status-mark::before { content: '!'; font-weight: 800; }
.journal-status #j-status-text { flex: 1; }
.journal-status button { border: 0; background: none; color: #9f552f; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.journal-working #tpl-row { pointer-events: none; opacity: .56; }
.journal-loading-body { padding: 33px 12px; text-align: center; color: #a47e65; font: 14px/1.7 "Songti SC", serif; }
@keyframes journalSpin { to { transform: rotate(360deg); } }
body.mobile #j-title { white-space: pre-line; }

/* 我的：分组像书页目录，资料编辑保持表单节奏。 */
body.mobile .me-sec-t { margin: 24px 2px 11px; gap: 9px; font: 700 14px/1.3 "Songti SC", serif; letter-spacing: .6px; color: #754831; }
body.mobile .me-sec-t::before { content: ''; width: 4px; height: 17px; border-radius: 4px; background: #ed9258; }
body.mobile .me-sec-t::after { height: 1px; background: linear-gradient(90deg,#e9cfb9,transparent); }
.profile-edit-note { margin-bottom: 15px; color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.profile-edit-form { display: grid; gap: 15px; }
.profile-edit-form label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 650; }
.profile-edit-form input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; }
.profile-avatar-pick { justify-self: start; border: 1px solid #eac6ab; border-radius: 999px; background: #fff1e5; color: #a8522a; padding: 10px 15px; font-size: 12px; }

/* 引导卡片由脚本放到高亮区域之外。 */
body.mobile .ob-card { right: auto; left: 16px; width: min(calc(100vw - 32px), 430px); max-height: min(42dvh, 260px); overflow-y: auto; }

/* 首页和我的页：清晰的两层版式，背景只有轻微暖光。 */
body.mobile .phone, body.mobile .screen {
  background-color: #fff9f2;
  background-image: radial-gradient(ellipse 95% 38% at 90% -7%, rgba(255, 207, 160, .23), transparent 72%),
    radial-gradient(ellipse 85% 48% at -22% 73%, rgba(246, 211, 178, .15), transparent 74%),
    repeating-linear-gradient(0deg, rgba(127, 88, 53, .009) 0, rgba(127, 88, 53, .009) 1px, transparent 1px, transparent 5px);
}
body.mobile .brand-row { padding: 4px 2px 15px; }
body.mobile .brand-mark { color: #df8650; font-size: 23px; }
body.mobile .brand-name { font-size: 19px; letter-spacing: 2px; }
body.mobile .date-pill { border: 0; background: rgba(255, 255, 255, .56); color: #95735d; font-size: 10px; }

body.mobile #s-home .home-capture { overflow: hidden; flex: none; border: 1px solid #eec8a9; border-radius: 24px; background: #fffdfa; box-shadow: 0 12px 30px rgba(158, 92, 51, .11); }
body.mobile #s-home .voice-hero { box-sizing: border-box; min-height: 194px; height: auto; margin: 0; padding: 19px 22px 21px; border-radius: 22px 22px 0 0; overflow: hidden; box-shadow: none; background: radial-gradient(circle at 80% 12%, rgba(255, 229, 183, .36), transparent 34%), linear-gradient(125deg, #f0a266, #eb8b4e 53%, #df7742); }
body.mobile #s-home .voice-hero .v-label { border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.12); font-size: 9px; letter-spacing: 1px; }
body.mobile #s-home .voice-hero .v-sparkle { color: #fff3d8; font-size: 23px; }
body.mobile #s-home .voice-hero .v-title { margin-top: 9px; color: #fffdfa; font: 700 24px/1.34 "Songti SC", "STSong", serif; letter-spacing: .3px; text-shadow: none; }
body.mobile #s-home .voice-hero .v-actions { gap: 13px; margin-top: 15px; }
body.mobile #s-home .voice-hero .v-mic { width: 43px; height: 43px; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
body.mobile #s-home .voice-hero .v-mic svg { width: 19px; height: 19px; }
body.mobile #s-home .voice-hero .v-main { font-size: 13px; }
body.mobile #s-home .voice-hero .v-sub { font-size: 10.5px; }
body.mobile #s-home .quick-input { box-sizing: border-box; height: 54px; min-height: 54px; margin: 0; padding: 0 21px; border: 0; border-radius: 0; background: #fffdfa; box-shadow: none; }
body.mobile #s-home .quick-input .q-icon { font-size: 18px; color: #bc7043; }
body.mobile #s-home .quick-input .q-placeholder { color: #775d4b; font-size: 12.5px; }
body.mobile #s-home .quick-input .q-arrow { color: #ba754e; font-size: 18px; }
body.mobile #s-home .quick-input:active { background: #fff3e7; }

body.mobile #s-home .home-journal { box-sizing: border-box; flex: none; width: 100%; margin: 20px 0 0; padding: 19px 17px 7px; border: 1px solid #eadbc9; border-radius: 22px; background: rgba(255, 254, 250, .88); box-shadow: 0 9px 24px rgba(124, 81, 45, .055); }
body.mobile #s-home .section-head { align-items: center; margin: 0 0 16px; }
body.mobile #s-home .sec-kicker { color: #bd8059; font-size: 8px; letter-spacing: 1.55px; }
body.mobile #s-home .sec-title { margin-top: 5px; color: #4d3c30; font: 700 19px/1.3 "Songti SC", "STSong", serif; }
body.mobile #s-home .sec-count { align-self: end; padding-bottom: 3px; color: #a78d79; font-size: 10.5px; }
body.mobile #s-home .seg-row { margin: 0 0 5px; gap: 9px; }
body.mobile #s-home .seg-row .seg { box-sizing: border-box; min-height: 39px; padding: 3px; border: 1px solid #f0e3d6; border-radius: 13px; background: #f9f1e8; box-shadow: none; }
body.mobile #s-home .seg-item { box-sizing: border-box; min-height: 31px; border-radius: 10px; color: #8b7361; font-size: 12px; }
body.mobile #s-home .seg-item.active { background: #fffdfa; color: #aa592e; box-shadow: 0 2px 8px rgba(135,89,49,.1); }
body.mobile #s-home .seg-row .hdr-ico { width: 38px; height: 38px; border: 1px solid #f0e3d6; border-radius: 12px; background: #fcf6ef; color: #8e6b53; }
body.mobile #home-tl-date { margin: 8px 0 0; padding: 2px 0 6px; border-color: #f0e6da; }
body.mobile #home-tl-date .tl-date-hint { font-size: 9.5px; }
body.mobile #tl2, body.mobile #todo-paper { min-height: 90px; padding: 1px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.mobile #tl2 .tl2-main { background: #fffdfa; }
body.mobile #tl2 .tl2-dot { border-color: #fffdfa; }
body.mobile #tl2 .tl2-card { border-color: #efe7de; }
body.mobile #tl2-add, body.mobile #cl-add { min-height: 39px; margin-top: 0 !important; border-top: 1px solid #f1e8de; color: #b1734c; }

body.mobile #s-me .scroll { padding-top: 26px; }
body.mobile .me-page-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 2px 15px; }
body.mobile .me-page-heading span { order: 2; color: #bc8d6e; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
body.mobile .me-page-heading strong { color: #47372d; font: 700 25px/1.15 "Songti SC", "STSong", serif; }
body.mobile #s-me .profile-card { position: relative; display: block; overflow: hidden; margin: 0; padding: 18px 19px 16px; border: 1px solid #f0d3b9; border-radius: 23px; background: radial-gradient(circle at 86% 4%, rgba(255, 255, 250, .92), transparent 37%), linear-gradient(130deg, #fff2e5 0%, #ffe7d1 100%); box-shadow: 0 11px 25px rgba(164, 95, 50, .08); }
body.mobile #s-me .profile-card::after { content: ''; position: absolute; right: -41px; top: 38px; width: 146px; height: 146px; border: 1px solid rgba(209, 132, 78, .16); border-radius: 50%; box-shadow: 0 0 0 26px rgba(255,255,255,.08), 0 0 0 51px rgba(255,255,255,.08); pointer-events: none; }
body.mobile .profile-card-top { display: flex; align-items: center; justify-content: space-between; color: #ac754f; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
body.mobile .profile-card-star { color: #d68a55; font-size: 19px; line-height: 1; }
body.mobile .profile-card-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin: 20px 0 18px; }
body.mobile #s-me .me-avatar { width: 66px; height: 66px; border: 3px solid rgba(255,255,255,.76); box-shadow: 0 6px 15px rgba(144,75,44,.16); font-size: 26px; }
body.mobile #s-me .profile-card .mn { color: #4a372c; font-size: 20px; }
body.mobile #s-me .profile-card .ms { margin-top: 6px; color: #8a6f5c; font-size: 11.5px; line-height: 1.4; }
body.mobile #s-me .profile-link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 9px 2px 0; border: 0; border-top: 1px solid rgba(181,119,74,.2); border-radius: 0; background: transparent; color: #885637; font-size: 11.5px; font-weight: 650; text-align: left; }
body.mobile #s-me .profile-link span { font-size: 17px; font-weight: 400; }
body.mobile #s-me .me-sec-t { margin: 22px 2px 10px; color: #624533; font: 700 13px/1.3 "Songti SC", serif; letter-spacing: .3px; }
body.mobile #s-me .me-sec-t::before { width: 3px; height: 15px; background: #e68b54; }
body.mobile #s-me .me-card-group { padding: 3px 14px; border: 1px solid #ebdfd1; border-radius: 19px; background: rgba(255,254,250,.9); box-shadow: 0 6px 17px rgba(112,72,43,.045); }
body.mobile #s-me .me-card { min-height: 64px; gap: 12px; padding: 10px 2px; border-color: #f1e8df; }
body.mobile #s-me .me-ico { width: 37px; height: 37px; border-radius: 12px; }
body.mobile #s-me .me-t { font-size: 13px; }
body.mobile #s-me .me-s { font-size: 10.5px; line-height: 1.35; }
body.mobile #s-me .me-arrow { color: #af9580; font-size: 17px; }
body.mobile #s-me .me-foot { padding: 19px 10px; color: #ba9f89; font-size: 10px; }
@media (max-width: 370px) {
  body.mobile #s-home .home-journal { padding-left: 14px; padding-right: 14px; }
  body.mobile #s-home .voice-hero { padding-left: 19px; padding-right: 19px; }
  body.mobile #s-me .profile-card { padding-left: 16px; padding-right: 16px; }
}

/* 全站共用的页面起笔与二级导航。 */
body.mobile .page-intro { display: flex; flex-direction: column; align-items: flex-start; margin: 2px 2px 17px; }
body.mobile .page-intro > span, body.mobile .subpage-intro > span { color: #bb8059; font: 700 9px/1.3 system-ui, sans-serif; letter-spacing: 1.55px; }
body.mobile .page-intro h1, body.mobile .subpage-intro h2 { margin: 7px 0 4px; color: #49372b; font: 700 26px/1.25 "Songti SC", "STSong", serif; letter-spacing: .3px; }
body.mobile .page-intro p, body.mobile .subpage-intro p { margin: 0; color: #927967; font-size: 11.5px; line-height: 1.6; }
body.mobile .screen:has(.topbar) .topbar { height: 58px; padding: 10px 20px 0; background: linear-gradient(to bottom, #fff9f2 74%, rgba(255,249,242,.8)); }
body.mobile .screen:has(.topbar) .topbar-title { color: #684e3e; font-size: 13px; font-weight: 650; }
body.mobile .screen:has(.topbar) .topbar-back { width: 37px; height: 37px; min-width: 37px; min-height: 37px; border: 1px solid #efdfd0; border-radius: 13px; background: #fffdfa; color: #865f48; box-shadow: 0 3px 9px rgba(117,75,45,.055); }
body.mobile .screen:has(.topbar) .scroll { padding-top: 78px; }
body.mobile .subpage-intro { margin: 5px 2px 21px; padding: 0 0 16px; border-bottom: 1px solid #eadccf; }
body.mobile .subpage-intro h2 { font-size: 23px; }
body.mobile .btn-primary { border: 0; background: linear-gradient(135deg,#ee965c,#dc7740); box-shadow: 0 7px 16px rgba(192,92,41,.16); }
body.mobile .btn-ghost { border-color: #e9d8c7; background: #fffdfa; color: #9b5f3c; }
body.mobile .card { border-color: #eaddce; background: #fffefa; box-shadow: 0 7px 20px rgba(120,78,48,.05); }

/* 账本：概览、预算和每笔明细组成一条连续阅读路径。 */
body.mobile #s-ledger .scroll { padding-top: 25px; }
body.mobile #s-ledger .page-intro { margin-bottom: 16px; }
body.mobile #s-ledger .ledger-sum { position: relative; overflow: hidden; box-sizing: border-box; min-height: 181px; padding: 19px 21px 17px; border: 1px solid #e6a477; border-radius: 23px; background: radial-gradient(circle at 86% 8%, rgba(255,220,172,.46), transparent 36%), linear-gradient(130deg,#f1a36e,#e6854b 59%,#d97642); box-shadow: 0 11px 27px rgba(191,94,48,.13); }
body.mobile #s-ledger .ledger-sum::after { content: ''; position: absolute; top: -63px; right: -68px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.045); pointer-events: none; }
body.mobile .ledger-sum-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
body.mobile .ledger-sum-head .lab { display: flex; align-items: center; gap: 4px; flex: none; color: #fff9f0; font-size: 11px; font-weight: 650; white-space: nowrap; }
body.mobile #lg-prev, body.mobile #lg-next { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 29px; border-radius: 8px; color: #fff; font-size: 20px; cursor: pointer; }
body.mobile #lg-prev:active, body.mobile #lg-next:active { background: rgba(255,255,255,.2); }
body.mobile .ledger-sum-head .range-tabs { display: flex; gap: 2px; flex: none; padding: 3px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.12); }
body.mobile .ledger-sum-head .range-tabs .rt { min-width: 31px; padding: 6px 7px; border-radius: 9px; background: transparent; color: #fff9f1; font-size: 10px; text-align: center; }
body.mobile .ledger-sum-head .range-tabs .rt.on { background: #fffdfa; color: #ad5f32; box-shadow: 0 2px 6px rgba(99,49,25,.1); }
body.mobile #s-ledger .ledger-sum .amt { position: relative; z-index: 1; margin-top: 17px; color: #fffdfa; font: 700 32px/1.15 Georgia,"Songti SC",serif; letter-spacing: .3px; }
body.mobile #s-ledger .ledger-sum .sub { position: relative; z-index: 1; margin-top: 8px; color: #fff7ec; font-size: 11px; opacity: 1; }
body.mobile #ledger-tools { position: relative; z-index: 1; min-height: 29px; margin-top: 5px; padding: 4px 10px !important; border-color: rgba(255,255,255,.39) !important; background: rgba(255,255,255,.12); color: #fffdf9 !important; opacity: 1 !important; }
body.mobile #s-ledger .ov-card { margin-top: 13px; padding: 17px 18px; border: 1px solid #eadbc9; border-radius: 20px; background: rgba(255,254,250,.9); box-shadow: 0 6px 20px rgba(124,81,45,.05); }
body.mobile #s-ledger .ledger-sum.has-overview { margin-bottom: 0; border-bottom: 0; border-radius: 23px 23px 0 0; box-shadow: none; }
body.mobile #s-ledger .ledger-sum.has-overview.ledger-empty { border-bottom: 0; border-radius: 23px 23px 0 0; box-shadow: none; }
body.mobile #s-ledger .ledger-sum.has-overview + #ov-card { margin-top: 0; border-top: 0; border-radius: 0 0 20px 20px; box-shadow: 0 11px 27px rgba(137,83,46,.09); }
body.mobile #s-ledger .ledger-sum.has-overview + #ov-card::before { content: ''; display: block; height: 1px; margin: -17px 0 16px; background: linear-gradient(90deg,transparent,#edd7bd 16%,#edd7bd 84%,transparent); }
body.mobile #s-ledger .ovb-line { color: #765b48; font-size: 11.5px; }
body.mobile #s-ledger #budget-text { font-weight: 600; }
body.mobile #s-ledger .b-arrow { color: #ad6941; font-weight: 600; }
body.mobile #s-ledger .ovb-bar { height: 6px; margin-top: 11px; background: #f2e8dc; }
body.mobile #s-ledger .ov-cats { margin-top: 15px; padding-top: 13px; border-top: 1px solid #f0e5d9; }
body.mobile #s-ledger .stack-bar { height: 11px; border-radius: 7px; }
body.mobile #s-ledger .stack-legend { margin-top: 9px; }
body.mobile .ledger-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 23px 3px 9px; }
body.mobile .ledger-list-heading strong { color: #594234; font: 700 15px/1.3 "Songti SC",serif; }
body.mobile .ledger-list-heading span { color: #a38a76; font-size: 10px; }
body.mobile #bill-list .lg-group { margin: 13px 3px 8px; color: #9c806c; font-size: 10.5px; font-weight: 650; }
body.mobile #bill-list .bill-item { min-height: 60px; padding: 12px 13px; border: 1px solid #eadfD3; border-radius: 16px; background: #fffefa; box-shadow: 0 5px 15px rgba(112,72,43,.045); }
body.mobile #bill-list .bill-ico { width: 35px; height: 35px; border-radius: 11px; }
body.mobile #bill-list .bill-item .b1 { color: #504035; font-size: 13px; font-weight: 600; }
body.mobile #bill-list .bill-item .b2 { color: #a28b79; font-size: 10.5px; }
body.mobile #bill-list .bill-item .bamt { color: #654b3a; font-size: 14px; }
body.mobile #bill-list .bill-edit-cue { color: #b47b57; font-size: 10px; }

/* 手账：功能控件退后，让当天的纸页成为主角。 */
body.mobile #s-diary .scroll { padding-top: 25px; }
body.mobile #s-diary .page-intro { margin-bottom: 18px; }
body.mobile #s-diary > .scroll > .seg-row { gap: 10px; margin: 0 0 17px; }
body.mobile #s-diary #j-seg { box-sizing: border-box; min-height: 42px; margin: 0; padding: 3px; border: 1px solid #efdfd0; border-radius: 13px; background: #f9f0e6; box-shadow: none; }
body.mobile #s-diary #j-seg .seg-item { min-height: 34px; border-radius: 10px; color: #89705d; font-size: 12px; }
body.mobile #s-diary #j-seg .seg-item.active { background: #fffdfa; color: #a75a31; box-shadow: 0 2px 8px rgba(135,89,49,.1); }
body.mobile #s-diary #summary-edit { width: 42px; height: 42px; border: 1px solid #efdfd0; border-radius: 13px; background: #fffdfa; color: #a66a46; }
body.mobile .diary-template-heading { margin: 1px 2px 9px; color: #917763; font-size: 10.5px; font-weight: 650; }
body.mobile #s-diary .tpl-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; overflow: visible; padding: 0 0 15px; }
body.mobile #s-diary .tpl { box-sizing: border-box; width: auto; min-width: 0; min-height: 39px; padding: 9px 7px; border: 1px solid #e9dccc; border-radius: 12px; background: #fffdfa; box-shadow: none; }
body.mobile #s-diary .tpl.sel { border-color: #e09b6e; background: #fff0e3; }
body.mobile #s-diary .tpl .tp-name { color: #725541; font-size: 11.5px; }
body.mobile #s-diary .tpl.sel .tp-name { color: #a75830; }
body.mobile #s-diary .journal.paper { box-sizing: border-box; padding: 23px 23px 24px; border: 1px solid #e8d9c7; border-radius: 20px; background-color: #fffefa; background-image: repeating-linear-gradient(180deg,transparent 0,transparent 29px,rgba(153,108,68,.017) 30px); box-shadow: 0 3px 0 #f4eadf,0 12px 26px rgba(115,73,42,.075); }
body.mobile #s-diary .paper-kicker { color: #b87950; font-size: 9px; letter-spacing: 1.4px; }
body.mobile #s-diary .paper-sun { color: #d8a872; font-size: 25px; }
body.mobile #s-diary .paper-date { margin-top: 20px; color: #aa7250; font-size: 10px; }
body.mobile #s-diary .paper-title { margin-top: 10px; color: #46372e; font-size: 24px; line-height: 1.45; }
body.mobile #s-diary .paper-rule { width: 34px; height: 2px; margin: 16px 0; }
body.mobile #s-diary .paper-moodrow { margin-bottom: 11px; }
body.mobile #s-diary .j-mood { background: #f9eee5; color: #ac704d; }
body.mobile #s-diary #j-photos { padding-top: 12px; }
body.mobile #s-diary .paper-body { color: #635247; font-size: 13.5px; line-height: 1.9; }
body.mobile #s-diary .paper-body .j-sec-t { margin-top: 17px; color: #855b40; font-size: 14px; }
body.mobile #s-diary .paper-quote { margin: 20px 2px 8px; padding: 12px 16px; border-left: 2px solid #dfa476; background: #fff7ef; color: #8b634b; text-align: left; font-size: 13px; }
body.mobile #s-diary .paper-ai { margin-top: 17px; border: 1px solid #efdfcf; background: #fcf5ec; color: #775d4b; font-size: 12.5px; }
body.mobile #s-diary .paper-footer { color: #af927a; }
body.mobile #s-diary #summary-share { width: 100%; min-height: 46px; border-radius: 13px; }
body.mobile #s-diary #j-past > .tl-date-row { justify-content: center; margin: 0 0 15px !important; padding: 7px 0; border-bottom: 1px solid #eadbc9; }
body.mobile #s-diary .pj-card { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; padding: 11px 12px; border: 1px solid #eadfD3; border-radius: 16px; background: #fffefa; box-shadow: 0 5px 15px rgba(112,72,43,.045); cursor: pointer; }
body.mobile #s-diary .pj-thumb { width: 49px; height: 49px; flex: none; border-radius: 10px; object-fit: cover; }
body.mobile #s-diary .pj-thumb.ph { display: flex; align-items: center; justify-content: center; background: #f8ecdf; color: #a56d49; }
body.mobile #s-diary .pj-t { color: #584437; }

/* 搜索与常用二级页沿用同一套纸页、输入和轻分隔。 */
body.mobile #s-search .search-bar { box-sizing: border-box; min-height: 53px; margin: 0 0 15px; padding: 7px 9px 7px 15px; border: 1px solid #e8d8c7; border-radius: 15px; background: #fffefa; box-shadow: 0 7px 19px rgba(120,78,48,.06); }
body.mobile #s-search .search-bar svg { flex: none; stroke: #a67e62; }
body.mobile #s-search .search-bar input { color: #49382d; font-size: 14px; }
body.mobile #s-search .search-bar input::placeholder { color: #ab9786; }
body.mobile #search-go { min-height: 36px; padding: 7px 13px; border-radius: 10px; background: #fff0e3; color: #a65c32; }
body.mobile .search-suggestions-title { margin: 4px 2px 9px; color: #9c806a; font-size: 10.5px; font-weight: 650; }
body.mobile #s-search .sr-q { gap: 7px; margin-bottom: 17px; }
body.mobile #s-search .sr-q .chip { min-height: 34px; padding: 7px 12px; border: 1px solid #ecdfd2; border-radius: 999px; background: #fffdfa; color: #765d4b; font-size: 11px; box-shadow: none; }
body.mobile #s-search .sr-q .chip:active { background: #fff0e3; }
body.mobile #s-search .search-intro { position: relative; min-height: 150px; margin-top: 16px; padding: 23px 21px; border: 1px solid #eadbc9; border-radius: 19px; background: radial-gradient(circle at 100% 0%,rgba(248,205,166,.27),transparent 49%),#fffefa; box-shadow: 0 7px 20px rgba(120,78,48,.045); color: #8d7462; font-size: 12px; line-height: 1.7; }
body.mobile #s-search .search-intro-glyph { display: block; margin-bottom: 9px; color: #d89464; font-size: 23px; line-height: 1; }
body.mobile #s-search .search-intro strong { margin-bottom: 5px; color: #574234; font: 700 16px/1.3 "Songti SC",serif; }
body.mobile #s-search .sr-count { margin: 19px 2px 11px; color: #8f715b; font-size: 11px; font-weight: 650; }
body.mobile #s-search .sr-item { gap: 12px; padding: 14px 15px; border: 1px solid #eadfD3; border-radius: 16px; background: #fffefa; box-shadow: 0 5px 15px rgba(112,72,43,.045); }
body.mobile #s-search .sr-ico { width: 34px; height: 34px; border-radius: 11px; }
body.mobile #s-search .sr-t { color: #554136; font-size: 13px; }
body.mobile #s-search .sr-s { color: #a18a77; font-size: 10.5px; }
body.mobile #s-privacy .me-group { overflow: hidden; border: 1px solid #eadbc9; border-radius: 18px; background: #fffefa; box-shadow: 0 6px 18px rgba(112,72,43,.045); }
body.mobile #s-privacy .me-row { padding: 15px 17px; color: #5f493a; font-size: 13px; }
body.mobile #s-privacy .me-row + .me-row { border-top: 1px solid #f1e7dc; }
body.mobile #s-privacy .privacy-note { border-color: #eadbc9; border-radius: 15px; background: rgba(255,254,250,.84); font-size: 11.5px; }
body.mobile #s-base .greet, body.mobile #s-confirm .greet, body.mobile #s-voice-id .greet, body.mobile #s-voice-custom .greet { margin: 3px 2px 17px; padding: 0 0 14px !important; border-bottom: 1px solid #eadbc9; }
body.mobile #s-base .greet .hi, body.mobile #s-confirm .greet .hi, body.mobile #s-voice-id .greet .hi, body.mobile #s-voice-custom .greet .hi { color: #49372b; font: 700 23px/1.3 "Songti SC",serif; }
body.mobile #s-base .greet .date, body.mobile #s-confirm .greet .date, body.mobile #s-voice-id .greet .date, body.mobile #s-voice-custom .greet .date { margin-top: 7px; color: #927967; font-size: 11.5px; }
body.mobile #s-base .kb-sum { overflow: hidden; border: 1px solid #e7bc9b; border-radius: 19px; background: radial-gradient(circle at 92% 8%,rgba(255,234,195,.42),transparent 40%),linear-gradient(125deg,#efa36e,#e38049); box-shadow: 0 9px 22px rgba(183,100,53,.1); }
body.mobile #s-base .kb-sec { margin: 21px 2px 10px; color: #604939; font-size: 12px; }
body.mobile #s-base .kb-sec .op { color: #a65d35; }
body.mobile #s-base .record-overview { border-radius: 18px; }
body.mobile #s-settings .settings-hero { background: radial-gradient(circle at 89% 4%,rgba(255,255,255,.7),transparent 41%),linear-gradient(125deg,#fff1e2,#ffdec2); }
body.mobile #s-onboard .card, body.mobile #s-person .card { border-radius: 18px; }
@media (max-width: 370px) {
  body.mobile .ledger-sum-head { flex-wrap: wrap; }
  body.mobile .ledger-sum-head .range-tabs { margin-left: auto; }
  body.mobile #s-ledger .ledger-sum { min-height: 198px; }
  body.mobile #s-diary .journal.paper { padding-left: 20px; padding-right: 20px; }
}

/* 录入与确认页：保留语音操作，缩短空白并与纸页视觉对齐。 */
body.mobile #s-voice { box-sizing: border-box; align-items: center; justify-content: flex-start; overflow-y: auto; padding: 96px 20px 24px; text-align: center; }
body.mobile #s-voice .voice-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 24px; color: #594333; }
body.mobile #s-voice .voice-hint span { color: #b5764b; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
body.mobile #s-voice .voice-hint strong { color: #4c392d; font: 700 23px/1.42 "Songti SC",serif; }
body.mobile #s-voice .voice-hint small { color: #967e6c; font-size: 11px; }
body.mobile #s-voice .wave { height: 28px; margin: 3px 0 15px; gap: 4px; }
body.mobile #s-voice .wave i { width: 3px; background: #dea274; opacity: .52; }
body.mobile #s-voice .voice-text { box-sizing: border-box; width: min(100%,330px); min-height: 44px; max-width: 330px; margin: 0; color: #6e5140; font: 500 15px/1.65 "Songti SC",serif; }
body.mobile #s-voice .voice-mic { flex: none; width: 76px; height: 76px; margin: 12px 0 0; border: 4px solid rgba(255,255,255,.73); background: linear-gradient(140deg,#f19c60,#df7540); box-shadow: 0 0 0 13px rgba(239,169,113,.14),0 0 0 28px rgba(239,169,113,.055),0 8px 20px rgba(190,93,46,.18); cursor: pointer; }
body.mobile #s-voice .voice-cancel { max-width: 300px; margin-top: 28px; color: #8e7461; font-size: 11.5px; line-height: 1.5; }
body.mobile #s-voice #voice-just-talk { display: inline-block; padding: 3px 1px; color: #a46b47 !important; border-bottom-color: #d7ad8b !important; font-size: 11.5px !important; }
body.mobile #s-voice .ask-custom { box-sizing: border-box; width: min(100%,420px) !important; max-width: 420px !important; min-height: 50px; margin: auto 0 6px !important; padding-top: 23px; gap: 8px; }
body.mobile #s-voice #voice-input { min-height: 47px; padding: 11px 15px; border: 1px solid #e5d0bf; border-radius: 14px; background: #fffefa; color: #4d3d32; font-size: 14px; box-shadow: 0 4px 13px rgba(120,78,48,.04); }
body.mobile #s-voice #voice-input:focus-visible { outline: 0; border-color: #e69b69; box-shadow: 0 0 0 3px rgba(232,123,66,.12); }
body.mobile #s-voice #voice-go { width: 47px; height: 47px; border: 0; border-radius: 14px; background: #e78348; color: #fff; font-size: 13px; font-weight: 700; }
body.mobile #s-confirm .ai-head { margin: 0 2px 12px; }
body.mobile #s-confirm .ai-card { border: 1px solid #eadcca; border-radius: 18px; background: #fffefa; box-shadow: 0 6px 17px rgba(112,72,43,.05); }
body.mobile #s-confirm .ai-card .raw { border-color: #eee2d7; color: #9a806d; }
body.mobile #s-confirm .ai-card .title { color: #503d30; font: 700 16px/1.35 "Songti SC",serif; }
body.mobile #s-confirm .kv { color: #5e493c; font-size: 12.5px; }
body.mobile #s-talk .talk-welcome { border-color: #eedac7; background: radial-gradient(circle at 90% 0%,rgba(255,218,178,.25),transparent 49%),#fffefa; }
body.mobile #s-talk .input-dock { background: linear-gradient(to top,#fff9f2 80%,rgba(255,249,242,0)); }
body.mobile #s-diary .paper-body { padding-right: 19px; }
body.mobile[data-cur="s-diary"] .float-star { right: 8px; width: 40px; height: 40px; bottom: 91px; }
body.mobile #s-settings .settings-hero-title { overflow-wrap: anywhere; font-size: clamp(21px,6.5vw,27px); }
@media (max-width: 370px) {
  body.mobile #s-voice { padding-top: 77px; }
  body.mobile #s-voice .voice-hint strong { font-size: 21px; }
}

/* IP 与移动端信息密度：星星是识别元素，主页面不重复写导航标题。 */
body.mobile .brand-mark { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; flex: none; filter: drop-shadow(0 0 5px rgba(255,194,105,.48)); animation: star-breathe 3.8s ease-in-out infinite; }
body.mobile .brand-mark svg { display: block; width: 31px; height: 31px; overflow: visible; }
body.mobile .brand-mark .star-fluff { fill: #fff3d4; stroke: #efbd81; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(168,99,46,.16)); }
body.mobile .brand-mark .star-face { fill: none; stroke: #aa6842; stroke-width: 1.8; stroke-linecap: round; }
@keyframes star-breathe { 0%,100% { filter: drop-shadow(0 0 4px rgba(255,194,105,.40)); transform: scale(1); } 50% { filter: drop-shadow(0 0 9px rgba(255,195,96,.76)); transform: scale(1.055); } }
@media (prefers-reduced-motion: reduce) { body.mobile .brand-mark { animation: none; } }
body.mobile #s-home .voice-hero { min-height: 142px; padding: 21px 21px; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
body.mobile #s-home .voice-hero .v-title { position: relative; z-index: 1; max-width: 195px; margin: 0; font-size: clamp(19px, 5.6vw, 23px); line-height: 1.38; }
body.mobile #s-home .voice-hero .v-actions { flex: none; flex-direction: column; gap: 8px; margin: 0; text-align: center; }
body.mobile #s-home .voice-hero .v-mic { width: 49px; height: 49px; }
body.mobile #s-home .voice-hero .v-main { font-size: 11.5px; font-weight: 650; white-space: nowrap; }
body.mobile #s-home .voice-hero .v-action-txt { line-height: 1; }
body.mobile #s-home .quick-input { height: 49px; min-height: 49px; }
body.mobile #s-home .section-head { margin-bottom: 12px; }
body.mobile #s-home .sec-title { margin-top: 0; }
body.mobile #s-home .seg-item, body.mobile #s-diary #j-seg .seg-item { font-weight: 650; }
body.mobile #s-home .seg-item:not(.active), body.mobile #s-diary #j-seg .seg-item:not(.active) { color: #765746; font-weight: 620; }
body.mobile #s-ledger .scroll, body.mobile #s-diary .scroll, body.mobile #s-me .scroll { padding-top: 29px; }
body.mobile #s-search .scroll { padding-top: 82px; }
body.mobile #s-diary .paper-kicker { color: #d9aa78; font-size: 17px; line-height: 1; letter-spacing: 0; }
body.mobile #s-me .profile-card-main { margin-top: 8px; }
body.mobile #s-me .profile-card-top { justify-content: flex-end; height: 16px; }

/* 手账纸：细纤维、淡横纹和一枚半透明纸胶带，图片与正文仍保持清晰。 */
body.mobile #s-diary .journal.paper {
  position: relative; overflow: visible; border-radius: 12px 16px 15px 12px;
  border-color: #e9d8bd; background-color: #fffdf7;
  background-image:
    radial-gradient(circle at 90% 11%, rgba(243,209,161,.19), transparent 31%),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(166,127,85,.055) 32px, transparent 33px),
    repeating-linear-gradient(39deg, rgba(145,112,74,.018) 0, rgba(145,112,74,.018) 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(127deg, rgba(145,112,74,.013) 0, rgba(145,112,74,.013) 1px, transparent 1px, transparent 9px);
  box-shadow: 1px 2px 0 #e9dcc9, 3px 5px 0 #f7ecdb, 0 16px 31px rgba(111,75,46,.11);
}
body.mobile #s-diary .journal.paper::before { content: ''; position: absolute; z-index: 2; top: -7px; left: 50%; width: 72px; height: 16px; border-radius: 2px; background: rgba(233,193,145,.38); box-shadow: 0 1px 3px rgba(140,99,56,.07); transform: translateX(-50%) rotate(-2deg); pointer-events: none; }
body.mobile #s-diary .journal.paper::after { content: ''; position: absolute; top: 23px; bottom: 23px; left: 13px; width: 1px; background: rgba(201,151,111,.13); pointer-events: none; }
body.mobile #s-diary .paper-date { font-size: 11px; letter-spacing: .6px; }
body.mobile #s-diary .paper-title { font-size: 23px; }
body.mobile #s-diary .paper-body { color: #58483d; }
@media (max-width: 370px) {
  body.mobile #s-home .voice-hero { padding: 18px; gap: 8px; }
  body.mobile #s-home .voice-hero .v-title { max-width: 175px; }
}

/* 首页首屏：柔和的纸面与明确的录入动作，压低大面积纯色。 */
body.mobile #s-home .home-capture { position: relative; border: 1px solid #e9d6c4; border-radius: 19px; background: #fffdf8; box-shadow: 0 10px 23px rgba(139,88,52,.065); }
body.mobile #s-home .home-capture::before { content: ''; position: absolute; z-index: 2; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,#e5854d 0%,#f3bc8a 53%,#f6e0c4 100%); pointer-events: none; }
body.mobile #s-home .voice-hero { min-height: 128px; padding: 25px 20px 20px; border-radius: 18px 18px 0 0; background: radial-gradient(circle at 87% 0%,rgba(245,192,143,.31),transparent 38%),linear-gradient(110deg,#fffaf3,#fff5e9); color: #4a382d; }
body.mobile #s-home .voice-hero .v-deco, body.mobile #s-home .voice-hero .v-sparkle { display: none; }
body.mobile #s-home .voice-hero .v-title { max-width: none; color: #47352b; font-size: clamp(19px,5.7vw,22px); font-weight: 700; text-shadow: none; white-space: nowrap; }
body.mobile #s-home .voice-hero .v-actions { flex-direction: row; gap: 7px; min-height: 43px; padding: 5px 14px 5px 5px; border: 1px solid rgba(173,83,39,.12); border-radius: 999px; background: linear-gradient(125deg,#ec9158,#dd7641); box-shadow: 0 5px 12px rgba(188,87,40,.17); }
body.mobile #s-home .voice-hero .v-mic { width: 32px; height: 32px; background: rgba(255,255,255,.18); box-shadow: none; }
body.mobile #s-home .voice-hero .v-mic svg { width: 17px; height: 17px; }
body.mobile #s-home .voice-hero .v-main { color: #fff; font-size: 12px; }
body.mobile #s-home .quick-input { height: 55px; min-height: 55px; border-top: 1px solid #f0e3d6; background: rgba(255,254,250,.87); }
body.mobile #s-home .quick-input .q-placeholder { font-size: 13px; font-weight: 600; }
body.mobile #s-home .home-journal { margin-top: 16px; padding-bottom: 4px; border-radius: 19px; box-shadow: 0 8px 21px rgba(124,81,45,.045); }
body.mobile #s-home .sec-title { font-size: 18px; }
body.mobile #tl2, body.mobile #todo-paper { min-height: 0; }
body.mobile #tl2-add, body.mobile #cl-add { font-weight: 600; }

/* 手账纸页：左侧细装订孔、照片白边与轻分隔，正文不叠装饰。 */
body.mobile #s-diary .journal.paper::after { top: 26px; bottom: 26px; left: 6px; width: 10px; background: radial-gradient(circle at 50% 50%,#ead8be 0 2px,transparent 2.6px) 0 0 / 10px 38px repeat-y; }
body.mobile #s-diary .paper-top { min-height: 31px; align-items: center; }
body.mobile #s-diary .paper-body .j-sec-t { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid rgba(199,145,95,.23); }
body.mobile #s-diary .j-photo { width: 77px; height: 84px; padding: 4px 4px 10px; border: 0; border-radius: 3px; background: #fffefa; box-shadow: 0 4px 10px rgba(98,69,44,.16); transform: rotate(-2deg); }
body.mobile #s-diary .j-photo:nth-child(even) { transform: rotate(2deg); }
body.mobile #s-diary .j-photo img { border-radius: 1px; }
body.mobile #s-diary .paper-quote { border-left: 0; border-top: 1px solid rgba(199,145,95,.25); background: transparent; padding: 14px 4px 0; }
body.mobile #s-diary .paper-footer { margin-top: 26px; padding-top: 13px; border-top: 1px dashed #e6d7c2; font-size: 10px; }
@media (max-width: 370px) {
  body.mobile #s-home .voice-hero { padding: 23px 16px 18px; gap: 7px; }
  body.mobile #s-home .voice-hero .v-title { font-size: 18px; }
  body.mobile #s-home .voice-hero .v-actions { padding-right: 10px; }
}

body.mobile #s-auth .card { border-radius: 22px; padding: 24px 20px !important; }
body.mobile #s-auth .auth-field { margin-bottom: 12px; }
body.mobile #s-auth .auth-field input { min-height: 48px; border-radius: 12px; }
/* iOS Safari 会把小于 16px 的输入框自动放大，并可能保留缩放状态。 */
body.mobile input, body.mobile textarea, body.mobile select { font-size: 16px !important; }
.journal-poster-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 15px; box-sizing: border-box; background: rgba(53,36,25,.62); backdrop-filter: blur(7px); }
.journal-poster-panel { width: min(100%,440px); max-height: calc(100dvh - 30px); display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; padding: 17px; border-radius: 20px; background: #fffaf2; box-shadow: 0 22px 55px rgba(39,25,14,.25); }
.journal-poster-head { display: flex; align-items: center; justify-content: space-between; color: #593c2c; font-size: 16px; }
.journal-poster-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4e7d9; color: #775640; font-size: 23px; line-height: 1; }
.journal-poster-preview { min-height: 0; overflow: auto; border: 1px solid #eadac8; border-radius: 12px; background: #eee5d9; text-align: center; }
.journal-poster-preview img { display: block; width: 100%; height: auto; }
.journal-poster-panel p { margin: 0; color: #8d725f; font-size: 12px; text-align: center; }
.journal-poster-actions { display: flex; gap: 9px; }
.journal-poster-actions button { flex: 1; min-height: 43px; border: 1px solid #e4c5aa; border-radius: 11px; background: #fff4e9; color: #965633; font-size: 13px; font-weight: 700; }
.journal-poster-actions button:last-child { border-color: #dc824b; background: #df854e; color: #fff; }
body.mobile #s-auth #auth-go { min-height: 47px; border-radius: 13px; }
body.mobile .auth-methods { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #f0e4d8; }
body.mobile .auth-method { min-height: 43px; border: 1px solid #e8d8c8; border-radius: 12px; background: #fffaf4; color: #795942; font-size: 12px; font-weight: 600; cursor: pointer; }
body.mobile .auth-method:active { background: #fff0e3; }
body.mobile #auth-msg { padding: 2px 3px; line-height: 1.6; }
body.mobile .auth-method { display: flex; align-items: center; justify-content: center; gap: 5px; }
body.mobile .auth-method small { color: #aa9482; font-size: 9px; font-weight: 500; }
body.mobile #s-home .home-capture { border-bottom: 0; border-radius: 19px 19px 0 0; box-shadow: none; }
body.mobile #s-home .home-journal { margin-top: 0; border-top: 0; border-radius: 0 0 19px 19px; padding-top: 22px; box-shadow: 0 11px 23px rgba(124,81,45,.065); }
