/* 林间轻舟 · 以选定概念图为准的单一视觉系统 */
:root {
  --mint:#39785c; --mint-dark:#244f3c; --mint-bg:#eaf2ec;
  --coral:#ba6944; --coral-dark:#a45732; --cream:#f6f8f3;
  --ink:#243b30; --ink2:#64756a; --card:#fff;
  --hairline:1px solid #e8eee7; --radius:24px;
  --shadow:0 5px 22px rgba(38,68,49,.045); --shadow-sm:0 2px 10px rgba(38,68,49,.035);
}
html { background:#e9eee7; scroll-padding-bottom:150px; }
body { position:relative; background:var(--cream); min-height:100dvh; padding-bottom:calc(82px + env(safe-area-inset-bottom)); line-height:1.5; }
button,input,textarea,select,a { touch-action:manipulation; }
button,input,select,textarea { color:var(--ink); }
a { color:var(--mint-dark); }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid #477f62; outline-offset:3px; }
button:disabled { cursor:wait; }
button .ic { pointer-events:none; }
.view { min-height:60vh; padding:18px 16px 20px; }
.view h3 { font-size:18px; letter-spacing:-.3px; }
.card { border:var(--hairline); box-shadow:var(--shadow); padding:20px; margin-bottom:16px; }
.row>.grow,.grow,.info { min-width:0; }
.btn { min-height:46px; border-radius:14px; padding:11px 18px; font-weight:650; background:var(--mint-dark); color:#fff; box-shadow:none; transition:background .18s,transform .18s; text-decoration:none; }
.btn:hover { filter:brightness(.97); }
.btn-ghost { color:var(--mint-dark); background:var(--mint-bg); }
.btn-line { color:var(--ink2); background:#fff; border:1px solid #dce5da; }
.btn-coral { background:var(--coral); }
.btn-lg { min-height:52px; }
.chip { background:var(--mint-bg); color:var(--mint-dark); font-size:13px; min-height:36px; padding:8px 13px; }
.muted { color:var(--ink2); line-height:1.6; }
.field label { color:#506557; font-weight:550; }
.field input,.field textarea,.field select,.weight-input input { border:1.5px solid #dce6dc; min-height:48px; border-radius:13px; }
.field input:focus,.field textarea:focus,.field select:focus { border-color:var(--mint); }
.field input,.field select,.field textarea,.weight-input input { min-width:0; }
.field textarea { line-height:1.65; }
.seg button { min-height:44px; border-width:1.5px; }
.seg button.on { background:var(--mint-bg); }
.topbar { padding:calc(12px + env(safe-area-inset-top)) 20px 12px; background:rgba(246,248,243,.94); border-color:#e5ece3; box-shadow:none; }
.topbar .logo { width:32px; height:32px; border-radius:11px; box-shadow:none; }
.topbar .tt { color:var(--mint-dark); font-size:19px; letter-spacing:.5px; }
.topbar .date { color:#536c5d; background:#eaf0e7; font-weight:500; }
body[data-route="today"] .topbar { position:absolute; top:0; left:0; right:0; background:transparent; border:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
body[data-route="today"] .topbar .logo { display:none; }
body[data-route="today"] .topbar .tt { font-size:27px; letter-spacing:1px; }
body[data-route="today"] .topbar .date { display:none; }
.welcome-hero { min-height:218px; margin:-18px -16px -26px; padding:70px 22px 48px; position:relative; background-image:linear-gradient(90deg,rgba(248,250,245,.6),rgba(248,250,245,0) 72%),url('/assets/forest-hero-v2.webp'); background-size:cover; background-position:right center; }
.welcome-date { color:#4c6b59; font-size:13px; margin-bottom:7px; }
.welcome-hero h1 { font-size:23px; color:#214c36; font-weight:750; letter-spacing:-.8px; margin-bottom:7px; }
.welcome-hero p { max-width:215px; font-size:11px; color:#5b7464; }
.dashboard-weight.card { position:relative; z-index:1; padding:18px; border:1px solid rgba(255,255,255,.9); background:rgba(255,255,255,.97); color:var(--ink); border-radius:28px; box-shadow:0 6px 24px rgba(42,78,55,.045); margin-bottom:12px; }
.weight-card-heading { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.dashboard-weight .dayline { color:var(--ink2); font-size:12px; }
.dashboard-weight .dayline b { color:var(--mint-dark); font-size:14px; }
.target-pill { display:flex; align-items:center; gap:3px; background:#f0f5ef; border-radius:999px; padding:7px 9px; color:var(--mint-dark); font-size:11px; text-decoration:none; white-space:nowrap; min-height:36px; }
.target-pill b { font-size:13px; font-weight:650; }
.target-pill .ic { width:13px; height:13px; }
.weight-overview { display:grid; grid-template-columns:1.08fr 1fr; gap:8px; align-items:center; margin:10px 0 18px; }
.weight-current { min-width:0; }
.weight-caption { font-size:11px; color:var(--ink2); margin-bottom:2px; }
.weight-number { font-size:52px; line-height:1.2; font-weight:760; letter-spacing:-2px; font-variant-numeric:tabular-nums; color:var(--mint-dark); white-space:nowrap; }
.weight-number>span { font-size:16px; font-weight:400; margin-left:5px; color:var(--ink2); letter-spacing:0; }
.weight-context { display:block; font-size:10px; color:var(--ink2); margin-top:6px; }
.weight-delta { display:inline-flex; font-size:11px; padding:4px 8px; border-radius:999px; margin-top:7px; background:#f1f6f0; color:var(--mint-dark); }
.weight-delta.up { color:#a45c35; background:#fff4e9; }
.weight-trend { min-width:0; padding-top:10px; }
.weight-sparkline { display:block; width:100%; height:auto; }
.trend-dates { display:flex; justify-content:space-between; padding:0 8px; font-size:9px; color:var(--ink2); }
.trend-empty { min-height:90px; display:flex; align-items:center; justify-content:center; gap:10px; color:#6c8070; font-size:11px; }
.trend-seed { color:#6a9279; font-size:25px; }
.weight-record.btn { min-height:48px; border-radius:16px; font-size:16px; background:linear-gradient(110deg,#28503e,#376d54); }
.weight-record .ic { width:19px; height:19px; margin-right:6px; }
.start-plan-link { display:block; text-align:center; font-size:13px; padding-top:12px; }
.advice-card { display:flex; align-items:center; position:relative; isolation:isolate; overflow:hidden; border-radius:24px; padding:16px; background:linear-gradient(110deg,#eaf2eb,#dceadd); margin-bottom:20px; min-height:126px; }
.advice-card::after { content:''; position:absolute; z-index:-1; width:130px; height:130px; right:-25px; bottom:-50px; border-radius:50%; border:18px solid rgba(255,255,255,.25); }
.advice-copy { width:76%; position:relative; z-index:2; }
.eyebrow { display:block; color:#53705c; font-size:10px; letter-spacing:.5px; margin-bottom:5px; }
.advice-card h2 { color:#234a35; font-size:17px; font-weight:750; letter-spacing:-.3px; }
.advice-card p { font-size:10px; color:#617568; margin-top:4px; }
.advice-link { display:inline-flex; align-items:center; gap:3px; font-size:12px; font-weight:650; color:#214e36; text-decoration:none; padding:8px 0 0; min-height:35px; }
.advice-mascot { width:102px; height:116px; object-fit:contain; position:absolute; right:0; bottom:-10px; z-index:1; }
.section-heading { display:flex; align-items:center; gap:10px; padding:0 3px; margin:0 0 12px; }
.section-heading h2 { font-size:19px; font-weight:750; letter-spacing:.3px; flex:1; }
.section-heading>span { color:var(--ink2); font-size:11px; }
.task-manage { background:transparent; border:0; color:var(--ink2); min-height:44px; min-width:44px; font-size:11px; padding:0 4px; }
.task-manage .ic { width:13px; height:13px; margin-right:2px; }
.task-card { box-shadow:none; border:1px solid #e8eee5; padding:16px 12px; gap:11px; margin-bottom:10px; border-radius:22px; min-height:96px; background:#fff; }
.task-card .ico { width:44px; height:48px; border-radius:15px; flex-shrink:0; }
.task-water .ico { background:#eaf4fb; }
.task-water .ico .ic { color:#4a92b7; }
.task-meal .ico { background:#fcf3de; }
.task-meal .ico .ic { color:#ba9444; }
.task-walk .ico { background:#e8f3e9; }
.task-walk .ico .ic { color:#438363; }
.task-custom .ico .ic { color:#8a739f; }
.task-card .info .t1 { font-size:14px; line-height:1.45; font-weight:650; overflow-wrap:anywhere; }
.task-card .info .t2 { font-size:11px; line-height:1.5; margin-top:4px; overflow-wrap:anywhere; }
.task-card .act { flex-shrink:0; }
.task-card .act .btn { min-height:44px; padding:10px 12px; min-width:66px; font-size:12px; border-radius:14px; }
.task-card.done { opacity:1; background:#fafcf8; }
.task-card.done .t1 { text-decoration:none; }
.task-card.done .ico { opacity:.7; }
.task-card.done .act .muted { font-size:11px; }
.task-progress { height:5px; background:#edf0ed; margin-top:8px; border-radius:999px; overflow:hidden; }
.task-progress>i { display:block; background:#82b09b; height:100%; border-radius:999px; }
.task-water .task-progress { display:flex; gap:4px; height:7px; background:none; }
.task-water .task-progress>i { flex:1; background:#e7edf1; border-radius:5px; }
.task-water .task-progress>i.filled { background:#82b4cc; }
.task-status { font-size:11px; color:var(--mint-dark); white-space:nowrap; }
.task-status .ic { width:17px; height:17px; vertical-align:-4px; margin-right:2px; }
.task-manage-row { width:100%; display:flex; align-items:center; gap:10px; padding:12px 0; min-height:50px; border:0; border-bottom:var(--hairline); background:none; text-align:left; font-size:15px; }
.task-manage-row .ic { color:var(--mint); }
.task-manage-row .grow { flex:1; }
.tasks-celebration { color:var(--mint-dark); padding:8px 6px 16px; font-size:12px; }
.empty-tasks { display:flex; gap:14px; align-items:center; }
.empty-tasks img { width:76px; flex-shrink:0; }
.empty-tasks h3 { font-size:15px; }
.empty-tasks p { font-size:12px; }
.text-link { display:inline-flex; align-items:center; min-height:40px; font-size:13px; }
.hunger-entry { display:flex; align-items:center; gap:8px; min-height:93px; border-radius:23px; margin-top:18px; padding:12px 13px 10px 0; text-decoration:none; color:#67442b; background:linear-gradient(115deg,#fae9cf,#fff0dd); overflow:hidden; }
.hunger-entry>img { width:73px; height:80px; object-fit:contain; align-self:flex-end; margin-bottom:-14px; }
.hunger-entry>div { flex:1; min-width:0; }
.hunger-entry h2 { font-size:15px; font-weight:700; }
.hunger-entry p { color:#8a735b; font-size:10px; margin-top:5px; }
.hunger-entry>span { flex-shrink:0; width:31px; height:31px; background:rgba(255,255,255,.55); border-radius:50%; display:grid; place-items:center; }
.home-footnote { text-align:center; color:#768772; font-size:10px; padding:20px 0 0; letter-spacing:1px; }
#nav { background:rgba(255,255,255,.97); border-top:1px solid #e5ece2; border-radius:22px 22px 0 0; box-shadow:0 -3px 18px rgba(38,68,49,.035); min-height:68px; align-items:stretch; }
.nav-item { font-size:11px; padding:11px 0 9px; color:#718075; position:relative; min-height:66px; }
.nav-item .i { margin-bottom:3px; line-height:1; }
.nav-item .i .ic { width:23px; height:23px; }
.nav-item.on { background:none; color:var(--mint); }
.nav-item.on::after { content:''; position:absolute; bottom:6px; height:3px; width:13px; left:calc(50% - 6.5px); border-radius:2px; background:var(--mint); }
.nav-item.nav-ai .i { width:48px; height:48px; margin:-24px auto 3px; border:3px solid #fff; background:#8cbea2; box-shadow:0 3px 10px rgba(38,68,49,.12); }
.nav-item.nav-ai .i img { width:37px; height:37px; object-fit:cover; }
#player-bar { border-radius:18px 18px 0 0; box-shadow:0 -2px 12px rgba(38,68,49,.06); bottom:calc(68px + env(safe-area-inset-bottom)); gap:5px; padding:10px 10px; }
#player-bar .ctl { min-width:35px; min-height:42px; padding:6px; }
#player-bar .meta .t { font-size:13px; }
#player-bar .meta .a { font-size:11px; }
#player-bar img { width:36px; height:36px; }
#hunger-bar { border-radius:0; background:#aa6440; box-shadow:none; min-height:44px; }
.chat-input { padding:10px; gap:7px; background:rgba(246,248,243,.97); bottom:calc(68px + env(safe-area-inset-bottom)); }
.chat-input input { min-width:0; }
.chat-input #ai-input { padding:11px 12px; font-size:14px; border-color:#dce6dc; }
.btn-send { background:var(--mint-dark); box-shadow:none; }
.voice-btn { min-height:44px; min-width:40px; width:40px; height:44px; }
.chat-list { padding-top:8px; }
.bubble-row { gap:10px; margin-bottom:18px; }
.bubble { font-size:15px; padding:14px 16px; border-radius:20px; }
.bubble.ai { border-top-left-radius:5px; box-shadow:none; }
.bubble.user { background:var(--mint); border-top-right-radius:5px; }
.bubble-row .avatar { width:32px; height:32px; box-shadow:none; }
#ai-chips { gap:10px; }
#ai-chips .chip { min-height:52px; border-radius:17px; font-size:12px; box-shadow:none; }
.think-wrap { margin-bottom:108px; padding:10px 0; }
.think-pill { min-height:38px; color:#596e5f; }
.think-opt { min-height:36px; }
.think-pop { right:0; }
.att-row { position:fixed; left:0; right:0; z-index:30; background:var(--cream); padding:6px 12px; }
.att-row[hidden] { display:none; }
.plan-hero { background:#fff; }
.plan-banner { max-height:150px; object-fit:cover; margin-bottom:18px; border-radius:18px; box-shadow:none; }
.plan-title { font-size:21px; }
.plan-progress { height:7px; background:#edf2e9; box-shadow:none; }
.plan-progress .bar { background:#568d6d; box-shadow:none; }
.plan-actions .btn { padding:10px 12px; font-size:13px; }
.plan-kg { margin-top:11px; }
.stat-grid { gap:12px; }
.stat-cell { text-align:left; padding:18px; border:var(--hairline); border-radius:23px; box-shadow:none; }
.stat-cell .v { font-size:30px; letter-spacing:-.7px; font-weight:720; }
.stat-cell .k { font-size:11px; margin-top:5px; }
.chart-wrap svg { max-width:none; }
.chart-wrap text { fill:var(--ink2); }
.me-hero { background:#eaf1e7; border-color:#e3ebdf; box-shadow:none; padding:20px 16px; }
.me-avatar { width:48px; height:48px; border-radius:17px; box-shadow:0 0 0 3px #fff; }
.me-name { font-size:18px; }
.me-hero .muted { font-size:11px; margin-top:4px; }
.me-bmi b { font-size:22px; }
.me-row { min-height:60px; font-size:14px; border-color:#edf1e9; }
.me-row .chev { color:#8f9c90; }
.me-list { padding:3px 18px; }
.empty-box img { max-width:180px; border-radius:18px; }
.hungry-hero { width:55%; max-width:180px; border-radius:24px; }
.timer-big { font-size:47px; color:#a86640; }
.hg-tip { background:#eef4e9; font-size:14px; }
.walk-screen .walk-timer { color:var(--mint-dark); font-size:58px; letter-spacing:-1px; }
.walk-song { background:#eaf2e7; }
.walk-enc { font-size:14px; }
.cat-tabs { scrollbar-width:thin; }
.cat-tabs .chip.on { background:var(--mint-dark); }
.rec-card { border-radius:17px; padding:8px; box-shadow:none; }
.rec-card.playing { border-color:#5d9577; box-shadow:0 0 0 2px #c9dfcc; }
.rec-head .muted { font-size:11px; }
.rec-head .op { min-width:66px; min-height:44px; padding:8px 10px; }
.song-row .op { min-height:44px; }
.cv-add,.cv-dis { width:30px; height:30px; }
.cv-dis { right:38px; }
.pn-row { padding:12px 10px; border-radius:18px; }
.pn-row .row { gap:7px; }
.pn-num { width:60px; min-height:44px; }
.pn-txt { width:100%; min-height:44px; }
.pn-every { min-height:44px; }
.pn-del { min-height:44px; min-width:44px; }
.pn-startkg { background:#edf3e8; color:var(--mint-dark); }
.seg-sm button { font-size:12px; padding:8px 5px; }
.freq-chip { color:#995d33; background:#fcf0dc; font-size:10px; }
.modal-open { overflow:hidden; }
.modal-mask { background:rgba(26,46,34,.38); backdrop-filter:blur(3px); }
.modal { max-height:88dvh; overflow-y:auto; overscroll-behavior:contain; border-radius:28px 28px 0 0; padding:24px 22px calc(24px + env(safe-area-inset-bottom)); box-shadow:0 -12px 50px rgba(30,52,38,.08); }
.modal h3 { font-size:19px; }
.modal .btn-row .btn { padding:12px 8px; min-width:0; }
.modal p { line-height:1.7; }
#toast { background:#294a36; border-radius:16px; max-width:calc(100% - 40px); width:max-content; font-size:13px; }
@media (min-width:600px) { body { box-shadow:0 0 60px rgba(40,66,46,.06); } .welcome-hero { min-height:245px; padding-top:80px; } .welcome-hero h1 { font-size:27px; } .welcome-hero p { font-size:12px; max-width:260px; } .weight-number { font-size:62px; } .advice-mascot { width:126px; height:134px; } }
@media (max-width:350px) { .view { padding-left:12px; padding-right:12px; } .welcome-hero { margin-left:-12px; margin-right:-12px; padding-left:18px; min-height:205px; } .welcome-hero h1 { font-size:20px; } .welcome-hero p { font-size:10px; max-width:180px; } .dashboard-weight.card { padding:15px; } .weight-number { font-size:44px; } .target-pill { font-size:10px; padding:6px 7px; } .target-pill b { font-size:12px; } .task-card { padding:14px 10px; gap:8px; } .task-card .ico { width:36px; height:42px; border-radius:13px; } .task-card .ico .ic { width:22px; height:22px; } .task-card .info .t1 { font-size:13px; } .task-card .act .btn { min-width:60px; padding:10px 8px; font-size:11px; } .advice-card { padding:15px; } .advice-card h2 { font-size:15px; } .advice-card p { max-width:170px; } .advice-mascot { width:84px; height:98px; right:-4px; } .hunger-entry h2 { font-size:13px; } .hunger-entry p { font-size:9px; } .hunger-entry>img { width:58px; height:68px; } .hunger-entry>span { width:27px; height:27px; } .chat-input { gap:5px; padding:8px; } .voice-btn { width:36px; min-width:36px; } .chat-input #ai-input { padding-left:9px; padding-right:9px; } .stat-cell { padding:16px; } .rec-grid { gap:7px; } .me-hero { gap:10px; padding:17px 12px; } }
.welcome-hero { background-position:85% center; min-height:205px; }
.welcome-hero p { font-size:11px; max-width:205px; color:#4e6755; }
.advice-card p { color:#4f6657; font-size:11px; }
.chat-intro { display:flex; gap:17px; align-items:center; padding:16px 12px; background:#eaf1e7; border-radius:24px; margin-bottom:20px; }
.chat-intro>img { width:76px; height:82px; object-fit:contain; align-self:flex-end; margin-bottom:-16px; }
.chat-intro h2 { font-size:21px; color:var(--mint-dark); }
.chat-intro p { font-size:11px; color:var(--ink2); margin-top:5px; }
@media(max-width:350px) { .welcome-hero { background-position:77% center; } .welcome-hero p { max-width:170px; font-size:11px; } .pn-row { display:grid; grid-template-columns:30px minmax(0,1fr); gap:9px; } .pn-ico { width:30px; height:34px; } .pn-row .seg button { white-space:nowrap; font-size:11px; padding:6px 3px; } .pn-row .pn-txt { width:100%!important; } .pn-row .pn-num { width:54px; } .pn-row .pn-del { margin-left:auto; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
.hunger-companion { display:block; width:100px; height:108px; object-fit:contain; margin:0 auto 15px; }
.hunger-method-label { display:flex; align-items:center; justify-content:center; gap:9px; margin:4px 0 12px; }
.hunger-method-label>span { background:#edf4e8; color:var(--mint-dark); font-size:12px; border-radius:999px; padding:5px 11px; }
.hunger-method-label small { font-size:11px; color:var(--ink2); }
.hunger-tip-title { line-height:1.6; font-size:19px; }
.hunger-care-note { color:#657769; font-size:12px; line-height:1.7; margin-top:13px; }
.hunger-loading { padding:10px 0; }
.hunger-loading h3 { font-size:17px; margin-bottom:8px; }
#hg-tipcard .hg-tip { min-height:88px; }
#hg-change { min-height:44px; }
/* 固定栏不做实时背景模糊，减少移动 WebView 滚动时的重绘。 */
.topbar,#nav,.chat-input,#player-bar,#hunger-bar,.think-pill { backdrop-filter:none; -webkit-backdrop-filter:none; }
.topbar,.chat-input { background:#f6f8f3; }
#nav,#player-bar { background:#fff; }
.btn-send:disabled { opacity:.55; cursor:wait; }
.boot-state { min-height:350px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:45px 20px; }
.boot-state h1 { font-size:20px; margin:16px 0 12px; }
.boot-state p { font-size:13px; color:var(--ink2); max-width:270px; }
