/* 嘿零豆产品页。页头和主物件用 Healing 自己的米白、杏色（同首页产品区），其余区块回到深色。
   私有前缀：hf-（页面）、bb-（智能拼豆板）、fc-（大格聚焦）。 */
.hf-page {
  --hf-paper: #f7f3ec;
  --hf-mat: #efe8dd;
  --hf-ink: #2f2a25;
  --hf-ink-2: #625a52;
  --hf-ink-3: #776e65;
  --hf-line: #e2d8ca;
  --hf-apricot: #ef9f55;
  --hf-apricot-soft: #fbe6d1;
}

/* ---------- 页头：一扇亮着的窗 ---------- */
.hf-hero { padding-top: clamp(20px, 2.6vw, 36px); isolation: isolate; }
.hf-hero::before { content: ""; position: absolute; inset: 0 0 -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 55%, rgba(239, 159, 85, .10), rgba(239, 159, 85, 0) 72%); }
.hf-window { position: relative; background: var(--hf-paper); color: var(--hf-ink); border-radius: 24px;
  padding: clamp(24px, 3.2vw, 46px) clamp(28px, 4.4vw, 60px) clamp(28px, 4.4vw, 60px); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 50px 120px -50px rgba(239, 159, 85, .38); }
.hf-window { --cs-accent: var(--hf-apricot); }
.hf-window .cs-crumb { color: var(--hf-ink-3); }
.hf-window .cs-crumb a { color: var(--hf-ink-2); }
.hf-window .cs-crumb a:hover { color: var(--hf-ink); }
.hf-window .cs-crumb i { background: #c9bdae; }
.hf-window .cs-status { border-color: #e0c9ad; background: var(--hf-apricot-soft); color: #8a4d17; font-weight: 600; }
.hf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hf-window .cs-title { margin-top: 16px; font-size: clamp(38px, 4.4vw, 62px); color: var(--hf-ink); }
.hf-window .cs-lede { margin-top: 16px; color: var(--hf-ink-2); max-width: 40em; font-size: clamp(16px, 1.25vw, 18px); }
.hf-mark { flex: none; width: auto; height: clamp(48px, 4.6vw, 68px); margin-bottom: 6px; }
.hf-window .cs-facts { margin-top: clamp(24px, 2.6vw, 36px); border-top-color: var(--hf-line); }
.hf-window .cs-facts li { padding-top: 14px; }
.hf-window .cs-facts li + li { border-left-color: var(--hf-line); }
.hf-window .cs-facts span { color: var(--hf-ink-3); }
.hf-window .cs-facts b { color: var(--hf-ink); }

/* ---------- 智能拼豆板 ---------- */
.bb { margin: clamp(28px, 3vw, 40px) 0 0; padding: clamp(20px, 3vw, 40px); border-radius: 20px; background:
  radial-gradient(circle at 50% 50%, rgba(98, 74, 52, .07) 1.2px, transparent 1.6px) 0 0 / 18px 18px, var(--hf-mat);
  box-shadow: inset 0 0 0 1px rgba(98, 74, 52, .08); }
.bb-scene { display: grid; grid-template-columns: minmax(0, 290px) minmax(80px, 1fr) minmax(0, 560px); align-items: center; }

/* 手机：App 拼豆模式 */
.bb-phone { padding: 9px; border-radius: 38px; background: #1f1c19; box-shadow: 0 30px 60px -28px rgba(70, 44, 20, .55), inset 0 0 0 1px #3a342e; }
.bb-app { aspect-ratio: 272 / 560; border-radius: 30px; overflow: hidden; background: #f7f3ec; display: flex; flex-direction: column; }
.bb-app-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 26px 16px 8px; font-size: 14px; color: var(--hf-ink); }
.bb-app-top .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-app-top .n { flex: none; font-variant-numeric: tabular-nums; color: var(--hf-ink-2); font-size: 13px; }
.bb-app-top .n b { color: var(--hf-ink); font-weight: 650; }
.bb-app-bar { height: 5px; margin: 0 16px; border-radius: 3px; background: #e6ddd1; overflow: hidden; }
.bb-app-bar i { display: block; height: 100%; width: 0; background: #3e3833; border-radius: 3px; transition: width .6s var(--ease); }
.bb-app-tools { display: flex; justify-content: space-between; padding: 12px 16px 10px; font-size: 12px; color: var(--hf-ink-2); border-bottom: 1px solid var(--hf-line); }
.bb-app-tools span:first-child { color: var(--hf-ink); font-weight: 600; }
.bb-app-cv { position: relative; flex: 1; margin-top: 0; background: #fff; }
.bb-app-cv canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bb-app-foot { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 0 12px; height: 46px; border-radius: 12px; background: #2f2a25; color: #f7f1e8;
  font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bb-app-foot .idx { color: #a89e93; padding-right: 8px; border-right: 1px solid #4a433d; }
.bb-app-foot .sw { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c, #febe7d);
  box-shadow: inset 0 0 0 5px var(--c, #febe7d), inset 0 0 0 9px rgba(0, 0, 0, .35); }
.bb-app-foot b { font-size: 15px; font-weight: 700; }
.bb-app-foot .cnt { color: #d6cdc2; }
.bb-app-foot .fin { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #f7f1e8; }
.bb-app-foot .fin i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #cfc6bb; }
.bb.is-sent .bb-app-foot .fin i { background: var(--hf-apricot); border-color: var(--hf-apricot); }

/* 蓝牙连线 */
.bb-link { position: relative; height: 80px; display: grid; place-items: center; }
.bb-wire { position: absolute; left: -6px; right: -6px; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, #cdbfae 0 6px, transparent 6px 12px); }
.bb-wire i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--hf-apricot);
  box-shadow: 0 0 0 4px rgba(239, 159, 85, .22); opacity: 0; }
.bb.is-sending .bb-wire i { animation: bb-send 0.9s var(--ease) forwards; }
.bb.is-sending .bb-wire i:nth-child(2) { animation-delay: .14s; }
.bb.is-sending .bb-wire i:nth-child(3) { animation-delay: .28s; }
@keyframes bb-send { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.bb-bt { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border-radius: 15px; background: #fffdf9;
  font-size: 13px; color: var(--hf-ink-2); box-shadow: 0 1px 0 rgba(98, 74, 52, .1), inset 0 0 0 1px var(--hf-line); white-space: nowrap; }
.bb-bt svg { width: 16px; height: 16px; fill: none; stroke: #3a6fd1; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* 豆板 */
.bb-board { position: relative; aspect-ratio: 560 / 616; }
.bb-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bb-board-tag { position: absolute; left: 4.2%; bottom: 1.4%; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #b6aca1; letter-spacing: .04em; }
.bb-board-tag i { width: 6px; height: 6px; border-radius: 50%; background: #6fd18e; box-shadow: 0 0 6px #6fd18e; }

/* 控件 */
.bb-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--hf-line); }
.bb-label { font-size: 13px; color: var(--hf-ink-3); }
.bb-colors { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.bb-colors button { width: 100%; height: 48px; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 9px;
  padding: 0 10px; border: 0; border-radius: 10px; background: #fffdf9; text-align: left; cursor: pointer; color: var(--hf-ink);
  box-shadow: 0 1px 0 rgba(98, 74, 52, .08), inset 0 0 0 1px rgba(98, 74, 52, .08); transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.bb-colors button:hover { box-shadow: 0 1px 0 rgba(98, 74, 52, .08), inset 0 0 0 1px rgba(98, 74, 52, .26); }
.bb-colors button:focus-visible { outline: 2px solid var(--hf-apricot); outline-offset: 2px; }
.bb-colors .sw { grid-row: span 2; align-self: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 0 0 7px var(--c), inset 0 0 0 11px rgba(0, 0, 0, .28); }
.bb-colors b { font-size: 14px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; }
.bb-colors small { font-size: 12px; color: var(--hf-ink-3); line-height: 1.3; font-variant-numeric: tabular-nums; }
.bb-colors [aria-pressed="true"] { background: #fff; box-shadow: 0 4px 14px -6px rgba(140, 80, 30, .4), inset 0 0 0 2px var(--hf-apricot); }
.bb-colors .is-done { background: transparent; box-shadow: inset 0 0 0 1px rgba(98, 74, 52, .12); }
.bb-colors .is-done b { color: var(--hf-ink-3); }
.bb-colors .is-done small::before { content: "✓ "; color: #b0672a; }
.bb-act { display: grid; justify-items: start; gap: 10px; min-width: 240px; }
.bb-now { font-size: 14px; color: var(--hf-ink-2); font-variant-numeric: tabular-nums; }
.bb-now b { color: var(--hf-ink); }
.bb-go { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--hf-ink); color: #fff8ee;
  font-size: 16px; font-weight: 650; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.bb-go:hover { background: #1f1b18; }
.bb-go:active { transform: translateY(1px); }
.bb-go:disabled { background: #a59c92; cursor: default; }
.bb-go:focus-visible, .bb-reset:focus-visible { outline: 2px solid var(--hf-apricot); outline-offset: 3px; }
.bb-go svg { transition: transform .3s var(--ease); }
.bb-go:not(:disabled):hover svg { transform: translateX(4px); }
.bb-reset { height: 32px; padding: 0 2px; border: 0; background: none; color: var(--hf-ink-3); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #cdbfae; }
.bb-reset:hover { color: var(--hf-ink); }
.bb-cap { margin-top: 18px; font-size: 13px; line-height: 1.7; color: var(--hf-ink-3); max-width: 60em; }

/* ---------- 02 六步 ---------- */
.hf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); counter-reset: s; }
.hf-steps li { position: relative; min-width: 0; }
.hf-steps li + li::before { content: ""; position: absolute; top: 46%; left: calc(clamp(14px, 1.6vw, 24px) * -1); width: clamp(14px, 1.6vw, 24px); height: 1px; background: var(--line-strong); }
.hf-steps figure { margin: 0; }
.hf-shot { position: relative; aspect-ratio: 540 / 860; border-radius: 18px; overflow: hidden; background: var(--hf-paper);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(0, 0, 0, .9); }
.hf-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hf-shot--short img { height: auto; }
.hf-shot--short::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(98, 74, 52, .09) 1.2px, transparent 1.6px) 0 0 / 14px 14px; }
.hf-shot--fuse { background: #e9e0d2; }
.hf-shot--fuse canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hf-tag { position: absolute; top: 12px; right: 12px; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 12px;
  background: rgba(255, 253, 249, .9); color: var(--hf-ink-2); font-size: 12px; font-weight: 600; }
.hf-steps figcaption { margin-top: 16px; display: grid; gap: 4px; }
.hf-steps figcaption .no { font-size: var(--fs-label); color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.hf-steps figcaption b { font-size: 17px; font-weight: 650; }
.hf-steps figcaption span:not(.no) { font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* ---------- 03 大格聚焦 ---------- */
.fc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raised); }
.fc-map { position: relative; align-self: start; aspect-ratio: 31 / 35; border-radius: 10px; overflow: hidden; background: #fff; }
.fc-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fc-hits { position: absolute; inset: 0; }
.fc-hits button { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 2px; }
.fc-hits button:hover { background: rgba(242, 179, 61, .12); }
.fc-hits button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.fc-zoom { min-width: 0; }
.fc-where { font-size: var(--fs-small); color: var(--ink-2); }
.fc-where b { color: var(--amber); font-weight: 600; }
.fc-zoom canvas { display: block; width: 100%; aspect-ratio: 1; margin-top: 12px; border-radius: 10px; background: #fff; }
.fc-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fc-list li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fc-list i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 5px var(--c), inset 0 0 0 8px rgba(0, 0, 0, .3); }
.fc-list b { color: var(--ink-1); font-weight: 600; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
  .bb-scene { grid-template-columns: minmax(0, 250px) minmax(60px, 1fr) minmax(0, 520px); }
  .bb-colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .hf-steps li:nth-child(4)::before { display: none; }
}
@media (max-width: 960px) {
  .bb-controls { grid-template-columns: 1fr; }
  .fc { grid-template-columns: 1fr; }
  .fc-map { max-width: 420px; }
}
@media (max-width: 720px) {
  .hf-window { border-radius: 18px; padding: 22px 18px 20px; }
  .hf-head { display: block; }
  .hf-mark { display: none; }
  .hf-window .cs-title { margin-top: 14px; font-size: 34px; }
  .hf-head .cs-lede { margin-top: 12px; font-size: 15px; }
  .hf-window .cs-facts { grid-template-columns: 1fr; margin-top: 20px; }
  .hf-window .cs-facts li, .hf-window .cs-facts li + li { grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--hf-line); }
  .hf-window .cs-facts b { font-size: 14px; }
  .bb { margin-top: 22px; padding: 14px 12px 16px; border-radius: 14px; }
  .bb-scene { grid-template-columns: 38% 16px minmax(0, 1fr); }
  .bb-phone { padding: 5px; border-radius: 20px; }
  .bb-app { border-radius: 16px; }
  .bb-app-top { padding: 12px 8px 5px; font-size: 11px; justify-content: flex-end; }
  .bb-app-top .t { display: none; }
  .bb-app-top .n { font-size: 11px; }
  .bb-app-bar { height: 3px; margin: 0 8px; }
  .bb-app-cv { margin-top: 6px; }
  .bb-app-tools { display: none; }
  .bb-app-foot .cnt { display: none; }
  .bb-app-foot { margin: 5px; padding: 0 7px; height: 30px; gap: 5px; border-radius: 8px; font-size: 11px; }
  .bb-app-foot .idx, .bb-app-foot .fin { display: none; }
  .bb-app-foot .sw { width: 12px; height: 12px; box-shadow: inset 0 0 0 3px var(--c, #febe7d), inset 0 0 0 6px rgba(0, 0, 0, .35); }
  .bb-app-foot b { font-size: 12px; }
  .bb-link { height: 40px; }
  .bb-bt { display: none; }
  .bb-board-tag { font-size: 11px; gap: 5px; }
  .bb-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bb-colors button { height: 44px; padding: 0 8px; column-gap: 7px; grid-template-columns: 18px 1fr; }
  .bb-colors .sw { width: 18px; height: 18px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 0 0 5px var(--c), inset 0 0 0 9px rgba(0, 0, 0, .28); }
  .bb-colors b { font-size: 13px; }
  .bb-colors small { font-size: 11px; }
  .bb-act { min-width: 0; grid-template-columns: 1fr auto; align-items: center; width: 100%; }
  .bb-now { grid-column: 1 / -1; font-size: 13px; }
  .bb-go { height: 46px; padding: 0 18px; font-size: 15px; }
  .bb-cap { font-size: 12px; }
  .hf-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); gap: 14px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .hf-steps::-webkit-scrollbar { display: none; }
  .hf-steps li { flex: 0 0 58%; scroll-snap-align: start; }
  .hf-steps li + li::before { display: none; }
  .fc { padding: 14px; }
  .fc-map { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-app-bar i, .bb-go, .bb-go svg { transition: none; }
  .bb.is-sending .bb-wire i { animation: none; }
}
