/* VK Home — 移动优先。暖色、大点击区域、中英双行文字。 */
:root {
  color-scheme: light;
  --bg: #faf6f0; --surface: #ffffff; --surface-2: #f5eee5; --ink: #2a2420; --ink-2: #6b6159; --ink-3: #6f645b; --line: #eadfd2;
  --brand: #c8441b; --brand-ink: #ffffff; --brand-soft: #fdebe3; --brand-dark: #a93615;
  --green: #267347; --green-soft: #e3f4ea; --amber: #9a5b00; --amber-soft: #fff1d6; --red: #c0332d; --red-soft: #fde8e6; --blue: #1f67bd; --blue-soft: #e4effc;
  --green-bg: #2a7d4f; --red-bg: #c0332d; /* 实心底色（上面放白字） */
  --viz-1: #2a78d6; --viz-1-hot: #5598e7;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px rgba(60, 40, 20, .06);
  --radius: 16px; --tab-h: 62px;
  --sab: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #171412; --surface: #221e1b; --surface-2: #2b2622; --ink: #f3ece4; --ink-2: #bdb2a7; --ink-3: #a0958b; --line: #3a332d;
    --brand: #f06a40; --brand-ink: #1f1410; --brand-soft: #3a2118; --brand-dark: #ff8560;
    --green: #4cc38a; --green-bg: #2a7d4f; --green-soft: #173326; --amber: #f0a73a; --amber-soft: #3a2c10; --red: #ee6a63; --red-soft: #3d1c1a; --blue: #6da7ec; --blue-soft: #17283f;
    --viz-1: #3987e5; --viz-1-hot: #6da7ec;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; overscroll-behavior-y: none; }
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: left; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.h1-reset { font-size: inherit; font-weight: inherit; line-height: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }

/* ---- 双语文字 ---- */
.bi { display: inline-flex; flex-direction: column; min-width: 0; }
.bi .p { font-weight: 600; }
.bi .s { font-size: .8125rem; color: var(--ink-2); font-weight: 400; line-height: 1.3; }
.s-inline { color: var(--ink-2); font-weight: 400; font-size: .9em; }
.bi.center, .center { text-align: center; align-items: center; }
.bi.muted .p, .muted { color: var(--ink-2); }
.bi.muted .p { font-weight: 500; }
.bi.muted .s { color: var(--ink-3); }
.small { font-size: .8125rem; }
.bi.small .p { font-size: .8125rem; } .bi.small .s { font-size: .75rem; }
.bi.pre .p, .bi.pre .s { white-space: pre-line; font-weight: 400; }
.bi.pre .p { font-size: 1rem; line-height: 1.55; } .bi.pre .s { margin-top: 6px; line-height: 1.5; }
.big-title .p { font-size: 1.5rem; font-weight: 700; } .big-title .s { font-size: .9rem; }
.greet .p { font-size: 1.35rem; font-weight: 700; }

/* ---- 外壳 ---- */
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 8px; color: var(--ink-2); font-weight: 700; font-size: 1.2rem; }
.boot-logo { font-size: 3.5rem; }
.shell { max-width: 720px; margin: 0 auto; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-logo { font-size: 1.5rem; }
.who { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.who-name { font-weight: 600; }
.content { padding: 12px 14px calc(var(--tab-h) + var(--sab) + 28px); }
.page { display: flex; flex-direction: column; gap: 12px; }
.tabbar { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 720px); height: calc(var(--tab-h) + var(--sab)); padding-bottom: var(--sab);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(60, 40, 20, .06); }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink-3); text-align: center; }
.tabbar button .bi { align-items: center; }
.tabbar button .bi .p { font-size: .72rem; font-weight: 700; color: inherit; }
.tabbar button .bi .s { font-size: .64rem; color: inherit; }
.tabbar .tab-icon { font-size: 1.35rem; line-height: 1.1; filter: grayscale(1); opacity: .65; }
.tabbar button.on { color: var(--brand); }
.tabbar button.on .tab-icon { filter: none; opacity: 1; }
/* 正中间的「点菜」：图标放在一个凸出来的圆里，一眼就能找到 */
.tabbar button.main .tab-icon { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; display: grid; place-content: center; font-size: 1.5rem; filter: none; opacity: 1; background: var(--surface); border: 2px solid var(--line); box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.tabbar button.main.on .tab-icon { background: var(--brand); border-color: var(--brand); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 45%, transparent); }
.tabbar button.main { color: var(--ink-2); } .tabbar button.main.on { color: var(--brand); }
.bar-space { height: 8px; } .bar-space.tall { height: 170px; }
.actionbar, .cartbar { position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); width: min(100%, 720px); bottom: calc(var(--tab-h) + var(--sab));
  padding: 10px 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.actionbar { flex-direction: column; align-items: stretch; }
