/* ==========================================================================
   轻卡 AI 饮食健康助手 - 移动端 H5 样式
   视觉语言：暖米底 + 白色卡片 + 鼠尾草绿主色
   ========================================================================== */

:root {
  --bg: #F8F5F0;
  --card: #FFFFFF;
  --line: #EFEDE6;
  --line-strong: #E2DDD3;
  --primary: #87A878;
  --primary-dark: #4F6B44;
  --primary-soft: #EFF3EC;
  --clay: #D89575;
  --amber: #D4A574;
  --text: #1F1E1B;
  --text-sub: #5C5A55;
  --text-mute: #8A877F;
  --text-faint: #A8A49B;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(92, 90, 85, 0.06);
  --shadow-lg: 0 6px 20px rgba(92, 90, 85, 0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: #EDEAE3;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; justify-content: center; align-items: center; }

.num { font-family: "SF Pro Display", "Helvetica Neue", "Geist", -apple-system, sans-serif; font-variant-numeric: tabular-nums; }

/* ---------- 手机容器 ---------- */
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  max-height: 100vh;
  background: var(--bg);
  box-shadow: 0 20px 60px rgba(31, 30, 27, 0.18);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 430px) {
  body { display: block; }
  .phone { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
}

/* ---------- 协议文档弹窗 ---------- */
.link-agree { color: var(--primary-dark); cursor: pointer; }
.doc-body { font-size: 13px; line-height: 1.75; color: var(--text-sub); max-height: 64vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.doc-body h4 { font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 6px; }
.doc-body h4:first-child { margin-top: 0; }
.doc-body p { margin: 0 0 8px; }
.doc-date { color: var(--text-faint); font-size: 12px; margin-bottom: 10px; }

/* ---------- 页面容器 ---------- */
.page-wrap { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.page-wrap::-webkit-scrollbar { width: 0; }
.page { padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 20px; min-height: 100%; }
.page.no-pad { padding: 0; }

/* ---------- 底部导航 ---------- */
.tabbar {
  flex: none;
  padding: 8px 12px calc(10px + var(--safe-bottom));
  background: transparent;
}
.tabbar-inner {
  height: 62px;
  background: #fff;
  border-radius: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  padding: 4px;
  gap: 2px;
}
.tab {
  flex: 1;
  height: 100%;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-mute);
  transition: background .2s, color .2s;
  cursor: pointer;
  border: none;
  background: transparent;
}
.tab svg { display: block; }
.tab span { font-size: 10px; letter-spacing: .5px; }
.tab.active { background: var(--primary); color: #fff; }
.tab-primary { color: var(--text-mute); }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card:last-child { margin-bottom: 0; }
.card-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-center { display: flex; align-items: center; gap: 8px; }
.muted { color: var(--text-mute); }
.small { font-size: 11px; }
.tiny { font-size: 10px; }

.btn {
  border: none; border-radius: var(--radius);
  padding: 0 16px; height: 52px; width: 100%;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(79, 107, 68, .28);
  transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--text-sub); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.sm { height: 44px; font-size: 14px; border-radius: var(--radius-sm); width: auto; padding: 0 18px; }

.input-row {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 14px; min-width: 0;
  background: #FAF8F4; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.input-row input { flex: 1; border: none; background: transparent; font-size: 15px; color: var(--text); outline: none; min-width: 0; }
.input-row input::placeholder { color: var(--text-faint); }
.input-row .link { color: var(--primary-dark); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.input-row .divider { width: 1px; height: 18px; background: var(--line-strong); flex: none; }

.chip {
  height: 30px; padding: 0 14px; border-radius: 15px;
  display: inline-flex; align-items: center;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--text-sub);
  cursor: pointer; white-space: nowrap; flex: none;
}
.chip.active { background: var(--text); border-color: var(--text); color: #fff; font-weight: 500; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip-row::-webkit-scrollbar { display: none; }

.switch { width: 44px; height: 26px; border-radius: 13px; background: #D8D4CA; position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch.on { background: var(--primary); }
.switch.on::after { left: 21px; }


.empty { text-align: center; padding: 40px 20px; color: var(--text-faint); font-size: 13px; }
.empty svg { opacity: .4; margin-bottom: 10px; }

/* ---------- 登录页 ---------- */
.login-wrap { padding: calc(env(safe-area-inset-top, 0px) + 20px) 24px 28px; display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 19px; font-weight: 700; }
.hero-title { font-size: 26px; font-weight: 700; line-height: 1.3; }
.hero-sub { font-size: 14px; color: var(--text-sub); }
.hero-img {
  height: 168px; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #EFF3EC 0%, #F6EFE4 100%);
  display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-size: 13px;
  border: 1px solid var(--line);
}
.hero-img.has-img { padding: 0; background: #EFEBE1; border-color: transparent; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agreement { font-size: 11px; color: var(--text-faint); text-align: center; }
.debug-tip {
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px;
}

/* ---------- 首页 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.greet-date { font-size: 12px; color: var(--text-mute); }
.greet-name { font-size: 20px; font-weight: 700; }
.icon-btn { width: 40px; height: 40px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.icon-btn .badge { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.icon-btn .badge.count { top: 1px; right: 1px; width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #C25B4E; color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600; }

/* AI 识别次数 */
.quota-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; margin-bottom: 12px; }
.quota-bar b { font-size: 14px; }
.quota-bar .muted { color: var(--primary-dark); opacity: .72; }
.quota-bar.low { background: #FBF1E4; color: #9A6B32; }
.quota-bar.low .muted { color: #9A6B32; opacity: .75; }
.quota-bar.out { background: #F7E7E3; color: #B4522E; }
.quota-bar.out .muted { color: #B4522E; opacity: .75; }
.quota-empty { text-align: center; padding: 18px 6px 10px; }
.quota-empty-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 26px; background: #F7E7E3; align-items: center; justify-content: center; margin-bottom: 12px; }
.quota-empty-text { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.quota-detail { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.quota-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-sub); }
.quota-row:last-child { border-bottom: none; }
.quota-row b { color: var(--text); font-weight: 600; }

/* 消息通知列表 */
.notice-bar { display: flex; justify-content: flex-end; margin: -6px 0 8px; }
.notice-readall { font-size: 12px; color: var(--primary-dark); cursor: pointer; }
.notice-list { max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
.notice-item { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; }
.notice-item .notice-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; flex: none; }
.notice-item.unread .notice-dot { background: var(--clay); }
.notice-main { flex: 1; min-width: 0; }
.notice-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.notice-item.unread .notice-title { color: var(--text); }
.notice-sum { font-size: 12px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.avatar-round { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-weight: 600; font-size: 15px; border: 1px solid var(--line); }
.avatar-round.lg { width: 56px; height: 56px; font-size: 20px; }

.calorie-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calorie-num { font-size: 34px; font-weight: 700; line-height: 1.1; }
.calorie-target { font-size: 13px; color: var(--text-mute); }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }

.macro-bar { display: flex; height: 8px; gap: 4px; margin-top: 4px; }
.macro-bar div { border-radius: 4px; }
.macro-legend { font-size: 11px; color: var(--text-mute); margin-top: 6px; }

.entry-card {
  height: 84px; border-radius: var(--radius); background: var(--primary-soft);
  border: 1px solid #DDE6D7;
  padding: 0 18px; display: flex; align-items: center; gap: 14px; cursor: pointer;
}
.entry-icon { width: 44px; height: 44px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

.stat-2 { display: flex; gap: 12px; }
.stat-card { flex: 1; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat-value { font-size: 20px; font-weight: 600; }
.stat-label { font-size: 11px; color: var(--text-mute); }

.meal-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px;
}
.meal-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 9px; }
.meal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.meal-title { font-size: 13px; font-weight: 500; }
.meal-desc { font-size: 11px; color: var(--text-mute); }
.meal-kcal { font-size: 13px; font-weight: 500; color: var(--primary-dark); flex: none; }

/* ---------- 识别页 ---------- */
.upload-box {
  height: 200px; border-radius: var(--radius); border: 1px dashed var(--primary);
  background: var(--primary-soft); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--primary-dark); cursor: pointer;
}
.upload-box img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.ai-strip {
  height: 40px; border-radius: var(--radius-sm); background: var(--primary-soft);
  padding: 0 12px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--primary-dark); font-weight: 500;
}
.food-item { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.food-item:last-child { border-bottom: none; }
.food-item input { width: 52px; text-align: right; border: none; background: #FAF8F4; border-radius: 6px; padding: 4px 6px; font-size: 12px; outline: none; }
.macro-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.macro-line .name { width: 42px; font-size: 13px; color: var(--text-sub); flex: none; }
.macro-line .track { flex: 1; height: 6px; background: #F0EDE6; border-radius: 3px; overflow: hidden; }
.macro-line .fill { height: 100%; border-radius: 3px; }
.macro-line .val { width: 48px; text-align: right; font-size: 12px; flex: none; }

/* ---------- 体重页 ---------- */
.big-num { font-size: 40px; font-weight: 700; line-height: 1.1; }
.unit { font-size: 16px; font-weight: 600; color: var(--text-mute); }
.tag-pill { height: 24px; padding: 0 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; }
.progress-track { height: 8px; border-radius: 4px; background: #F0EDE6; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--primary); }
.seg { display: flex; gap: 6px; }
.seg-item { padding: 0 10px; height: 24px; border-radius: 12px; font-size: 11px; display: inline-flex; align-items: center; color: var(--text-mute); cursor: pointer; }
.seg-item.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 500; }
.chart-box { width: 100%; overflow: hidden; }
.chart-box svg { width: 100%; display: block; }
.metrics { display: flex; }
.metric { flex: 1; text-align: center; }
.metric .v { font-size: 18px; font-weight: 600; }
.metric .l { font-size: 11px; color: var(--text-mute); }
.metric-sep { width: 1px; background: var(--line); height: 28px; }

.list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); margin-bottom: 8px;
}
.list-item .t { font-size: 13px; font-weight: 500; }
.list-item .s { font-size: 11px; color: var(--text-mute); }
.sport-del { color: var(--text-mute); font-size: 12px; cursor: pointer; padding: 4px 8px; flex: none; }
.sport-del:active { color: var(--clay); }

/* ---------- 发现页 ---------- */
.segment {
  height: 40px; border-radius: var(--radius-sm); background: #EFEDE6;
  padding: 3px; display: flex; gap: 3px; margin-bottom: 14px;
}
.segment-item {
  flex: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-mute); cursor: pointer; transition: .2s;
}
.segment-item.on { background: #fff; color: var(--text); font-weight: 500; box-shadow: 0 1px 3px rgba(92,90,85,.1); }

.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; height: 72px; gap: 8px; padding: 0 2px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-col .bar { width: 100%; max-width: 26px; background: #F0EDE6; border-radius: 6px 6px 3px 3px; min-height: 6px; }
.bar-col.hot .bar { background: var(--primary); }
.bar-col.today .bar { background: var(--clay); }
.bar-col .lb { font-size: 10px; color: var(--text-faint); }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-cover { height: 88px; background: linear-gradient(135deg, #EFF3EC, #E7DCC9); display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-size: 11px; }
.plan-body { padding: 12px; }
.plan-name { font-size: 13px; font-weight: 500; }
.plan-meta { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.video-cover { position: relative; height: 176px; background: linear-gradient(135deg, #E6EAE2, #E8DCC9); display: flex; align-items: center; justify-content: center; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; width: 48px; height: 48px; }
.duration-tag { position: absolute; right: 10px; bottom: 10px; background: rgba(31,30,27,.6); color: #fff; font-size: 10px; padding: 3px 6px; border-radius: 5px; }
.video-body { padding: 12px; }
.video-title { font-size: 14px; font-weight: 600; }
.video-meta { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

.news-item { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; align-items: center; }
.news-thumb { width: 76px; height: 56px; border-radius: 10px; background: var(--primary-soft); flex: none; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-title { font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

/* ---------- 我的 ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 12px; }
.nickname { font-size: 16px; font-weight: 600; }
.setting-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: none; }
.setting-row .name { flex: 1; font-size: 13px; font-weight: 500; }
.setting-row .val { font-size: 11px; color: var(--text-mute); }

/* ---------- 弹层 ---------- */
.mask { position: absolute; inset: 0; background: rgba(31,30,27,.45); display: flex; align-items: flex-end; z-index: 50; animation: fade .2s; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sheet {
  width: 100%; background: var(--bg); border-radius: 24px 24px 0 0; padding: 16px 20px calc(24px + var(--safe-bottom));
  animation: up .25s ease-out; max-height: 86%; overflow-y: auto; overflow-x: hidden;
}
@keyframes up { from { transform: translateY(100%) } to { transform: translateY(0) } }
.sheet-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.sheet-close { color: var(--text-mute); cursor: pointer; font-size: 13px; }
.field { margin-bottom: 12px; min-width: 0; }
.field label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 6px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.field-grid > .field { min-width: 0; }

.theme-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.theme-swatch {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 14px; cursor: pointer; position: relative;
  transition: border-color .2s, background .2s;
}
.theme-swatch .sw-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.theme-swatch .sw-name { flex: 1; font-size: 14px; font-weight: 500; }
.theme-swatch .sw-check { display: none; flex: none; }
.theme-swatch.active { border-color: var(--sw); background: var(--primary-soft); }
.theme-swatch.active .sw-check { display: block; }

.toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(31,30,27,.86); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 13px; z-index: 100; max-width: 80%; text-align: center; pointer-events: none;
}
.loading {
  position: absolute; inset: 0; background: rgba(248,245,240,.7); z-index: 90;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  font-size: 13px; color: var(--text-sub);
}
.spinner { width: 28px; height: 28px; border: 2.5px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* 资讯/视频缩略图与收藏标记 */
.news-thumb { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-thumb.md { width: 96px; height: 64px; }
.news-thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-cover .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: flex; align-items: center; justify-content: center; }
.thumb-empty { width: 100%; height: 100%; background: linear-gradient(135deg, #EFF3EC, #E7DCC9); color: var(--primary-dark); font-weight: 700; font-size: 22px; }
.fav-badge { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.28); z-index: 3; }
.video-cover .fav-badge { top: 8px; right: 8px; }
.play-btn { top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; }

/* ---------- 登录：验证码/密码 tab ---------- */
.login-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.ltab {
  flex: 1; height: 38px; border-radius: 10px; background: #F0EDE5; color: #6B675E;
  display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer;
}
.ltab.on { background: #87A878; color: #fff; font-weight: 500; }
.login-switch { text-align: center; font-size: 13px; color: #8A867C; margin-top: 4px; }

/* ---------- 首页图片（后台维护） ---------- */
