/* 悟空视觉 · 官网 V4.8.9 新功能段（美体、界面演示、登录付款、安装器、OBS 版本）
   跟 site.css 同一套变量：白底柔光、苹果连续圆角、最宽 980。不写内联样式，兼容 CSP style-src 'self'。
   交互在 assets/v489.js，只用 CSSOM 改变量。 */

/* ---------- 通用：分段按钮（照调色工作台顶部的页签做） ---------- */
.seg {
  display: flex; gap: 4px; width: fit-content; max-width: 100%; margin-inline: auto; padding: 4px;
  overflow-x: auto; scrollbar-width: none;
  border-radius: 14px; background: rgb(255 255 255 / .6);
  box-shadow: 0 0 0 1px var(--tile-edge), inset 0 1px 0 rgb(255 255 255 / .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font-size: 14px; line-height: 20px; color: var(--text-2); white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] {
  color: var(--text); font-weight: 600; background: #ffffff;
  box-shadow: 0 0 0 1px rgb(15 23 42 / .06), 0 4px 12px -6px rgb(60 40 120 / .35);
}
.seg--sm button { min-height: 32px; padding: 0 12px; font-size: 13px; }
@supports (corner-shape: squircle) { .seg, .seg button { corner-shape: squircle; } }

/* 小胶囊（美体单项） */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font-size: 13px; line-height: 18px; color: var(--text-2); background: rgb(255 255 255 / .7);
  box-shadow: 0 0 0 1px rgb(15 23 42 / .08);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chips button:hover { color: var(--text); }
.chips button[aria-pressed="true"] { color: #ffffff; background: var(--btn); box-shadow: none; }

/* 滑块：细轨道、白圆钮，和软件里的滑块一个样子 */
.wk-range { --fill: 0%; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.wk-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #7c6cf0 0 var(--fill), rgb(15 23 42 / .1) var(--fill) 100%);
}
.wk-range::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(15 23 42 / .1); }
.wk-range::-moz-range-progress { height: 4px; border-radius: 4px; background: #7c6cf0; }
.wk-range::-webkit-slider-thumb {
  width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #ffffff; -webkit-appearance: none; appearance: none;
  box-shadow: 0 0 0 1px rgb(15 23 42 / .1), 0 3px 8px rgb(15 23 42 / .22);
}
.wk-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 1px rgb(15 23 42 / .1), 0 3px 8px rgb(15 23 42 / .22); }
.wk-range:focus-visible { outline: none; }
.wk-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.range-ticks { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--text-2); }

/* 次要按钮：按住看原图 */
.hold-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
  font-size: 14px; line-height: 20px; color: var(--text); background: #ffffff;
  box-shadow: 0 0 0 1px rgb(15 23 42 / .1), 0 2px 6px rgb(15 23 42 / .05);
}
.hold-btn.is-holding { background: var(--btn); color: #ffffff; box-shadow: none; }

/* ---------- 新功能一览 ---------- */
.news .cols { margin-top: 24px; }
.news .col-link { gap: 2px; }
.news .col-name { font-size: 18px; line-height: 25px; }
.news .tag-new {
  display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: var(--r-pill); vertical-align: 2px;
  font-size: 11px; line-height: 18px; font-weight: 600; letter-spacing: .04em; color: #ffffff; background: var(--grad-pink);
}
@media (min-width: 735px) { .news .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 美体大块 ---------- */
.tile--body { display: block; padding: var(--tile-top) var(--gutter) var(--gutter); text-align: center; }
.body-head .tile-lead { margin-top: 8px; }
.body-demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; text-align: left; }
.body-stage { position: relative; width: min(340px, 100%); margin-inline: auto; }
.body-stage .compare { aspect-ratio: 9 / 16; cursor: ew-resize; }
.body-stage .compare img { object-position: 50% 50%; transition: opacity 160ms linear; }
.body-stage .compare-tag { top: 12px; }
.compare-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 4px 12px; border-radius: var(--r-pill); background: rgb(0 0 0 / .55); color: #ffffff;
  font-size: 12px; line-height: 18px; white-space: nowrap; pointer-events: none;
  transition: opacity var(--t-slow) var(--ease);
}
.compare.is-touched .compare-hint { opacity: 0; }
.compare.is-hold .compare-before { clip-path: inset(0 0 0 0); }
.compare.is-hold .compare-handle, .compare.is-hold .compare-tag--after { opacity: 0; }
.stage-note { margin-top: 10px; font-size: 12px; line-height: 17px; color: var(--text-2); text-align: center; }