.action-col { display: flex; flex-direction: column; gap: 6px; align-items: stretch; width: 100%; }
.cartbar { justify-content: space-between; }
.cartbar .btn { white-space: nowrap; flex: none; }
.cart-info { display: flex; flex-direction: column; font-size: .9rem; min-width: 0; }

/* ---- 页面头 ---- */
.page-head { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.page-title { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0; font-size: 1rem; font-weight: inherit; line-height: inherit; }
.page-title > .bi:first-child .p { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; } .page-title > .bi:first-child .s { font-size: .85rem; }
.page-title > .bi:not(:first-child) .p { font-size: .9rem; font-weight: 600; color: var(--ink-2); } .page-title > .bi:not(:first-child) .s { font-size: .75rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 1.5rem; line-height: 1; display: grid; place-content: center; text-align: center; flex: none; }
.icon-btn:disabled { opacity: .35; }
.home-top { display: flex; flex-direction: column; gap: 2px; }

/* ---- 卡片 / 通用 ---- */
.card { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); text-align: left; width: 100%; }
.sec-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.sec-title .chip { margin-left: auto; }
.list-title { font-weight: 700; margin-top: 4px; color: var(--ink-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.push-right { margin-left: auto; }
.banner { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .92rem; text-align: left; width: 100%; }
.banner.amber { background: var(--amber-soft); color: var(--amber); } .banner.green { background: var(--green-soft); color: var(--green); }
.banner.red { background: var(--red-soft); color: var(--red); } .banner.soft { background: var(--surface-2); color: var(--ink-2); }
.banner .bi .s { color: inherit; }
.banner.link { cursor: pointer; font-weight: 600; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; color: var(--ink-2); text-align: center; }
.empty-icon { font-size: 3rem; }
.spinner-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 12px; }
.spinner-wrap.small { padding: 10px 6px; flex-direction: row; gap: 10px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.spinner-wrap.small .spinner { width: 20px; height: 20px; border-width: 2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.chip.green { background: var(--green-soft); color: var(--green); } .chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.red { background: var(--red-soft); color: var(--red); } .chip.blue { background: var(--blue-soft); color: var(--blue); } .chip.soft { background: var(--brand-soft); color: var(--brand-dark); }
.chip .muted { font-weight: 400; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress div { height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; } .progress.green div { background: var(--green-bg); }
.avatar { display: inline-grid; place-content: center; border-radius: 50%; background: var(--surface-2); line-height: 1; flex: none; border: 1.5px solid var(--surface); }
.by { display: inline-flex; margin-left: 2px; } .by .avatar { margin-left: -6px; } .by .avatar:first-child { margin-left: 0; }
.recipe-hero, .step-img, .dcard-img, .rc-img, .dish-thumb, .dish-photo { background: var(--surface-2); }
.dish-info .bi .p, .rc-body .bi .p, .dcard-body .bi .p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.img-fallback { display: grid; place-content: center; background: var(--brand-soft); font-size: 2rem; }
.badge { background: var(--brand); color: var(--brand-ink); border-radius: 99px; font-size: .7rem; padding: 0 6px; min-width: 18px; text-align: center; font-weight: 700; margin-left: 4px; }

/* ---- 按钮 / 表单 ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; text-align: center; transition: transform .05s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:active { background: var(--brand-dark); }
.btn.ghost { background: transparent; } .btn.danger { background: var(--red-bg); color: #fff; border-color: var(--red-bg); }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: .85rem; border-radius: 10px; }
.btn.wide { width: 100%; } .btn.big { min-height: 52px; font-size: 1.05rem; border-radius: 14px; }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn .s-inline { color: inherit; }
.danger-text { color: var(--red); }
.btn-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 0; }
.link-btn { color: var(--brand-dark); font-weight: 600; padding: 6px 4px; font-size: .9rem; display: inline-block; cursor: pointer; }
.center-btn { align-self: center; text-align: center; }
.x-btn { width: 30px; height: 30px; border-radius: 8px; color: var(--ink-3); font-size: 1rem; text-align: center; }
.photo-btn { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
.photo-btn label.btn { cursor: pointer; } .photo-btn .link-btn { align-self: center; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.form { display: flex; flex-direction: column; gap: 12px; }
input[type=text], input[type=password], input[type=search], input[type=date], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { resize: vertical; min-height: 80px; }
.search { margin: 0; border-radius: 99px; padding-left: 16px; }
.form-error { color: var(--red); background: var(--red-soft); padding: 8px 12px; border-radius: 10px; font-size: .9rem; }
.check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-content: center; flex: none; font-weight: 800; color: #fff; font-size: .9rem; }
.check.big { width: 32px; height: 32px; border-radius: 10px; }
.check.on { background: var(--green-bg); border-color: var(--green-bg); }
.check-row { display: flex; gap: 8px; align-items: center; } .check-row input { width: 22px; height: 22px; accent-color: var(--brand); }
.stars { display: inline-flex; gap: 2px; } .star { color: var(--line); line-height: 1; padding: 0 1px; text-align: center; } .star.on { color: #f2a33a; } .star:disabled { cursor: default; }

/* ---- 分段 / 分类 / 日期 ---- */
.segmented { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; }
.segmented button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; border-radius: 11px; text-align: center; color: var(--ink-2); min-height: 44px; }
.segmented button .bi { align-items: center; } .segmented button .bi .p { font-size: .9rem; } .segmented button .bi .s { font-size: .7rem; }
.segmented button.on { background: var(--surface); box-shadow: 0 1px 4px rgba(60, 40, 20, .12); color: var(--ink); }
.segmented.compact { padding: 3px; } .segmented.compact button { min-height: 36px; padding: 4px 12px; font-weight: 600; }
.seg-icon { font-size: 1.1rem; }
.catbar { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scrollbar-width: none; }
.catbar::-webkit-scrollbar, .datestrip::-webkit-scrollbar { display: none; }
.cat { flex: none; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.cat.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .cat .s-inline { color: inherit; }
.cat-n { font-size: .75rem; margin-left: 2px; color: var(--ink-2); } .cat.on .cat-n { color: inherit; }
.view-switch { display: flex; gap: 6px; margin: 2px 0 8px; }
.datestrip { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; }
.date-chip { flex: none; min-width: 58px; display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; text-align: center; }
.date-chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.dc-top { font-size: .75rem; font-weight: 600; } .dc-day { font-size: 1rem; font-weight: 700; }
.dc-dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); } .dc-dot.done { background: var(--green); }
.date-chip.on .dc-dot { box-shadow: 0 0 0 2px var(--brand); }
.date-chip.pick { overflow: hidden; } .date-chip.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.date-chip.pick .dc-day { font-size: .75rem; }
.plan-dates { display: flex; flex-direction: column; gap: 8px; }
.pd-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: stretch; }
.pd-big { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 68px; padding: 8px 14px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); text-align: left; }
.pd-big .pd-rel .p { font-size: 1.25rem; font-weight: 800; } .pd-big .pd-date { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.pd-big.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 35%, transparent); } .pd-big.on .pd-date, .pd-big.on .pd-rel .s { color: inherit; }
.pd-big .dc-dot { top: 8px; right: 10px; width: 9px; height: 9px; } .pd-big.on .dc-dot { box-shadow: 0 0 0 2px var(--brand); }
.pd-more { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 76px; max-width: 120px; padding: 6px 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .8rem; font-weight: 600; text-align: center; }
.pd-more.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .pd-more .badge { position: absolute; top: -6px; right: -4px; margin: 0; }
.pd-more-ic { font-size: 1.15rem; line-height: 1; } .pd-more-t { line-height: 1.2; } .pd-more .caret { font-size: .7rem; }
.pd-more.on .dc-dot { top: 6px; right: 8px; box-shadow: 0 0 0 2px var(--brand); }
.pd-big.on .s-inline, .pd-more.on .s-inline { color: inherit; }
.pd-panel { background: var(--surface-2); border-radius: 14px; padding: 8px 4px 6px; } .pd-strip { margin: 0; padding: 2px 8px 4px; }
.search-hero { position: relative; margin: 4px 0 2px; }
.search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; pointer-events: none; }
.search-hero input.search-big { margin: 0; min-height: 54px; border-radius: 99px; padding: 10px 16px 10px 48px; font-size: 1.05rem; font-weight: 500; border: 2.5px solid var(--brand); background: var(--surface); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 22%, transparent); }
.search-hero input.search-big::placeholder { color: var(--ink-2); font-weight: 500; }
.daynav { display: flex; align-items: center; gap: 8px; }
.daynav-mid { flex: 1; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.daynav-mid input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.target-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: .9rem; align-self: flex-start; }
.target-label b { font-weight: 700; } .caret { opacity: .6; }

