:root {
  --green: #1faa6b;
  --green-d: #178a57;
  --bg: #f3f6f4;
  --card: #ffffff;
  --text: #1d2b26;
  --muted: #7c8a84;
  --line: #e7ede9;
  --p: #2f80ed;
  --c: #f2994a;
  --f: #9b51e0;
  --shadow: 0 4px 16px rgba(31, 170, 107, 0.08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 170px; /* 避开底部导航 44px + FAB 86px + 安全间距 */
  position: relative;
}
.demo-banner { background: #fff7e6; color: #a05a00; font-size: 12px; text-align: center; padding: 6px 10px; border-bottom: 1px solid #ffe0a3; }
.demo-banner button { background: #a05a00; color: #fff; border: 0; border-radius: 6px; padding: 3px 10px; font-size: 12px; margin-left: 4px; }
.app-header {
  background: linear-gradient(135deg, var(--green), var(--green-d));
  color: #fff;
  padding: 18px 20px 22px;
  border-radius: 0 0 22px 22px;
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.subtitle { font-size: 12px; opacity: .85; margin-top: 2px; }
.auth-wrap { position: absolute; top: 16px; right: 16px; }
.auth-btn {
  background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 16px; padding: 5px 12px; font-size: 13px; cursor: pointer;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
}
.auth-btn.on { background: rgba(255, 255, 255, .9); color: var(--green-d); border-color: #fff; font-weight: 600; }
.auth-menu {
  position: absolute; top: 40px; right: 0; min-width: 150px;
  background: #fff; border-radius: 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
  padding: 6px; z-index: 50; color: #222;
}
.auth-menu-info { font-size: 12px; color: #888; padding: 6px 10px 8px; border-bottom: 1px solid #eee; margin-bottom: 4px; }
.auth-menu-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px; font-size: 14px; border-radius: 8px; cursor: pointer; color: #222;
}
.auth-menu-item:hover { background: #f3f7f4; }
.auth-menu-item:last-child { color: #d23; }

.login-tip { background: #fff7e6; border: 1px solid #ffe1a8; color: #9a6b00; border-radius: 10px; padding: 8px 12px; margin-top: 10px; }

.auth-sheet { padding-bottom: 28px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: #f8f9fa; color: var(--muted); font-size: 15px; font-weight: 500;
}
.auth-tab.active { background: var(--green); color: #fff; border-color: var(--green); }
.btn-text {
  display: block; width: 100%; margin-top: 12px; background: none; border: none;
  color: var(--green-d); font-size: 14px; text-align: center; cursor: pointer;
}

.page { padding: 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* 今日仪表盘 */
.hero-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; }
.hero-num { font-size: 34px; font-weight: 800; color: var(--green); line-height: 1; }
.hero-num small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.hero-meta { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.7; }
.hero-meta b { color: var(--text); }
.bar { height: 10px; background: var(--line); border-radius: 6px; margin-top: 16px; overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), #56d39b); border-radius: 6px; transition: width .3s; }

/* 消耗与缺口 */
.burn-card {
  background: linear-gradient(135deg, #1d3a2e, #2c5240);
  color: #eafaf2; border-radius: 16px; padding: 14px 16px; margin-top: 14px;
}
.burn-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.burn-row b { font-size: 18px; }
.deficit b { color: #7ef0b6; }
.burn-sub { font-size: 12px; color: #b9d8cb; margin-top: 6px; }
.burn-sub span { color: #fff; font-weight: 600; }

.nutri-row { display: flex; gap: 10px; margin-top: 14px; }
.nutri-chip {
  flex: 1; background: var(--card); border-radius: 14px; padding: 12px 10px;
  text-align: center; box-shadow: var(--shadow);
}
.nutri-val { display: block; font-size: 15px; font-weight: 700; }
.nutri-label { display: block; font-size: 11px; color: var(--muted); margin: 3px 0 6px; }
.mini-bar { height: 5px; background: var(--line); border-radius: 4px; overflow: hidden; }
.mini-fill { height: 100%; width: 0%; border-radius: 4px; transition: width .3s; }
.mini-fill.p { background: var(--p); }
.mini-fill.c { background: var(--c); }
.mini-fill.f { background: var(--f); }

/* 超标提醒：变红 */
.nutri-chip.over { background: #fff0f0; box-shadow: 0 0 0 1.5px #ff6b6b; }
.nutri-chip.over .nutri-val { color: #e03131; }
.nutri-chip.over .mini-fill { background: #ff6b6b !important; }
.hero-num.over #remainKcal { color: #e03131; }
.bar-fill.over { background: linear-gradient(90deg, #ff8787, #ff6b6b); }

.section-title { font-size: 14px; font-weight: 700; margin: 20px 4px 10px; }
.badge { background: var(--green); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.badge.muted { background: #e4ebe7; color: var(--muted); }

/* 体重/腰围记录 */
.measure-card { background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); margin-top: 14px; }
.measure-row { display: flex; align-items: flex-end; gap: 8px; }
.field.inline { flex: 1; margin-bottom: 0; }
.field.inline label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.measure-save { padding: 0 16px; height: 42px; background: var(--green); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; }
.ex-custom-row { margin-top: 10px; width: 100%; }

/* 运动消耗 */
.ex-card { background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); margin-top: 14px; }
.ex-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ex-quick button {
  padding: 8px 12px; border: 1px solid var(--line); background: #f7faf8;
  border-radius: 20px; font-size: 13px; color: var(--text);
}
.ex-quick button.active { background: var(--green); color: #fff; border-color: var(--green); }
.ex-add { display: flex; gap: 8px; }
.ex-add input { flex: 1; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.ex-add button { padding: 0 18px; background: var(--green); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; }
.ex-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ex-item { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 8px 12px; background: #f3f6f4; border-radius: 10px; }
.ex-item .ex-del { color: #d9534f; background: none; border: none; font-size: 16px; }

/* 营养建议卡片 */
.advice-card { background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); margin-top: 14px; }
.advice-body { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.adv-item { font-size: 13px; line-height: 1.5; padding: 9px 12px; border-radius: 10px; border-left: 3px solid transparent; }
.adv-ok { background: #eafaf1; border-left-color: #1faa6b; color: #137a4e; }
.adv-warn { background: #fff7e6; border-left-color: #f0a020; color: #9a6b00; }
.adv-bad { background: #fdecec; border-left-color: #e3575b; color: #ab2b2f; }

.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-item {
  background: var(--card); border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow);
}
.log-item .li-name { font-weight: 600; }
.log-item .li-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.log-item .li-kcal { font-weight: 700; color: var(--green); }
.log-item .li-del { color: #d9534f; font-size: 18px; margin-left: 10px; background: none; border: none; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 13px; }

.fab {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 86px; max-width: 440px; width: calc(100% - 40px);
  background: var(--green); color: #fff; border: none; border-radius: 14px;
  padding: 14px; font-size: 16px; font-weight: 700; box-shadow: 0 6px 20px rgba(31,170,107,.35);
}

/* 食物库 */
.cam-row { display: flex; gap: 10px; margin-bottom: 12px; }
.cam-row .cam-btn { margin-bottom: 0; flex: 1; }
.cam-btn {
  width: 100%; padding: 13px; border: 1.5px dashed var(--green); background: #eef6f1;
  color: var(--green-d); border-radius: 14px; font-size: 15px; font-weight: 700; margin-bottom: 12px;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cam-primary { background: var(--green); color: #fff; border-style: solid; }
.cam-more { background: #fff; color: var(--green-d); border: 1.5px solid var(--green); }
.compose-btn { border-style: solid; border-color: var(--orange, #e8923a); color: #c9742a; background: #fdf3e9; }
.compose-results { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.compose-hit {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.compose-hit small { color: var(--muted); font-size: 12px; }
.compose-rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.compose-row { display: flex; align-items: center; gap: 8px; background: #eef4f1; border-radius: 10px; padding: 8px 10px; }
.compose-row .cr-name { flex: 1; font-size: 14px; }
.compose-row .cr-g { width: 72px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-align: right; font-size: 14px; }
.compose-row .cr-unit { color: var(--muted); font-size: 13px; }
.compose-row .cr-del { border: none; background: transparent; color: #d36; font-size: 15px; padding: 4px 6px; }
.empty.small { color: var(--muted); font-size: 13px; padding: 8px 2px; }
.search-box input, .field input, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 15px; background: var(--card); color: var(--text);
}
.search-box { margin-bottom: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.chip {
  white-space: nowrap; padding: 7px 14px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }

.food-list { display: flex; flex-direction: column; gap: 8px; }
.food-item {
  background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center;
}
.food-item .fi-name { font-weight: 600; }
.food-item .fi-cat { font-size: 11px; color: var(--muted); margin-top: 2px; }
.food-item .fi-kcal { font-weight: 700; color: var(--green); font-size: 16px; }
.food-item .fi-kcal small { font-size: 11px; color: var(--muted); font-weight: 400; }
.fi-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.fi-tag { font-size: 10px; padding: 1px 6px; border-radius: 8px; background: #eef4f1; color: var(--muted); }
.fi-tag.gi-high { background: #fde8e8; color: #d9534f; }
.fi-tag.gi-mid { background: #fff3e0; color: #e08e0b; }
.fi-tag.gi-low { background: #e7f6ee; color: var(--green-d); }

/* 计算器 */
.form-card { background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.add-custom-row { margin-top: 18px; }
.btn.block { width: 100%; }
.cust-err { color: #d33; font-size: 13px; min-height: 18px; margin: 4px 2px 10px; }
.seg { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.seg button {
  flex: 0 0 auto; min-width: 60px; padding: 11px 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  font-size: 15px; color: var(--muted); white-space: nowrap;
}
.seg button.active { background: var(--green); color: #fff; border-color: var(--green); }
/* 趋势页工具栏：把 tab + 时间段两组按钮装进统一浅灰底框中，避免挤在一起 */
.trend-toolbar { background: #f3f6f4; border-radius: 12px; padding: 10px 10px 12px; margin: 8px 0 12px; }
.trend-toolbar .seg + .seg { margin-top: 10px; }
.seg-sub button { padding: 7px 11px; font-size: 13px; min-width: 52px; border-radius: 9px; background: #fff; }
.seg-sub button.active { background: var(--green); color: #fff; border-color: var(--green); }
.primary {
  width: 100%; background: var(--green); color: #fff; border: none; border-radius: 12px;
  padding: 14px; font-size: 16px; font-weight: 700; margin-top: 4px;
}
.result-card {
  background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-top: 16px;
}
.result-card h3 { margin: 0 0 12px; font-size: 16px; }
.rc-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.rc-row:last-child { border-bottom: none; }
.rc-row b { color: var(--green); }
.rc-highlight { background: #eef4f1; border-radius: 12px; padding: 12px; margin: 8px 0; text-align: center; }
.rc-highlight .big { font-size: 26px; font-weight: 800; color: var(--green-d); }
.tip { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 12px 4px; }

/* 趋势图 */
.trend-chart { background: var(--card); border-radius: 16px; padding: 14px 8px 6px; box-shadow: var(--shadow); margin-top: 10px; }
.trend-chart svg { width: 100%; height: auto; display: block; }
.trend-stats { display: flex; gap: 10px; margin-top: 12px; }
.trend-stats .ts {
  flex: 1; background: var(--card); border-radius: 12px; padding: 10px; text-align: center; box-shadow: var(--shadow);
}
.trend-stats .ts b { display: block; font-size: 17px; color: var(--green); }
.trend-stats .ts span { font-size: 11px; color: var(--muted); }
.trend-shortage { display: none; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fff4f4; border: 1px solid #f3c4c4; color: #b23b3b; font-size: 13px; line-height: 1.7; }
.trend-shortage.show { display: block; }
.trend-shortage b { color: #d23b3b; }

/* 营养跟踪视图 */
.nutrition-view { margin-top: 10px; }
.nutri-overview { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.nutri-stat { display: flex; gap: 10px; margin-bottom: 10px; }
.nutri-stat .ns { flex: 1; text-align: center; background: #f6f8fa; border-radius: 10px; padding: 8px 4px; }
.nutri-stat .ns b { display: block; font-size: 18px; }
.nutri-stat .ns span { font-size: 11px; color: var(--muted); }
.nutri-tips .adv-item { margin-top: 8px; }
.nutri-empty-tip { font-size: 13px; color: var(--muted); text-align: center; padding: 10px; }
.nutri-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 4px 4px 10px; }
.nutri-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nutri-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.nutri-legend-note { margin-left: auto; }
.nutri-cards { background: var(--card); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); }
.nc-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f2f4; }
.nc-row:last-child { border-bottom: none; }
.nc-date { width: 38px; flex-shrink: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.nc-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.nc-bar { display: flex; align-items: center; gap: 8px; }
.nc-track { position: relative; flex: 1; height: 8px; background: #f1f3f5; border-radius: 4px; overflow: visible; }
.nc-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; min-width: 2px; }
.nc-mark { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #9ca3af; transform: translateX(-1px); }
.nc-val { width: 42px; flex-shrink: 0; text-align: right; font-size: 11px; color: #555; }
.nc-row.nc-empty .nc-val { color: #bbb; }
.adv-info { background: #eef4fb; border-left-color: #5b8def; color: #2f5aa8; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line);
  display: flex; padding: 8px 0; box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.tab { flex: 1; background: none; border: none; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tab span { font-size: 20px; }
.tab.active { color: var(--green); font-weight: 700; }

/* 弹层 */
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; z-index: 50; }
.sheet { background: #fff; width: 100%; max-width: 480px; margin: 0 auto; border-radius: 20px 20px 0 0; padding: 18px; animation: up .25s ease; }
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.sheet-head button { background: none; border: none; font-size: 20px; color: var(--muted); }
.sheet-info { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.sheet-preview { background: #eef4f1; border-radius: 12px; padding: 12px; margin: 12px 0; text-align: center; font-size: 15px; }
.sheet-preview b { color: var(--green-d); font-size: 20px; }

/* 份量按钮 */
.portion-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.portion-btns button {
  padding: 8px 12px; border: 1px solid var(--line); background: #f7faf8;
  border-radius: 20px; font-size: 13px; color: var(--text);
}
.portion-btns button.active { background: var(--green); color: #fff; border-color: var(--green); }

/* 拳头估重 */
.size-est { margin: 10px 0 4px; }
.oil-est { margin-top: 10px; }
.size-est-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.size-est-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.size-est-btns button {
  flex: 1 1 auto; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px; border: 1px solid var(--line); background: #f7faf8;
  border-radius: 12px; font-size: 13px; color: var(--text); line-height: 1.2;
}
.size-est-btns button small { font-size: 11px; color: var(--muted); font-weight: 400; }
.size-est-btns button.active { background: var(--green); color: #fff; border-color: var(--green); }
.size-est-btns button.active small { color: rgba(255,255,255,.85); }

/* 拍照识别 */
.cam-pick-row { display: flex; gap: 10px; }
.cam-pick { flex: 1; padding: 13px; background: var(--green); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; }
.cam-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.visually-hidden { position: fixed; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }
.cam-pick.secondary { background: #fff; color: var(--green-d); border: 1.5px solid var(--green); }
.cam-preview { margin: 12px 0; text-align: center; }
.cam-preview img { max-width: 100%; max-height: 220px; border-radius: 12px; }
.cam-status { font-size: 13px; color: var(--muted); text-align: center; min-height: 18px; }
.cam-candidates { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cam-cand {
  display: flex; justify-content: space-between; align-items: center;
  background: #eef4f1; border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.cam-cand b { color: var(--green-d); }
.cam-cand button { background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.cam-dishes { margin-top: 12px; border-top: 1px dashed #e2eae6; padding-top: 10px; }
.cam-dishes-label { font-size: 13px; font-weight: 700; color: var(--green-d); margin-bottom: 8px; }
.cam-dishes { display: flex; flex-direction: column; gap: 0; }
.cam-dishes .cam-dish { display: inline-block; width: 100%; text-align: left; background: #fff; border: 1px solid #e2eae6; color: var(--text); border-radius: 10px; padding: 9px 12px; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.cam-dishes .cam-dish:active { background: #eef6f1; }
.cam-similar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 4px 2px; }
.cam-similar::before { content: "可能也是："; font-size: 12px; color: var(--muted); }
.cam-sim-btn { background: #fff; border: 1px solid var(--green); color: var(--green-d); border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.cam-sim-btn:active { background: #eef6f1; }
.cam-manual { margin-top: 12px; border-top: 1px dashed #e2eae6; padding-top: 10px; }
.cam-manual input {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 11px; font-size: 14px; margin-top: 6px; background: #fff; color: var(--text);
}
.cam-search-res { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 200px; overflow-y: auto; }
.cam-search-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left;
  background: #fff; border: 1px solid #e2eae6; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--text);
}
.cam-search-item small { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.cam-search-item:active { background: #eef6f1; }
.cam-search-empty { font-size: 13px; color: var(--muted); padding: 6px 2px; }

/* 实时相机预览层 */
.cam-live { width: 100%; max-width: 460px; background: #000; border-radius: 16px; overflow: hidden; }
#camLiveVideo { display: block; width: 100%; max-height: 64vh; background: #000; object-fit: cover; }
.cam-live-bar { display: flex; align-items: center; gap: 10px; padding: 12px; background: #000; }
.cam-live-shot { flex: 1; font-size: 17px; font-weight: 800; padding: 14px; border-radius: 14px; }
.cam-live-side { flex: none; background: rgba(255,255,255,.15); color: #fff; border: none; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.cam-live-side:active { background: rgba(255,255,255,.3); }
.cam-live-tip { color: rgba(255,255,255,.75); font-size: 12px; text-align: center; padding: 0 12px 12px; }

.combo-card { background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); margin-top: 14px; }
.combo-quick { width: 100%; padding: 11px; background: #eef6f1; color: var(--green-d); border: 1px solid #d4e7dd; border-radius: 12px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.combo-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.combo-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #eef2f0; border-radius: 12px; padding: 8px 10px; }
.combo-item .ci-info { flex: 1; display: flex; flex-direction: column; }
.combo-item .ci-info b { font-size: 14px; }
.combo-item .ci-info small { color: var(--muted); font-size: 12px; }
.combo-item .ci-replay { background: var(--green); color: #fff; border: none; border-radius: 9px; padding: 6px 14px; font-size: 13px; font-weight: 700; }
.combo-item .ci-del { background: #f4f6f5; color: var(--muted); border: none; border-radius: 9px; padding: 6px 10px; font-size: 13px; }
.combo-save { width: 100%; padding: 10px; background: #fff; color: var(--green-d); border: 1.5px dashed var(--green); border-radius: 12px; font-size: 14px; font-weight: 700; }

/* 15天试用到期提示条 */
.trial-banner { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #fff4e5; border-bottom: 1px solid #f0d9b5; color: #8a5a00; padding: 10px 14px; font-size: 13px; position: sticky; top: 0; z-index: 50; }
.trial-banner-text { flex: 1; line-height: 1.4; }
.trial-subscribe { flex: none; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 7px 14px; font-size: 13px; font-weight: 700; }
.trial-subscribe:active { opacity: .85; }
