/* ===================================================================
   FitFido 的 playful 页（project/fitfido.html）。
   2026-10-27 第三版：用户说上一版"还是在用老的模拟实体按键的风格，调用 figma 迭代文件换视觉风格，交互效果可以保留"。
   上一版照的其实是迭代对比图**左边**那一套（旧版：拟物凸起的按钮、内高光、渐变橙、带投影的图标圆片）。
   现在照 Figma 724-Iteration（GcQxqk3uJJ90lxAsrNSUMu）Page 4 的七张对比图**右边**那一套，也就是最终版。
   数值从 get_design_context 读出（Plan 621:3913、Appointment3 472:3097、Smart Feeder 卡 214:1244）：
     底      #f0f0f0；卡片 rgba(255,255,255,.65) 圆角 20，没有投影、没有内高光；卡里再嵌一层灰 #e8e8e8 / #f2f2f2
     玻璃    卡片后面压一团模糊的橙色径向光斑（Plan 页 Dried Beef 卡背后那团），靠 backdrop-filter 糊它
     橙      #ec672c（按钮、开关、数字、刻度）；正文里的橙色小字压暗成 #b8420a（#e9e9e9 底 4.5:1）
     按钮    平的，圆角 20、高 49：字 + 末尾一颗白色圆片里放深色图标（Discard 灰 #d9d9d9 / Feed and Log 橙）
     圆钮    白色或 #f0f0f0 的平圆片，深色图标，不带投影
     开关    胶囊：关 #d9d9d9、开 #ec672c，白色圆钮，没有内阴影
     标签    rgba(255,255,255,.5) + 1px #b1b1b1 描边的小胶囊；深色胶囊 #333 白字（Jan/31/2026 那颗）
     导航    rgba(255,255,255,.8) + 1px #f0f0f0，选中项是 #d9d9d9 圆角 10 的方块（multiply）
     刻度环  走过的刻度从深橙渐到浅橙，没走的是浅灰（不是旧版的深灰）
     字      大标题细（Roboto Regular 36 → 我们是 Inter 400）；卡片标题和数字粗（SF Pro Bold → Inter 700）
   交互和 js/fitfido-play.js 的钩子类名全部没动。
   =================================================================== */
body.is-fitfido {
  --ff-o: #ec672c; --ff-o-text: #b8420a; --ff-o-pale: #f6b796; --ff-o-soft: rgba(236, 103, 44, .12);
  --ff-bg: #f0f0f0; --ff-bg-2: #e9e9e9; --ff-in: #e8e8e8; --ff-tile: #f2f2f2;
  --ff-off: #d9d9d9; --ff-mute: #b1b1b1; --ff-ink: #333333; --ff-ink-2: rgba(51, 51, 51, .72);
  --ff-glass: rgba(255, 255, 255, .65); --ff-line: rgba(51, 51, 51, .09);
  --flag: var(--ff-o-text); --chart: var(--ff-o);
  background: var(--ff-bg);
}
.is-fitfido .v2main { background: var(--ff-bg); }
/* 色带：两种灰交替，底下各压两团橙色光斑，给玻璃卡糊 */
.is-fitfido .v2band { background: radial-gradient(30% 40% at 82% 30%, rgba(236, 103, 44, .16), transparent 70%), radial-gradient(26% 36% at 12% 80%, rgba(236, 103, 44, .10), transparent 70%), var(--ff-bg); }
.is-fitfido .v2band.is-tint { --paper-warm: var(--ff-tile); background: radial-gradient(32% 42% at 16% 26%, rgba(236, 103, 44, .15), transparent 70%), radial-gradient(28% 38% at 88% 82%, rgba(236, 103, 44, .11), transparent 70%), var(--ff-bg-2); }
.is-fitfido .v2end { background: var(--ff-bg); }
.is-fitfido .pl-n { color: var(--ff-o-text); }
.is-fitfido .pl-h { font-weight: 400; letter-spacing: -.02em; color: var(--ff-ink); }

