/*
 * 托管补丁 —— 原型包本身不动。跟同系列其余原型同一套分工。
 * ① 不引 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 .support-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: 8px 34px 40px;
  padding-right: calc(46% + 30px);
}
body.feature-view .support-shell::-webkit-scrollbar { width: 6px; }
body.feature-view .support-shell::-webkit-scrollbar-thumb { border-radius: 10px; background: #d2ccc5; }

body.feature-view .support-head h1 { margin-top: 7px; font-size: 22px; }
body.feature-view .lede { margin-top: 7px; font-size: 12px; }
body.feature-view .model-row { margin-top: 13px; }
body.feature-view .model { padding: 7px 12px; font-size: 11px; }
body.feature-view .machine-card { grid-template-columns: repeat(3, 1fr); gap: 10px 18px; margin-top: 14px; padding: 13px 15px; }
body.feature-view .machine-card dd { font-size: 12px; }
body.feature-view .docs-panel { margin-top: 18px; }
body.feature-view .docs-head h2 { font-size: 16px; }
body.feature-view .docs-head p { font-size: 11px; }
body.feature-view .doc-list { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
body.feature-view .doc { padding: 11px 12px; }
body.feature-view .doc b { font-size: 12px; }
body.feature-view .doc span { font-size: 10px; }
body.feature-view .after-panel { margin-top: 18px; }
body.feature-view .warranty-card { padding: 14px 16px; }
body.feature-view .w-head b { font-size: 17px; }
body.feature-view .w-grid { gap: 24px; margin-top: 12px; }
body.feature-view .w-grid dd b { font-size: 21px; }
body.feature-view .service-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
body.feature-view .svc { padding: 12px 13px; }

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

body.feature-view .verify-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 .verify-panel header { padding: 15px 24px 13px; }
body.feature-view .verify-panel header span { font-size: 10px; }
body.feature-view .verify-panel header h2 { font-size: 20px; }
body.feature-view .verify-content { padding: 15px 24px 20px; }
body.feature-view .v-intro { font-size: 12px; line-height: 1.7; }
body.feature-view .serial-field input { font-size: 14px; }
body.feature-view .verdict b { font-size: 19px; }
body.feature-view .v-record dd { font-size: 13px; }

/* ── 左边被这一层改写的三块 ────────────────────────────── */
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 .support-shell {
    margin-top: 0;
    height: calc(50dvh - 56px);
    overflow-y: auto;
    padding: 10px 16px 14px;
  }
  body.feature-view .lede,
  body.feature-view .model-row { display: none; }
  body.feature-view .machine-card { grid-template-columns: 1fr 1fr; }
  body.feature-view .doc-list { grid-template-columns: 1fr; }
  body.feature-view .service-grid { grid-template-columns: 1fr; }
  body.feature-view .verify-panel {
    top: auto; bottom: 0; left: 0; right: 0;
    width: auto; min-width: 0;
    height: 50dvh;
    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(50dvh - 13px);
    left: 50%; transform: translateX(-50%);
    z-index: 8;
  }
  body.feature-view [data-zone] { outline: none; }
}