.body-ctrl { display: grid; gap: 18px; align-content: start; min-width: 0; }
.ctrl-label { margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-2); }
.ctrl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ctrl-value { min-width: 3.2em; padding: 2px 8px; border-radius: 8px; text-align: right; font-size: 14px; line-height: 20px; background: rgb(255 255 255 / .8); box-shadow: 0 0 0 1px rgb(15 23 42 / .08); }
.body-ctrl .seg { margin-inline: 0; }
.body-ctrl[data-mode="item"] .strength { opacity: .4; pointer-events: none; }
.scene-note { margin-top: 8px; font-size: 13px; line-height: 19px; color: var(--text-2); }
.scene-note strong { color: var(--text); font-weight: 600; }

/* 九项列表 */
.body-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 4px; list-style: none; font-size: 13px; line-height: 18px; }
.body-items li { display: flex; flex-direction: column; gap: 1px; padding-block: 8px; border-top: 1px solid var(--line); }
.body-items b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.body-items span { color: var(--text-2); }

/* 四条规矩 */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; list-style: none; text-align: left; }
.rules li { padding: 14px 14px 12px; border-radius: var(--r-card); background: rgb(255 255 255 / .62); box-shadow: 0 0 0 1px var(--tile-edge); }
.rules b { display: block; font-size: 14px; line-height: 20px; }
.rules span { display: block; margin-top: 2px; font-size: 12px; line-height: 17px; color: var(--text-2); }
@supports (corner-shape: squircle) { .rules li, .ctrl-value { corner-shape: squircle; } }

@media (min-width: 735px) {
  .tile--body { padding: 44px 40px 40px; }
  .body-demo { grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 32px; }
  .body-stage { width: 320px; margin: 0; }
  .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
}
@media (min-width: 1069px) {
  .body-demo { grid-template-columns: 340px minmax(0, 1fr); gap: 44px; }
  .body-stage { width: 340px; }
}

/* ---------- 界面演示（页签 + 真截图） ---------- */
.tile--tour { display: block; padding: var(--tile-top) 0 0; text-align: center; }
.tile--tour .tile-copy { padding-top: 0; }
.tour-tabs { margin-top: 20px; padding-inline: var(--gutter); }
.tour-stage {
  position: relative; margin: 20px 0 0; padding: 14px 14px 0; overflow: hidden;
  border-radius: 0 0 var(--r-tile) var(--r-tile); background: var(--show);
}
.tour-stage .app-window { padding: 8px 8px 0; border-radius: var(--r-window) var(--r-window) 0 0; background: rgb(255 255 255 / .62); box-shadow: 0 18px 48px -24px rgb(60 40 120 / .5), inset 0 0 0 1px rgb(255 255 255 / .6); }
.tour-pane { display: grid; }
.tour-pane > figure { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease), visibility 0s linear 260ms; }
.tour-pane > figure.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.tour-pane img { width: 100%; border-radius: 8px 8px 0 0; }
.tour-cap { min-height: 42px; margin: 12px auto 0; padding-inline: var(--gutter); max-width: 620px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-2); text-wrap: balance; }
@media (min-width: 735px) {
  .tile--tour { padding-top: 44px; }
  .tour-stage { margin-top: 24px; padding: 28px 28px 0; }
  .tour-stage .app-window { width: min(860px, 100%); margin-inline: auto; padding: 10px 10px 0; }
}