/* ---------- app 的基础件 ---------- */
.ff-glass {
  border-radius: 24px; background: var(--ff-glass);
  -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%);
}
.ff-glass-h { font-family: var(--f-ui); font-size: 16px; font-weight: 700; color: var(--ff-ink); }
/* 平的按钮：字 + 末尾一颗白圆片（Feed and Log / Discard） */
.ff-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 7px 7px 7px 20px; border: 0; border-radius: 20px;
  background: var(--ff-o); color: #ffffff; cursor: pointer; font: 700 15px/1 var(--f-ui); letter-spacing: .01em;
  transition: transform .3s var(--pl-spring), background .2s var(--ease);
}
.ff-btn:hover { background: #e05d22; }
.ff-btn:active { transform: scale(.97); }
.ff-btn:focus-visible { outline: 2px solid var(--ff-o-text); outline-offset: 3px; }
.ff-btn-i { order: 2; display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #ffffff; color: var(--ff-ink); }
.ff-btn-i .pl-ic { width: 20px; height: 20px; vertical-align: 0; }
.ff-btn.is-ghost { background: var(--ff-off); color: var(--ff-ink); }
.ff-btn.is-ghost:hover { background: #cfcfcf; }
/* 两颗 Figma 里有、play.css 里没有的图标 */
.ff-i-x { --i: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%3E%3Cpath%20d='M6.5%206.5l11%2011M17.5%206.5l-11%2011'/%3E%3C/svg%3E"); }
.ff-i-tick { --i: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012.5l4.5%204.5L19%207.5'/%3E%3C/svg%3E"); }
/* 图标圆片：平的，深色图标 */
.ff-chipi { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ff-bg); color: var(--ff-ink); }
.ff-chipi .pl-ic { width: 22px; height: 22px; vertical-align: 0; }
/* 数据小卡：照 Health Care 那四格（Telehealth 150+）—— 上面一行标签，下面橙色粗数字，圆钮靠右下 */
.ff-stat { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 20px; background: var(--ff-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ff-stat .ff-chipi { width: 46px; height: 46px; }
.ff-stat small { display: block; margin-bottom: 18px; font-family: var(--f-ui); font-size: 15px; font-weight: 400; color: var(--ff-ink); }
.ff-stat b { display: block; font-family: var(--f-ui); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -.01em; color: var(--ff-o); font-variant-numeric: tabular-nums; }
.ff-stat b em { font-style: normal; font-weight: 400; font-size: 13px; margin-left: 4px; color: var(--ff-ink-2); letter-spacing: 0; }
.ff-stat b.is-sm { font-size: 16px; line-height: 1.3; color: var(--ff-ink); }

/* ---------- 开场 ---------- */
.vxp-meta.ff-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px clamp(24px, 5vw, 80px); align-items: start; }
.ff-big { grid-row: 1 / 3; max-width: 22ch; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; letter-spacing: -.02em; color: var(--ff-ink); }
.ff-big span { color: var(--ff-o-text); }
.ff-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff-intro .ff-stat { background: #ffffff; }
.ff-intro .pl-jump { margin: 0; }
@media (max-width: 860px) { .vxp-meta.ff-intro { grid-template-columns: 1fr; } .ff-big { grid-row: auto; } }
@media (max-width: 420px) { .ff-stats { grid-template-columns: 1fr; } }

/* ---------- 01 一百只狗 ---------- */
.ff-dogs { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(14px, 2vw, 20px); align-items: stretch; }
.ff-paws-card { display: grid; align-content: center; padding: clamp(22px, 3vw, 40px); }
.ff-paws { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: clamp(4px, .7vw, 10px); }
@media (max-width: 620px) { .ff-paws { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.ff-paw {
  aspect-ratio: 1; background: var(--ff-off);
  -webkit-mask: var(--paw) center / 80% no-repeat; mask: var(--paw) center / 80% no-repeat;
  transition: background .35s var(--ease), transform .45s var(--pl-spring);
}
.ff-paw.is-heavy { background: var(--ff-o); transform: scale(1.1); }
.ff-dogs { --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='6' cy='10' rx='2.2' ry='2.8'/%3E%3Cellipse cx='10' cy='6' rx='2.2' ry='2.8'/%3E%3Cellipse cx='14' cy='6' rx='2.2' ry='2.8'/%3E%3Cellipse cx='18' cy='10' rx='2.2' ry='2.8'/%3E%3Cpath d='M12 11c3 0 6 4 6 7 0 2-2 3-3.5 2.5-1-.3-1.7-.8-2.5-.8s-1.5.5-2.5.8C8 21 6 20 6 18c0-3 3-7 6-7z'/%3E%3C/svg%3E"); }
.ff-tally { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 2.2vw, 26px); }
.ff-count b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(64px, 6.4vw, 92px); line-height: 1; letter-spacing: -.04em; color: var(--ff-ink); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.ff-count span { display: block; margin-top: 6px; font-family: var(--f-ui); font-size: 15px; color: var(--ff-ink-2); }
.ff-dogs.is-done .ff-count b { color: var(--ff-o); }
.ff-weigh { align-self: stretch; }
.ff-mini { display: grid; gap: 8px; margin-top: auto; }
/* 卡里的小格是嵌在玻璃里的灰格（Plan 页 Original Plan 那种 #e8e8e8） */
.ff-mini .ff-stat { flex-direction: row; justify-content: flex-start; align-items: center; padding: 10px 14px 10px 10px; background: var(--ff-tile); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ff-mini .ff-chipi { width: 38px; height: 38px; background: #ffffff; }
.ff-mini .ff-stat small { margin-bottom: 2px; font-size: 13px; color: var(--ff-ink-2); }
.ff-mini .ff-stat b { font-size: 20px; }
.ff-mini .ff-stat b.is-sm { font-size: 15px; }
@media (max-width: 900px) { .ff-dogs { grid-template-columns: 1fr; } .ff-tally { order: -1; } }

/* ---------- 02 两个问题 ---------- */
.ff-owners { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(14px, 2vw, 20px); align-items: stretch; }
.ff-who { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 26px; }
.ff-who-h { font-family: var(--f-ui); font-size: 15px; color: var(--ff-ink-2); }
.ff-who-h b { font-family: var(--f-display); font-weight: 700; font-size: 30px; color: var(--ff-o); letter-spacing: -.02em; }
.ff-dogrow { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ff-dogrow li { display: flex; align-items: center; gap: 6px; font-family: var(--f-ui); font-size: 13.5px; color: var(--ff-ink); }
.ff-dogrow i { width: 26px; height: 26px; border-radius: 50%; background: var(--ff-off); }
.ff-dogrow li.is-a i { background: var(--ff-o); }
.ff-dogrow li.is-b i { background: var(--ff-o-pale); }
.ff-dogrow span { margin-left: 8px; }
.ff-deck { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ff-card { position: relative; display: block; width: 100%; height: 100%; min-height: 260px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; text-align: left; color: var(--ff-ink); }
.ff-card:focus-visible { outline: 2px solid var(--ff-o-text); outline-offset: 4px; border-radius: 26px; }
.ff-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 30px);
  border-radius: 24px; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .7s var(--pl-spring);
}
.ff-front { background: var(--ff-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.ff-back { transform: rotateY(180deg); background: var(--ff-o); color: #ffffff; }
/* 右上角的翻面钮：和 app 里那些白圆钮一样 */
.ff-front::before, .ff-back::before {
  content: '↻'; position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--ff-bg); color: var(--ff-ink); font: 500 17px/1 var(--f-ui);
  transition: transform .5s var(--pl-spring);
}
.ff-back::before { background: #ffffff; }
.ff-card:hover .ff-front::before, .ff-card:hover .ff-back::before { transform: rotate(180deg); }
.ff-card[aria-pressed="true"] .ff-front { transform: rotateY(-180deg); }
.ff-card[aria-pressed="true"] .ff-back { transform: rotateY(0); }
/* 描边小胶囊（Dog Treat / High Protein 那种） */
.ff-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 20px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px var(--ff-mute); color: var(--ff-ink); font: 400 13px/1.2 var(--f-ui); }
.ff-tag .pl-ic { width: 17px; height: 17px; vertical-align: 0; color: var(--ff-o); }
/* 橙底上是白胶囊黑字（医生卡上 Obesity intervention 那种） */
.ff-tag.is-w { padding: 6px 12px; background: #ffffff; box-shadow: none; color: #000000; }
.ff-q { margin-top: auto; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.ff-sub { font-family: var(--f-ui); font-size: 15.5px; line-height: 1.45; color: var(--ff-ink-2); }
.ff-go { font: 700 14px/1 var(--f-ui); color: #ffffff; }
@media (max-width: 900px) { .ff-owners { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .ff-deck { grid-template-columns: 1fr; } }

/* ---------- 03 循环 ---------- */
.ff-loop { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: center; }
.ff-ringcard { display: grid; gap: 22px; padding: clamp(20px, 2.2vw, 26px); }
.ff-ring { position: relative; aspect-ratio: 1; width: 100%; max-width: 300px; justify-self: center; }
/* 刻度环：Smart Feeder 卡那个 —— 走过的刻度从深橙渐到浅橙，没走的是浅灰 */
@property --ff-p { syntax: '<number>'; inherits: true; initial-value: 0; }
.ff-ticks {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ff-o) 0deg, var(--ff-o-pale) calc(var(--ff-p) * 360deg), #e2e2e2 calc(var(--ff-p) * 360deg));
  -webkit-mask: repeating-conic-gradient(#000 0 2.2deg, transparent 2.2deg 5deg), radial-gradient(closest-side, transparent 80%, #000 81%);
  -webkit-mask-composite: source-in; mask: repeating-conic-gradient(#000 0 2.2deg, transparent 2.2deg 5deg) intersect, radial-gradient(closest-side, transparent 80%, #000 81%);
}
.ff-loop { --ff-p: 0; transition: --ff-p .9s cubic-bezier(.45, 0, .2, 1); }
.ff-ring-c { position: absolute; inset: 17%; display: grid; place-items: center; align-content: center; gap: 14px; border-radius: 50%; background: var(--ff-tile); text-align: center; }
.ff-ring-v { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.01em; color: var(--ff-ink); }
.ff-meal { min-height: 46px; padding: 5px 5px 5px 16px; }
.ff-meal .ff-btn-i { width: 36px; height: 36px; }
.ff-meal-i { display: block; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.ff-loop.is-running .ff-meal-i { width: 10px; height: 12px; margin-left: 0; border: 0; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; }
/* app 底部那条导航：白 80% + 1px #f0f0f0，选中项是灰色圆角方块 */
.ff-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--ff-bg); }
.ff-tabbar button { display: grid; justify-items: center; gap: 5px; padding: 10px 4px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ff-ink); cursor: pointer; font: 500 12px/1 var(--f-ui); transition: background .3s var(--ease), color .3s var(--ease); }
.ff-tabbar .pl-ic { width: 24px; height: 24px; vertical-align: 0; }
.ff-tabbar button:focus-visible { outline: 2px solid var(--ff-o-text); outline-offset: 1px; }
.ff-tabbar button.is-past { color: var(--ff-o-text); }
.ff-tabbar button[aria-selected="true"] { background: var(--ff-off); color: var(--ff-ink); mix-blend-mode: multiply; }
.ff-view { display: grid; gap: 34px; }
.ff-media { position: relative; }
.ff-scene { position: relative; aspect-ratio: 16 / 9; margin-right: 22%; border-radius: 24px; overflow: hidden; background: var(--ff-in); }
.ff-scene > *, .ff-phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: 0; transition: opacity .5s var(--ease); }
.ff-scene > .is-on, .ff-phone > .is-on { opacity: 1; }
/* 真实界面：一块圆角屏，叠在实物画面右边。最终版的展示图里屏幕没有外壳，只有一层很软的投影 */
.ff-phone {
  position: absolute; right: 2%; top: -7%; height: 114%; width: auto; aspect-ratio: 434 / 951;
  border-radius: 30px; overflow: hidden; background: var(--ff-bg);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .35);
}
.ff-phone > img { object-position: top center; }
.ff-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ff-steps li { padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .45); font: 400 13.5px/1.45 var(--f-ui); color: var(--ff-ink-2); transition: background .3s var(--ease), color .3s var(--ease); cursor: pointer; }
.ff-steps b { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 700; color: var(--ff-ink); }
.ff-steps li.is-on { background: #ffffff; color: var(--ff-ink); }
.ff-steps li.is-on b { color: var(--ff-o-text); }
@media (max-width: 1080px) { .ff-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .ff-loop { grid-template-columns: 1fr; }
  .ff-ring { max-width: 240px; }
}
@media (max-width: 520px) { .ff-scene { margin-right: 26%; } .ff-phone { border-radius: 18px; } .ff-steps { grid-template-columns: 1fr; } }

/* 跑马灯 */
.ff-tickband { background: var(--ff-o) !important; }
.is-fitfido .ff-tickband .vxp-ticker-row span { color: #ffffff; font-weight: 400; }

/* ---------- 04 零食：AI Diet Impact，照 Plan 页（621:3913）排 ---------- */
.ff-treat { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 480px); justify-content: center; gap: clamp(20px, 4vw, 60px); align-items: center; }
.ff-scan { position: relative; aspect-ratio: 435 / 951; border-radius: 34px; overflow: hidden; background: var(--ff-bg); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .35); }
.ff-scan > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-scanline { position: absolute; left: 9%; right: 9%; top: 12%; height: 3px; border-radius: 2px; background: var(--ff-o); box-shadow: 0 0 18px 4px rgba(236, 103, 44, .6); opacity: 0; }
.ff-treat.is-scanning .ff-scanline { opacity: 1; animation: ff-scan 1.3s cubic-bezier(.45, 0, .55, 1) 2 alternate; }
@keyframes ff-scan { to { top: 62%; } }
/* 透明的点击区盖在截图里那颗橙色相机键上 */
.ff-shutter { position: absolute; left: 50%; bottom: calc(8.6% - 32px); width: 64px; height: 64px; margin-left: -32px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ff-shutter .pl-ic { opacity: 0; }
.ff-shutter:focus-visible { outline: 3px solid var(--ff-o-text); outline-offset: 3px; }
/* 右边不是一整张卡，是 app 页面本身：标题 + 提示 + 两张卡 + 一对按钮，直接落在灰底上 */
.ff-glass.ff-diet { display: grid; gap: 14px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ff-diet-h { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 2.8vw, 38px); letter-spacing: -.01em; color: var(--ff-ink); }
.ff-warn { display: flex; gap: 12px; margin-bottom: 4px; font: 400 14px/1.45 var(--f-ui); color: #364153; }
.ff-warn b { display: block; color: var(--ff-o-text); font-weight: 600; }
.ff-warn .pl-ic { width: 20px; height: 20px; margin-top: 1px; color: var(--ff-o); }
/* Dried Beef 卡：照片竖着放左边，背后一团模糊的橙光透过玻璃 */
.ff-food { position: relative; isolation: isolate; display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 8px 22px; padding: 16px; border-radius: 20px; background: var(--ff-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ff-food::before { content: ''; position: absolute; z-index: -1; left: 30%; right: 4%; top: 10%; bottom: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(236, 103, 44, .32), rgba(240, 240, 240, 0)); filter: blur(14px); }
.ff-food-i { grid-row: span 2; display: block; aspect-ratio: 109 / 165; border-radius: 20px; overflow: hidden; background: var(--ff-in); }
.ff-food-i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ff-food > span:nth-child(2) { align-self: start; padding-top: 6px; }
.ff-food b { display: block; margin-bottom: 18px; font: 700 22px/1.2 var(--f-ui); color: var(--ff-ink); }
.ff-food em { font-style: normal; font: 400 13px/1.3 var(--f-ui); color: var(--ff-ink); }
.ff-food strong { font-weight: 700; font-size: 22px; color: var(--ff-o); margin-right: 8px; font-variant-numeric: tabular-nums; }
.ff-pills { display: flex; gap: 10px; flex-wrap: wrap; align-self: end; }
.ff-pills span { padding: 4px 12px; border-radius: 20px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px var(--ff-mute); font: 400 13px/1.2 var(--f-ui); color: rgba(51, 51, 51, .8); }
/* Updated Plan 卡，里面嵌一块灰色的 Original Plan */
.ff-plancard { display: grid; gap: 20px; padding: 20px; border-radius: 20px; background: var(--ff-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ff-plan { display: flex; align-items: baseline; gap: 28px; padding: 0 8px; font: 700 16px/1 var(--f-ui); color: var(--ff-ink); }
.ff-plan span { margin-right: auto; }
.ff-plan s { font-size: 22px; color: var(--ff-mute); opacity: 0; transition: opacity .4s var(--ease); }
.ff-plan b { font-size: 22px; font-weight: 700; color: var(--ff-ink); font-variant-numeric: tabular-nums; transition: color .4s var(--ease); }
.ff-treat.is-planned .ff-plan s { opacity: 1; }
.ff-treat.is-planned .ff-plan b { color: var(--ff-o); }
.ff-orig { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: var(--ff-in); }
.ff-orig-h { font: 700 16px/1.2 var(--f-ui); color: var(--ff-ink); }
.ff-orig-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 400 14px/1.4 var(--f-ui); color: var(--ff-ink); }
.ff-orig-r em { font-style: normal; padding: 2px 9px; border-radius: 20px; background: var(--ff-bg); font-size: 11.5px; color: var(--ff-o-text); }
.ff-orig-r em.is-g { color: var(--ff-ink); }
/* 灰段是今天已经吃的，橙段是这块零食；扫到之后橙段才长出来 */
.ff-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #ffffff; }
.ff-bar i { flex: none; width: 38.5%; background: var(--ff-mute); }
.ff-bar i + i { width: 0; border-radius: 0 20px 20px 0; background: #ff7043; transition: width .8s var(--pl-spring); }
.ff-treat.is-planned .ff-bar i + i { width: 11.5%; }
.ff-actions { display: flex; justify-content: center; gap: 12px; }
.ff-diet .ff-food, .ff-diet .ff-plancard, .ff-diet .ff-actions { transition: opacity .4s var(--ease), transform .55s var(--pl-spring); }
.js .ff-treat:not(.is-scanned) .ff-food, .js .ff-treat:not(.is-scanned) .ff-plancard, .js .ff-treat:not(.is-scanned) .ff-actions { opacity: .35; transform: translateY(6px); }
.ff-logged { display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--f-ui); color: var(--ff-o-text); opacity: 0; transition: opacity .4s var(--ease); }
.ff-logged .pl-ic { width: 20px; height: 20px; }
.ff-treat.is-logged .ff-logged { opacity: 1; }
.ff-treat.is-logged [data-act="log"] { background: #e05d22; }
@media (max-width: 760px) { .ff-treat { grid-template-columns: 1fr; justify-items: center; } .ff-scan { width: min(260px, 70vw); } .ff-diet { width: 100%; } }
@media (max-width: 420px) { .ff-food { grid-template-columns: 88px minmax(0, 1fr); gap: 8px 14px; } .ff-plan { gap: 16px; } }

/* ---------- 05 同类：app 的设置列表 —— 一张玻璃卡，行之间是发丝线，右边是胶囊开关 ---------- */
.ff-field { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(14px, 2.4vw, 24px); align-items: start; }
.ff-feats { display: grid; padding: 18px 18px 8px; }
.ff-feats .ff-glass-h { padding: 2px 4px 10px; }
.ff-feats button {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 4px; border: 0; border-top: 1px solid var(--ff-line); border-radius: 0;
  background: none; color: var(--ff-ink); cursor: pointer; text-align: left; font: 500 15px/1.2 var(--f-ui);
}
.ff-feats .ff-chipi { width: 40px; height: 40px; }
.ff-feats button:focus-visible { outline: 2px solid var(--ff-o-text); outline-offset: 2px; border-radius: 12px; }
.ff-sw { position: relative; width: 60px; height: 32px; border-radius: 20px; background: var(--ff-off); transition: background .3s var(--ease); }
.ff-sw::after { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; transition: transform .45s var(--pl-spring); }
.ff-feats button[aria-checked="true"] .ff-sw { background: var(--ff-o); }
.ff-feats button[aria-checked="true"] .ff-sw::after { transform: translateX(28px); }
.ff-board { padding: clamp(20px, 2.4vw, 28px); }
.ff-left { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font: 400 15px var(--f-ui); color: var(--ff-ink-2); }
.ff-left b { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 5vw, 76px); line-height: 1; letter-spacing: -.04em; color: var(--ff-ink); font-variant-numeric: tabular-nums; }
.ff-left.is-pop b { animation: pl-pop .5s var(--pl-spring); }
.ff-field.is-full .ff-left b { color: var(--ff-o); }
.ff-prods { list-style: none; padding: 0; margin: 0; display: grid; }
.ff-prods li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; align-items: center; gap: 16px; padding: 12px 14px; border-top: 1px solid var(--ff-line); border-radius: 0;
  font: 400 15px var(--f-ui); color: var(--ff-ink);
  transition: opacity .4s var(--ease), filter .4s var(--ease), background .3s var(--ease), border-radius .3s var(--ease);
}
.ff-prods b { font-weight: 600; }
.ff-prods em { font-style: normal; text-align: right; color: var(--ff-ink-2); font-variant-numeric: tabular-nums; }
.ff-dots { display: flex; gap: 8px; }
.ff-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ff-off); }
.ff-dots i.has { background: var(--ff-mute); box-shadow: none; }
.ff-dots i.has.is-req { background: var(--ff-o); }
.ff-prods li.ff-phead { padding-block: 0 8px; border-top: 0; color: var(--ff-ink-2); font-size: 12.5px; }
.ff-phead .ff-dots .pl-ic { width: 14px; height: 14px; vertical-align: 0; background: var(--ff-ink-2); }
.ff-prods li.is-out { opacity: .3; filter: grayscale(1); }
.ff-prods li.is-us b { color: var(--ff-o-text); }
.ff-field.is-full .ff-prods li.is-us { background: #ffffff; border-radius: 16px; }
.ff-field-done { margin-top: 16px; font-family: var(--f-display); font-weight: 400; font-size: clamp(19px, 1.9vw, 24px); color: var(--ff-mute); transition: color .5s var(--ease); }
.ff-field-done b { font-weight: inherit; }
.ff-field.is-full .ff-field-done { color: var(--ff-ink); }
.ff-field.is-full .ff-field-done b { color: var(--ff-o-text); }
@media (max-width: 900px) { .ff-field { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ff-prods li { grid-template-columns: minmax(0, 1fr) auto; } .ff-prods em { display: none; } }

/* ---------- 06 原型 ---------- */
.ff-try { max-width: 1000px; margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ff-device { height: min(78svh, 760px); }
/* 原型也按最终版的展示方式：圆角屏 + 一层很软的投影，没有外壳（v2.css 的 .has-proto 会把圆角清零，所以这里要写到同样的权重） */
.is-fitfido .ff-device.has-proto { border-radius: 34px; overflow: hidden; background: var(--ff-bg); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .35); }
.is-fitfido .ff-device.has-proto > .v2demo-poster { border-radius: 0; }
.ff-try-side .pl-n { display: block; margin-bottom: 10px; }
.ff-try-side .pl-h { margin-bottom: clamp(20px, 2.6vw, 30px); }
/* Ally's Profile 那种列表：一张玻璃卡，行之间发丝线，右边一个箭头 */
.ff-list { list-style: none; margin: 0; padding: 6px 18px; display: grid; }
.ff-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ff-line); font: 400 14px/1.4 var(--f-ui); color: var(--ff-ink-2); }
.ff-list li:first-child { border-top: 0; }
.ff-list b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ff-ink); }
.ff-list li > .pl-ic { width: 20px; height: 20px; color: var(--ff-ink); }
.ff-list .ff-chipi { width: 42px; height: 42px; }
@media (max-width: 900px) { .ff-try { grid-template-columns: 1fr; } .ff-device { height: auto; width: min(300px, 86%); } }

/* ---------- 07 结果 ---------- */
.ff-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.ff-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff-nums .ff-stat b { font-size: 36px; }
.ff-certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); align-items: end; }
.ff-certs figure { margin: 0; transition: transform .45s var(--pl-spring); }
.ff-certs figure:nth-child(1) { transform: rotate(-3deg); } .ff-certs figure:nth-child(3) { transform: rotate(3deg); }
.ff-certs figure:hover { transform: translateY(-10px) rotate(0); }
.ff-certs img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .35); }
.ff-certs figcaption { margin-top: 10px; text-align: center; font: 500 13.5px var(--f-ui); color: var(--ff-ink-2); }
@media (max-width: 860px) { .ff-out { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ff-nums { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .ff-paw, .ff-face, .ff-loop, .ff-scene > *, .ff-phone > img, .ff-prods li, .ff-certs figure, .ff-sw::after, .ff-diet .ff-food, .ff-diet .ff-plancard, .ff-diet .ff-actions, .ff-bar i + i { transition-duration: .01s !important; }
  .ff-left.is-pop b, .ff-treat.is-scanning .ff-scanline { animation: none !important; }
}
.ff-q small { display: block; margin-bottom: 4px; font-size: .5em; font-weight: 500; letter-spacing: 0; opacity: .8; }

/* ---------- 一屏看全（2026-10-26） ---------- */
@media (min-width: 861px) {
  /* 04 零食：扫码那台手机按可用高度定宽（260:568） */
  .ff-scan { width: min(260px, calc(var(--fit) * .457)); }
  /* 右栏照 Plan 页加了 Original Plan 之后高出一截：标题缩一档、照片缩窄、间距收紧，"Logged" 那行挪出文档流 */
  .ff-glass.ff-diet { position: relative; gap: 10px; }
  .ff-diet-h { font-size: clamp(26px, 2.2vw, 30px); }
  .ff-warn { margin-bottom: 0; }
  .ff-food { grid-template-columns: 84px minmax(0, 1fr); padding: 12px; gap: 6px 18px; }
  .ff-food b { margin-bottom: 8px; }
  .ff-plancard { gap: 12px; padding: 14px 16px; }
  .ff-orig { gap: 8px; padding: 12px 14px; }
  .ff-logged { position: absolute; left: 0; right: 0; top: calc(100% + 12px); }
}
@media (min-width: 861px) and (max-height: 760px) {
  .ff-glass.ff-diet { gap: 8px; }
  .ff-diet-h { font-size: 24px; }
  .ff-logged { top: calc(100% + 8px); }
}