/* ---- 登录 ---- */
.login { min-height: 100vh; display: grid; place-content: center; padding: 20px; background: linear-gradient(180deg, var(--brand-soft), var(--bg) 60%); }
.login-card { width: min(100%, 400px); background: var(--surface); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.login-logo { font-size: 3.4rem; text-align: center; line-height: 1; } .login-title { text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.login-hint { margin-top: 8px; }
.login-users { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.login-user { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--surface-2); border: 2px solid transparent; }
.login-user:active { border-color: var(--brand); }
.login-form { display: flex; flex-direction: column; gap: 12px; } .login-picked { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pw-row { display: flex; gap: 6px; align-items: center; } .pw-row .link-btn { flex: none; }

/* ---- 菜品行 / 餐段 ---- */
.meal-head { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; } .meal-head .bi .p { font-size: 1.1rem; font-weight: 700; } .meal-head .chip { margin-left: auto; }
.meal-ic { font-size: 1.5rem; }
.dish-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.meal-head + .dish-row { border-top: 0; padding-top: 4px; }
.dish-main { display: flex; align-items: center; gap: 12px; width: 100%; }
.dish-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; font-size: 1.5rem; }
.dish-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .dish-info .bi .p { font-size: 1rem; }
.dish-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dish-notes { display: flex; flex-direction: column; gap: 4px; }
.note { overflow-wrap: anywhere; background: var(--amber-soft); color: var(--amber); padding: 6px 10px; border-radius: 10px; font-size: .9rem; font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.note .bi .s, .note .s-inline { color: inherit; } .note.big { font-size: 1rem; padding: 10px 12px; }
.dish-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.reviews { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); padding: 10px; border-radius: 12px; }
.review-line { display: flex; gap: 8px; align-items: flex-start; } .review-body { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; overflow-wrap: anywhere; min-width: 0; }
.dish-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.review-box { width: 100%; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); padding: 12px; border-radius: 12px; }
.meal-icons { letter-spacing: 2px; font-size: .8rem; }
.glance-sec { display: flex; flex-direction: column; gap: 6px; } .glance-sec-title { font-weight: 700; font-size: .92rem; color: var(--ink-2); }

/* ---- 买菜 ---- */
.shop-sec { display: flex; flex-direction: column; } .shop-sec-title { font-weight: 700; padding: 10px 0 4px; color: var(--ink-2); font-size: .95rem; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); width: 100%; min-height: 60px; }
.shop-sec-title + .shop-item { border-top: 0; }
.shop-row { border-top: 1px solid var(--line); } .shop-sec-title + .shop-row { border-top: 0; } .shop-row > .shop-item { border-top: 0; }
.si-extra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 4px 12px 44px; }
.have-btn { padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--green); color: var(--green); background: var(--green-soft); font-weight: 600; font-size: .82rem; text-align: center; }
.recent-hint { font-size: .8rem; font-weight: 600; color: var(--amber); background: var(--amber-soft); padding: 3px 10px; border-radius: 99px; }
.shop-row.have .shop-item { min-height: 52px; } .shop-row.have .check.on { background: var(--green-bg); }
.shop-item.done .bi .p, .shop-item.done .bi .s, .shop-item.done .si-for, .shop-item.done .si-qty-text { color: var(--ink-2); } .shop-item.done .si-main .p { text-decoration: line-through; }
.shop-item.static { padding: 8px 4px; min-height: 0; cursor: default; }
.si-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .si-main .bi .p { font-size: 1.05rem; }
.si-for { font-size: .75rem; color: var(--ink-3); }
.si-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex: none; max-width: 38%; }
.si-qty-text { font-weight: 700; color: var(--brand-dark); font-size: .95rem; }
.pantry-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.shop-sec-title + .pantry-row { border-top: 0; }
.pantry-btns { display: flex; gap: 6px; flex: none; }
.pbtn { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 64px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); text-align: center; color: var(--ink-2); }
.pbtn .bi { align-items: center; } .pbtn .bi .p { font-size: .8rem; } .pbtn .bi .s { font-size: .68rem; }
.pbtn.have { background: var(--green-soft); border-color: var(--green); color: var(--green); } .pbtn.need { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.add-row { display: flex; gap: 8px; margin-top: 8px; } .add-row input { flex: 1; } .add-row .btn { flex: none; }
.receipt-list { display: flex; flex-direction: column; gap: 8px; }
.receipt-card { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface-2); align-items: center; }
.receipt-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.rc-main { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; flex: 1; min-width: 0; } .rc-total { font-weight: 800; font-size: 1.2rem; } .rc-err { word-break: break-word; }
.receipt-strip { display: flex; gap: 8px; overflow-x: auto; }
.receipt-mini { flex: none; width: 110px; display: flex; flex-direction: column; gap: 3px; font-size: .78rem; }
.receipt-mini img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; } .receipt-mini.failed img { outline: 2px solid var(--red); }
.shop-preview { display: flex; flex-direction: column; gap: 4px; }