/* ---------- 登录付款 / 安装器：左步骤、右截图 ---------- */
.tile--flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: var(--tile-top) var(--gutter); text-align: left; }
.flow-copy .feature-label { margin-inline: 0; }
.flow-copy .tile-title { margin-top: 2px; }
.flow-copy .feature-text { margin: 8px 0 0; }
.steps { display: grid; gap: 6px; margin-top: 18px; list-style: none; counter-reset: st; }
.steps button {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: left;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.steps button::before {
  counter-increment: st; content: counter(st);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; font-weight: 600; color: var(--text-2); background: rgb(15 23 42 / .06);
}
.steps button > span > b { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); }
.steps button > span > span { display: block; margin-top: 1px; font-size: 13px; line-height: 19px; color: var(--text-2); }
.steps button:hover { background: rgb(255 255 255 / .5); }
.steps button[aria-selected="true"] { background: #ffffff; box-shadow: 0 0 0 1px rgb(15 23 42 / .06), 0 6px 18px -10px rgb(60 40 120 / .4); }
.steps button[aria-selected="true"]::before { color: #ffffff; background: var(--ico-violet); }
.flow-media { display: grid; align-self: center; min-width: 0; }
.flow-media > figure { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease), visibility 0s linear 260ms; }
.flow-media > figure.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.flow-media .app-window img { width: 100%; }
.flow-media figcaption { margin-top: 8px; font-size: 12px; line-height: 17px; color: var(--text-2); text-align: center; }
.flow-fine { margin-top: 14px; font-size: 12px; line-height: 17px; color: var(--text-2); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-badges span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: var(--r-pill);
  font-size: 13px; line-height: 20px; background: #ffffff; box-shadow: 0 0 0 1px rgb(15 23 42 / .08);
}
.pay-badges i { width: 10px; height: 10px; border-radius: 50%; }
.pay-badges .dot-wx { background: #07c160; }
.pay-badges .dot-ali { background: #1677ff; }
.pay-badges .dot-tel { background: #a24bf0; }
@media (min-width: 735px) {
  .tile--flow { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; padding: 40px; }
  .tile--flow.tile--flip .flow-copy { order: 2; }
  .tile--flow.tile--flip .flow-media { order: 1; }
}

/* ---------- OBS 版本 ---------- */
.ver-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; list-style: none; }
.ver-chips li { padding: 2px 10px; border-radius: var(--r-pill); font-size: 13px; line-height: 20px; background: rgb(255 255 255 / .8); box-shadow: 0 0 0 1px rgb(15 23 42 / .08); }
.ver-note { margin-top: 10px; font-size: 13px; line-height: 19px; color: var(--text-2); }

/* 原型专用：待授权角标（上线前去掉或换素材） */
.proto-flag {
  position: absolute; right: 10px; bottom: 44px; z-index: 2; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; line-height: 16px; color: #92580a; background: rgb(255 240 214 / .92); pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .tour-pane > figure, .flow-media > figure, .body-stage .compare img { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .seg, .rules li { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* 首页美体块：对比图收窄一点 */
.body-stage--sm { width: min(260px, 100%); }
.hb-more { margin-top: 10px; }
.tile--home-body .flow-media { justify-items: center; }
@media (min-width: 735px) {
  .tile--home-body { grid-template-columns: minmax(0, 1fr) 280px; }
  .body-stage--sm { width: 280px; }
}

/* 窄屏：新功能卡两列，卡片收紧；美体对比图收窄，强度滑块离图近一点 */
@media (min-width: 420px) and (max-width: 734px) {
  .news .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .news .col-link { padding: 18px 16px; }
  .news .col-link .ico { width: 38px; height: 38px; margin-bottom: 10px; }
  .news .col-name { font-size: 16px; line-height: 22px; }
}
@media (max-width: 734px) {
  .body-stage { width: min(300px, 100%); }
  .body-demo { gap: 16px; }
}
.tile--home-body .tile-head { text-align: left; }
.tile--home-body .feature-text { font-size: var(--fs-sub); line-height: var(--lh-sub); }
.hb-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; list-style: none; }
.hb-items li { padding: 3px 12px; border-radius: var(--r-pill); font-size: 13px; line-height: 20px; background: rgb(255 255 255 / .8); box-shadow: 0 0 0 1px rgb(15 23 42 / .08); }
@media (min-width: 735px) { .tile--home-body { padding: 40px 48px; gap: 48px; } }

/* 无人像版：美体段只放真实美体页截图 + 九项说明 */
.body-demo--shot { grid-template-columns: minmax(0, 1fr); }
.body-shot { margin: 0; }
.body-shot .app-window { padding: 8px 8px 0; background: rgb(255 255 255 / .62); box-shadow: 0 18px 48px -24px rgb(60 40 120 / .5), inset 0 0 0 1px rgb(255 255 255 / .6); }
.body-shot img { border-radius: 8px 8px 0 0; }
.body-shot figcaption { margin-top: 10px; font-size: 13px; line-height: 19px; color: var(--text-2); text-align: center; }
.body-demo--shot .body-items { margin-top: 0; }
.tile--home-body-shot .hb-shot { margin: 0; align-self: center; }
@media (min-width: 735px) {
  .body-demo--shot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .body-shot { width: min(860px, 100%); margin-inline: auto; }
  .body-demo--shot .body-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile--home-body-shot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
