/*
 * 托管补丁 —— 原型包本身不动。跟同系列其余原型同一套分工。
 * ① 不引 Google Fonts  ② 演示角标只在单独打开时出现  ③ 功能视图见下
 */
body {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
}

.demo-badge {
  position: fixed; z-index: 9; left: 16px; bottom: 16px;
  display: none; align-items: center; gap: 8px;
  padding: 8px 14px 8px 11px; border-radius: 30px;
  background: #1a1a1a; color: #fff; font-size: 11px; line-height: 1;
  text-decoration: none; box-shadow: 0 7px 24px #00000026;
}
.demo-badge b { color: #fb8c42; font-weight: 700; }
.demo-badge span { color: #b8b4b0; }
@media (max-width: 700px) { .demo-badge { display: none !important; } }

/* ══════════════════════════════════════════════════════════════════
 * 功能视图 `?view=feature`
 *
 * 🔴 **这个演示的收尾在面板外面：左边那笔运费。**
 * 柜子填满的那一刻，运费从散货价换成整柜分摊价 —— 那个数字变化
 * 才是买家真正在看的东西。所以左栏里产品图让位，**运费那一块必须落在第一屏**。
 * ══════════════════════════════════════════════════════════════════ */
body.feature-view { height: 100dvh; overflow: hidden; }

body.feature-view .site-header { height: 56px; }
body.feature-view .order-shell {
  margin-top: 34px;
  height: calc(100dvh - 90px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d2ccc5 transparent;
  padding: 6px 34px 40px;
  padding-right: calc(46% + 30px);
}
body.feature-view .order-shell::-webkit-scrollbar { width: 6px; }
body.feature-view .order-shell::-webkit-scrollbar-thumb { border-radius: 10px; background: #d2ccc5; }

body.feature-view .order-hero { grid-template-columns: 1fr; gap: 0; padding: 12px 0 20px; }
body.feature-view .crumb-row { padding-bottom: 11px; }
body.feature-view .crumb-row > p { display: none; }
body.feature-view .visual-frame { height: 120px; border-radius: 10px; }
body.feature-view .chair { max-height: 92%; }
body.feature-view .order-side h1 { margin-top: 11px; font-size: 24px; }
body.feature-view .subtitle { display: none; }
body.feature-view .spec-grid { margin-top: 12px; padding: 11px 0; }
body.feature-view .spec-grid dd { font-size: 13px; }
body.feature-view .qty-row { margin-top: 13px; }
body.feature-view .chip { font-size: 11px; padding: 7px 12px; }
body.feature-view .cost-block { margin-top: 13px; padding: 14px 16px; }
body.feature-view .cost-total b i { font-size: 21px; }
body.feature-view .actions { margin-top: 14px; }
body.feature-view .btn-primary, body.feature-view .btn-ghost { padding: 11px 16px; font-size: 11px; }

body.feature-view .pool-trigger,
body.feature-view .pool-panel header > button { display: none; }

body.feature-view .pool-panel {
  top: 90px;
  right: 18px;
  bottom: auto;
  left: auto;
  width: 46%;
  min-width: 340px;
  /* ⚠️ 高度写死。top + bottom 配 auto 高度时 bottom 被忽略，面板缩成半截。 */
  height: calc(100dvh - 106px);
  min-height: 0;
  max-height: none;
  transform: none;
  visibility: visible;
  opacity: 1;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .16);
}

body.feature-view .pool-panel header { padding: 15px 24px 13px; }
body.feature-view .pool-panel header span { font-size: 10px; }
body.feature-view .pool-panel header h2 { font-size: 20px; }
body.feature-view .pool-content { padding: 15px 24px 20px; }
body.feature-view .pool-intro { font-size: 12px; line-height: 1.7; }
body.feature-view .fill-head b { font-size: 17px; }
body.feature-view .join-card > b { font-size: 19px; }

/* ── 左边被这一层改写的那一块 ──────────────────────────── */
body.feature-view [data-zone] {
  position: relative;
  outline: 1px dashed #f0b985;
  outline-offset: 6px;
  border-radius: 4px;
  transition: outline-color .5s;
}
body.feature-view [data-zone].zone-touched {
  outline-color: var(--orange);
  animation: zone-pulse .9s ease;
}
@keyframes zone-pulse {
  0% { box-shadow: 0 0 0 0 #ed650033; }
  40% { box-shadow: 0 0 0 10px #ed650000; }
  100% { box-shadow: 0 0 0 0 #ed650000; }
}

/* 两个区域标签。**这是这个视图里信息量最大的两行字。** */
.fv-tag {
  position: fixed; z-index: 4; top: 60px;
  display: none; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 20px;
  font: 500 11px/1 DM Mono, monospace; letter-spacing: .3px; white-space: nowrap;
}
body.feature-view .fv-tag { display: inline-flex; }
.fv-tag:before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.fv-tag-base { left: 34px; background: #efece8; color: #6f6a66; }
.fv-tag-base:before { background: #b9b3ac; }
.fv-tag-built { left: calc(54% - 18px); background: #ed6500; color: #fff; }
.fv-tag-built:before { background: #ffd0aa; }

/* ══ 窄屏：上下分屏 ══════════════════════════════════════ */
@media (max-width: 900px) {
  body.feature-view { height: 100dvh; overflow: hidden; }
  body.feature-view .order-shell {
    margin-top: 0;
    height: calc(46dvh - 56px);
    overflow-y: auto;
    padding: 10px 16px 14px;
  }
  /* 手机上半屏只有 300 出头 —— 全给那笔运费，产品图和面包屑让位 */
  body.feature-view .crumb-row,
  body.feature-view .product-side,
  body.feature-view .order-side h1,
  body.feature-view .eyebrow { display: none; }
  body.feature-view .order-hero { padding: 0; }
  body.feature-view .spec-grid { display: none; }
  body.feature-view .qty-row { margin-top: 0; }
  body.feature-view .pool-panel {
    top: auto; bottom: 0; left: 0; right: 0;
    width: auto; min-width: 0;
    height: 54dvh;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -14px 40px rgba(0, 0, 0, .14);
  }
  body.feature-view .fv-tag { display: none; }
  body.feature-view .fv-tag-built {
    display: inline-flex;
    top: auto; bottom: calc(54dvh - 13px);
    left: 50%; transform: translateX(-50%);
    z-index: 8;
  }
  body.feature-view [data-zone] { outline: none; }
}