/* ---- 菜谱 ---- */
.recipe { display: flex; flex-direction: column; gap: 12px; }
.recipe-hero { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.recipe-title .bi .p { font-size: 1.5rem; font-weight: 800; line-height: 1.2; } .recipe-title .bi .s { font-size: 1rem; }
.recipe-intro { margin: 0; padding: 10px 14px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 12px 12px 0; font-size: .95rem; }
.ing-group-title { font-weight: 700; color: var(--brand-dark); font-size: .85rem; margin: 6px 0 2px; text-transform: uppercase; letter-spacing: .03em; }
.ing-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.ing-group-title + .ing-row { border-top: 0; }
.ing-row .ing-name { flex: 1; } .ing-row .ing-qty { text-align: right; align-items: flex-end; color: var(--ink-2); flex: none; max-width: 42%; }
.ing-row .ing-qty .p { font-weight: 600; }
.ing-row.tap, .step.tap { cursor: pointer; } .ing-row.done .bi .p, .ing-row.done .bi .s { color: var(--ink-2); } .ing-row.done .ing-name .p { text-decoration: line-through; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-content: center; font-weight: 800; font-size: .9rem; margin-top: 1px; }
.step-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step-text .p { font-weight: 500; font-size: 1.02rem; line-height: 1.5; } .step-text .s { font-size: .9rem; line-height: 1.45; }
.step-img { width: 100%; border-radius: 12px; aspect-ratio: 3/2; object-fit: cover; }
.step.done .bi .p, .step.done .bi .s { color: var(--ink-2); } .step.done .step-n { background: var(--green-bg); color: #fff; }
.card.tip { background: var(--amber-soft); }

/* ---- 点菜台 ---- */
.order-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dish-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dish-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.dcard-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dcard-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; } .dcard-body .bi .p { font-size: .98rem; }
.dcard-badge { position: absolute; top: 8px; right: 8px; background: var(--green-bg); color: #fff; font-weight: 700; font-size: .8rem; padding: 2px 9px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.recipe-list { display: flex; flex-direction: column; gap: 8px; }
.recipe-card { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); border: 2px solid transparent; }
.recipe-card.picked { border-color: var(--green); background: color-mix(in srgb, var(--green-soft) 50%, var(--surface)); }
.rc-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.rc-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; font-size: 1.6rem; }
.rc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .rc-body .bi .p { font-size: .98rem; }
.rc-side { display: flex; align-items: center; gap: 4px; flex: none; }
.add-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 1.6rem; line-height: 1; display: grid; place-content: center; text-align: center; font-weight: 400; box-shadow: 0 2px 8px rgba(200, 68, 27, .35); }
.add-btn.on { background: var(--green-bg); color: #fff; font-size: 1.3rem; font-weight: 800; box-shadow: none; }
.dish-hero { display: flex; gap: 12px; align-items: center; }
.dish-hero-img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: none; }
.dish-hero-text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---- 今日推荐 / 自定义菜 / 转餐 / 营养分析 ---- */
.reco-card { background: linear-gradient(180deg, var(--brand-soft), var(--surface) 60%); }
.reco-card .sec-title { white-space: nowrap; min-width: 0; } .reco-card .row-between .link-btn { white-space: nowrap; flex: none; }
.pick-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.pick-row::-webkit-scrollbar { display: none; }
.pick-card { flex: none; width: 168px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; scroll-snap-align: start; }
.pick-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pick-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.pick-body .bi .p { font-size: .95rem; }
.pick-why { margin-top: 2px; } .pick-why .p { font-weight: 400; } .pick-why .s { font-size: .72rem; }
.recipe-card { flex-wrap: wrap; }
.custom-actions { width: 100%; display: flex; gap: 14px; padding: 0 4px 2px; justify-content: flex-end; border-top: 1px dashed var(--line); margin-top: 2px; }
.check-text { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.custom-panel, .custom-results { display: flex; flex-direction: column; gap: 10px; }
.add-custom-cta { margin-top: 4px; }
.move-targets { display: flex; flex-direction: column; gap: 10px; }
.move-btn { justify-content: flex-start; gap: 12px; text-align: left; flex-wrap: wrap; padding: 12px 16px; }
.move-btn .bi { flex: 1; min-width: 0; } .move-btn .muted { width: 100%; padding-left: 40px; }
.kpis.four { grid-template-columns: repeat(2, 1fr); }
.nutri-meals { display: flex; flex-direction: column; gap: 8px; }
.nutri-meal { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); padding: 10px 12px; border-radius: 12px; }
.nutri-meal > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nutri-meal .bi:not(.small) .p { font-weight: 400; } .nutri-meal .bi.small .p { font-weight: 700; }
@media (min-width: 560px) { .kpis.four { grid-template-columns: repeat(4, 1fr); } }

