/* ============================================================
   AI识餐 · 高保真静态原型 —— 原型扩展样式 proto.css
   styles.css 已含：柠檬黄 token / 卡片 / 按钮 / 底栏 / 中央钮 /
   Sheet / 套餐 / 排行榜 / 闺蜜位 / 扫描 / IP 等，本文件只做新增与适配
   ============================================================ */

/* ---------- 基础修正 ---------- */
#tabbar[hidden], #fab[hidden] { display: none !important; }
[data-go], [data-action] { cursor: pointer; }
.pi { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pi svg { width: 100%; height: 100%; display: block; }
.btn.block { width: 100%; flex: none; }
.btn .pi { width: 19px; height: 19px; }
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}
.tx2{color:var(--ink-2);font-size:12.5px;line-height:1.7}
.tx-center{text-align:center}
.pb-safe{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
.section-gap{height:4px}

/* ---------- 桌面宽屏：居中手机栏 + 环境光 ---------- */
@media (min-width: 520px) {
  body { background: radial-gradient(1100px 560px at 50% -12%, #FFF8D6 0%, #E9E7DC 56%, #DDDBD0 100%); }
  #app { box-shadow: 0 0 0 1px rgba(21,21,19,.06), 0 30px 80px rgba(21,21,19,.20); }
  #protoIndexBtn { display: inline-flex !important; }
}

/* ---------- 桌面评审屏幕目录 ---------- */
#protoIndexBtn {
  display: none; position: fixed; left: 18px; bottom: 18px; z-index: 220; align-items: center; gap: 7px;
  background: var(--ink); color: var(--yellow); border: none; border-radius: 999px; padding: 11px 17px;
  font-weight: 800; font-size: 13px; font-family: inherit; box-shadow: var(--shadow-pop); cursor: pointer;
}
#protoIndexBtn svg { width: 16px; height: 16px; fill: currentColor; }
.pi-panel {
  position: fixed; left: 18px; bottom: 64px; z-index: 221; width: 288px; max-height: 72vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 10px;
}
.pi-panel .pi-h { font-size: 13px; font-weight: 900; padding: 8px 10px 6px; color: var(--ink); }
.pi-panel a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 11px; font-size: 13px; color: var(--ink); text-decoration: none; cursor: pointer; }
.pi-panel a:hover, .pi-panel a.cur { background: var(--yellow-soft); font-weight: 800; }
.pi-panel a small { color: var(--ink-3); font-weight: 600; }

/* ---------- 通用表单 ---------- */
.p-label { font-size: 13px; font-weight: 800; color: var(--ink); margin: 14px 2px 8px; }
.p-input { width: 100%; border: 1.5px solid transparent; border-radius: 15px; padding: 15px 16px; font-size: 16px; background: var(--field); color: var(--ink); font-family: inherit; }
.p-input:focus { outline: none; border-color: var(--ink); background: #fff; }
.p-input::placeholder { color: var(--ink-3); }
.code-row { display: flex; gap: 10px; }
.code-row .p-input { flex: 1; }
.code-btn { flex: 0 0 auto; border: none; border-radius: 14px; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 13.5px; padding: 0 16px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.code-btn:disabled { background: #E7E5DC; color: var(--ink-3); cursor: not-allowed; }
.agree-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.agree-line .ck { width: 18px; height: 18px; border-radius: 999px; border: 1.8px solid var(--ink-3); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; background: #fff; }
.agree-line .ck svg { width: 11px; height: 11px; fill: none; stroke: var(--yellow); stroke-width: 3.4; }
.agree-line.on .ck { background: var(--ink); border-color: var(--ink); }
.agree-line a { color: var(--ink); font-weight: 800; text-decoration: none; }
.agree-line.shake { animation: p-shake .4s; }
@keyframes p-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* ---------- 登录 / 验证码 ---------- */
.auth-screen { min-height: 100vh; background: linear-gradient(180deg, var(--yellow) 0%, #FFF8D6 34%, var(--bg-warm) 62%); padding: calc(env(safe-area-inset-top) + 30px) 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 26px; }
.auth-logo { width: 118px; height: 118px; border-radius: 34px; background: #fff; box-shadow: 0 18px 40px rgba(21,21,19,.16); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.auth-logo img { width: 104px; height: 104px; object-fit: contain; }
.auth-name { font-size: 32px; font-weight: 900; letter-spacing: -.5px; margin-top: 16px; }
.auth-slogan { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.auth-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.auth-tags span { background: rgba(255,255,255,.75); border: 1px solid rgba(21,21,19,.06); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 6px 12px; color: var(--ink); }
.auth-actions { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.btn-wx { background: #07C160; color: #fff; box-shadow: 0 10px 24px rgba(7,193,96,.28); }
.btn-wx:active { background: #06A854; transform: scale(.985); }
.btn-sms { background: #fff; color: var(--ink); border: 1.6px solid var(--ink); }
.btn-guest { background: transparent; color: var(--ink-2); font-weight: 700; min-height: 42px; }
.wx-ico { width: 21px; height: 21px; fill: currentColor; }
.sms-screen { min-height: 100vh; background: #fff; padding: calc(env(safe-area-inset-top) + 8px) 22px 24px; display: flex; flex-direction: column; }
.sms-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sms-head .icon-btn { background: var(--field); }
.sms-title { font-size: 25px; font-weight: 900; letter-spacing: -.4px; }
.sms-sub { font-size: 13px; color: var(--ink-2); margin: 6px 0 22px; line-height: 1.7; }
.sms-foot { margin-top: 18px; }

/* ---------- Onboarding 扩展 ---------- */
.ob-actions .ob-back { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.ob-actions .ob-back svg { width: 22px; height: 22px; }
.ob-actions .btn { flex: 1; }
.unit-seg { display: inline-flex; background: var(--field); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 22px; }
.unit-seg button { border: none; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 800; color: var(--ink-2); padding: 8px 20px; border-radius: 999px; cursor: pointer; }
.unit-seg button.sel { background: var(--ink); color: var(--yellow); }
.wheel-pick { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 8px 0 18px; flex-wrap: nowrap; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.wheel-pick .step-btn { flex: 0 0 50px; width: 50px; height: 50px; min-width: 50px; min-height: 50px; box-sizing: border-box; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 24px; font-weight: 900; color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; line-height: 1; padding: 0; }
.wheel-pick .step-btn:active { background: var(--yellow-soft); }
.wheel-val { flex: 0 0 auto; font-size: 64px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; min-width: 140px; width: 140px; text-align: center; line-height: 1; overflow: hidden; }
.wheel-val small { font-size: 18px; color: var(--ink-2); font-weight: 800; margin-left: 4px; }
.p-range { width: 100%; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--yellow) var(--fill,50%), #ECEAE0 var(--fill,50%)); outline: none; margin: 10px 0 6px; }
.p-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 4px solid var(--yellow); box-shadow: 0 4px 12px rgba(0,0,0,.22); cursor: pointer; }
.p-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 4px solid var(--yellow); cursor: pointer; }
.range-scale { position: relative; height: 17px; margin: 3px 2px 0; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.range-scale span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.range-scale span:first-child { left: 0 !important; transform: none; }
.range-scale span:last-child { left: auto !important; right: 0; transform: none; }
.bmi-card { margin-top: 20px; background: linear-gradient(135deg, var(--yellow-soft), #FFF9DC); border: 1.5px solid rgba(21,21,19,.07); border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.bmi-card .bmi-num { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bmi-card .bmi-tag { font-size: 12px; font-weight: 900; color: #fff; background: var(--green); border-radius: 999px; padding: 4px 11px; }
.bmi-card .bmi-tip { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.5; }
.ob-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.ob-loading img { width: 132px; height: 132px; object-fit: contain; animation: ip-float 3s ease-in-out infinite; }
.dots-loading { display: flex; gap: 9px; }
.dots-loading i { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); animation: dot-bounce 1s infinite ease-in-out; }
.dots-loading i:nth-child(2) { animation-delay: .15s; } .dots-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce { 0%,100%{transform:translateY(0);opacity:.55} 50%{transform:translateY(-9px);opacity:1} }
.ready-hero { text-align: center; padding: 6px 0 14px; }
.ready-hero img { width: 104px; height: 104px; object-fit: contain; }
.ready-hero h2 { font-size: 24px; font-weight: 900; margin-top: 8px; letter-spacing: -.3px; }
.ready-goal { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; background: var(--yellow-soft); border-radius: 999px; padding: 9px 17px; font-size: 13.5px; font-weight: 800; max-width: 100%; white-space: nowrap; }
.ready-goal svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ready-goal span { white-space: nowrap; }
.ready-grid { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.ready-meals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ready-meal { border-radius: 14px; padding: 10px 11px; }
.ready-meal .rm-n { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.ready-meal .rm-k { font-size: 15px; font-weight: 900; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- 首页：会员促销卡 / 三小指标 / 食物缩略图 ---------- */
.vip-promo { position: relative; margin: 0 16px 12px; background: var(--ink); border-radius: 20px; padding: 15px 16px; display: flex; align-items: center; gap: 13px; color: #fff; box-shadow: 0 12px 26px rgba(21,21,19,.18); cursor: pointer; }
.vip-promo .vp-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vip-promo .vp-ic svg { width: 23px; height: 23px; }
.vip-promo .vp-tx { flex: 1; min-width: 0; }
.vip-promo .vp-t { font-size: 15px; font-weight: 900; color: var(--yellow); }
.vip-promo .vp-s { font-size: 12px; color: rgba(255,255,255,.72); margin-top: 3px; line-height: 1.5; }
.vip-promo .vp-go { background: var(--yellow); color: var(--ink); font-size: 12.5px; font-weight: 900; border-radius: 999px; padding: 9px 15px; flex-shrink: 0; }
.vip-promo .vp-close { position: absolute; top: -7px; right: -5px; width: 25px; height: 25px; border-radius: 999px; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.mini-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 0 16px 12px; }
.metric-mini { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 12px; box-shadow: var(--shadow-card); cursor: pointer; }
.metric-mini .mm-top { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.metric-mini .mm-top .pi { width: 16px; height: 16px; color: var(--ink); }
.metric-mini .mm-v { font-size: 19px; font-weight: 900; margin-top: 7px; font-variant-numeric: tabular-nums; }
.metric-mini .mm-v small { font-size: 11px; color: var(--ink-3); font-weight: 700; margin-left: 2px; }
.metric-mini .mm-bar { height: 5px; border-radius: 999px; background: #EFEDE4; margin-top: 8px; overflow: hidden; }
.metric-mini .mm-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.food-thumb { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; flex-shrink: 0; background: var(--field); }
.food-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--yellow-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.food-ico svg { width: 23px; height: 23px; }
.food-line .fl-main { flex: 1; min-width: 0; margin: 0 11px; }
.fl-del { border: none; background: transparent; color: var(--ink-3); width: 30px; height: 30px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fl-del:active { background: var(--red-soft); color: var(--red); }
.fl-del svg { width: 16px; height: 16px; }

/* ---------- 居中弹窗 ---------- */
.pmodal-mask { position: fixed; inset: 0; background: var(--scrim); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 34px 28px; animation: ip-scrim-in .2s ease both; }
.pmodal { width: 100%; max-width: 342px; background: #fff; border-radius: 26px; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-pop); animation: psm-pop .34s cubic-bezier(.2,1.3,.4,1) both; max-height: 86vh; overflow-y: auto; }
.pmodal .pm-ic { width: 54px; height: 54px; border-radius: 18px; background: var(--yellow-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.pmodal .pm-ic svg { width: 27px; height: 27px; }
.pmodal h3 { font-size: 18.5px; font-weight: 900; text-align: center; letter-spacing: -.2px; }
.pmodal .pm-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; margin: 11px 2px 18px; text-align: center; }
.pmodal .pm-body.left { text-align: left; }
.pmodal .pm-actions { display: flex; flex-direction: column; gap: 10px; }
.pmodal .pm-actions.row { flex-direction: row; }
.pmodal .pm-actions .btn { min-height: 49px; font-size: 15px; }
.pmodal .pm-danger { background: var(--red-soft); color: var(--red); }
.pmodal .pm-x { position: absolute; }
.pmodal.wide { max-width: 384px; }

/* ---------- 好友 / 社交 ---------- */
.guest-tip { display: flex; align-items: center; gap: 10px; margin: 0 16px 12px; padding: 11px 14px; background: var(--yellow-soft); border: 1.5px solid rgba(21,21,19,.07); border-radius: 15px; font-size: 12.5px; line-height: 1.55; }
.guest-tip .pi { width: 19px; height: 19px; flex: 0 0 auto; }
.guest-tip b { color: var(--ink); }
.guest-tip .gt-login { margin-left: auto; flex-shrink: 0; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 900; border-radius: 999px; padding: 7px 13px; border: none; font-family: inherit; cursor: pointer; }
.bond-banner { margin: 0 16px 12px; border-radius: 20px; padding: 16px; background: linear-gradient(120deg, var(--yellow) 0%, #FFF4A1 100%); display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow-card); cursor: pointer; }
.bond-banner .bb-ic { width: 46px; height: 46px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bond-banner .bb-ic svg { width: 24px; height: 24px; }
.bond-banner .bb-tx { flex: 1; }
.bond-banner .bb-t { font-size: 15px; font-weight: 900; }
.bond-banner .bb-s { font-size: 12px; color: rgba(21,21,19,.66); margin-top: 3px; line-height: 1.5; }
.bond-banner .bb-go { background: var(--ink); color: var(--yellow); font-size: 12.5px; font-weight: 900; border-radius: 999px; padding: 9px 15px; flex-shrink: 0; }
.friend-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 15px 16px; margin: 0 16px 12px; box-shadow: var(--shadow-card); cursor: pointer; }
.fc-head { display: flex; align-items: center; gap: 11px; }
.fc-avatar { width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; color: var(--ink); flex-shrink: 0; border: 2.5px solid #fff; box-shadow: var(--shadow-card); }
.fc-name { flex: 1; min-width: 0; }
.fc-name .n { font-size: 15.5px; font-weight: 900; }
.fc-name .t { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.like-btn { width: 38px; height: 38px; border-radius: 999px; border: none; background: var(--field); color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform .15s; }
.like-btn svg { width: 19px; height: 19px; }
.like-btn.liked { background: var(--red-soft); color: var(--red); animation: like-pop .3s cubic-bezier(.2,1.6,.4,1); }
@keyframes like-pop { 0%{transform:scale(.7)} 60%{transform:scale(1.18)} 100%{transform:scale(1)} }
.fc-kcal { display: flex; align-items: baseline; gap: 6px; margin: 13px 0 10px; }
.fc-kcal b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fc-kcal span { font-size: 12px; color: var(--ink-2); }
.fc-meals { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-bottom: 11px; }
.fc-meal { border-radius: 12px; padding: 8px 6px; text-align: center; }
.fc-meal .m-n { font-size: 10.5px; color: var(--ink-2); font-weight: 700; }
.fc-meal .m-k { font-size: 13px; font-weight: 900; margin-top: 2px; font-variant-numeric: tabular-nums; }
.fc-stats { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; }
.fc-stats span { display: inline-flex; align-items: center; gap: 5px; }
.fc-stats svg { width: 15px; height: 15px; }
.fd-hero { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 8px 0 4px; }
.fd-hero .fc-avatar { width: 76px; height: 76px; font-size: 28px; }
.fd-hero .n { font-size: 20px; font-weight: 900; }
.fd-hero .sub { font-size: 12.5px; color: var(--ink-2); }
.fd-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 14px; }
.fd-actions .btn { min-height: 48px; font-size: 14px; padding: 0 8px; }
.text-danger { background: none; border: none; color: var(--red); font-size: 13.5px; font-weight: 800; font-family: inherit; cursor: pointer; padding: 12px; width: 100%; }
.invite-steps { display: flex; flex-direction: column; gap: 0; margin: 6px 0 4px; }
.invite-step { display: flex; gap: 13px; position: relative; padding-bottom: 18px; }
.invite-step:last-child { padding-bottom: 0; }
.invite-step .is-no { width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.invite-step:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.invite-step .is-t { font-size: 14px; font-weight: 800; padding-top: 3px; }
.invite-step .is-s { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-top: 3px; }
.bind-success { text-align: center; padding: 6px 0 2px; }
.bind-success .bs-ic { width: 76px; height: 76px; border-radius: 999px; background: var(--green-soft); color: #2E7D32; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.bind-success .bs-ic svg { width: 38px; height: 38px; }
.bind-success h3 { font-size: 19px; font-weight: 900; }
.bind-success p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-top: 7px; }

/* 小票 */
.receipt { background: #fff; width: 100%; max-width: 326px; margin: 4px auto 0; border-radius: 14px; padding: 20px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: #26251f; box-shadow: var(--shadow-pop); }
.receipt .rc-shop { text-align: center; font-weight: 900; font-size: 15px; }
.receipt .rc-sub { text-align: center; color: #8a887e; font-size: 11px; margin-top: 4px; }
.rc-dash { border-top: 1.5px dashed #CFCBBE; margin: 11px 0; }
.rc-row { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; }
.rc-row b { font-weight: 900; }
.rc-total { font-size: 16px; font-weight: 900; }
.rc-barcode { height: 42px; margin: 12px auto 4px; width: 82%; background: repeating-linear-gradient(90deg,#151513 0 2px,transparent 2px 5px,#151513 5px 6px,transparent 6px 10px); border-radius: 3px; }
.rc-thanks { text-align: center; font-size: 11px; color: #8a887e; margin-top: 8px; }

/* ---------- 设置组 ---------- */
.set-group { background: #fff; border: 1px solid var(--line); border-radius: 19px; margin: 0 16px 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.set-group .sg-title { font-size: 12px; font-weight: 900; color: var(--ink-3); padding: 14px 16px 4px; letter-spacing: .5px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--line-warm); }
.set-row:last-child { border-bottom: none; }
.set-row:active { background: var(--field); }
.set-ic { width: 35px; height: 35px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.set-ic svg { width: 18.5px; height: 18.5px; }
.set-meta { flex: 1; min-width: 0; }
.set-label { font-size: 15px; font-weight: 700; }
.set-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.set-val { font-size: 13px; color: var(--ink-3); max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.set-arrow { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.switch { width: 47px; height: 29px; border-radius: 999px; background: #DCDAD0; position: relative; transition: background .2s; flex-shrink: 0; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: left .2s; }
.switch.on { background: var(--ink); }
.switch.on::after { left: 21px; background: var(--yellow); }
.profile-card { display: flex; align-items: center; gap: 14px; margin: 0 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-card); cursor: pointer; }
.profile-card .fc-avatar { width: 58px; height: 58px; font-size: 22px; }
.profile-card .pc-name { font-size: 18px; font-weight: 900; }
.profile-card .pc-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.profile-card .pc-badge { font-size: 11px; font-weight: 900; background: var(--yellow-soft); border-radius: 999px; padding: 3px 9px; margin-left: 7px; }

/* ---------- 付费 ---------- */
.pay-hero { text-align: center; padding: 4px 20px 14px; }
.pay-hero img { width: 92px; height: 92px; object-fit: contain; }
.pay-hero h2 { font-size: 24px; font-weight: 900; letter-spacing: -.3px; margin-top: 4px; }
.pay-hero .ph-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.6; }
.pay-channel { display: flex; align-items: center; gap: 11px; margin: 4px 16px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pay-channel .wx-ico { width: 26px; height: 26px; color: #07C160; }
.pay-channel .pc-t { flex: 1; font-size: 14.5px; font-weight: 800; }
.pay-channel .pc-s { font-size: 11.5px; color: var(--ink-3); }
.pay-channel .pc-dot { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--ink); background: radial-gradient(var(--ink) 45%, #fff 52%); }
.notice-box { margin: 0 16px 14px; background: var(--field); border-radius: 16px; padding: 14px 16px; font-size: 12px; color: var(--ink-2); line-height: 1.85; }
.notice-box .nb-t { font-size: 13px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.pay-agree { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11.5px; color: var(--ink-2); padding: 2px 20px 12px; }
.pay-agree a { color: var(--ink); font-weight: 800; text-decoration: none; }

/* ---------- 洞察图表 ---------- */
.bars { display: flex; align-items: flex-end; gap: 9px; height: 158px; padding: 12px 6px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; height: 100%; }
.bar-col .bar { width: 100%; max-width: 27px; border-radius: 9px 9px 5px 5px; background: var(--yellow); min-height: 4px; transition: height .5s ease; }
.bar-col .bar.ink { background: var(--ink); }
.bar-col .bar-l { font-size: 10.5px; color: var(--ink-2); font-weight: 700; }
.donut-row { display: flex; align-items: center; gap: 18px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 11px; }
.dl-item { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.dl-item i { width: 11px; height: 11px; border-radius: 4px; flex-shrink: 0; }
.dl-item b { margin-left: auto; font-variant-numeric: tabular-nums; }
.risk-card, .benefit-card { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 14px 15px; margin: 0 16px 10px; box-shadow: var(--shadow-card); }
.risk-card .rc-ic { width: 38px; height: 38px; border-radius: 13px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-card .rc-ic { background: var(--green-soft); color: #2E7D32; }
.risk-card .rc-ic svg, .benefit-card .rc-ic svg { width: 20px; height: 20px; }
.risk-card h4, .benefit-card h4 { font-size: 14.5px; font-weight: 900; }
.risk-card p, .benefit-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; margin-top: 4px; }

/* ---------- 食谱 ---------- */
.recipe-meal { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.recipe-meal:last-child { border-bottom: none; }
.recipe-meal img { width: 56px; height: 56px; border-radius: 15px; object-fit: cover; flex-shrink: 0; }
.recipe-meal .rm-main { flex: 1; min-width: 0; }
.recipe-meal .rm-name { font-size: 14.5px; font-weight: 800; }
.recipe-meal .rm-desc { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.recipe-meal .rm-kcal { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.recipe-lock { filter: none; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 14px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 800; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.day-tab.sel { background: var(--ink); border-color: var(--ink); color: var(--yellow); }

/* ---------- 法律长文 ---------- */
.legal-doc { background: #fff; margin: 0 16px 18px; border-radius: 19px; padding: 20px 18px 22px; font-size: 13.5px; line-height: 1.85; color: #3A3933; }
.legal-doc h3 { font-size: 15px; font-weight: 900; color: var(--ink); margin: 16px 0 6px; }
.legal-doc h3:first-child { margin-top: 0; }
.legal-doc p { margin: 7px 0; }
.legal-doc .upd { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }

/* ---------- 记录弹层内结果 ---------- */
.ai-result-card { background: var(--field); border-radius: 16px; padding: 14px; margin-top: 4px; }
.ai-result-card .ar-name { font-size: 15px; font-weight: 900; }
.ai-result-card .ar-kcal { font-size: 22px; font-weight: 900; margin: 6px 0; font-variant-numeric: tabular-nums; }
.ai-macros { display: flex; gap: 8px; margin: 8px 0 12px; }
.ai-macros span { flex: 1; text-align: center; background: #fff; border-radius: 12px; padding: 8px 4px; font-size: 11.5px; color: var(--ink-2); }
.ai-macros b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 900; margin-bottom: 2px; }
.scan-tip { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.78); line-height: 1.7; margin-top: -10px; }
.scan-result-img { width: 100%; height: 150px; object-fit: cover; border-radius: 15px; margin-bottom: 10px; }

/* ---------- 原型占位（无 screen 注册时） ---------- */
.proto-boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; }
.proto-boot img { width: 110px; height: 110px; object-fit: contain; }
.proto-boot h1 { font-size: 22px; font-weight: 900; }
.proto-boot p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; max-width: 300px; }

/* ---------- F4 计划首页 / 食谱卡 ---------- */
.custom-banner { position: relative; margin: 0 16px 16px; border-radius: 22px; padding: 18px 132px 17px 18px;
  background: linear-gradient(125deg, #2A291D 0%, #151513 78%); color: #fff; overflow: hidden; box-shadow: var(--shadow-card); cursor: pointer; }
.custom-banner:active { transform: scale(.995); }
.cb-tag { display: inline-block; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 900; padding: 4px 11px; border-radius: 999px; }
.cb-title { font-size: 18.5px; font-weight: 900; color: var(--yellow); margin: 10px 0 6px; letter-spacing: -.2px; }
.cb-sub { font-size: 12px; color: rgba(255,255,255,.72); line-height: 1.62; }
.cb-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 13px; padding: 9px 17px; border-radius: 999px; }
.cb-ip { position: absolute; right: 6px; bottom: 4px; width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); pointer-events: none; }
@media (max-width: 360px) { .custom-banner { padding-right: 116px; } .cb-ip { width: 98px; height: 98px; } }
.section-h { font-size: 16px; font-weight: 900; margin: 2px 16px 11px; letter-spacing: -.2px; }
.rc-cover { width: 100%; height: 142px; object-fit: cover; border-radius: 15px; display: block; background: var(--field); }
.rc-intro { font-size: 12.5px; color: var(--ink-2); line-height: 1.62; margin-bottom: 11px; }
.rc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--field); border-radius: 999px; padding: 6px 11px; font-size: 11.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.rc-tag svg { width: 14px; height: 14px; color: var(--ink); }

/* ---------- F4.3 食谱详情 ---------- */
#scr-recipe-detail { padding-bottom: 98px; }
.rd-hero { position: relative; height: 232px; overflow: hidden; }
.rd-hero > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 36%, rgba(0,0,0,.74) 100%); }
.rd-back { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 16px; z-index: 3; background: #fff !important; box-shadow: var(--shadow-card); }
.rd-hero-tx { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; }
.rd-hero-tx h2 { font-size: 21px; font-weight: 900; line-height: 1.32; letter-spacing: -.2px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.rd-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rd-tags .rc-tag { background: rgba(255,255,255,.93); color: var(--ink); }
.rd-intro { padding: 14px 18px 2px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.rd-cta-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; z-index: 40;
  padding: 14px 16px calc(13px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(244,244,241,0) 0%, var(--bg) 34%); }
.rd-lock { text-align: center; padding: 24px 18px 20px; }
.rd-lock .rl-ic { width: 60px; height: 60px; border-radius: 19px; background: var(--yellow-soft); color: #8A6D1F; display: flex; align-items: center; justify-content: center; margin: 0 auto 13px; }
.rd-lock .rl-ic svg { width: 29px; height: 29px; }
.rd-lock h4 { font-size: 15.5px; font-weight: 900; }
.rd-lock p { font-size: 12.5px; color: var(--ink-2); line-height: 1.72; margin: 8px 0 16px; }
.day-tab .dt-lock { display: inline-flex; vertical-align: -2px; margin-left: 3px; }
.day-tab .dt-lock svg { width: 11px; height: 11px; }

/* ---------- F4.2 AI 定制三步 ---------- */
.custom-wrap { padding: 4px 16px 112px; }
.cp-progress { display: flex; gap: 7px; margin: 6px 0 22px; }
.cp-progress i { height: 6px; border-radius: 999px; background: var(--line); flex: 1; transition: background .25s; }
.cp-progress i.on { background: var(--ink); }
.cp-title { font-size: 23px; font-weight: 900; letter-spacing: -.3px; }
.cp-sub { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 8px 0 18px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.pick-cell { border: 1.5px solid var(--line); background: #fff; border-radius: 15px; padding: 12px 3px 10px; text-align: center; cursor: pointer; }
.pick-cell.sel { border-color: var(--ink); background: var(--yellow-soft); }
.pick-cell .pci { width: 35px; height: 35px; border-radius: 12px; background: var(--field); color: var(--ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 7px; }
.pick-cell.sel .pci { background: #fff; }
.pick-cell .pci svg { width: 19px; height: 19px; }
.pick-cell .pcl { font-size: 11.5px; font-weight: 800; line-height: 1.22; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.chip-cell { border: 1.5px solid var(--line); background: #fff; border-radius: 13px; padding: 14px 4px; text-align: center; font-size: 13px; font-weight: 800; cursor: pointer; }
.chip-cell.sel { border-color: var(--ink); background: var(--ink); color: var(--yellow); }
.cp-actions { display: flex; gap: 11px; margin-top: 22px; }
.cp-actions .btn { flex: 1; }
.cp-actions .btn-ghost { background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-card); }
.cp-loading { text-align: center; padding: 76px 22px 40px; }
.cp-loading .dots-loading { justify-content: center; margin-bottom: 24px; }
.cp-loading h3 { font-size: 19px; font-weight: 900; }
.cp-loading p { font-size: 13px; color: var(--ink-2); margin-top: 10px; line-height: 1.75; }
.plan-result-meal { display: flex; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.plan-result-meal:last-child { border-bottom: none; }
.plan-result-meal img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.plan-result-meal .prm-main { flex: 1; min-width: 0; }
.plan-result-meal .prm-n { font-size: 13.5px; font-weight: 900; }
.plan-result-meal .prm-d { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.nutrition-details { margin-top: 6px; font-size: 11.5px; color: var(--ink-2); }
.nutrition-details summary { color: var(--ink-2); font-weight: 800; cursor: pointer; }
.ingredient-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line-warm); }
.ingredient-row:last-child { border-bottom: 0; }
.ingredient-row.total { color: var(--ink); font-weight: 800; padding-top: 7px; }
.plan-result-meal .prm-k { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ---------- F8 付费墙补充 ---------- */
.benefit-table .bt-row { display: grid; grid-template-columns: 1.74fr .63fr .63fr; align-items: center; gap: 8px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.benefit-table .bt-row:last-child { border-bottom: none; }
.benefit-table .bt-head { font-size: 11.5px; color: var(--ink-3); font-weight: 900; text-align: center; padding-top: 2px; }
.benefit-table .bt-name { font-weight: 700; line-height: 1.42; }
.bt-c { text-align: center; font-size: 15px; font-weight: 900; }
.bt-yes { color: #2E7D32; }
.bt-no { color: #CECBBF; }
.bt-lock { justify-self: center; font-size: 10.5px; font-weight: 900; color: #8A6D1F; background: var(--yellow-soft); padding: 4px 9px; border-radius: 999px; }
.pay-get-list { display: flex; flex-direction: column; gap: 12px; }
.pay-get { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; }
.pay-get svg { width: 19px; height: 19px; color: #2E7D32; flex-shrink: 0; margin-top: 1px; }
.pay-get b { font-weight: 900; }
.plan-card .plan-save { display: inline-block; margin-top: 7px; font-size: 10.5px; font-weight: 900; color: #2E7D32; background: var(--green-soft); border-radius: 999px; padding: 3px 9px; }
.plan-card.sel .plan-save { background: #fff; }
.pay-agree { cursor: pointer; user-select: none; }
.pay-agree.shake { animation: p-shake .4s; }

/* ---------- F5 洞察 ---------- */
.range-seg { display: flex; margin: 2px 16px 14px; }
.range-seg .seg { flex: 1; }
.ic-card { padding: 15px 16px 13px; }
.ic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.ic-title { font-size: 15px; font-weight: 900; letter-spacing: -.2px; }
.ic-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.ic-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ic-record { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; font-size: 12px; font-weight: 900; color: var(--ink); padding: 6px 13px; cursor: pointer; line-height: 1; }
.ic-record:active { background: var(--field); }
.ic-expand { width: 32px; height: 32px; border-radius: 50%; background: var(--field); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ic-expand svg { width: 16px; height: 16px; }
.ic-body .ic-svg { width: 100%; height: auto; display: block; }
.ic-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 7px; font-size: 11.5px; color: var(--ink-2); font-weight: 800; }
.ic-legend .lg-i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bmi-panel { padding: 16px 18px 15px; }
.bmi-top { display: flex; align-items: center; gap: 11px; }
.bmi-big { font-size: 35px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.5px; }
.bmi-lv { font-size: 12px; font-weight: 900; color: #fff; border-radius: 999px; padding: 5px 13px; }
.bmi-desc { font-size: 12px; color: var(--ink-2); margin-top: 10px; line-height: 1.6; }
.bmi-scale { margin: 17px 2px 2px; }
.bs-bar { position: relative; display: flex; height: 12px; }
.bs-bar > i { flex: 1; }
.bs-bar > i:first-child { border-radius: 999px 0 0 999px; }
.bs-bar > i:last-child { border-radius: 0 999px 999px 0; }
.bs-dot { position: absolute; top: 50%; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translate(-50%, -50%); box-shadow: 0 2px 7px rgba(0,0,0,.28); }
.bs-labels { position: relative; height: 14px; margin-top: 9px; font-size: 10.5px; color: var(--ink-3); font-weight: 800; font-variant-numeric: tabular-nums; }
.bs-labels span { position: absolute; top: 0; white-space: nowrap; }
.ins-modal .ic-svg { background: var(--field); border-radius: 14px; padding: 10px 6px; }
.macro-row .dist-bar i { background: var(--ink); }
.insight-cta-wrap { padding: 2px 16px 12px; }

/* ---------- F6 好友 / 社交全链路 ---------- */
.date-strip { display: flex; gap: 9px; overflow-x: auto; padding: 2px 16px 12px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.ds-day { flex: 0 0 auto; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.ds-day .ds-dow { font-size: 10.5px; font-weight: 800; color: var(--ink-3); }
.ds-day .ds-ava { width: 42px; height: 42px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: var(--ink-2); }
.ds-day.sel .ds-dow { color: var(--ink); }
.ds-day.sel .ds-ava { background: var(--ink); border-color: var(--ink); color: var(--yellow); box-shadow: 0 4px 10px rgba(21,21,19,.22); }

.bond-stage-card { padding: 16px 14px 14px; }
.bsc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 2px; }
.bsc-head .t { font-size: 15px; font-weight: 900; }
.bsc-head .c { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.bond-stage { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.bs-slot { width: 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center; }
.bs-ava { width: 62px; height: 62px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 900; color: var(--ink); border: 3px solid #fff; box-shadow: var(--shadow-card); }
.bs-ava.empty { background: var(--field); color: var(--ink-3); border: 2px dashed var(--ink-3); box-shadow: none; }
.bs-ava.empty svg { width: 24px; height: 24px; }
.bs-me .bs-ava { width: 70px; height: 70px; background: var(--yellow); border-color: var(--ink); }
.bs-name { font-size: 12.5px; font-weight: 800; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-score { font-size: 10.5px; font-weight: 900; color: var(--ink-2); background: var(--field); border-radius: 999px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.bs-me .bs-score { background: var(--ink); color: var(--yellow); }
.bs-heart { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; background: var(--red-soft); color: var(--red); font-size: 11px; font-weight: 900; border-radius: 999px; padding: 3px 10px; }
.bs-heart svg { width: 12px; height: 12px; }
.bs-slot:active .bs-ava { transform: scale(.95); }

.rk2-list { padding: 2px 4px; }
.rk2-row { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-bottom: 1px solid var(--line-warm); border-radius: 14px; cursor: pointer; }
.rk2-row:last-child { border-bottom: none; }
.rk2-row:active { background: var(--field); }
.rk2-row.me { background: var(--yellow-soft); border: 1.5px solid rgba(21,21,19,.1); }
.rk2-no { width: 28px; height: 28px; border-radius: 999px; background: var(--field); color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12.5px; flex-shrink: 0; }
.rk2-no.r1 { background: var(--yellow); color: var(--ink); }
.rk2-no.r2 { background: var(--lime); color: var(--ink); }
.rk2-no.r3 { background: #FFD9A8; color: var(--ink); }
.rk2-ava { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: var(--ink); flex-shrink: 0; }
.rk2-main { flex: 1; min-width: 0; }
.rk2-name { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.rk2-name .me-tag { font-size: 10px; font-weight: 900; background: var(--ink); color: var(--yellow); border-radius: 6px; padding: 1px 6px; }
.rk2-like { font-size: 11.5px; color: var(--ink-3); font-weight: 700; margin-top: 2px; display: inline-flex; align-items: center; gap: 4px; }
.rk2-like svg { width: 12px; height: 12px; }
.rk2-score { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rk2-score small { font-size: 11px; color: var(--ink-3); font-weight: 800; }
.rk2-more { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 13px; font-size: 13.5px; font-weight: 900; color: var(--ink); cursor: pointer; border-top: 1px solid var(--line-warm); }
.rk2-more svg { width: 15px; height: 15px; }
.rk2-title-row { display: flex; align-items: center; gap: 6px; }
.rk2-info { color: var(--ink-3); display: inline-flex; cursor: pointer; }
.rk2-info svg { width: 15px; height: 15px; }

.social-empty { background: #fff; border: 1px solid var(--line); border-radius: 20px; margin: 0 16px 12px; padding: 26px 22px; text-align: center; box-shadow: var(--shadow-card); }
.social-empty img { width: 88px; height: 88px; object-fit: contain; }
.social-empty .se-t { font-size: 16px; font-weight: 900; margin-top: 8px; }
.social-empty .se-s { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 7px 0 15px; }

.ranking-hero { margin: 0 16px 12px; border-radius: 22px; padding: 18px 20px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-pop); }
.ranking-hero .rh-score { font-size: 40px; font-weight: 900; color: var(--yellow); font-variant-numeric: tabular-nums; line-height: 1; }
.ranking-hero .rh-meta { flex: 1; min-width: 0; }
.ranking-hero .rh-t { font-size: 14px; font-weight: 900; }
.ranking-hero .rh-s { font-size: 12px; color: rgba(255,255,255,.66); margin-top: 5px; line-height: 1.55; }

.fd2-hero-card { text-align: center; padding: 20px 16px 16px; }
.fd2-hero-card .fd2-ava { width: 78px; height: 78px; border-radius: 999px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 29px; font-weight: 900; border: 3px solid #fff; box-shadow: var(--shadow-card); }
.fd2-hero-card .fd2-name { font-size: 20px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fd2-hero-card .fd2-days { font-size: 12px; color: var(--ink-2); margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; }
.fd2-hero-card .fd2-days svg { width: 13px; height: 13px; }
.fd2-hero-card .like-btn { margin: 12px auto 0; width: auto; padding: 0 16px; gap: 7px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.fd2-date { font-size: 12px; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; }
.fd2-kcal-row { display: flex; align-items: center; gap: 14px; }
.fd2-kcal-main { flex: 1; }
.fd2-kcal-main .big { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fd2-kcal-main .sub { font-size: 12px; color: var(--ink-2); margin-top: 5px; line-height: 1.6; }
.fd2-ring { width: 58px; height: 58px; flex-shrink: 0; position: relative; }
.fd2-ring svg { transform: rotate(-90deg); }
.fd2-ring .rr-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fd2-macros { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.fd2-macro { background: var(--field); border-radius: 13px; padding: 10px 6px; text-align: center; }
.fd2-macro .m-v { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fd2-macro .m-l { font-size: 11px; color: var(--ink-2); margin-top: 3px; }
.fd2-grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }
.fd2-cell { background: var(--field); border-radius: 13px; padding: 11px 5px; text-align: center; }
.fd2-cell .c-ic { color: var(--ink-2); display: flex; justify-content: center; margin-bottom: 5px; }
.fd2-cell .c-ic svg { width: 17px; height: 17px; }
.fd2-cell .c-v { font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fd2-cell .c-l { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.fd2-food { display: flex; align-items: center; gap: 11px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.fd2-food:last-child { border-bottom: none; }
.fd2-food img, .fd2-food .f-ic { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--field); }
.fd2-food .f-ic { display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.fd2-food .f-ic svg { width: 20px; height: 20px; }
.fd2-food .f-n { flex: 1; font-size: 13.5px; font-weight: 800; }
.fd2-food .f-k { font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fd2-hidden { display: flex; align-items: center; gap: 9px; background: var(--yellow-soft); border-radius: 13px; padding: 11px 13px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; line-height: 1.5; margin-top: 12px; }
.fd2-hidden svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--ink); }
.fd2-bottom { display: flex; gap: 11px; padding: 4px 16px calc(18px + env(safe-area-inset-bottom)); }
.fd2-bottom .btn { flex: 1; min-height: 50px; }
.btn-receipt { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }

.iv-duo { display: flex; align-items: center; gap: 9px; margin: 4px 0 16px; }
.iv-person { flex: 1; background: var(--field); border-radius: 17px; padding: 14px 8px; text-align: center; }
.iv-person .iv-ava { width: 48px; height: 48px; border-radius: 999px; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 19px; border: 2.5px solid #fff; box-shadow: var(--shadow-card); }
.iv-person .iv-n { font-size: 13px; font-weight: 900; }
.iv-person .iv-k { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.iv-lock { width: 38px; height: 38px; border-radius: 999px; background: var(--ink); color: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.iv-lock svg { width: 18px; height: 18px; }
.iv-code-box { background: var(--ink); color: var(--yellow); border-radius: 16px; text-align: center; font-size: 27px; font-weight: 900; letter-spacing: 3px; padding: 16px 10px; font-variant-numeric: tabular-nums; }
.iv-code-actions { display: flex; gap: 8px; margin: 10px 0 16px; }
.iv-code-actions .btn { flex: 1; min-height: 40px; font-size: 12.5px; padding: 0 6px; }
.iv-divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 11.5px; font-weight: 800; margin: 4px 0 12px; }
.iv-divider::before, .iv-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.iv-bind-row { display: flex; gap: 9px; }
.iv-bind-row .p-input { flex: 1; letter-spacing: 2px; font-weight: 800; text-transform: uppercase; }
.iv-bind-row .btn { flex-shrink: 0; }
.iv-tip { font-size: 11.5px; color: var(--ink-3); line-height: 1.65; margin-top: 10px; }

.pf-bar { display: flex; gap: 7px; margin: 2px 0 20px; }
.pf-bar i { height: 6px; border-radius: 999px; background: var(--line); flex: 1; }
.pf-bar i.on { background: var(--ink); }
.pf-camera-wrap { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-bottom: 20px; }
.pf-camera { width: 86px; height: 86px; border-radius: 999px; background: var(--yellow); border: 3px solid #fff; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; position: relative; }
.pf-camera .pf-cam-badge { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--yellow); display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.pf-camera .pf-cam-badge svg { width: 14px; height: 14px; }
.pf-camera-hint { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.pf-avatars { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px 10px; margin-bottom: 8px; }
.pf-ava-opt { aspect-ratio: 1; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 900; color: var(--ink); border: 3px solid transparent; cursor: pointer; }
.pf-ava-opt.sel { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-soft); }
.pf-count { text-align: right; font-size: 11px; color: var(--ink-3); font-weight: 800; margin-top: 4px; }

.pc-item { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.pc-item .pc-ic { width: 40px; height: 40px; border-radius: 14px; background: var(--yellow-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pc-item .pc-ic svg { width: 20px; height: 20px; }
.pc-item .pc-t { font-size: 14px; font-weight: 900; }
.pc-item .pc-s { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-top: 3px; }

.pk-tabs { display: flex; gap: 9px; margin-bottom: 14px; }
.pk-tabs .seg { flex: 1; text-align: center; }
.pk-refresh { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 900; color: var(--ink); background: var(--field); border: none; border-radius: 999px; padding: 7px 13px; cursor: pointer; font-family: inherit; }
.pk-refresh svg { width: 14px; height: 14px; }
.pk-line { border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; font-size: 14px; font-weight: 700; margin-bottom: 9px; cursor: pointer; line-height: 1.45; }
.pk-line.sel { border-color: #FF9A3D; background: #FFF3E6; color: #B85E10; }
.pk-foot { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 800; margin-top: 11px; }

.pv-row { display: flex; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line-warm); }
.pv-row:last-child { border-bottom: none; }
.pv-row .pv-meta { flex: 1; }
.pv-row .pv-t { font-size: 14.5px; font-weight: 800; }
.pv-row .pv-s { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.pv-unbind { margin-top: 14px; }

/* ---------- F6 补充：子页返回 / 危险钮 / 徽标 / 输入 ---------- */
.sub-icon-btn { background: #fff !important; border: 1.5px solid var(--line); box-shadow: var(--shadow-card); color: var(--ink) !important; }
.pmodal .pm-danger { background: var(--red); color: #fff; border: none; }
#globalSheet .text-danger { display: block; width: 100%; margin-top: 12px; padding: 14px 12px 4px; border: none; border-top: 1px solid var(--line-warm); background: none; color: var(--red); font-weight: 900; font-size: 14px; font-family: inherit; cursor: pointer; }
.friend-card .pc-badge, .fd2-name .pc-badge { display: inline-block; font-size: 10px; font-weight: 900; color: #8A6D1F; background: var(--yellow-soft); border-radius: 6px; padding: 2px 7px; margin-left: 7px; vertical-align: middle; }
#ivInput { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.pf-name-input { font-size: 15px; font-weight: 700; }
.pk-tabs .seg { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 10px; font-size: 13.5px; }
.pk-tabs .seg svg { width: 16px; height: 16px; }
.rank-empty-ip { text-align: center; }
.rank-empty-ip img { width: 84px; height: 84px; object-fit: contain; }

/* ---------- F6 走查精修（第二批：适配 / 层次 / 品牌统一） ---------- */
/* 长底部弹层在小屏可内部滚动，避免顶部被裁 */
.sheet { max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* 排行榜 / 闺蜜详情为无 tabbar 子页，收掉通用底部大留白 */
#scr-ranking, #scr-friend-detail { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
/* 榜单普通行浅暖底卡片化，与本人黄色高亮行形成层级 */
.rk2-row:not(.me) { background: var(--field); border-bottom-color: transparent; margin-bottom: 7px; }
.rk2-row:not(.me):active { background: var(--line-warm); }
.rk2-list .rk2-row:last-child { margin-bottom: 0; }
/* 戳一下话术选中态统一为黑边浅黄底（替代临时橙色） */
.pk-line.sel { border-color: var(--ink); background: var(--yellow-soft); color: var(--ink); }
/* 绑定成功标题用深色；未传 title 时不保留空 h3 占位 */
.bind-success h3 { color: var(--ink); }
.pmodal h3:empty { display: none; }
/* 资料第二步居中头像放大 */
#pfAvatar { width: 64px; height: 64px; font-size: 24px; }

/* ============================================================
   F7 设置 / 账号 / 订单 / 弹层
   ============================================================ */
#scr-settings .profile-card .pc-meta .pc-name,
#scr-settings .profile-card .pc-meta .pc-sub { display: block; }
.su-pill { background: var(--yellow); color: #151513; font-size: 12.5px; font-weight: 900; padding: 8px 17px; border-radius: 999px; flex-shrink: 0; cursor: pointer; }
.bind-state { font-size: 11.5px; font-weight: 900; border-radius: 999px; padding: 5px 11px; flex-shrink: 0; }
.bind-state.ok { color: #2E7D32; background: #E4F6DE; }
.bind-state.no { color: var(--ink-3); background: var(--field); }
.logout-btn { width: calc(100% - 32px); margin: 4px 16px 10px; min-height: 50px; border-radius: 17px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 900; font-size: 15px; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-card); cursor: pointer; }
.logout-btn svg { width: 19px; height: 19px; }
.logout-btn:active { background: var(--field); }
.cancel-link { display: block; width: 100%; background: none; border: none; color: var(--red); font-size: 13px; font-weight: 800; font-family: inherit; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); cursor: pointer; }
.version-foot { text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.8; padding: 6px 20px calc(26px + env(safe-area-inset-bottom)); }

/* 购买记录 */
.order-card { padding: 15px 16px; }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.oc-head b { font-size: 15.5px; font-weight: 900; }
.oc-status { font-size: 11.5px; font-weight: 900; color: #2E7D32; background: #E4F6DE; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.oc-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px dashed var(--line-warm); }
.oc-row > span { color: var(--ink-2); flex-shrink: 0; }
.oc-row b { font-weight: 700; text-align: right; word-break: break-all; font-variant-numeric: tabular-nums; }
.oc-no { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.oc-copy { display: inline-flex; color: var(--ink-3); cursor: pointer; }
.oc-copy svg { width: 14px; height: 14px; }
.oc-price { color: var(--red) !important; font-size: 15px; font-weight: 900 !important; }
.oc-actions { display: flex; gap: 10px; margin-top: 13px; }
.oc-actions button { flex: 1; min-height: 41px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-family: inherit; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.oc-actions button svg { width: 15px; height: 15px; }
.oc-actions button:last-child { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.oc-demo { margin-top: 11px; font-size: 11px; color: var(--ink-3); line-height: 1.6; background: var(--field); border-radius: 11px; padding: 8px 11px; }

/* 数值步进 Sheet */
.num-sheet { padding: 4px 2px 2px; }
.num-big { text-align: center; margin: 6px 0 12px; }
.num-big span { font-size: 46px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.num-big em { font-style: normal; font-size: 15px; font-weight: 800; color: var(--ink-2); margin-left: 7px; }
#numRange { width: 100%; accent-color: var(--ink); height: 30px; margin: 0; }
.num-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.num-steps { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.num-btn { width: 58px; height: 58px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--yellow-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.num-btn svg { width: 24px; height: 24px; }
.num-btn:active { background: var(--yellow); }

/* 每日目标 Sheet */
.tg-hero { text-align: center; background: linear-gradient(135deg, #FFF6BF, #FFE98A); border-radius: 18px; padding: 20px 16px; margin-bottom: 14px; }
.tg-kcal { font-size: 40px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.tg-kcal span { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.tg-tag { display: inline-block; margin-top: 9px; font-size: 11.5px; font-weight: 800; background: rgba(21, 21, 19, .86); color: var(--yellow); border-radius: 999px; padding: 5px 12px; }
.tg-rows .oc-row:last-child { border-bottom: none; }

/* 主题外观 */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 13px; }
.theme-opt { position: relative; border: 1.5px solid var(--line); border-radius: 17px; padding: 15px 13px; display: flex; flex-direction: column; gap: 9px; cursor: pointer; background: #fff; }
.theme-opt.sel { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-soft); }
.to-dot { width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .08); }
.to-n { font-size: 14px; font-weight: 900; }
.to-tag { position: absolute; top: 11px; right: 11px; font-size: 10.5px; font-weight: 900; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 3px 8px; }
.to-soon { position: absolute; top: 11px; right: 11px; font-size: 10.5px; font-weight: 800; color: var(--ink-3); background: var(--field); border-radius: 999px; padding: 3px 8px; }

/* 桌面小组件演示 */
.widget-mock { background: linear-gradient(135deg, #26261F, #151513); color: #fff; border-radius: 20px; padding: 17px 18px; margin-bottom: 14px; }
.wm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .72); }
.wm-top b { font-size: 22px; color: var(--yellow); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wm-top em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .6); margin-left: 2px; }
.wm-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); margin: 12px 0 10px; overflow: hidden; }
.wm-bar i { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }
.wm-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

/* 客服 FAQ / 法律清单 */
.support-faq { margin-bottom: 14px; }
.sf-q { font-size: 13.5px; font-weight: 900; margin: 12px 0 5px; }
.sf-q:first-child { margin-top: 2px; }
.sf-a { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.legal-list p { font-size: 13px; line-height: 1.8; color: var(--ink-2); margin: 0 0 11px; }
.legal-list b { color: var(--ink); }
.legal-list .muted { font-size: 12px; color: var(--ink-3); background: var(--field); border-radius: 12px; padding: 10px 12px; }

/* F7 走查修复①：覆盖 styles.css 中 app-build 旧版 #settingsUpgrade 固定卡
   （旧规则 padding-right:112px + ::after“去开通”绝对定位胶囊，与新卡自带结构冲突） */
#scr-settings #settingsUpgrade { display: block; flex-direction: initial; min-height: 0; padding: 16px; }
#scr-settings #settingsUpgrade::after { content: none; }
#scr-settings #settingsUpgrade > div:last-child { color: inherit !important; font-size: inherit; }
/* F7 走查修复②：设置/账号行内 标题 + 副标题 纵向排列（旧预置 .set-meta 为普通块，span 默认横排粘连） */
#scr-settings .set-meta, #scr-account .set-meta { display: flex; flex-direction: column; align-items: stretch; }
#scr-settings .set-label, #scr-settings .set-sub,
#scr-account .set-label, #scr-account .set-sub { display: block; }
