@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f0e7;
  --paper: #fffaf4;
  --paper-2: #fff6ed;
  --orange: #ef955d;
  --orange-deep: #d87543;
  --orange-pale: #fbe5d2;
  --green: #8aa88b;
  --green-pale: #e4eee2;
  --brown: #4b382f;
  --muted: #927d70;
  --line: #eddccc;
  --shadow: 0 14px 30px rgba(133, 92, 57, .07);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; width: 100%; max-width: 100%; overflow-x: hidden; }
html { -webkit-tap-highlight-color: transparent; }
body.drawer-open { overflow: hidden; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(239, 149, 93, .16) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  color: var(--brown);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
button, input, textarea, select { touch-action: manipulation; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 250px; flex: 0 0 250px; min-height: 100vh; padding: 24px 16px 18px;
  background: rgba(255, 250, 244, .9); border-right: 1px solid rgba(237, 220, 204, .76);
  display: flex; flex-direction: column; position: sticky; top: 0; transition: all .28s ease; z-index: 20;
}
.sidebar.is-collapsed { width: 76px; flex-basis: 76px; padding-left: 12px; padding-right: 12px; }
.brand-block { display: flex; align-items: center; gap: 10px; padding: 0 6px 24px; }
.brand-avatar, .round-avatar { display: grid; place-items: center; border-radius: 50%; }
.brand-avatar { width: 42px; height: 42px; background: #ffe5ca; font-size: 22px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; flex: 1; }
.brand-copy strong { font-size: 16px; letter-spacing: .02em; }
.brand-copy span { font-size: 10px; color: var(--muted); }
.icon-btn { background: transparent; color: var(--muted); border-radius: 10px; width: 32px; height: 32px; font-size: 20px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--orange-pale); color: var(--orange-deep); }
.sidebar-collapse { font-size: 27px; line-height: 1; }
.side-note { background: #fff1e0; border-radius: 16px; padding: 12px; display: flex; gap: 9px; align-items: center; margin: 0 2px 23px; }
.side-note span { font-size: 21px; }
.side-note b, .side-note small { display: block; }
.side-note b { font-size: 11px; font-weight: 700; }
.side-note small { font-size: 9px; color: var(--muted); margin-top: 2px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { width: 100%; background: transparent; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 11px; border-radius: 14px; font-size: 12px; color: #816d61; transition: all .2s; white-space: nowrap; }
.nav-item:hover { background: #fff2e4; color: var(--brown); }
.nav-item.active { background: var(--orange); color: white; box-shadow: 0 8px 16px rgba(239, 149, 93, .23); }
.nav-icon { width: 21px; text-align: center; font-size: 17px; }
.sidebar-footer { margin-top: auto; }
.reminder-link { width: 100%; background: #fff4e9; border-radius: 14px; padding: 11px; display: flex; gap: 10px; align-items: center; font-size: 11px; color: #735b4d; }
.reminder-link em { margin-left: auto; font-style: normal; font-size: 10px; background: var(--orange); color: white; border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; }
.health-badge { padding: 15px 8px 0; color: #b39a87; font-size: 9px; }
.health-badge span { color: var(--orange); margin-right: 4px; }
.is-collapsed .brand-copy, .is-collapsed .side-note div, .is-collapsed .nav-item span:not(.nav-icon), .is-collapsed .reminder-link span:not(:first-child), .is-collapsed .reminder-link em, .is-collapsed .health-badge { display: none; }
.is-collapsed .brand-block { justify-content: center; padding-left: 0; padding-right: 0; }
.is-collapsed .brand-avatar { flex: 0 0 42px; }
.is-collapsed .sidebar-collapse { transform: rotate(180deg); }
.is-collapsed .side-note { justify-content: center; padding: 10px 5px; }
.is-collapsed .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
.is-collapsed .reminder-link { justify-content: center; }

.main-panel { flex: 1; min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 44px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.crumbs { display: flex; gap: 10px; font-size: 11px; color: #b19b8b; align-items: center; }
.crumbs i { font-style: normal; color: #d4bba6; }
.crumbs b { color: #6d5649; font-weight: 600; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.date-pill { padding: 8px 12px; border-radius: 99px; background: rgba(255, 250, 244, .83); border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.date-pill span { color: var(--orange); margin-right: 4px; }
.round-avatar { width: 32px; height: 32px; background: #f4ca9f; font-weight: 700; font-size: 12px; }
.mobile-menu { display: none; }
.page-wrap { max-width: 1240px; margin: 0 auto; padding: 12px 44px 54px; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 10px 0 25px; }
.eyebrow { font-size: 9px; letter-spacing: .18em; color: var(--orange-deep); font-weight: 800; margin: 0 0 8px; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; line-height: 1.25; }
h1 span { font-size: .78em; }
.page-subtitle { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.primary-btn, .soft-btn, .outline-btn { border-radius: 12px; padding: 10px 14px; font-size: 11px; font-weight: 700; transition: transform .15s, background .15s; }
.primary-btn { background: var(--orange); color: white; box-shadow: 0 7px 15px rgba(239, 149, 93, .22); }
.primary-btn:hover, .soft-btn:hover, .outline-btn:hover { transform: translateY(-1px); }
.soft-btn { background: #fff0e0; color: var(--orange-deep); }
.outline-btn { background: transparent; border: 1px solid var(--line); color: #806b5d; }
.tab-bar { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab-btn { flex: 0 0 auto; background: transparent; padding: 11px 13px 12px; color: #a38c7b; font-size: 11px; font-weight: 600; border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--orange-deep); border-bottom-color: var(--orange); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1.35fr .85fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: rgba(255,250,244,.94); border: 1px solid rgba(237,220,204,.82); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.card.soft { background: #fff3e4; border-color: transparent; box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 17px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.small-link { background: transparent; color: var(--orange-deep); font-size: 10px; font-weight: 700; }
.meal-list { display: flex; flex-direction: column; gap: 9px; }
.meal-row { padding: 13px 14px; border: 1px solid #f1dfcf; background: #fffdf9; border-radius: 15px; display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 13px; }
.meal-time { color: var(--muted); font-size: 10px; }
.meal-time b { color: var(--brown); font-size: 12px; display: block; margin-top: 3px; }
.meal-info { min-width: 0; }
.meal-info strong { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal-info small { color: #a38c7d; font-size: 9px; display: block; margin-top: 4px; }
.meal-chip { background: var(--green-pale); color: #668167; border-radius: 99px; padding: 5px 8px; font-size: 9px; white-space: nowrap; }
.meal-chip.orange { background: #fff0df; color: var(--orange-deep); }
.edit-mini { border-radius: 9px; background: #fff0df; color: var(--orange-deep); width: 25px; height: 25px; font-size: 11px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metric { padding: 12px 10px; background: #fff5eb; border-radius: 14px; }
.metric small { font-size: 9px; color: var(--muted); display: block; }
.metric b { font-size: 16px; display: block; margin-top: 5px; letter-spacing: -.04em; }
.metric em { font-style: normal; color: var(--orange-deep); font-size: 9px; margin-left: 2px; }
.tower { display: flex; align-items: end; gap: 7px; height: 136px; padding: 10px 3px 0; }
.tower-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: end; }
.tower-bar { width: 100%; max-width: 58px; border-radius: 11px 11px 5px 5px; background: #ebaf7b; position: relative; min-height: 18px; }
.tower-bar.good { background: #a5ba94; }
.tower-bar.warn { background: #e98c61; }
.tower-col label { font-size: 9px; color: var(--muted); white-space: nowrap; }
.tower-col small { font-size: 8px; color: #b19a88; }
.alert-line { margin-top: 12px; display: flex; gap: 7px; align-items: center; background: #fff0dd; color: #ba6e48; border-radius: 11px; padding: 10px; font-size: 10px; }
.shopping-summary { display: flex; gap: 10px; }
.shopping-summary > div { flex: 1; padding: 13px; border-radius: 14px; background: #fbf1e6; }
.shopping-summary b { display: block; font-size: 19px; }
.shopping-summary span { color: var(--muted); font-size: 9px; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.check-row input { accent-color: var(--orange); width: 16px; height: 16px; }
.check-row.done label { color: #b29c8c; text-decoration: line-through; }
.section-label { color: #aa8b73; font-size: 10px; font-weight: 700; margin: 22px 0 10px; display: flex; justify-content: space-between; }
.section-label:first-child { margin-top: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 5px 8px; background: #f9e6d4; color: #a66d4d; font-size: 9px; }
.tag.green { background: var(--green-pale); color: #668167; }
.tag.red { background: #fde1d5; color: #bd6a4a; }
.tag.gray { background: #f1e9e0; color: #947e70; }
.list-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.content-card { background: rgba(255,250,244,.94); border: 1px solid var(--line); border-radius: 18px; padding: 17px; box-shadow: var(--shadow); }
.content-card .emoji { font-size: 24px; margin-bottom: 9px; display: block; }
.content-card h3 { margin: 0; font-size: 14px; }
.content-card p { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 7px 0 12px; }
.content-card .card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.content-card .card-bottom { border-top: 1px solid #f1e3d5; margin-top: 14px; padding-top: 11px; display: flex; justify-content: space-between; align-items: center; }
.card-bottom small { color: #af9887; font-size: 9px; }
.action-row { display: flex; gap: 6px; flex-wrap: wrap; }
.search-row { display: flex; gap: 9px; margin-bottom: 18px; }
.search-input { background: #fffaf4; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none; font-size: 11px; flex: 1; color: var(--brown); }
.search-input:focus, .form-input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,149,93,.12); }
.filter-pills { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 17px; }
.filter-pill { flex: 0 0 auto; border: 1px solid var(--line); background: #fffaf4; border-radius: 99px; padding: 7px 10px; color: var(--muted); font-size: 9px; }
.filter-pill.active { background: var(--orange); border-color: var(--orange); color: white; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state span { display: block; font-size: 34px; margin-bottom: 9px; }
.empty-state p { font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { text-align: left; color: #a58b7a; font-size: 9px; font-weight: 500; padding: 9px; }
td { border-top: 1px solid #f1e3d5; padding: 12px 9px; color: #6e5749; }
.progress { height: 8px; background: #f1e3d7; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { height: 100%; display: block; background: var(--orange); border-radius: inherit; }
.stat-card { background: #fffaf4; border: 1px solid var(--line); border-radius: 17px; padding: 16px; }
.stat-card small { color: var(--muted); font-size: 9px; }
.stat-card b { font-size: 24px; display: block; margin: 8px 0 2px; }
.stat-card em { color: var(--green); font-size: 9px; font-style: normal; }
.bar-chart { display: flex; gap: 10px; height: 140px; align-items: end; border-bottom: 1px solid var(--line); padding: 10px 10px 0; }
.chart-col { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; height: 100%; justify-content: end; }
.chart-bar { width: 60%; max-width: 30px; background: #f3bb8e; border-radius: 7px 7px 2px 2px; }
.chart-col label { color: var(--muted); font-size: 9px; }
.chart-col small { color: var(--orange-deep); font-size: 8px; }
.notice { background: #fdf0e1; border: 1px solid #f3d5b8; border-radius: 15px; padding: 12px 14px; font-size: 10px; color: #a87152; line-height: 1.6; }
.notice strong { color: #9a5a3d; }
.profile-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.status-list { display: flex; flex-direction: column; gap: 9px; }
.status-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 13px; background: #fffdf9; border: 1px solid #f1e2d4; font-size: 11px; }
.status-item span { color: var(--muted); }
.status-value { border-radius: 99px; padding: 5px 9px; font-size: 9px; background: var(--green-pale); color: #648062; }
.status-value.warn { background: #fff0dc; color: #ba744c; }
.recommend-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.recommend { border-radius: 15px; background: #fff7ee; padding: 14px; }
.recommend .rec-icon { font-size: 21px; }
.recommend strong { font-size: 11px; display: block; margin-top: 7px; }
.recommend p { color: var(--muted); font-size: 9px; line-height: 1.6; margin: 4px 0 0; }
.favorite-tabs { display: flex; gap: 8px; margin-bottom: 15px; }
.favorite-tab { padding: 8px 12px; border-radius: 99px; background: #fff4e9; color: var(--muted); font-size: 10px; }
.favorite-tab.active { background: var(--orange); color: white; }

.modal-layer { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(74,54,45,.3); align-items: center; justify-content: center; padding: 18px; }
.modal-layer.show { display: flex; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; background: var(--paper); border-radius: 23px; padding: 22px; box-shadow: 0 25px 70px rgba(71,45,27,.2); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; gap: 12px; }
.form-field label { display: block; font-size: 10px; color: #856e5e; margin-bottom: 6px; font-weight: 700; }
.form-input, textarea, select { width: 100%; border: 1px solid var(--line); background: #fffdf9; border-radius: 11px; padding: 10px 11px; outline: none; color: var(--brown); font-size: 11px; }
textarea { min-height: 78px; resize: vertical; }
.modal-foot { display: flex; justify-content: end; gap: 8px; margin-top: 19px; }
.blacklist-tip { display: flex; gap: 7px; align-items: start; padding: 10px; border-radius: 11px; background: #fff0dd; color: #b26d4b; font-size: 9px; line-height: 1.5; }
.reminder-item { display: flex; justify-content: space-between; align-items: center; background: #fff8f0; padding: 12px; border-radius: 12px; margin-top: 8px; font-size: 11px; }
.switch { width: 38px; height: 21px; border-radius: 99px; background: #d8c9bb; padding: 3px; }
.switch i { display: block; width: 15px; height: 15px; border-radius: 50%; background: white; transition: transform .2s; }
.switch.on { background: var(--green); }
.switch.on i { transform: translateX(17px); }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 18px); background: #4d382e; color: white; padding: 11px 15px; border-radius: 99px; font-size: 11px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-scrim { display: none; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-102%); box-shadow: 15px 0 30px rgba(86,54,28,.1); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.is-collapsed { width: 250px; padding: 24px 16px 18px; }
  .sidebar.is-collapsed .brand-copy, .sidebar.is-collapsed .side-note div, .sidebar.is-collapsed .nav-item span:not(.nav-icon), .sidebar.is-collapsed .reminder-link span:not(:first-child), .sidebar.is-collapsed .reminder-link em, .sidebar.is-collapsed .health-badge { display: block; }
  .sidebar.is-collapsed .brand-block { justify-content: initial; padding-left: 6px; padding-right: 6px; }
  .sidebar.is-collapsed .side-note { justify-content: initial; padding: 12px; }
  .sidebar.is-collapsed .nav-item { justify-content: initial; padding: 12px 11px; }
  .sidebar.is-collapsed .reminder-link { justify-content: initial; }
  .sidebar-collapse { display: none; }
  .mobile-scrim.show { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(68,47,36,.25); }
  .mobile-menu { display: grid; }
  .topbar { height: 65px; padding: 0 18px; }
  .top-actions .date-pill { display: none; }
  .page-wrap { padding: 13px 18px 40px; }
  .welcome-row { align-items: start; flex-direction: column; margin-top: 8px; }
  .header-actions { justify-content: start; }
  .grid.two, .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { min-width: 0; }
  .topbar { position: sticky; top: 0; z-index: 10; background: rgba(247,240,231,.92); backdrop-filter: blur(12px); }
  .topbar-left { min-width: 0; }
  .crumbs { overflow: hidden; white-space: nowrap; }
  .crumbs span, .crumbs i { display: none; }
  .crumbs b { overflow: hidden; text-overflow: ellipsis; }
  .page-wrap { padding-left: 14px; padding-right: 14px; }
  .welcome-row { margin-bottom: 18px; }
  .header-actions { width: 100%; }
  .header-actions .primary-btn, .header-actions .soft-btn { flex: 1; min-height: 42px; }
  .tab-bar { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .list-cards, .grid.three { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(2,1fr); }
  .meal-row { grid-template-columns: 68px 1fr auto; gap: 8px; padding: 12px 10px; }
  .meal-chip { display: none; }
  .recommend-grid { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
  .page-subtitle { line-height: 1.65; }
  .card { padding: 16px; border-radius: 19px; }
  .content-card { padding: 15px; }
  .card-head h2 { font-size: 14px; }
  .search-row { flex-direction: column; }
  .search-row .primary-btn { min-height: 40px; }
  .action-row .small-link { padding: 5px 2px; }
  .modal { padding: 18px; border-radius: 20px; }
}

/* 纯手机端工作台：不保留 PC 双栏布局，默认按手机阅读与触控设计 */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 278px;
  flex-basis: 278px;
  padding: 25px 17px 20px;
  transform: translateX(-105%);
  box-shadow: 16px 0 36px rgba(86,54,28,.13);
}
.sidebar.mobile-open { transform: translateX(0); }
.sidebar-collapse { display: none; }
.mobile-menu { display: grid; width: 40px; height: 40px; font-size: 22px; }
.mobile-scrim.show { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(68,47,36,.28); }
.main-panel { width: 100%; }
.topbar { height: 68px; padding: 0 16px; position: sticky; top: 0; z-index: 10; background: rgba(247,240,231,.94); backdrop-filter: blur(12px); }
.top-actions .date-pill { display: none; }
.page-wrap { max-width: 430px; margin: 0 auto; padding: 16px 14px 46px; }
.welcome-row { align-items: start; flex-direction: column; margin: 7px 0 22px; }
.header-actions { width: 100%; justify-content: stretch; }
.header-actions .primary-btn, .header-actions .soft-btn { flex: 1; min-height: 44px; }
.grid.two, .grid.three, .profile-grid, .list-cards { grid-template-columns: 1fr; }

/* 手机端放大字号，减少小字密度 */
.brand-copy strong { font-size: 18px; }
.brand-copy span { font-size: 12px; }
.side-note b { font-size: 13px; }
.side-note small { font-size: 11px; }
.nav-item { padding: 14px 12px; font-size: 14px; }
.nav-icon { font-size: 19px; }
.reminder-link { padding: 14px 12px; font-size: 13px; }
.health-badge { font-size: 11px; }
.crumbs { font-size: 13px; }
h1 { font-size: 30px; }
.eyebrow { font-size: 11px; }
.page-subtitle { font-size: 14px; line-height: 1.7; }
.tab-bar { margin-left: -14px; margin-right: -14px; padding: 0 14px; }
.tab-btn { padding: 13px 12px 14px; font-size: 13px; }
.primary-btn, .soft-btn, .outline-btn { padding: 11px 15px; font-size: 13px; }
.card { padding: 18px; border-radius: 20px; }
.card-head { margin-bottom: 18px; }
.card-head h2, .card-head h3 { font-size: 17px; }
.card-head p { font-size: 12px; line-height: 1.55; }
.small-link { font-size: 12px; }
.meal-row { grid-template-columns: 72px 1fr auto; gap: 9px; padding: 14px 11px; }
.meal-time { font-size: 12px; }
.meal-time b { font-size: 14px; margin-top: 4px; }
.meal-info strong { font-size: 14px; }
.meal-info small { font-size: 11px; line-height: 1.5; }
.meal-chip { font-size: 10px; }
.edit-mini { width: 28px; height: 28px; font-size: 13px; }
.metric { padding: 14px 11px; }
.metric small { font-size: 11px; }
.metric b { font-size: 21px; }
.metric em { font-size: 10px; }
.section-label { font-size: 12px; }
.check-row { gap: 10px; font-size: 13px; line-height: 1.5; }
.check-row input { width: 18px; height: 18px; }
.tag { padding: 6px 9px; font-size: 10px; }
.content-card { padding: 17px; }
.content-card .emoji { font-size: 28px; }
.content-card h3 { font-size: 17px; }
.content-card p { font-size: 13px; line-height: 1.75; }
.content-card .card-bottom { margin-top: 16px; padding-top: 13px; }
.card-bottom small { font-size: 11px; line-height: 1.5; }
.notice { padding: 13px; font-size: 12px; line-height: 1.7; }
.search-input, .form-input, textarea, select { padding: 12px; font-size: 14px; }
.search-input::placeholder, .form-input::placeholder, textarea::placeholder { font-size: 13px; }
.filter-pill { padding: 8px 11px; font-size: 11px; }
table { font-size: 12px; }
th { font-size: 11px; padding: 10px 8px; }
td { padding: 13px 8px; }
.stat-card small { font-size: 11px; }
.stat-card b { font-size: 28px; }
.stat-card em { font-size: 11px; }
.status-item { padding: 13px; font-size: 13px; }
.status-value { padding: 6px 10px; font-size: 11px; }
.recommend strong { font-size: 13px; }
.recommend p { font-size: 11px; line-height: 1.65; }
.empty-state p { font-size: 13px; }
.modal-head h2 { font-size: 20px; }
.modal-head p { font-size: 12px; line-height: 1.55; }
.form-field label { font-size: 12px; }
.blacklist-tip { font-size: 11px; line-height: 1.6; }
.reminder-item { padding: 14px; font-size: 13px; }
.toast { font-size: 13px; }

/* 手机可读性第二轮：优先保证字号、留白和触控层级 */
body { font-size: 16px; }
.topbar { padding-left: 14px; padding-right: 14px; }
.round-avatar { width: 40px; height: 40px; font-size: 14px; }
.page-wrap { padding-top: 19px; }
h1 { font-size: 32px; line-height: 1.3; }
.page-subtitle { font-size: 15px; line-height: 1.8; }
.welcome-row { margin-bottom: 25px; gap: 16px; }
.tab-bar { margin-bottom: 25px; }
.tab-btn { font-size: 14px; padding-top: 14px; padding-bottom: 15px; }
.grid { gap: 19px; }
.card { padding: 20px; border-radius: 22px; }
.card-head { margin-bottom: 20px; }
.card-head h2, .card-head h3 { font-size: 19px; }
.card-head p { font-size: 13px; line-height: 1.65; }
.primary-btn, .soft-btn, .outline-btn { min-height: 50px; font-size: 14px; border-radius: 14px; }
.meal-list { gap: 12px; }
.meal-row { grid-template-columns: 69px minmax(0,1fr) 34px 34px; gap: 7px; padding: 16px 12px; border-radius: 17px; }
.meal-time { font-size: 13px; }
.meal-time b { font-size: 15px; }
.meal-info strong { font-size: 16px; line-height: 1.45; white-space: normal; }
.meal-info small { font-size: 12px; line-height: 1.6; }
.edit-mini { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.metric-strip { gap: 11px; }
.metric { padding: 16px 13px; border-radius: 16px; }
.metric small { font-size: 12px; }
.metric b { font-size: 23px; margin-top: 7px; }
.metric em { font-size: 11px; }
.section-label { font-size: 13px; margin-top: 25px; margin-bottom: 12px; }
.check-list { gap: 11px; }
.check-row { font-size: 14px; }
.check-row input { width: 20px; height: 20px; }
.tag { padding: 7px 10px; font-size: 11px; }
.content-card { padding: 19px; border-radius: 20px; }
.content-card .emoji { font-size: 30px; margin-bottom: 12px; }
.content-card h3 { font-size: 19px; line-height: 1.45; }
.content-card p { font-size: 14px; line-height: 1.8; margin-top: 9px; }
.content-card .card-bottom { margin-top: 18px; padding-top: 15px; gap: 10px; align-items: flex-start; }
.content-card .card-bottom { flex-direction: column; }
.content-card .card-bottom .action-row { width: 100%; justify-content: flex-end; }
.card-bottom small { font-size: 12px; }
.action-row { gap: 8px; }
.action-row .small-link { font-size: 13px; }
.notice { font-size: 13px; line-height: 1.8; border-radius: 15px; }
.search-row { gap: 10px; margin-bottom: 20px; }
.search-input, .form-input, textarea, select { min-height: 52px; font-size: 15px; border-radius: 13px; }
.search-input::placeholder, .form-input::placeholder, textarea::placeholder { font-size: 14px; }
.filter-pills { gap: 8px; margin-bottom: 20px; }
.filter-pill { padding: 9px 12px; font-size: 12px; }
.status-list { gap: 11px; }
.status-item { padding: 15px; font-size: 14px; border-radius: 15px; }
.status-value { padding: 7px 11px; font-size: 12px; }
.recommend { padding: 17px; border-radius: 17px; }
.recommend strong { font-size: 14px; }
.recommend p { font-size: 12px; line-height: 1.75; }
.modal { padding: 21px; border-radius: 23px; }
.modal-head { margin-bottom: 21px; }
.modal-head h2 { font-size: 22px; }
.modal-head p { font-size: 13px; }
.form-grid { gap: 15px; }
.form-field label { font-size: 13px; margin-bottom: 8px; }
.blacklist-tip { font-size: 12px; line-height: 1.75; }
.modal-foot { gap: 10px; margin-top: 22px; }
.reminder-item { padding: 16px; font-size: 14px; }
.page-wrap { padding-bottom: 46px; }
.page-wrap, .main-panel, #pageContent { max-width: 100%; min-width: 0; }
.search-input, .form-input, textarea, select { font-size: 16px; }
.modal-layer { overflow-x: hidden; }
.auth-panel { text-align: center; }
.auth-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 22px; background: #fff0dc; font-size: 30px; }
.auth-panel .modal-head { text-align: left; }
.auth-panel .notice { text-align: left; }
#authSubmit { width: 100%; margin-top: 2px; }
.sidebar { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.main-nav { flex: 0 0 auto; }
.sidebar-footer { margin-top: 22px; flex-shrink: 0; }
.eyebrow { font-size: 12px; }
h1 { font-size: 34px; }
.page-subtitle { font-size: 16px; }
.card-head h2, .card-head h3 { font-size: 21px; }
.card-head p { font-size: 14px; }
.meal-row {
  grid-template-columns: 72px minmax(0, 1fr) 38px;
  grid-template-rows: minmax(38px, auto) minmax(38px, auto);
  align-items: center;
  row-gap: 8px;
  padding: 18px 14px;
  min-height: 116px;
}
.meal-time { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 2px; font-size: 14px; }
.meal-time b { font-size: 17px; margin-top: 6px; }
.meal-info { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding-right: 3px; }
.meal-info strong { font-size: 18px; line-height: 1.45; }
.meal-info small { font-size: 14px; line-height: 1.65; margin-top: 6px; overflow-wrap: anywhere; }
.meal-row .meal-chip { display: none; }
.meal-row .edit-mini { grid-column: 3; grid-row: 1; width: 38px; height: 38px; }
.meal-row .edit-mini + .edit-mini { grid-column: 3; grid-row: 2; }
.metric-strip { gap: 13px; }
.metric { padding: 18px 14px; min-height: 88px; }
.metric small { font-size: 14px; }
.metric b { font-size: 27px; }
.metric em { font-size: 12px; }
.content-card h3 { font-size: 21px; }
.content-card p { font-size: 15px; }
.card-bottom small { font-size: 13px; }
.mobile-menu { flex: 0 0 40px; }
.date-pill { min-height: 36px; }
.primary-btn, .soft-btn, .outline-btn { min-height: 46px; }
.tab-btn { min-height: 48px; }
.search-input, .form-input, textarea, select { min-height: 48px; }
.page-wrap { padding-bottom: 46px; }