/* ---- 账单 / 图表 ---- */
.hero-fig { font-size: 3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--surface-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.kpi-val { font-size: 1.15rem; font-weight: 800; } .kpi.warn { background: var(--amber-soft); } .kpi.warn .kpi-val { color: var(--amber); }
.viz { display: flex; flex-direction: column; gap: 4px; }
.viz-plot { position: relative; margin-left: 32px; }
.viz-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.viz-grid span { position: absolute; left: -34px; top: -8px; width: 30px; text-align: right; font-size: .7rem; color: var(--ink-3); }
.viz-cols { position: absolute; inset: 0; display: flex; align-items: stretch; }
.viz-slot { flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; position: relative; outline: none; }
.viz-col { width: min(100%, 24px); max-width: calc(100% - 2px); background: var(--viz-1); border-radius: 4px 4px 0 0; min-height: 0; transition: background .1s; }
.viz-slot:hover .viz-col, .viz-col.hot, .viz-slot:focus-visible .viz-col { background: var(--viz-1-hot); }
.viz-peak { position: absolute; bottom: 100%; margin-bottom: 0; font-size: .7rem; font-weight: 700; color: var(--ink); transform: translateY(0); white-space: nowrap; display: none; }
.viz-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: var(--bg); border-radius: 10px; padding: 6px 10px; font-size: .78rem; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; z-index: 5; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.viz-tip b { font-size: .95rem; } .viz-tip.left { left: 0; transform: translate(0, -100%); } .viz-tip.right { right: 0; left: auto; transform: translate(0, -100%); }
.viz-x { display: flex; margin-left: 32px; } .viz-x span { flex: 1; text-align: center; font-size: .7rem; color: var(--ink-3); min-width: 0; overflow: visible; white-space: nowrap; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .hbar-label { min-width: 0; } .hbar-val { font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.hbar-track { height: 10px; margin-top: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--viz-1); border-radius: 0 4px 4px 0; } .hbar-sub { margin-top: 2px; }
.recon-grid { display: flex; flex-direction: column; gap: 8px; }
.recon-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .recon-row.total { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 1.05rem; }
.recon-sub { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-2); padding-left: 12px; align-items: center; }
.money-input { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .money-input input { width: 130px; text-align: right; }
.topup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .topup-form input:nth-child(3) { grid-column: 1 / 3; } .topup-form .btn { grid-column: 1 / 3; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; } .tbl th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 6px 4px; font-size: .8rem; }
.tbl td { padding: 10px 4px; border-top: 1px solid var(--line); } .tbl .num { text-align: right; font-variant-numeric: tabular-nums; } .tbl tr.tap { cursor: pointer; }
.receipt-photo { position: relative; display: block; width: 100%; } .receipt-photo img { width: 100%; max-height: 420px; object-fit: contain; background: var(--surface-2); border-radius: 12px; }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .6); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: .78rem; }
.zoom-wrap { max-height: 80vh; overflow: auto; touch-action: pinch-zoom pan-x pan-y; } .zoom-wrap img { width: 200%; max-width: none; }
.item-edit { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.ie-row { display: flex; gap: 6px; align-items: center; } .ie-row .grow { flex: 1; min-width: 0; } .ie-row .qty { width: 64px; flex: none; } .ie-row .amt { width: 90px; flex: none; text-align: right; } .ie-row select { flex: 1; min-width: 0; }

/* ---- 画像 / 历史 / 用户 / 更多 ---- */
.profile-who { display: flex; align-items: center; gap: 12px; } .profile-headline { font-size: 1.3rem; line-height: 1.25; } .profile-headline .bi .p { font-size: 1.3rem; font-weight: 800; }
.profile-summary .p { font-weight: 400; font-size: 1rem; line-height: 1.55; } .profile-summary .s { line-height: 1.5; margin-top: 4px; }
.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; } .plain-list li .bi .p { font-weight: 500; }
.hist-date { font-weight: 700; padding: 2px 0; } .hist-meal { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); } .hist-meal-ic { font-size: 1.3rem; }
.hist-dishes { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; } .hist-dish { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; } .hist-by { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.user-card { flex-direction: row; align-items: center; gap: 12px; } .user-main { flex: 1; display: flex; flex-direction: column; } .user-tags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 6px; } .avatar-pick button { width: 44px; height: 44px; font-size: 1.5rem; border-radius: 12px; background: var(--surface-2); text-align: center; border: 2px solid transparent; } .avatar-pick button.on { border-color: var(--brand); background: var(--brand-soft); }
.more-item { flex-direction: row; align-items: center; gap: 14px; } .more-ic { font-size: 1.8rem; } .more-main { flex: 1; display: flex; flex-direction: column; gap: 2px; } .chev { font-size: 1.6rem; color: var(--ink-3); }

