
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  :root {
    --brand: #22B35E;
    --brand-weak: #EAF7EF;
    --brand-press: #1C9A50;
    --ink: #1C1D1F;
    --ink-2: #6B7280;
    --ink-3: #9CA3AF;
    --line: #EDEEF0;
    --line-2: #F2F3F5;
    --bg: #F6F7F9;
    --card: #FFFFFF;
    --ok: #16A34A;
    --warn: #F59E0B;
    --bad: #EF4444;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.03);
  }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 100dvh;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }
  @media (min-width: 768px) {
    body {
      background: #ECEEF1;
      align-items: center;
      padding: 24px;
    }
  }

  /* 全屏布局 */
  .phone {
    width: 100%;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  @media (min-width: 768px) {
    .phone {
      border-radius: 48px;
      box-shadow: 0 30px 80px rgba(16,24,40,0.16);
      border: 10px solid #111418;
      margin-top: 20px;
      min-height: auto;
      height: 844px;
    }
  }
  .notch { display: none; }
  .statusbar { display: none; }

  /* 内容区 */
  .screen {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    position: relative;
  }
  .screen::-webkit-scrollbar { display: none; }

  /* 顶部导航 */
  .navbar {
    background: #fff;
    color: var(--ink);
    padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
    min-height: 56px;
  }
  .navbar .back {
    width: 30px; height: 30px; border-radius: 50%; background: var(--line-2);
    display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink-2);
    margin-right: 8px; cursor: pointer; transition: background .15s;
  }
  .navbar .back:active { background: #E3E5E9; }
  .navbar .nav-left { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
  .navbar h1 { font-size: 18px; font-weight: 600; }
  .nav-logo { width: 28px; height: 28px; border-radius: 7px; margin-right: 8px; flex-shrink: 0; }
  .nav-link-btn { background: none; border: none; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 2px; }

  /* 通用卡片 */
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin: 12px 16px;
    box-shadow: var(--shadow);
  }

  /* 家庭信息栏 */
  .family-bar {
    padding: 10px 16px 2px; display: flex; align-items: center; gap: 8px;
  }
  .family-name { font-size: 13px; color: var(--ink-2); }
  .family-meta { font-size: 13px; color: var(--ink); font-weight: 600; }

  /* 统计卡片 */
  .stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; margin: 12px 16px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
  }
  .stat-item { text-align: center; padding: 16px 6px; position: relative; }
  .stat-item + .stat-item::before {
    content: ''; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: var(--line);
  }
  .stat-num { font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
  .stat-num.green { color: var(--ok); }
  .stat-num.yellow { color: var(--warn); }
  .stat-num.red { color: var(--bad); }
  .stat-label { font-size: 11px; color: var(--ink-2); margin-top: 6px; }

  /* 分类标签 */
  .tabs {
    display: flex; gap: 8px; padding: 4px 16px 8px; overflow-x: auto; flex-shrink: 0;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    padding: 7px 14px; border-radius: 999px; font-size: 13px;
    background: #fff; color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line);
    transition: all .15s;
  }
  .tab.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; box-shadow: 0 4px 12px rgba(34,179,94,0.25); }
  @media (hover:hover){ .tab:hover:not(.active) { background: var(--line-2); } }

  /* 食材卡片 */
  .food-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 14px; margin: 8px 16px; box-shadow: var(--shadow);
    transition: transform .1s, border-color .15s; position: relative;
  }
  .food-card:active { transform: scale(0.985); border-color: #E0E2E6; }
  @media (hover:hover){ .food-card:hover { border-color: #E3E5E9; box-shadow: 0 2px 10px rgba(16,24,40,0.06); } }
  .food-emoji {
    width: 44px; height: 44px; border-radius: 12px; background: var(--line-2);
    display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
    position: relative;
  }
  .food-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-sizing: content-box; }
  .food-dot.green { background: var(--ok); }
  .food-dot.yellow { background: var(--warn); }
  .food-dot.red { background: var(--bad); }
  .food-info { flex: 1; min-width: 0; }
  .food-name { font-size: 15px; font-weight: 600; color: var(--ink); }
  .food-meta { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
  .food-qty { font-size: 14px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
  .badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: 11px;
    padding: 2px 8px; border-radius: 6px; margin-top: 6px; font-weight: 500;
  }
  .badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .badge.green { background: var(--brand-weak); color: var(--brand-press); }
  .badge.yellow { background: #FEF3C7; color: #B45309; }
  .badge.red { background: #FEE2E2; color: #DC2626; }
  .rec-pill { font-size: 11px; font-weight: 600; color: var(--brand-press); background: var(--brand-weak); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }

  /* 识别结果编辑输入框 */
  .rec-name-input {
    font-size: 15px; font-weight: 600; color: var(--ink);
    border: 1px solid transparent; border-radius: 6px;
    padding: 2px 6px; margin: -2px -6px; background: transparent;
    min-width: 80px; max-width: 180px;
  }
  .rec-name-input:focus { border-color: var(--brand); background: #fff; outline: none; }
  .rec-qty-input {
    width: 38px; text-align: center; font-weight: 600; font-size: 14px;
    border: 1px solid var(--line); border-radius: 6px;
    padding: 3px 2px; background: #fff;
  }
  .rec-qty-input:focus { border-color: var(--brand); outline: none; }
  /* 数量加减按钮：圆形、品牌色描边、点击反馈 */
  .step-btn {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--brand);
    background: #fff; color: var(--brand);
    font-size: 18px; line-height: 1; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; cursor: pointer; user-select: none;
    transition: background .15s, color .15s, transform .08s;
  }
  .step-btn:hover { background: var(--brand); color: #fff; }
  .step-btn:active { transform: scale(0.9); }
  .rec-unit-input {
    width: 44px; text-align: center; font-size: 12px; color: var(--ink-2);
    border: 1px solid var(--line); border-radius: 6px;
    padding: 3px 2px; background: #fff;
  }
  .rec-unit-input:focus { border-color: var(--brand); outline: none; }

  /* 主按钮 —— 直角感圆角，克制的品牌色 */
  .btn-primary {
    background: var(--brand); color: #fff; border: none; border-radius: 12px;
    padding: 14px; font-size: 15px; font-weight: 600; width: 100%;
    cursor: pointer; transition: background .15s, transform .1s;
  }
  .btn-primary:active { background: var(--brand-press); transform: scale(0.98); }
  @media (hover:hover){ .btn-primary:hover { background: var(--brand-press); } .btn-camera:hover { background: var(--brand-weak); } }

  /* 底部双按钮（已废弃，保留类名兼容） */
  .btn-camera {
    flex: 1; background: #fff; color: var(--brand); border: 1px solid var(--brand);
    border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background .15s;
  }
  .btn-camera:active { background: var(--brand-weak); }

  /* 导航栏添加按钮（Apple HIG 风格） */
  .nav-add-btn {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--brand); color: #fff; border: none;
    font-size: 20px; font-weight: 500; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s, transform .1s;
    padding: 0; flex-shrink: 0;
  }
  .nav-add-btn:active { background: var(--brand-press); transform: scale(0.92); }

  /* 会员专享提示条（已弃用，保留定义避免误删其他引用） */
  .pro-banner { display: none; }

  /* 拍照识别页 —— 排版/样式对齐小程序 recognition/camera */
  .recog-screen { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }

  /* Hero */
  .recog-hero {
    position: relative; overflow: hidden;
    margin: 4px 2px 18px;
    padding: 34px 20px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #22B35E 0%, #16A34A 100%);
    box-shadow: 0 6px 16px rgba(34, 179, 94, 0.28);
    text-align: center;
  }
  .recog-hero-glow {
    position: absolute; right: -40px; top: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
  }
  .recog-hero-emoji {
    position: relative; font-size: 48px; line-height: 1; margin-bottom: 10px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
  }
  .recog-hero-title { position: relative; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .5px; }
  .recog-hero-sub { position: relative; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.86); }

  /* 主操作卡片 */
  .recog-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .recog-act {
    display: flex; align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .recog-act:active { transform: scale(0.985); }
  .recog-act-primary { background: linear-gradient(135deg, #EAF7EF 0%, #DCF3E6 100%); }
  /* 非会员/未登录：拍照识别主操作预设锁态（暖米底 + 品牌绿图标 + PRO 标签，主切 currentColor 让 ico 跟随品牌绿） */
  .recog-act.recog-act--lock { background:#FAF7F0; border:1px solid #E8E2D2; box-shadow:0 2px 8px rgba(34,179,94,.06); }
  .recog-act.recog-act--lock .recog-act-title { color:#1C1D1F; }
  .recog-act.recog-act--lock .recog-act-desc { color:#6B7280; }
  .recog-act.recog-act--lock .recog-act-ico { background:#EAF7EF; color:#22B35E; box-shadow:none; }
  .recog-act-ico {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-right: 12px;
    background: #22B35E; color: #fff;
    box-shadow: 0 3px 8px rgba(34, 179, 94, 0.3);
  }
  .recog-act-ico-ghost { background: #F2F3F5; box-shadow: none; }
  .recog-act-text { flex: 1; min-width: 0; }
  .recog-act-title { font-size: 16px; font-weight: 600; color: #1C1D1F; }
  .recog-act-desc { margin-top: 3px; font-size: 12px; color: #9CA3AF; }
  .recog-act-arrow { font-size: 22px; color: #C9CDD4; flex-shrink: 0; }

  /* 支持超市 chips */
  .recog-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 2px 18px; }
  .recog-chip {
    font-size: 12px; color: #6B7280;
    background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: 5px 11px;
  }

  /* 提示卡 */
  .recog-tips {
    background: #fff; border-radius: 12px; padding: 4px 14px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
  }
  .recog-tip { display: flex; align-items: center; padding: 9px 0; }
  .recog-tip + .recog-tip { border-top: 1px solid #F3F4F6; }
  .recog-tip-ico { font-size: 16px; margin-right: 8px; }
  .recog-tip-txt { font-size: 13px; color: #4B5563; }

  .recog-foot { margin: 14px 4px 0; text-align: center; font-size: 11px; color: #B7BCC4; }

  /* 选图预览（对应小程序 photo 页） */
  .recog-pick {
    margin-top: 18px; padding: 16px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
  }
  .recog-pick-head { text-align: center; margin-bottom: 12px; }
  .recog-pick-title { font-size: 16px; font-weight: 600; color: var(--ink); }
  .recog-pick-title span { color: var(--brand); }
  .recog-pick-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
  .recog-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .recog-pick-status { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 10px; line-height: 1.6; }

  /* 会员状态卡 - 新版：金色质感卡片 */
  .member-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 45%, #FDE68A 100%);
    border: none;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
  }
  .member-card.pro {
    background: linear-gradient(135deg, #FFFBEB 0%, #FDE68A 55%, #FCD34D 100%);
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.18);
  }
  .member-shine {
    position: absolute;
    top: -46px; right: -46px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
  }
  .member-shine::after {
    content: '';
    position: absolute;
    top: 96px; left: -76px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 70%);
  }
  .member-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; position: relative; z-index: 1;
  }
  .member-main {
    display: flex; align-items: center; gap: 12px; min-width: 0;
  }
  .m-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FDE68A, #F59E0B);
    display: flex; align-items: center; justify-content: center;
    font-size: 23px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    flex-shrink: 0;
  }
  .member-card.pro .m-icon-wrap {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.3);
  }
  .member-text { min-width: 0; }
  .m-title-line {
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  }
  .m-title {
    font-size: 17px; font-weight: 800;
    color: #78350F;
    letter-spacing: -0.3px;
  }
  .m-sub {
    font-size: 12px; color: #92400E;
    line-height: 1.4;
  }
  .m-badge {
    font-size: 11px; font-weight: 700;
    color: #92400E;
    background: rgba(255,255,255,0.65);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    backdrop-filter: blur(2px);
    white-space: nowrap;
  }
  .m-badge.on {
    color: #B45309;
    background: rgba(255,255,255,0.85);
    border-color: #F59E0B;
  }
  .m-cta {
    display: none;
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .1s;
  }
  .m-cta:active { transform: scale(0.97); }
  .member-perks {
    display: flex; gap: 8px;
    margin-top: 14px;
    position: relative; z-index: 1;
  }
  .perk {
    display: flex; align-items: center; gap: 4px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.55);
    border-radius: 999px;
    font-size: 11px;
    color: #92400E;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.25);
  }
  .perk span { font-size: 12px; }
  .membership-perks { display: flex; flex-direction: column; gap: 8px; }
  .membership-perks .perk { border-radius: 10px; font-size: 13px; background: rgba(255,255,255,0.7); justify-content: flex-start; }
  .mb-tip { font-size: 12px; color: var(--ink-3); text-align: center; padding: 4px 24px 24px; line-height: 1.6; }
  .receipt-upload-icon { font-size: 48px; margin-bottom: 12px; }
  .receipt-upload-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
  .receipt-upload-hint { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
  .receipt-upload-btn {
    display: inline-block; padding: 10px 24px;
    background: var(--brand); color: #fff; border-radius: 10px;
    font-size: 14px; font-weight: 600;
  }
  /* 小票预览缩略图 */
  .cam-thumb {
    width: 72px; height: 72px; border-radius: 10px; object-fit: cover;
    border: 2px solid var(--line); position: relative;
  }
  .cam-thumb-wrap { position: relative; display: inline-block; }
  .cam-thumb-del {
    position: absolute; top: -6px; right: -6px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #c33; color: #fff; border: none;
    font-size: 12px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }

  /* TabBar */
  .tabbar {
    display: flex; height: 64px; background: #fff; border-top: 1px solid var(--line);
    flex-shrink: 0; padding-bottom: env(safe-area-inset-bottom);
    position: relative; z-index: 5; overflow: visible;
  }
  .tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; cursor: pointer; color: var(--ink-3); font-size: 10px; transition: color .15s;
  }
  .tab-item.active { color: var(--brand); }
  .tab-item .ti { font-size: 21px; line-height: 1; }
  .tab-item .ti svg { width: 22px; height: 22px; display: block; }
  .tab-item.center .ti svg { width: 24px; height: 24px; }
  .tab-item.active .ti { color: var(--brand); }
  .tab-item.center .ti {
    background: var(--brand); color: #fff; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    transform: translateY(-18px); box-shadow: 0 6px 16px rgba(34,179,94,0.32); filter: none;
  }
  .tab-item.center { color: var(--brand); position: relative; z-index: 6; }

  /* 页面切换 */
  .page { display: none; flex-direction: column; }
  .page.active { display: flex; flex: 1; min-height: 0; }

  /* 表单 */
  .form-group { margin-bottom: 18px; }
  .form-label { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }
  .form-input {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
    font-size: 15px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s;
  }
  .form-input:focus { border-color: var(--brand); }
  .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    padding: 8px 14px; border-radius: 10px; font-size: 13px; background: #fff;
    border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; transition: all .15s;
    font-family: inherit; line-height: inherit;
  }
  .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
  .emoji-preview { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-weak); display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
  .chip-row.emoji-row .chip { padding: 6px 8px; font-size: 20px; min-width: 36px; text-align: center; }
  .qty-stepper { display: flex; align-items: center; gap: 14px; }
  .qty-stepper .qsb { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-size: 20px; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, transform .1s; flex-shrink: 0; }
  .qty-stepper .qsb:active { transform: scale(0.92); background: var(--line-2); }
  .qty-stepper .qsn { min-width: 34px; text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

  /* 菜谱卡片 */
  .recipe-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; margin: 12px 16px; box-shadow: var(--shadow);
  }
  .recipe-title { font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .recipe-title > span { min-width: 0; }
  .recipe-desc { font-size: 13px; color: var(--ink-2); margin: 6px 0 10px; line-height: 1.5; }
  .match-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .match { font-size: 11px; padding: 4px 10px; border-radius: 8px; font-weight: 500; }
  .match.has { background: var(--brand-weak); color: var(--brand-press); }
  .match.miss { background: var(--line-2); color: var(--ink-2); }

  /* 菜谱页：分段控件 / 加入按钮 / 周计划 */
  .seg { display: flex; gap: 4px; margin: 12px 16px 4px; background: var(--line-2); padding: 4px; border-radius: 12px; }
  .seg-item { flex: 1; text-align: center; padding: 9px 0; font-size: 14px; font-weight: 500; color: var(--ink-2); border-radius: 9px; cursor: pointer; transition: all .15s; }
  .seg-item.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(16,24,40,0.08); }
  .plan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .plan-row:last-child { border-bottom: none; }
  .plan-row .pr-name { font-size: 13px; font-weight: 500; color: var(--ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pr-days { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
  .pr-day { width: 22px; height: 22px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
  .pr-day.on { background: var(--brand); color: #fff; font-weight: 600; }
  .pr-remove { width: 22px; height: 22px; border-radius: 6px; color: var(--ink-3); font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
  .pr-remove:active { color: var(--bad); }
  .plan-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
  .seg-mini { display: flex; background: var(--line-2); border-radius: 8px; padding: 3px; gap: 2px; }
  .seg-mini-item { font-size: 12px; padding: 4px 12px; border-radius: 6px; color: var(--ink-2); cursor: pointer; transition: all .15s; }
  .seg-mini-item.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,0.08); }
  .rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 16px 16px; }
  .rec-cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 0 8px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; cursor: pointer; position: relative; overflow: hidden; transition: all .15s; }
  .rec-cell.on { border-color: var(--brand); background: var(--brand-weak); }
  .rec-cell:active { transform: scale(0.97); }
  .rec-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px 12px 0 0; background: linear-gradient(135deg, #F4F6F5, #E9EDEC); display: flex; align-items: center; justify-content: center; font-size: 72px; overflow: hidden; position: relative; }
  .rec-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
  .rec-img.loaded { opacity: 1; }
  .rec-photo-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 72px; }
  .rec-name { font-size: 12px; font-weight: 500; color: var(--ink); text-align: center; padding: 0 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* 骨架屏 */
  .rec-cell.skeleton { pointer-events: none; }
  .rec-cell.skeleton .sk { background: linear-gradient(90deg, #eef0ef 25%, #e2e5e4 37%, #eef0ef 63%); background-size: 400% 100%; animation: sk-shimmer 1.3s infinite; border-radius: 6px; }
  .rec-cell.skeleton .rec-photo.sk { border-radius: 12px 12px 0 0; aspect-ratio: 1/1; }
  .rec-cell.skeleton .rec-name.sk { height: 12px; margin: 4px 10px 8px; }
  @keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

  /* 搜索框 */
  .recipe-search { padding: 10px 16px 4px; }
  .recipe-search input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 14px; font-size: 14px; color: var(--ink); outline: none; }
  .recipe-search input:focus { border-color: var(--brand); }

  /* 热门菜单横向流 */
  #recipe-hot { padding: 6px 0 2px; }
  #recipe-hot .section-title { margin: 4px 16px 8px; }
  .hot-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
  .hot-scroll::-webkit-scrollbar { display: none; }
  .hot-card { flex: 0 0 auto; width: 96px; cursor: pointer; }
  .hot-photo { width: 96px; height: 96px; border-radius: 14px; background: linear-gradient(135deg, #F4F6F5, #E9EDEC); display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: hidden; position: relative; }
  .hot-photo .rec-img { border-radius: 14px; }
  .hot-name { font-size: 12px; color: var(--ink); margin-top: 6px; text-align: center; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

  /* 家庭菜谱项 */
  .imp-save-row { margin-top: 14px; }
  .fr-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
  .fr-item:last-child { border-bottom: none; }
  .fr-emoji { font-size: 30px; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #F4F6F5, #E9EDEC); display: flex; align-items: center; justify-content: center; }
  .fr-body { flex: 1 1 auto; min-width: 0; }
  .fr-name { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
  .fr-cat { font-size: 11px; color: var(--ink-3); background: var(--line-2); padding: 1px 7px; border-radius: 6px; font-weight: 500; }
  .fr-sum { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
  .fr-del { flex: 0 0 auto; font-size: 12px; color: var(--danger, #e5484d); background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; }
  .fr-del:active { background: var(--line-2); }
  /* 家庭菜谱操作区（编辑 / 删除） */
  .fr-acts { flex: 0 0 auto; display: flex; gap: 6px; }
  .fr-edit { font-size: 12px; color: #2B7DE9; background: #EAF3FF; border: 1px solid #D6E6FF; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
  .fr-edit:active { background: #D6E6FF; }

  /* 我的菜谱：可维护卡片 */
  .rec-cell.my-cell { padding-bottom: 10px; }
  .rec-tag.fam { display: inline-block; font-size: 10px; color: #FF7A45; background: #FFF3EC; border-radius: 6px; padding: 1px 6px; margin: 4px auto 0; }
  .rec-actions { display: flex; gap: 6px; padding: 0 8px; margin-top: 6px; }
  .rec-act { flex: 1; border: none; border-radius: 8px; padding: 7px 0; font-size: 12px; cursor: pointer; transition: filter .15s; }
  .rec-act:active { filter: brightness(0.95); }
  .rec-act.edit { background: #EAF3FF; color: #2B7DE9; }
  .rec-act.del { background: #FFEDED; color: #E5484D; }

  /* 广告卡（变现占位） */
  .rec-cell.ad-card { border-style: dashed; }
  .ad-badge { position: absolute; top: 6px; left: 6px; z-index: 3; font-size: 10px; color: #fff; background: rgba(0,0,0,0.45); padding: 1px 6px; border-radius: 6px; }

  /* 我的菜谱列表末尾：「＋添加菜谱」入口卡片（顶栏已移除 + 号后保留添加路径） */
  .rec-cell.add-cell { border-style: dashed; border-color: var(--brand); background: #FAFFFB; }
  .rec-photo-add { color: var(--brand); font-size: 48px; font-weight: 300; line-height: 1; }

  /* 无限滚动哨兵 */
  #recipe-sentinel { height: 1px; }
  .rec-check { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
  .rec-add { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.92); color: #9CA3AF; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; z-index: 3; }
  .rec-add.on { background: #FFF0F3; color: #FF4D6D; border-color: #FFD0DA; }
  .rec-add:active { transform: scale(0.9); }

  /* 导航栏右侧 */
  .nav-right { display: flex; align-items: center; gap: 8px; }
  .nav-add { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .nav-add:active { transform: scale(0.92); }
  .imp-seg { padding: 0 16px 8px; }
  .imp-form { padding: 4px 16px 16px; }
  .imp-field { margin-bottom: 12px; }
  .imp-label { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
  .imp-input, .imp-textarea, .imp-select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fff; color: var(--ink); box-sizing: border-box; font-family: inherit; }
  .imp-textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
  .dyn-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
  .dyn-row .imp-input { flex: 1; }
  .dyn-del { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--bad); cursor: pointer; flex-shrink: 0; font-size: 13px; }
  .dyn-add { font-size: 13px; color: var(--brand); background: none; border: none; cursor: pointer; padding: 4px 0; }
  .imp-msg { font-size: 12px; padding: 8px 12px; border-radius: 8px; margin: 8px 16px; display: none; }
  .imp-msg.err { display: block; background: #FEE2E2; color: #B42318; }
  .imp-msg.ok { display: block; background: #EAF7EF; color: #1f6b42; }
  .imp-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; display: flex; gap: 10px; }
  .hide { display: none !important; }

  /* 封面图（对齐小程序 addRecipe 封面图能力） */
  .cover-wrap { position: relative; width: 88px; height: 88px; border-radius: 12px; border: 1px dashed var(--line); background: var(--line-2); overflow: hidden; cursor: pointer; }
  .cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cover-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-3); }
  .cover-plus { font-size: 26px; line-height: 1; }
  .cover-tip { font-size: 11px; margin-top: 4px; }
  .cover-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
  .cover-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #c33; color: #fff; border: none; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

  /* 主按钮 loading 态 */
  .btn-primary[disabled] { opacity: .6; cursor: not-allowed; }
  #imp-spin { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: impspin .7s linear infinite; }
  #imp-spin.on { display: inline-block; }
  @keyframes impspin { to { transform: rotate(360deg); } }
  .share-pop { position: absolute; inset: 0; background: rgba(16,24,40,.45); display: none; align-items: center; justify-content: center; z-index: 60; padding: 24px; }
  .share-pop.show { display: flex; }
  .share-box { background: #fff; border-radius: 16px; padding: 20px; width: 100%; max-width: 300px; text-align: center; }
  .share-token { font-family: monospace; background: #F4F6F5; border-radius: 8px; padding: 10px; margin: 12px 0; font-size: 13px; word-break: break-all; }
  .btn-primary.added { background: #FFF0F3; color: #FF4D6D; border-color: #FFD0DA; }
  .rd-photo { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, #F4F6F5, #E9EDEC); display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto; }
  .rd-desc { font-size: 13px; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
  .step-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); line-height: 1.5; }
  .step-item:last-child { border-bottom: none; }
  .step-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-weak); color: var(--brand-press); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

  /* 详情页信息条 */
  .rd-meta { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 4px; }
  .rd-chip { display: inline-flex; align-items: baseline; gap: 3px; background: var(--brand-weak); color: var(--brand-press); border-radius: 10px; padding: 6px 10px; font-size: 14px; font-weight: 600; }
  .rd-chip i { font-style: normal; font-size: 11px; font-weight: 500; opacity: .8; margin-left: 2px; }
  .rd-muted { background: #F1F3F2; color: var(--ink-3); font-weight: 500; }

  /* 每步时长 / 小贴士 */
  .step-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .step-time { align-self: flex-start; background: #FFF4E5; color: #B26A00; border-radius: 8px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
  .step-tip { background: #F0F7FF; color: #1F6FB2; border-radius: 8px; padding: 5px 8px; font-size: 12px; line-height: 1.45; }

  /* 小贴士卡片 */
  .rd-tips-card { margin: 12px 16px 0; padding: 12px 14px; background: #F8FBFF; }
  .rd-tips-text { font-size: 13px; color: var(--ink); line-height: 1.6; }

  /* 营养卡片 */
  .rd-nutrition-card { margin: 12px 16px 0; padding: 12px 14px; background: #F7FBF6; }
  .nut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
  .nut-cell { background: #fff; border-radius: 10px; padding: 10px 6px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
  .nut-cell b { display: block; font-size: 15px; color: var(--brand-press); }
  .nut-cell span { font-size: 11px; color: var(--ink-3); }

  /* 统计图表 */
  .chart-wrap { display: flex; gap: 18px; align-items: center; }
  .donut {
    width: 116px; height: 116px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(16,24,40,0.10);
  }
  .donut-inner { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); }
  .donut-total { font-size: 20px; font-weight: 700; }
  .donut-label { font-size: 10px; color: var(--ink-3); }
  .legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
  .legend-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
  .legend-pct { margin-left: auto; font-weight: 600; color: var(--ink); }

  /* 柱状图 */
  .chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 0 4px; }
  .chart-bar { flex: 1; border-radius: 6px 6px 0 0; min-height: 4px; transition: height .4s ease; background: var(--brand); }
  .chart-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-top: 8px; padding: 0 4px; }

  /* 浪费分析 */
  .waste-summary { display: flex; justify-content: space-around; text-align: center; margin-bottom: 12px; }
  .waste-num { font-size: 24px; font-weight: 700; }
  .waste-num.bad { color: var(--bad); }
  .waste-num.warn { color: var(--warn); }
  .waste-num.ok { color: var(--brand); }
  .waste-label { font-size: 11px; color: var(--ink-2); }
  .waste-list-title { font-size: 12px; color: var(--ink-2); margin-bottom: 2px; }

  .rank-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); }
  .rank-row:last-child { border-bottom: none; }
  .rank-num { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; }

  /* 我的页 */
  .mine-profile-card { display: flex; align-items: center; gap: 14px; }
  .mine-avatar-img { width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; }
  .mine-nickname { font-size: 17px; font-weight: 600; }
  .mine-phone { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

  /* 家庭成员 */
  .member-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .member-row:last-child { border-bottom: none; }
  .member-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; overflow: hidden; }
  .member-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
  .member-avatar-initial { background: var(--brand, #22b35e); color: #fff; font-weight: 600; font-size: 18px; }
  .invite-box { background: var(--brand-weak); border: 1px solid #D6EFE0; border-radius: var(--radius); padding: 20px 16px; margin: 12px 16px; text-align: center; }
  .invite-code { font-size: 26px; font-weight: 700; letter-spacing: 8px; color: var(--brand-press); margin: 10px 0; font-variant-numeric: tabular-nums; }

  /* 空状态 */
  .empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
  .empty .emoji { font-size: 48px; opacity: 0.7; }
  .empty p { margin-top: 12px; font-size: 13px; line-height: 1.6; }

  /* 顶部小标签 */
  .top-tags { display: flex; gap: 8px; padding: 0 16px 4px; }
  .top-tag { font-size: 12px; padding: 6px 12px; border-radius: 10px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
  .top-tag.upd { color: var(--brand); border-color: #CDEBD8; }

  /* 标题区 */
  .section-title { font-size: 14px; font-weight: 600; color: var(--ink); margin: 8px 16px 0; }
  .list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 16px 2px; }
  .list-head .lh-title { font-size: 14px; font-weight: 600; color: var(--ink); }
  .list-head .lh-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

  /* 导航栏右侧 */

  /* 相机网格 */
  .cam-thumb {
    position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line); background: var(--line-2);
  }
  .cam-idx {
    position: absolute; top: 6px; left: 6px; width: 22px; height: 22px;
    border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff;
    font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  }
  .cam-del {
    position: absolute; top: 4px; right: 4px; width: 26px; height: 26px;
    border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff;
    font-size: 14px; border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; line-height: 1;
  }
  .cam-del:active { background: rgba(200,30,30,0.8); }
  .cam-add {
    aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; cursor: pointer; color: var(--ink-3); transition: all .15s;
  }
  .cam-add:active { background: var(--line-2); border-color: var(--brand); color: var(--brand); }
  .cam-add-icon { font-size: 32px; font-weight: 300; line-height: 1; }
  .cam-add-text { font-size: 11px; }

  /* 全局 Loading */
  .loading-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    backdrop-filter: blur(6px); opacity: 0; pointer-events: none;
    transition: opacity .25s;
  }
  .loading-overlay.show { opacity: 1; pointer-events: auto; }
  .loading-spin { position: relative; width: 80px; height: 80px; }
  .loading-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 40px; animation: float 1.5s ease-in-out infinite;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  .loading-ring {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--brand);
    animation: spin .8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .loading-text { color: #fff; font-size: 15px; margin-top: 20px; font-weight: 500; }

  /* 存储位置分区 */
  .loc-section { margin-bottom: 8px; }
  .loc-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; margin: 4px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--ink);
  }
  .loc-summary { font-size: 12px; color: var(--ink-2); font-weight: 400; }

  /* 弹层提示 */
  .toast {
    position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(10px);
    background: rgba(28,29,31,0.92); color: #fff; padding: 10px 18px; border-radius: 10px;
    font-size: 13px; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 200;
    backdrop-filter: blur(4px);
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* 通用行列表（我的/设置） */
  .list-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
  .list-row:last-child { border-bottom: none; }
  .list-row .lr-left { display: flex; align-items: center; gap: 10px; }
  .list-row .lr-right { color: var(--ink-3); font-size: 13px; }

  /* 登录弹窗 */
  .login-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    overflow-y: auto;            /* 卡片高于视口时可滚动，避免底部按钮被裁切 */
    padding: 24px 0;             /* 视口上下留白 */
  }
  .login-overlay.hide { display: none; }
  .login-card {
    background: #fff; border-radius: 24px; padding: 36px 24px 28px;
    width: 320px; max-width: 90vw; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin: auto;                /* 配合 overflow-y:auto：溢出时仍可滚到顶部/底部，正常时居中 */
  }
  .login-icon {
    width: 124px; height: 124px; margin: 0 auto 10px;
    border-radius: 30px;
    background: linear-gradient(150deg, #ECF9F1 0%, #D6F0E2 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(34,179,94,0.28);
  }
  .login-logo { width: 100%; height: 100%; border-radius: 24px; object-fit: contain; }
  .login-title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
  .login-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
  .login-wx-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 0; border-radius: 14px;
    background: #07C160; color: #fff; font-size: 16px; font-weight: 600;
    cursor: pointer; border: none; margin-bottom: 16px;
  }
  .login-wx-btn:active { opacity: 0.85; }
  .wx-icon { font-size: 22px; }
  .login-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--ink-3); font-size: 12px; }
  .login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
  .login-input {
    flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 15px; outline: none; background: var(--bg);
  }
  .login-input:focus { border-color: var(--brand); }
  .login-dev-btn {
    padding: 12px 18px; border-radius: 12px; background: var(--brand);
    color: #fff; font-size: 14px; font-weight: 600; border: none; cursor: pointer;
    white-space: nowrap;
  }
  .login-dev-btn:active { background: var(--brand-press); }
  .login-tip { margin-top: 12px; font-size: 12px; color: var(--ink-3); min-height: 18px; }
  .login-sms-btn {
    padding: 12px 14px; border-radius: 12px; background: #fff;
    color: var(--brand); font-size: 13px; font-weight: 600; border: 1px solid var(--brand);
    cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all .15s;
  }
  .login-sms-btn:active { background: var(--brand-weak); }
  .login-sms-btn:disabled { background: var(--line-2); color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
  .login-code-input { flex: 0 0 110px; width: 110px; }
  .login-err { color: var(--bad) !important; }
  .login-ok { color: var(--brand) !important; }

/* === 食材卡片：左滑删除 / 多选编辑 === */
.food-row { position: relative; margin: 8px 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transform: translateZ(0); }
.food-row .food-card { margin: 0; position: relative; z-index: 1; background: #fff; border-radius: var(--radius); transition: transform .2s; touch-action: pan-y; user-select: none; }
.food-actions { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; display: flex; align-items: center; justify-content: center; background: var(--bad); z-index: 0; border-radius: 0 var(--radius) var(--radius) 0; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.food-row.swiping .food-actions,
.food-row.swiped-open .food-actions { opacity: 1; pointer-events: auto; }
.food-actions .swipe-del { background: none; border: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; padding: 0 12px; }
.food-card.editing { background: #fff; }
.food-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.food-check.on { background: var(--brand); border-color: var(--brand); }
.food-check.on::after { content: '✓'; color: #fff; font-size: 14px; line-height: 1; }
.food-qty-edit { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.food-qty-edit .qty-num { font-size: 14px; font-weight: 600; color: var(--ink); min-width: 44px; text-align: center; }
/* 标题行操作按钮（添加/编辑/删除）—— 文字按钮，与小程序 edit-btn 绿色文字一致 */
.lh-actions { display: inline-flex; align-items: center; gap: 4px; }
.lh-btn { margin-left: 4px; background: none; border: none; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 8px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.lh-btn.active { background: var(--brand-weak); }
/* 添加：品牌绿（正向操作） */
.lh-add { color: var(--brand); }
/* 删除：同款绿色文字，hover 提示危险 */
.lh-del { margin-left: 4px; }
.lh-del:hover { color: var(--bad); }
.lh-del:disabled { opacity: .4; cursor: not-allowed; }
.edit-bar { display: flex; align-items: center; gap: 10px; margin: 6px 16px 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.edit-bar .eb-info { flex: 1; font-size: 13px; color: var(--ink-3); }
.eb-btn { padding: 8px 14px; border-radius: 10px; border: none; background: var(--brand-weak); color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; }
.eb-btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.eb-btn.danger { background: var(--bad); color: #fff; }
.eb-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===================== 家庭账单（会员）===================== */
.btn-bill { background: #FF6B35; color: #fff; border: none; border-radius: 12px; padding: 14px 0; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; font-family: inherit; }
.btn-bill:disabled { opacity: .6; cursor: default; }
.btn-bill.done { background: #9CA3AF; }
.btn-danger { background: var(--bad); color: #fff; border: none; border-radius: 12px; padding: 12px 0; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

.lock-line { font-size: 15px; font-weight: 600; }
.lock-tip { font-size: 12px; color: var(--ink-3); margin: 8px 0 14px; line-height: 1.6; }
.btn-primary.sm { background: var(--brand); color: #fff; border: none; border-radius: 10px; padding: 9px 18px; font-size: 13px; cursor: pointer; font-family: inherit; }

/* ===== 统一会员鉴权（ProGate）视觉 ===== */
/* 内联锁块：替代散落的 bill-locked / 各页手写"会员专享"块 */
.pro-gate-inline { text-align: center; padding: 18px 0; }
.pro-gate-inline .lock-line { font-size: 15px; font-weight: 600; }
.pro-gate-inline .lock-tip { font-size: 12px; color: var(--ink-3); margin: 8px 0 14px; line-height: 1.6; }
/* 无会员：锁定态按钮，点击触发开通引导（暖米 + 墨黑 + 品牌绿微阴影，去掉原玫红警示感） */
.btn-pro-lock { background: #FAF7F0; color: #1C1D1F; border: 1px solid #E8E2D2; border-radius: 12px; padding: 11px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; box-shadow: 0 2px 6px rgba(34,179,94,.06); }
.btn-pro-lock:active { transform: scale(0.98); }
/* 会员但额度用完：禁用态按钮 + 剩余量，点击 toast 后端 429 原文（不弹开通引导） */
.btn-quota-done { background: #F2F3F5; color: #9CA3AF; border: 1px solid #E5E7EB; border-radius: 12px; padding: 11px 18px; font-size: 14px; font-weight: 600; cursor: not-allowed; font-family: inherit; }
.btn-quota-done[disabled] { opacity: 1; }
/* 配额态按钮内的剩余量角标 */
.pro-quota-badge { font-size: 12px; font-weight: 500; opacity: .85; margin-left: 6px; }

.bill-overview { display: flex; padding: 4px 0 12px; }
.bo-item { flex: 1; text-align: center; }
.bo-num { font-size: 22px; font-weight: 800; color: var(--brand); }
.bo-label { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.payer-stats { border-top: 1px solid var(--line); padding-top: 8px; }
.payer-stat-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.ps-name { color: var(--ink); }
.ps-amt { font-weight: 700; color: #E65100; }
.recent { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.recent-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; cursor: pointer; }
.recent-store { color: var(--ink-2); }
.recent-amt { font-weight: 600; color: #E65100; }

/* 弹层 */
.modal-mask { display: none; position: fixed; inset: 0; background: rgba(16,24,40,.42); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal-mask.show { display: flex; }
.modal { display: none; width: 100%; max-width: 520px; max-height: 86vh; background: #fff; border-radius: 18px; overflow: hidden; flex-direction: column; animation: modalIn .18s ease; }
@keyframes modalIn { from { transform: translateY(12px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.modal-close { font-size: 18px; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.modal-filters { display: flex; gap: 8px; padding: 12px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.modal-select, .modal-input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-family: inherit; background: #fff; color: var(--ink); }
.modal-select { flex: 1; min-width: 120px; }
.modal-input { flex: 1; min-width: 110px; }

/* ProGate 弹窗专用样式（重做壳：去掉 48px 🔒 + 👑 emoji，改 PRO 徽章 + 圆形绿锁 SVG 圆环） */
.pg-badge { display:inline-block; font-size:10px; font-weight:700; letter-spacing:0.12em; color:var(--brand); background:var(--brand-weak); padding:3px 10px; border-radius:999px; margin-bottom:10px; }
.pg-icon-circle { width:48px; height:48px; border-radius:50%; background:#F5F2EC; color:var(--brand); display:inline-flex; align-items:center; justify-content:center; margin:6px 0 10px; box-shadow:0 1px 0 rgba(34,179,94,0.04); }
.pg-icon-circle svg { width:22px; height:22px; }
.pg-icon-circle .pg-icon-pro { display:block; }
.pg-icon-circle .pg-icon-login { display:none; font-size:22px; line-height:1; }
.pg-icon-circle.pg-icon-login-mode .pg-icon-pro { display:none; }
.pg-icon-circle.pg-icon-login-mode .pg-icon-login { display:block; }
/* 弹窗次要按钮：替代原 btn-camera 的"免费试用"槽位，弱化对比、强化开通 Pro 这个主 CTA */
.btn-ghost { background:transparent; color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:10px 14px; font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; }
.btn-ghost:active { background:var(--line-2); }

/* 账单列表行 */
.bill-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.bill-row:active { background: var(--line-2); }
.bill-main { flex: 1; min-width: 0; }
.bill-store { font-size: 15px; font-weight: 600; }
.bill-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.bill-right { text-align: right; padding-left: 10px; }
.bill-amt { font-size: 16px; font-weight: 700; color: #E65100; }
.bill-payer { font-size: 12px; color: var(--ink-2); margin-top: 3px; }

/* 账单详情 */
.bill-d-head { text-align: center; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.bd-store { font-size: 17px; font-weight: 700; }
.bd-total { font-size: 26px; font-weight: 800; color: #E65100; margin: 4px 0; }
.bd-date { font-size: 12px; color: var(--ink-3); }
.bill-meta-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.meta-label { color: var(--ink-3); }
.bd-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.bdi-name { flex: 1; min-width: 0; }
.bdi-sub { font-size: 12px; color: var(--ink-3); }
.bdi-amt { font-weight: 700; color: #E65100; }
.bdi-ops { display: flex; gap: 8px; font-size: 13px; }
.bdi-ops a { color: var(--brand); cursor: pointer; }
.bdi-ops a.danger { color: var(--bad); }
.bd-item.editing { flex-wrap: wrap; gap: 6px; }
.bd-input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; font-family: inherit; width: 64px; }
.bd-input.name { flex: 1; min-width: 120px; width: auto; }

/* 手动记账行 */
.ba-item { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.ba-in { border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: 13px; font-family: inherit; }
.ba-in.name { flex: 1; min-width: 100px; }
.ba-in.qty { width: 54px; }
.ba-in.unit { width: 48px; }
.ba-in.price { width: 70px; }

/* 识别结果分组标题 */
.rec-group-title { font-size: 14px; font-weight: 700; margin: 14px 4px 8px; color: var(--ink-1); display: flex; align-items: center; gap: 6px; }
.rec-group-sub { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.rec-group-other { color: #a06a00; }
.rec-card-other { opacity: .72; background: #fafafa; }

/* 想吃就发页 */
.wa-manual-link { text-align: center; padding: 14px 0 18px; }
.wa-manual-link a { color: var(--brand); font-size: 13px; }
.wa-save { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.wa-save input { width: 18px; height: 18px; }
.fr-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 2px 6px; border-radius: 8px; font-size: 11px; font-weight: 600; margin-left: 4px; }
.fr-badge.has { color: #1b7f3b; background: #e6f6ec; }
.fr-badge.miss { color: #b26a00; background: #fff3e0; }
.wa-ing-row .fr-badge { align-self: center; }
#wa-draft .imp-field { margin-top: 14px; }
#wa-pub { margin-top: 4px; }

/* 家庭成员想吃 */
.fw-item { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.fw-item:last-child { border-bottom: none; }
.fw-head { font-size: 14px; color: var(--ink-1); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fw-head b { color: var(--brand-press); }
.fw-vid { color: var(--brand); font-size: 12px; margin-left: 2px; }
.fw-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fw-acts { display: flex; gap: 8px; }
.fw-btn { flex: 1; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 10px; padding: 8px 0; font-size: 13px; font-family: inherit; cursor: pointer; }
.fw-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.fw-note { font-size: 12px; color: var(--ink-2); background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 8px; padding: 6px 8px; margin: 6px 0; }
.fw-comments { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.fw-cmt { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.fw-cmt b { color: var(--ink-1); font-weight: 600; }
.fw-cmt-empty { font-size: 12px; color: var(--ink-3); }
.fw-cmt-add { display: flex; gap: 6px; margin-top: 8px; }
.fw-cmt-input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-family: inherit; outline: none; }
.fw-cmt-add button { border: none; background: var(--brand); color: #fff; border-radius: 8px; padding: 0 14px; font-size: 13px; font-family: inherit; cursor: pointer; }

/* 家庭通知铃铛 */
#notif-bell { position: fixed; right: 14px; bottom: 74px; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(16,24,40,.18); display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; z-index: 60; }
#notif-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ff4d4f; color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
#notif-badge.hide { display: none; }
.notif-modal { max-width: 380px; max-height: 70vh; display: flex; flex-direction: column; }
.notif-modal .modal-body { overflow-y: auto; }
.notif-item { padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: linear-gradient(90deg, rgba(34,179,94,.08), transparent 60%); }
.notif-item.unread .notif-text::before { content: '● '; color: var(--brand); font-size: 10px; vertical-align: middle; }
.notif-text { font-size: 14px; color: var(--ink-1); line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

/* ========== 想吃就发页 — 简约风格覆盖 ========== */
#page-want-add .screen { padding: 28px 22px 48px; background: #fafafa; min-height: calc(100vh - 108px); }
#page-want-add .imp-field { margin-bottom: 26px; }
#page-want-add .imp-label { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-bottom: 8px; letter-spacing: .2px; }
#page-want-add .imp-input,
#page-want-add .imp-select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0; font-size: 15px; background: transparent; color: var(--ink);
  box-sizing: border-box; font-family: inherit; outline: none; transition: border-color .2s;
}
#page-want-add .imp-input::placeholder { color: #c5c9d0; }
#page-want-add .imp-input:focus,
#page-want-add .imp-select:focus { border-bottom-color: var(--brand); }
#page-want-add .btn-primary {
  background: #fff; color: var(--brand); border: 1px solid var(--brand); border-radius: 24px;
  padding: 13px; font-size: 15px; font-weight: 600; width: 100%;
  box-shadow: none; transition: all .15s; letter-spacing: .3px;
}
#page-want-add .btn-primary:active { background: #f0fdf4; transform: scale(.985); }
#page-want-add .btn-primary #imp-spin { border-color: rgba(34,179,94,.35); border-top-color: var(--brand); }
#page-want-add #wa-pub { background: var(--brand); color: #fff; border-color: var(--brand); }
#page-want-add #wa-pub:active { background: var(--brand-press); }

#page-want-add #wa-draft {
  background: #fff; border-radius: 16px; padding: 22px; margin-top: 26px;
  border: 1px solid var(--line-2); box-shadow: 0 1px 4px rgba(16,24,40,.03);
}
#page-want-add #wa-draft .imp-field { margin-top: 20px; margin-bottom: 0; }
#page-want-add #wa-draft .imp-field:first-child { margin-top: 0; }
#page-want-add #wa-draft .imp-label { color: var(--ink-2); }

#page-want-add .dyn-add { font-size: 13px; color: var(--brand); font-weight: 500; margin-top: 10px; }

/* 食材/步骤行简约化 */
#page-want-add .dyn-row.wa-ing-row,
#page-want-add .dyn-row.wa-step-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line-2); background: transparent; margin-bottom: 0;
}
#page-want-add .dyn-row.wa-step-row { align-items: flex-start; }
#page-want-add .dyn-row.wa-ing-row .imp-input,
#page-want-add .dyn-row.wa-step-row .imp-input {
  border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 6px 0;
  font-size: 14px; flex: 1; border-radius: 0;
}
#page-want-add .dyn-row.wa-ing-row .imp-input:focus,
#page-want-add .dyn-row.wa-step-row .imp-input:focus { border-bottom-color: var(--brand); }
#page-want-add .dyn-row.wa-ing-row .ing-name { flex: 1.6; }
#page-want-add .dyn-row.wa-ing-row .ing-amount { flex: 1; }
#page-want-add .dyn-row .dyn-del {
  width: 22px; height: 22px; border-radius: 50%; border: 0; background: #f2f2f2; color: #999;
  font-size: 14px; line-height: 22px; text-align: center; cursor: pointer; flex-shrink: 0;
}
#page-want-add .dyn-row .dyn-del:active { background: #e5e5e5; color: #666; }
#page-want-add .fr-badge { font-size: 10px; padding: 2px 5px; border-radius: 6px; min-width: 44px; }

#page-want-add .wa-save { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
#page-want-add .wa-save input { width: 16px; height: 16px; accent-color: var(--brand); }
#page-want-add .wa-manual-link { text-align: center; padding: 20px 0 32px; }
#page-want-add .wa-manual-link a { color: var(--ink-3); font-size: 13px; font-weight: 400; text-decoration: none; }
#page-want-add .wa-manual-link a:active { color: var(--brand); }
#page-want-add .imp-msg { margin: 12px 0; border-radius: 10px; }
#page-want-add .imp-foot { background: transparent; border: 0; margin-top: 22px; padding: 0; }

/* 想吃就发：配图用 emoji */
#page-want-add .wa-emoji { width: 72px; height: 72px; border-radius: 16px; background: #f3faf5; border: 1px solid #e2f2e8; display: flex; align-items: center; justify-content: center; font-size: 40px; line-height: 1; }
.phone.hide-tabbar .tabbar { display: none; }

/* 想吃就发：步骤行加时间输入 */
#page-want-add .dyn-row.wa-step-row { flex-wrap: nowrap; align-items: center; }
#page-want-add .dyn-row.wa-step-row .wa-step-desc { flex: 1; min-width: 0; }
#page-want-add .wa-step-time { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
#page-want-add .wa-step-time-input { width: 52px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 6px 2px; font-size: 13px; text-align: right; border-radius: 0; font-family: inherit; outline: none; }
#page-want-add .wa-step-time-input:focus { border-bottom-color: var(--brand); }
#page-want-add .wa-step-time-unit { font-size: 12px; color: var(--ink-3); }

@media (max-width: 360px) {
  #page-want-add .screen { padding: 22px 16px 40px; }
  #page-want-add .imp-foot { margin-top: 16px; }
}

/* 家庭成员想吃：emoji + 步骤时长 */
.fw-emoji { display: inline-block; margin-right: 4px; }
.fw-time { font-size: 12px; color: var(--ink-2); background: #f3faf5; border: 1px solid #d8f0e0; border-radius: 8px; padding: 6px 8px; margin: 6px 0; }

/* 菜谱详情：视频卡 */
.rd-video-card { display:flex; align-items:center; gap:12px; margin-top:12px; text-align:left; }
.rd-video-thumb { flex:0 0 auto; width:46px; height:46px; border-radius:12px; background:#fdeef2; display:flex; align-items:center; justify-content:center; font-size:24px; }
.rd-video-meta { flex:1 1 auto; min-width:0; }
.rd-video-title { font-size:14px; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rd-video-sub { font-size:12px; color:var(--ink-3); margin-top:2px; }
.rd-video-play { flex:0 0 auto; font-size:13px; padding:8px 14px; border-radius:20px; border:0; background:var(--brand); color:#fff; font-weight:600; }
.rd-video-play:active { opacity:.85; }

/* 菜谱详情：家庭评论 */
.rd-comments { margin-top:12px; }
.rd-comment-list { display:flex; flex-direction:column; gap:12px; margin:10px 0; }
.rd-comment-empty { font-size:13px; color:var(--ink-3); text-align:center; padding:14px 0; }
.rd-comment-item { display:flex; gap:10px; }
.rd-comment-avatar { flex:0 0 auto; width:32px; height:32px; border-radius:50%; background:#eef1f5; display:flex; align-items:center; justify-content:center; overflow:hidden; font-size:16px; }
.rd-comment-avatar img { width:100%; height:100%; object-fit:cover; }
.rd-comment-body { flex:1 1 auto; min-width:0; }
.rd-comment-head { display:flex; align-items:center; gap:8px; }
.rd-comment-head b { font-size:13px; color:var(--ink); }
.rd-comment-time { font-size:11px; color:var(--ink-3); }
.rd-comment-del { margin-left:auto; font-size:12px; color:var(--danger, #e5484d); }
.rd-comment-text { font-size:14px; color:var(--ink); line-height:1.5; margin-top:2px; word-break:break-word; }
.rd-comment-input { display:flex; gap:8px; margin-top:6px; }
.rd-comment-input .imp-input { flex:1 1 auto; }

/* 视频预览弹层（应用内 iframe 预览，兜底跳转原站）
   注意：仅作用于 #video-modal，避免覆盖 .modal-mask 的默认 display:none，
   否则会连累家庭通知等其它弹层常驻可见且无法关闭 */
#video-modal { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:90; display:flex; align-items:center; justify-content:center; padding:18px; }
.modal-video-box { width:100%; max-width:480px; background:#fff; border-radius:16px; overflow:hidden; display:flex; flex-direction:column; }
.modal-video-bar { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; font-size:14px; font-weight:600; color:var(--ink); border-bottom:1px solid var(--line); }
.modal-close { border:0; background:transparent; font-size:18px; color:var(--ink-3); }
.modal-video-frame { position:relative; width:100%; padding-top:56.25%; background:#000; }
.modal-video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.modal-video-open { display:block; text-align:center; padding:12px; font-size:13px; color:var(--brand); text-decoration:none; border-top:1px solid var(--line); }