/* ---- 说明 ---- */
.guide-head { display: flex; align-items: center; gap: 10px; } .guide-n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-content: center; font-weight: 800; font-size: .85rem; flex: none; }
.guide-icon { font-size: 1.6rem; } .guide-head .bi .p { font-size: 1.1rem; font-weight: 800; }
.intro-card { background: var(--brand-soft); }

/* ---- 弹层 / 提示 ---- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(20, 12, 6, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: min(100%, 720px); max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + var(--sab)); display: flex; flex-direction: column; gap: 12px; animation: rise .2s; }
.sheet-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); align-self: center; } .sheet-title { font-weight: 700; font-size: 1.05rem; }
@keyframes rise { from { transform: translateY(40px); opacity: .6; } } @keyframes fade { from { opacity: 0; } }
.confirm { display: flex; flex-direction: column; gap: 16px; } .confirm-text .p { font-size: 1.1rem; } .confirm-text .p, .confirm-text .s { white-space: pre-line; }
.acct { display: flex; flex-direction: column; gap: 14px; } .acct-me { display: flex; gap: 12px; align-items: center; } .acct-row { display: flex; flex-direction: column; gap: 8px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tab-h) + var(--sab) + 80px); transform: translateX(-50%); max-width: min(92vw, 420px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); animation: pop .2s; }
.toast .bi .s { color: inherit; } .toast.error { background: var(--red-bg); color: #fff; }
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } }

@media (min-width: 720px) { .dish-grid { grid-template-columns: repeat(3, 1fr); } .content { padding-left: 18px; padding-right: 18px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- 食材照片 / 食材图鉴 ---- */
.ing-pic { border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; display: block; }
.ing-pic.none { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--ink-2); }
.ing-pic.fill { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; }
.thumb-btn { flex: none; padding: 0; line-height: 0; border-radius: 10px; }
.shop-line { display: flex; align-items: center; gap: 10px; } .shop-line .shop-item { flex: 1; min-width: 0; }
.shop-row .si-extra { padding-left: 74px; } .shop-row.have .shop-line { padding: 4px 0; }
.si-qtyline { display: flex; align-items: center; gap: 8px; }
.si-note { font-size: .78rem; color: var(--ink-2); font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip-pic { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.chip.pick { border: 1.5px solid transparent; cursor: pointer; } .chip.pick.on { background: var(--brand); color: var(--brand-ink); }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.ing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .ing-grid { grid-template-columns: repeat(3, 1fr); } }
.ing-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); min-width: 0; }
.ing-card .bi .p { font-size: .95rem; overflow-wrap: anywhere; }
.today-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.strip-card { flex: none; width: 104px; display: flex; flex-direction: column; gap: 4px; } .strip-card .bi .p { font-size: .9rem; } .strip-card .bi .s { font-size: .72rem; }
.pair-card { display: flex; flex-direction: column; gap: 8px; }
.pair-side { display: flex; gap: 10px; align-items: flex-start; } .pair-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.neq { text-align: center; font-weight: 800; font-size: 1.3rem; color: var(--red); line-height: 1; }
.quiz-card { display: flex; flex-direction: column; gap: 12px; } .quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ing-pic.quiz-pic { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; border-radius: 14px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-opt { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); min-height: 52px; display: flex; align-items: center; }
.quiz-opt:disabled { cursor: default; } .quiz-opt.right { border-color: var(--green); background: var(--green-soft); color: var(--green); } .quiz-opt.wrong { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.ing-sheet { display: flex; flex-direction: column; gap: 12px; }
.ing-bar { position: sticky; top: -10px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -16px 0; padding: 8px 12px 8px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ing-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 1rem; }
.ing-back-arrow { font-size: 1.7rem; line-height: 1; margin-top: -3px; }
.ing-x { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: 1.15rem; display: grid; place-content: center; text-align: center; }
.ing-photo { border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.ing-photo img { width: 100%; height: 100%; object-fit: cover; } .ing-photo-none { font-size: 4rem; }
.ing-name { margin: 0; } .ing-name .bi .p { font-size: 1.35rem; font-weight: 800; }
.ing-look { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ing-h .p { font-size: .85rem; font-weight: 700; color: var(--brand-dark); } .ing-h .s { font-size: .72rem; }
.ing-uses { display: flex; flex-direction: column; gap: 4px; } .ing-use { font-size: .9rem; }
.ing-conf { display: flex; flex-direction: column; gap: 8px; }
.conf-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; } .conf-card { flex: none; width: 96px; display: flex; flex-direction: column; gap: 4px; } .conf-card .bi .p { font-size: .85rem; } .conf-card .bi .s { font-size: .7rem; }
.ing-credit { font-size: .72rem; color: var(--ink-3); overflow-wrap: anywhere; } .ing-credit a { color: var(--ink-3); }
.chip.pick.on .s-inline { color: inherit; }
.chips.scroll-x, .today-strip, .conf-row { scrollbar-width: none; } .chips.scroll-x::-webkit-scrollbar, .today-strip::-webkit-scrollbar, .conf-row::-webkit-scrollbar { display: none; }

/* ---- 每日水果 ---- */
.fruit-panel { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; } .fruit-panel.busy { opacity: .75; }
.fruit-intro { padding: 10px 12px; }
.fruit-at { display: flex; flex-direction: column; gap: 6px; } .fruit-at-row { margin: 0; padding: 0 0 2px; flex-wrap: wrap; overflow: visible; }
.fruit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fruit-pick { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid transparent; overflow: hidden; }
.fruit-pick.on { border-color: var(--brand); background: var(--brand-soft); }
.fp-main { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 6px; width: 100%; text-align: center; }
.fp-pic { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-content: center; } .fp-pic img { width: 100%; height: 100%; object-fit: cover; } .fp-emoji { font-size: 2.2rem; }
.fp-name { align-items: center; text-align: center; } .fp-name .p { font-size: .92rem; } .fp-name .s { font-size: .7rem; }
.fp-check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; display: grid; place-content: center; font-size: .85rem; }
.fp-step { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 2px 6px 8px; }
.fp-step button { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 1.2rem; font-weight: 700; text-align: center; } .fp-step button:disabled { opacity: .35; }
.fp-qty { font-weight: 700; font-size: .88rem; text-align: center; flex: 1; }
.fruit-other { display: flex; gap: 8px; } .fruit-other input { flex: 1; }
.fruit-card .chips { gap: 6px; }

/* ---- 日程表 ---- */
.sched-glance { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; padding: 14px; border-radius: 18px; background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.sg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .sg-badge { background: #fff; color: var(--brand-dark); border-radius: 99px; padding: 2px 12px; font-weight: 800; font-size: .8rem; letter-spacing: .04em; } .sg-title .p { font-size: 1.15rem; font-weight: 800; color: inherit; } .sg-title .s { color: inherit; opacity: .85; }
.sg-now { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 14px; padding: 10px 12px; } .sg-ic { font-size: 2.1rem; line-height: 1; } .sg-now-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-label .p { color: var(--ink-2); } .sg-act .p { font-size: 1.15rem; font-weight: 800; } .sg-next { font-size: .82rem; color: var(--ink-2); }
.sg-due { display: flex; flex-wrap: wrap; gap: 6px; } .sg-chip { background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .55); border-radius: 99px; padding: 3px 10px; font-size: .82rem; font-weight: 700; }
.sg-cta { font-weight: 800; font-size: .95rem; text-align: right; }
.sched-every { display: flex; gap: 10px; align-items: center; background: var(--amber-soft); border: 2px solid var(--amber); border-radius: 14px; padding: 10px 12px; } .se-ic { font-size: 1.8rem; font-weight: 800; color: var(--amber); line-height: 1; } .se-text .p { font-weight: 800; font-size: 1rem; color: var(--amber); } .se-text .s { color: var(--amber); font-weight: 600; }
.sched-again { text-align: center; font-weight: 700; color: var(--ink-2); padding: 4px 0 10px; }
.sched-hero { background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 2px solid var(--brand); gap: 6px; } .sched-hero.rest { border-color: var(--line); background: var(--surface-2); }
.sh-row { display: flex; align-items: center; gap: 10px; } .sh-ic { font-size: 2.2rem; line-height: 1; } .sh-title .p { font-size: 1.3rem; font-weight: 800; }
.sh-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; } .sh-next { font-size: .85rem; }
.chip.amber { background: var(--amber-soft); color: var(--amber); font-weight: 700; }
.sched-line { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.sr { display: grid; grid-template-columns: 52px 34px 1fr; gap: 8px; align-items: stretch; }
.sr-time { display: flex; flex-direction: column; align-items: flex-end; padding-top: 12px; font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--ink-2); line-height: 1.25; } .sr-time b { font-size: .95rem; color: var(--ink); } .sr-time span { opacity: .75; }
.sr-rail { position: relative; display: flex; justify-content: center; } .sr-rail::before { content: ''; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--line); border-radius: 3px; }
.sr:first-child .sr-rail::before { top: 14px; } .sr:last-child .sr-rail::before { bottom: calc(100% - 28px); }
.sr-dot { position: relative; z-index: 1; margin-top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-content: center; font-size: 1rem; background: var(--surface); border: 2px solid var(--line); }
.sr-card { margin: 4px 0 8px; padding: 10px 12px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); border: 2px solid transparent; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.sr-title .p { font-size: 1.02rem; font-weight: 700; } .sr-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.sr-now { background: var(--brand); color: var(--brand-ink); border-radius: 99px; padding: 1px 10px; font-size: .75rem; font-weight: 800; }
.sr.past { opacity: .5; } .sr.past .sr-dot { background: var(--surface-2); }
.sr.now .sr-card { border-color: var(--brand); background: var(--brand-soft); } .sr.now .sr-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); } .sr.now .sr-rail::before { background: var(--brand); }
.sr.free .sr-card { background: transparent; box-shadow: none; border: 2px dashed var(--line); } .sr.free .sr-title .p { font-weight: 600; color: var(--ink-2); }
.sr.warn .sr-card { border-color: var(--amber); } .sr-warn, .sr-warn .p, .sr-warn .s { color: var(--amber); font-weight: 600; }
.sr-go { padding: 2px 0; }
.sched-other { gap: 6px; } .other-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.other-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; } .ol-ic { font-size: 1.5rem; } .other-list .bi .p { font-weight: 600; font-size: 1rem; }
.sched-rules { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.rule { flex-direction: row; gap: 12px; align-items: flex-start; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.rule-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 800; display: grid; place-content: center; }
.rule-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .rule-title .p { font-size: 1.05rem; font-weight: 800; } .rule-text .p { font-weight: 500; line-height: 1.5; } .rule-text .s { line-height: 1.5; }

.fruit-search { margin-top: 2px; } .fruit-more { margin: 2px 0; }
.fp-alias { font-size: .72rem; color: var(--ink-3); }
.adv-toggle { align-self: flex-start; padding: 2px 0; }
.pd-row.q1 { grid-template-columns: 1fr auto; }
.pd-warn { background: var(--amber-soft); color: var(--amber); border-radius: 12px; padding: 8px 12px; font-size: .9rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; } .pd-warn .link-btn { color: var(--brand-dark); padding: 0; }
