/* ==========================================================================
   vape 计算器 · 工具私有样式
   基座在 /tools/tool.css；这里只写本页特有的布局与读数样式。
   ========================================================================== */

.vape-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
}
@media (min-width: 980px) {
  .vape-layout { grid-template-columns: minmax(0, 1fr) 400px; }
  /* 右栏三张卡直接展开、**不设内部滚动**（用户要求去掉滚动条）：整栏随页面一起滚，
     不再 sticky + max-height（那样会把最下面那张卡顶出屏幕、滚不到） */
}

.vape-inputs {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.vape-visual {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-width: 0;
}

/* 顶部导航栏：挂在页头里（标题右侧），当前项用强调下划线，不用选择框 */
.tool-head { align-items: center; }
.tool-head-main { min-width: 0; }

/* 层级：标题（1.35rem/700）> 导航项（1rem/600，选中 800 + 玫瑰下划线）> 副标题（0.8rem/弱）
   导航项之间：等内边距 + 等间距，未选中用 --text-2（保证对比度），选中加粗 + 玫瑰色 + 下划线 */
.vape-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.6rem;
}
.vape-nav button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.45rem 0.7rem 0.6rem;
  cursor: pointer;
  transition: color 0.18s ease;
}
.vape-nav button:hover { color: var(--text); }
.vape-nav button.is-active {
  color: var(--accent-strong);
  font-weight: 800;
}
.vape-nav button.is-active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.08rem;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.vape-nav button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 卡片内两列栅格 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.85rem;
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.vape-note {
  margin: -0.3rem 0 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.vape-note strong { color: var(--pink-deep); }

.field-label .unit {
  font-size: 0.7rem;
  color: var(--pink-deep);
  font-weight: 700;
}

/* 只读输入（如「电流」「调功率时的电压」）：弱化处理，一眼看出是算出来的、不是可填框 */
.input[readonly] {
  background: var(--surface-2);
  color: var(--text-2);
  cursor: default;
  transition: background 0.25s ease, color 0.25s ease;
}

/* --------------------------------------------------------------------------
   数值变化动效：大数字「滚」到新值 + 弹一下；所在读数瓦片闪一下
   （双模式联动时，一眼看清「动了一个，另一个跟着变了」）
   -------------------------------------------------------------------------- */
@keyframes numPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.num-bump {
  animation: numPop 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: left center;
  will-change: transform;
}
@keyframes tileFlash {
  0% { background: rgba(244, 63, 94, 0.22); border-color: rgba(244, 63, 94, 0.6); }
  100% { background: var(--surface-2); border-color: var(--border); }
}
.dash-item.is-flash { animation: tileFlash 0.6s ease-out; }

/* 派生（自动）字段：标签弱化，配合只读输入框 = 「这是算出来的」 */
.field.is-auto > .field-label { color: var(--text-3); }

/* 卡片标题 + 右侧按钮一行 */
.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.card-head-row .card-title { margin-bottom: 0; }

/* 读数块 */
.readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}
@media (max-width: 520px) {
  .readout { grid-template-columns: 1fr; }
}
.readout-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.58rem 0.72rem;
  border-radius: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
}
.readout-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.readout-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.readout-value.small { font-size: 0.95rem; font-weight: 700; color: var(--text-2); }
.readout-value em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.readout-inline {
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.check input {
  width: 15px;
  height: 15px;
  accent-color: var(--pink-accent);
  cursor: pointer;
}

/* 电池安全状态条 */
.batt-status {
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  background: var(--surface-2);
  color: var(--text-secondary);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.batt-status.is-ok {
  background: rgba(var(--macaron-mint-rgb), 0.14);
  border-color: rgba(var(--macaron-mint-rgb), 0.4);
  color: var(--macaron-mint-ink);
  font-weight: 700;
}
.batt-status.is-warn {
  background: rgba(var(--macaron-peach-rgb), 0.14);
  border-color: rgba(var(--macaron-peach-rgb), 0.4);
  color: var(--macaron-peach-ink);
  font-weight: 700;
}
.batt-status.is-danger {
  background: rgba(var(--macaron-pink-rgb), 0.14);
  border-color: rgba(var(--macaron-pink-rgb), 0.4);
  color: var(--pink-deep);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   线圈拟真预览
   -------------------------------------------------------------------------- */
.coil-panel { text-align: center; }
.coil-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0.25rem 0 0.5rem;
  /* 热流配色：默认凉爽银灰（灭）。点火时由 JS 的 V.setCoilHeat(t) 逐帧改这三个变量，
     颜色 / 辉光连续过渡；每半圈带各自的 transition-delay → 中段先热、向两端铺开。 */
  --coil-wire: #94a3b8;
  --coil-glow: rgba(148, 163, 184, 0.12);
  --coil-heat: 0;
}

/* 中段辉光：径向渐变（中段最热最亮）。亮度只由热度（--coil-heat）决定 — 冷态（0）完全不发光 */
.coil-halo {
  fill: url(#coilBloom);
  filter: blur(4px);
  opacity: calc(var(--coil-heat, 0) * 0.95);
  transform-box: fill-box;
  transform-origin: center;
  animation: coilPulse 3.4s ease-in-out infinite;
}
@keyframes coilPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
/* 辉光渐变的颜色跟随热色（唯一来源仍是上面的 --coil-wire） */
.coil-svg .cb-0 { stop-color: var(--coil-wire); stop-opacity: 0.5; }
.coil-svg .cb-1 { stop-color: var(--coil-wire); stop-opacity: 0.16; }
.coil-svg .cb-2 { stop-color: var(--coil-wire); stop-opacity: 0; }
/* 过热（danger）时轻微高频抖动，给「太热了」一点体感 */
@keyframes coilShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  75% { transform: translateX(1.5px); }
}
.coil-svg.is-shaking { animation: coilShake 0.16s linear infinite; }

/* 后弧：绕到线圈背后的半圈（远侧）—— 同色但更暗更细，和前半圈叠出纵深 */
.coil-back {
  fill: none;
  stroke: var(--coil-wire);
  stroke-width: 3.6;
  opacity: 0.42;
  transition: d 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease, stroke-width 0.3s ease;
}
/* 前螺旋：主发热丝 */
.coil-front {
  fill: none;
  stroke: var(--coil-wire);
  stroke-width: 4.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--coil-glow));
  transition: d 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease, stroke-width 0.3s ease;
}
/* 圆管上的金属高光（偏上的细白线，做出受光的立体感） */
.coil-hi {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linecap: round;
  /* 越热高光越弱（被自身辉光吞没），做出「烧红」的观感 */
  opacity: calc(0.5 - var(--coil-heat, 0) * 0.32);
  transition: d 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.3s ease;
}
/* 引脚（丝的脚）：固定冷色金属，不随热量变色 */
.coil-leg {
  fill: none;
  stroke: #9aa7b4;
  stroke-width: 4;
  stroke-linecap: round;
  transition: d 0.3s ease, stroke-width 0.3s ease;
}
/* 尺寸标注 */
.coil-dim .dim-line,
.coil-dim .dim-cap { stroke: #94a3b8; stroke-width: 1; }
.coil-dim .dim-text { fill: var(--text-2); font-size: 10px; }

/* 点火扩散已改为「热量调色」：由 mod-svg.js 逐帧调 V.setCoilHeat(t)，不再用 CSS 关键帧 */

/* 雾化器（无盖 RDA 底座）：底座平台（直接贴在主机上）+ 轻烟；不再画 510 接头 / 电极柱 / 螺丝 */
.atty-base { fill: #4a525b; stroke: rgba(255, 255, 255, 0.28); stroke-width: 0.9; }
.atty-steam-group { opacity: calc(var(--coil-heat, 0) * var(--coil-heat, 0) * 1.2); }
.atty-steam {
  fill: none;
  stroke: rgba(240, 246, 250, 0.8);
  stroke-width: 2.2;
  stroke-linecap: round;
  animation: attySteam 3.4s ease-in-out infinite;
}
.atty-steam:nth-child(2) { animation-delay: 1.1s; }
.atty-steam:nth-child(3) { animation-delay: 2.2s; }
@keyframes attySteam {
  0% { opacity: 0; transform: translateY(4px); }
  30% { opacity: 0.6; }
  70% { opacity: 0.28; }
  100% { opacity: 0; transform: translateY(-10px); }
}

.coil-legend {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.coil-status {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-color);
  text-align: left;
}
.coil-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
}
.coil-status-label { color: var(--text-muted); }
.coil-status-value { color: var(--text-primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   烟油调配
   -------------------------------------------------------------------------- */
.liq-add-btn { padding: 0.4rem 0.85rem; font-size: 0.76rem; }

.liq-flavors {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.6rem;
}
.liq-row {
  border: 1px solid var(--border-color);
  border-radius: 0.9rem;
  padding: 0.58rem;
  background: var(--surface-2);
}
.liq-row-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.liq-idx {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  border-radius: 0.45rem;
  background: var(--accent-soft);
  color: var(--pink-deep);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.liq-name { flex: 1 1 auto; }
.liq-del {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.liq-del:hover { color: var(--pink-deep); background: var(--accent-soft); }

.liq-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
@media (max-width: 520px) {
  .liq-row-grid { grid-template-columns: 1fr; }
}
.liq-mini {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.liq-empty {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 0.6rem 0 0;
}
.liq-warn {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--macaron-peach-ink);
  background: rgba(var(--macaron-peach-rgb), 0.12);
  border: 1px solid rgba(var(--macaron-peach-rgb), 0.45);
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* 油瓶 */
.bottle-panel { text-align: center; }
.bottle-wrap {
  display: flex;
  justify-content: center;
  padding: 0.4rem 0 0.6rem;
}
.bottle-svg {
  width: 150px;
  height: auto;
  --bottle-cap-1: #334155;
  --bottle-cap-2: #64748b;
  --bottle-cap-3: #e2e8f0;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}
/* 瓶身 / 刻度写死在 SVG 属性里，暗底上覆写成半透明玻璃 */
#bottle-svg rect[fill="#f8fafc"] { fill: rgba(255, 255, 255, 0.08); }
#bottle-svg rect[stroke="#d1d5db"] { stroke: rgba(255, 255, 255, 0.30); }
#bottle-svg rect[stroke="#e2e8f0"] { stroke: rgba(255, 255, 255, 0.14); }
#bottle-svg rect[stroke="#cbd5e1"] { stroke: rgba(255, 255, 255, 0.22); }
#bottle-svg line[stroke="#94a3b8"] { stroke: rgba(255, 255, 255, 0.22); }
.bottle-layer {
  /* 分层高度 / 位置变化时平滑过渡 */
  transition: y 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.15s ease;
}
@keyframes bottleBubble {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.5; }
  100% { transform: translateY(-140px); opacity: 0; }
}
.bottle-bubble {
  fill: #ffffff;
  opacity: 0;
  animation: bottleBubble 5s ease-in infinite;
}
/* 液面弯月面：顶层液体表面的一条暗线（用 style.y 定位，故可过渡） */
.bottle-meniscus {
  fill: rgba(0, 0, 0, 0.32);
  transition: y 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 切入烟油页时的「注入升起」：拉长过渡，液面慢慢涨上来 */
.bottle-svg.is-pouring .bottle-layer,
.bottle-svg.is-pouring .bottle-meniscus { transition-duration: 0.8s; }

.bottle-legend {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.5rem;
  text-align: left;
}
.bottle-legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.6rem;
  font-size: 0.72rem;
  transition: background 0.2s ease;
}
.bottle-legend-row:hover { background: var(--surface-3); }
.bottle-legend-row .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex: 0 0 auto;
}
.bottle-legend-row .nm {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bottle-legend-row .val {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.bottle-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 0.6rem;
  padding-top: 0.55rem;
}
.bottle-foot strong { color: var(--pink-deep); }

/* 称重操作单：并入左栏卡片流（宽度 = 左栏卡片），间距交给父网格 gap，不再自带外边距 */
.mix-card { margin-top: 0; }
.mix-drops {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.mix-drops .input {
  width: auto;
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
}
.mix-table-wrap { overflow-x: auto; margin-top: 0.6rem; }
.mix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.mix-table th {
  text-align: left;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.2rem 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.mix-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
.mix-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mix-table .strong { font-weight: 700; color: var(--pink-deep); }
.mix-table .dim { color: var(--text-muted); }
.mix-table .dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.mix-table tfoot td {
  border-top: 2px solid var(--border-color);
  border-bottom: 0;
  font-weight: 700;
  padding-top: 0.7rem;
}
.mix-tip {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.mix-tip strong { color: var(--pink-deep); }

.vape-disclaimer {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.vape-disclaimer strong { color: var(--macaron-peach-ink); }

/* --------------------------------------------------------------------------
   小标签：区分「进阶」与「主控」，一眼看清主次
   -------------------------------------------------------------------------- */
.pill {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  line-height: 1.5;
  white-space: nowrap;
}
.pill-adv {
  color: var(--text-3);
  background: var(--surface-3);
  border: 1px solid var(--border);
}

/* 欧姆公式提示一行 */
.formula-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: 0.72rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* 卡片内的分节小标题（如「电池组规格」） */
.sub-label {
  margin: 0.7rem 0 0.42rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   热流彩条（冷 ↔ 热）：现放在右栏「实时读数」卡内
   -------------------------------------------------------------------------- */
.heatbar {
  position: relative;
  display: flex;
  height: 12px;
  margin-top: 0.75rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.heatbar-seg { height: 100%; }
.hb-cool { flex: 20; background: #93c5fd; }
.hb-soft { flex: 20; background: #6ee7b7; }
.hb-balanced { flex: 25; background: #fcd34d; }
.hb-warm { flex: 20; background: #fb923c; }
.hb-hot { flex: 15; background: #ef4444; }
.heatbar-mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--surface);
  transform: translateX(-50%);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.heatbar-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--text-3);
  margin-top: 0.3rem;
}
.heat-verdict {
  margin-top: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}
.heat-verdict.is-cold {
  background: rgba(var(--macaron-sky-rgb), 0.12);
  border-color: rgba(var(--macaron-sky-rgb), 0.32);
  color: var(--macaron-sky-ink);
}
.heat-verdict.is-good {
  background: rgba(var(--macaron-mint-rgb), 0.12);
  border-color: rgba(var(--macaron-mint-rgb), 0.32);
  color: var(--macaron-mint-ink);
}
.heat-verdict.is-hot {
  background: rgba(var(--macaron-pink-rgb), 0.12);
  border-color: rgba(var(--macaron-pink-rgb), 0.32);
  color: var(--macaron-pink-ink);
}

/* 结论提示卡（右栏）：汇总「口感冷热 / 电池安全 / 糊芯导油」三条最终结论。
   三条复用 .heat-verdict / .batt-status，这里只负责卡片显隐与竖排间距 */
#verdict-card[hidden] { display: none; }
.verdict-list { display: grid; gap: 0.55rem; }
.verdict-list > * { margin-top: 0; }

/* 香精行的优 / 缺点小字 */
.liq-note {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--text-3);
}
.liq-note .pro { color: var(--macaron-mint-ink); }
.liq-note .con { color: var(--macaron-peach-ink); }
.liq-note.ref { color: var(--text-3); }
.liq-note.ref.is-over { color: var(--macaron-peach-ink); font-weight: 600; }

/* 调配结论卡（右栏） */
.liq-conclusion { display: grid; gap: 0.5rem; }
.liq-conc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.45rem;
}
.liq-conc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.liq-conc-row .k { color: var(--text-muted); }
.liq-conc-row .v { font-weight: 700; color: var(--text-primary); }
.liq-conc-row .v.ok { color: var(--macaron-mint-ink); }
.liq-conc-row .v.warn { color: var(--macaron-peach-ink); }
.liq-conc-row .v.danger { color: var(--macaron-pink-ink); }

/* 感官标尺（口感 / 凉感 / 甜感）：渐变轨道 + 可滑动圆点（切换时平滑过渡） */
.liq-gauge {
  position: relative;
  height: 8px;
  margin: 0.05rem 0 0.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fc8e8, #8fd6a8 35%, #f2c66b 62%, #ef8f6a 82%, #d9534f);
}
.liq-gauge-cool { background: linear-gradient(90deg, #dbeef6, #66bede 60%, #1c88b8); }
.liq-gauge-sweet { background: linear-gradient(90deg, #f3e6ef, #e79dc0 60%, #c8518b); }
.liq-gauge-knob {
  position: absolute;
  top: 50%;
  left: 4%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 底部导出按钮：保存为图片 + 复制文本 并排各占一半 */
.liq-export-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.liq-export-row .btn { width: 100%; }

/* 兑油 / 反算面板 */
.mix-layout { display: grid; gap: 0.85rem; }
@media (min-width: 980px) {
  .mix-layout { grid-template-columns: 1fr 1fr; }
  .mix-layout .mix-foot { grid-column: 1 / -1; }
}
.mix-out {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.8rem;
  background: var(--surface-2);
}
.mix-foot { margin-top: 0.2rem; }

.liq-warn p { margin: 0; }
.liq-warn p + p { margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   四段选择（线圈数：单 / 双 / 三 / 四发）—— 占满整格，等分按钮
   -------------------------------------------------------------------------- */
.seg-4 {
  width: 100%;
  justify-self: stretch;
}
.seg-4 button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.32rem 0.15rem;
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   三段选择（丝结构：单丝 / 克莱普顿 / 双芯克莱普顿）—— 占满整格，等分按钮
   -------------------------------------------------------------------------- */
.seg-3 {
  width: 100%;
  justify-self: stretch;
}
.seg-3 button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.32rem 0.15rem;
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   进阶 / 硬核折叠区（details/summary）
   -------------------------------------------------------------------------- */
.adv-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  user-select: none;
}
.adv-summary::-webkit-details-marker { display: none; }
.adv-summary::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  border-radius: 4px;
  background: var(--card-accent, var(--accent));
}
.adv-summary::after {
  content: "▸";
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-3);
  transition: transform 0.2s ease;
}
details[open] > .adv-summary::after { transform: rotate(90deg); }
.adv-body {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   次要读数（专业数值）：整体弱化，不抢主读数
   -------------------------------------------------------------------------- */
.readout--minor {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  gap: 0.5rem;
}
.readout--minor .readout-item {
  padding: 0.5rem 0.62rem;
  background: var(--surface-2);
}
.readout--minor .readout-label { font-size: 0.65rem; }
.readout--minor .readout-value.small { font-size: 0.9rem; }

/* 电池续航一条 */
.batt-runtime {
  margin-top: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.8rem;
  background: rgba(var(--macaron-mint-rgb), 0.14);
  border: 1px solid rgba(var(--macaron-mint-rgb), 0.34);
  font-size: 0.76rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.batt-runtime strong { color: var(--macaron-mint-ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   右栏「实时读数」仪表盘
   -------------------------------------------------------------------------- */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.dash-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dash-label {
  font-size: 0.66rem;
  color: var(--text-3);
}
.dash-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.dash-value em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  margin-left: 0.12rem;
}
.dash-foot {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--text-3);
}

/* 小字专业读数（发热丝表面积 / 热流密度 / 电流密度 / 升温时间）：弱化，跟在核心四宫格后面 */
.dash-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.9rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
}
.dash-mini-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  line-height: 1.5;
}
.dash-mini-label { color: var(--text-3); }
.dash-mini-label em { font-style: normal; color: var(--text-3); }
.dash-mini-value {
  color: var(--text-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==========================================================================
   本页布局微调（密度基准已上提到公共 tools/tool.css，见那里的「密度基准」注释）
   ========================================================================== */
/* 绕丝卡的「丝间距」独占整行（7 个字段在 2 列网格里会留一个空 cell） */
.field--wide { grid-column: 1 / -1; }

/* 三个次要读数并成一行（省掉半行高度；窄屏仍回落单列） */
.readout--triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) {
  .readout--triple { grid-template-columns: 1fr; }
}

/* ==========================================================================
   雾化器 + 主机（mod-svg.js / mod-skins*.js）——「雾化器坐主机」一体拟真
   按住「点火」点火、松手快速冷却；+/- 或屏幕滚轮调瓦数；屏幕「设为推荐」。
   动效兜底（prefers-reduced-motion）由公共 tools/tool.css 的全局规则负责。
   ========================================================================== */
/* 机款下拉 */
.mod-picker { display: flex; align-items: center; gap: 0.4rem; }
.mod-picker-label { font-size: 0.7rem; color: var(--text-3); }
.mod-skin-select { width: auto; min-width: 9rem; padding: 0.28rem 1.7rem 0.28rem 0.55rem; font-size: 0.74rem; }

/* 雾化器（线圈 SVG）紧贴主机上方 */
.atty-wrap { display: flex; justify-content: center; }
.atty-wrap .coil-svg { width: 100%; margin: 0.1rem 0 -0.15rem; }

/* 主机 */
.mod-wrap { margin-top: -0.2rem; }
.mod-svg {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;                 /* 触屏上别把点火手势当成页面滚动 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mod-svg .mod-shadow { fill: rgba(15, 23, 42, 0.22); filter: blur(3px); }
/* 地面双层阴影：远（散）+ 近（接触，深）—— 让机身「落」在桌面上，而不是浮着 */
.mod-svg .mod-shadow-far { fill: url(#mFloorFar); }
.mod-svg .mod-shadow-near { fill: url(#mFloorNear); }

/* ---- 机身材料 ---- */
.mod-metal { fill: url(#mMetal); }
.mod-zinc { fill: url(#mZinc); }
.mod-steel { fill: url(#mSteel); }
.mod-matte { fill: url(#mMatte); }
.mod-tube { fill: url(#mTube); }
.mod-tube-hi { fill: rgba(255, 255, 255, 0.35); }
.mod-tube-dim { fill: rgba(0, 0, 0, 0.30); }
.mod-groove { stroke: rgba(0, 0, 0, 0.5); stroke-width: 2; }
.mod-tube-cap { fill: #191d22; stroke: rgba(255, 255, 255, 0.08); stroke-width: 0.8; }
.mod-knurl { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.mod-leather { fill: url(#mLeather); }
/* 皮面板外圈钢环（面板嵌进钢框里）+ 屏幕钢座（屏嵌在钢板上） */
.mod-plate-ring { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 2; }
.mod-screen-plate { fill: #2b323a; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
/* 软触握手面板（纹理由 filter="url(#fSoftTouch)" 叠加）；车缝线 */
.mod-grip { fill: #242830; stroke: rgba(255, 255, 255, 0.06); stroke-width: 0.8; }
.mod-stitch { fill: none; stroke: rgba(228, 236, 244, 0.34); stroke-width: 1.4; stroke-dasharray: 4 4; stroke-linecap: round; }
/* 分件缝 / 门缝：一深一浅两条（缝的暗 + 倒角的光） */
.mod-seam-d { fill: none; stroke: rgba(0, 0, 0, 0.45); stroke-width: 1.4; }
.mod-seam-l { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
/* Phase 0 通用光影：斜向柔光带 + 迎光/背光边（统一光源，叠在机身上） */
.mod-sheen { fill: url(#mSheen); pointer-events: none; }
.mod-rim-l { fill: url(#mRimL); pointer-events: none; }
.mod-rim-r { fill: url(#mShadeR); pointer-events: none; }
/* 动态 RGB 灯带：待机弱亮，点火增亮 */
.mod-rgb { fill: #2f6bff; opacity: 0.5; transition: opacity 0.3s ease, fill 0.3s ease; }
.mod-svg.is-firing .mod-rgb { fill: #7fe0ff; opacity: 0.95; }
.mod-edge { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.2; }
.mod-510 { fill: #4a525b; stroke: rgba(255, 255, 255, 0.28); stroke-width: 0.8; }
.mod-ring { fill: none; stroke: #8a939c; stroke-width: 2.4; }
.mod-lock { fill: #2f353c; stroke: rgba(255, 255, 255, 0.3); stroke-width: 0.8; }
.mod-lock-knob { fill: #cfd6dd; stroke: rgba(0, 0, 0, 0.35); stroke-width: 0.6; }
.mod-side-btn { fill: url(#mBtn); stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.mod-badge { fill: rgba(240, 244, 248, 0.5); font-size: 15px; font-weight: 800; letter-spacing: 0.3em; }
.mod-brand { fill: rgba(226, 232, 240, 0.42); font-size: 8px; letter-spacing: 0.16em; }
.mod-pod { fill: rgba(210, 224, 232, 0.28); stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; }
.mod-pod-hi { fill: rgba(255, 255, 255, 0.35); }
.mod-podtip { fill: #2b3138; stroke: rgba(255, 255, 255, 0.25); stroke-width: 0.8; }

/* ---- 点火键 ---- */
.mod-fire { cursor: pointer; transition: transform 0.08s ease; }
/* Phase 2：按下点火键 → 下沉 1.2px（物理按压感） */
.mod-fire:active { transform: translateY(1.2px); }
.mod-fire-glow { fill: url(#mWarm); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
/* Phase 2：圆顶偏心高光（凸起感）→ 按下压暗；点火中改走暖光发光 */
.mod-fire-btn {
  fill: url(#mDome);
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1;
  transition: filter 0.25s ease, stroke 0.25s ease;
}
.mod-fire-inner { fill: rgba(30, 34, 39, 0.35); pointer-events: none; }
.mod-fire-txt { fill: rgba(26, 31, 36, 0.85); font-size: 9px; font-weight: 800; pointer-events: none; }
.mod-fire:active .mod-fire-btn,
.mod-fire:active .mod-side-btn { filter: brightness(0.9); }
.mod-svg.is-firing .mod-fire-glow { opacity: 0.95; }
.mod-svg.is-firing .mod-fire-btn {
  filter: drop-shadow(0 0 8px rgba(255, 150, 40, 0.95));
  stroke: rgba(255, 200, 130, 0.95);
}
.mod-svg.is-firing .mod-fire-inner { fill: rgba(255, 170, 70, 0.9); }

/* ---- 屏幕（骨架共用） ---- */
/* Phase 2：换款 / 首次渲染时屏幕「点亮」淡入（元素重建即触发，recompute 不会重播） */
@keyframes modScreenOn { 0% { opacity: 0; } 55% { opacity: 1; } 66% { opacity: .72; } 100% { opacity: 1; } }
.mod-screen { animation: modScreenOn 0.34s ease-out; }
.mod-screen-bezel { fill: #0a0d11; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.mod-screen-face { fill: url(#mScreen); }
.mod-screen-fire { fill: url(#mWarm); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.mod-svg.is-firing .mod-screen-fire { opacity: 0.26; }
/* 屏幕内凹压深 + 玻璃斜反光（放在文字之上 → 像隔着前玻璃看屏；8 款共用） */
.mod-screen-inset { fill: url(#mBezelIn); pointer-events: none; }
.mod-screen-glass { fill: url(#mGlass); pointer-events: none; }
.mod-state { fill: #6fe3c4; font-weight: 700; letter-spacing: 0.06em; }
.mod-batt rect { fill: #38424c; }
.mod-batt rect.on { fill: #6fe3c4; }
.mod-watt { fill: #eaf6ff; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; cursor: ns-resize; }
.mod-watt-u { fill: #8fb3c4; font-weight: 700; }
.mod-mini { fill: #9fd0e0; font-variant-numeric: tabular-nums; }
.mod-svg.is-firing .mod-state { fill: #ffd166; }   /* 点火中状态位显示温度 → 琥珀 */

/* 各机款屏幕风格不同：底色 + 字色各一套（拟真原厂 UI） */
.mod-screen--aegis .mod-screen-face { fill: url(#mScreen); }
.mod-screen--aegis .mod-watt { fill: #eaf6ff; }
.mod-screen--aegis .mod-state { fill: #6fe3c4; }
.mod-screen--aegis .mod-mini { fill: #9fd0e0; }

.mod-screen--drag .mod-screen-face { fill: #04070a; }
.mod-screen--drag .mod-watt { fill: #8effc8; }
.mod-screen--drag .mod-watt-u { fill: #4fd39a; }
.mod-screen--drag .mod-state { fill: #6dffb0; }
.mod-screen--drag .mod-mini { fill: #57c98f; }
.mod-screen--drag .mod-batt rect.on { fill: #6dffb0; }

.mod-screen--gen .mod-screen-face { fill: #0a0c11; }
.mod-screen--gen .mod-watt { fill: #ffffff; }
.mod-screen--gen .mod-state { fill: #9aa7ff; }
.mod-screen--gen .mod-mini { fill: #b9c2d6; }
.mod-screen--gen .mod-batt rect.on { fill: #9aa7ff; }

.mod-screen--solo .mod-screen-face { fill: #06121a; }          /* Aegis Solo 3：深青底 */
.mod-screen--solo .mod-watt { fill: #eaf6ff; }
.mod-screen--solo .mod-state { fill: #6fe3c4; }
.mod-screen--solo .mod-mini { fill: #9fd0e0; }
.mod-screen--solo .mod-batt rect.on { fill: #6fe3c4; }

.mod-screen--gen80s .mod-screen-face { fill: #0a0c11; }        /* GEN 80S：GEN 极简近黑 */
.mod-screen--gen80s .mod-watt { fill: #ffffff; }
.mod-screen--gen80s .mod-state { fill: #9aa7ff; }
.mod-screen--gen80s .mod-mini { fill: #b9c2d6; }
.mod-screen--gen80s .mod-batt rect.on { fill: #9aa7ff; }

.mod-screen--dna .mod-screen-face { fill: #0b0e12; }           /* Centaurus DNA：暗底暖橙（DNA 主题） */
.mod-screen--dna .mod-watt { fill: #ffcf8a; }
.mod-screen--dna .mod-state { fill: #ffb457; }
.mod-screen--dna .mod-mini { fill: #d9b98a; }
.mod-screen--dna .mod-batt-pct { fill: #d9b98a; font-weight: 700; }
.mod-screen--dna .mod-batt-bar { fill: rgba(255, 255, 255, 0.14); }
.mod-screen--dna .mod-batt-bar-on { fill: #ffcf8a; }

.mod-screen--gpriv .mod-screen-face { fill: url(#mTouch); }    /* G-Priv 4：满屏触控渐变底 */
.mod-screen--gpriv .mod-watt { fill: #ffffff; }
.mod-screen--gpriv .mod-state { fill: #ffd76a; }
.mod-screen--gpriv .mod-mini { fill: #cfe3ff; }
.mod-screen--gpriv .mod-batt rect.on { fill: #7fd6ff; }

.mod-screen--nunchaku .mod-screen-face { fill: #07090c; }      /* Nunchaku 电子杆：窄竖屏暗底暖色 */
.mod-screen--nunchaku .mod-watt { fill: #ffd9a0; }
.mod-screen--nunchaku .mod-state { fill: #ffb457; }
.mod-screen--nunchaku .mod-mini { fill: #d9b98a; }

/* 推荐区间 + 设为推荐（主机下方一行；不占屏幕） */
.mod-rec-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.48rem 0.7rem;
  border-radius: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.74rem;
}
.mod-rec-label { color: var(--text-3); }
.mod-rec-value { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mod-setrec-btn {
  margin-left: auto;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--macaron-mint-ink);
  background: rgba(var(--macaron-mint-rgb), 0.16);
  border: 1px solid rgba(var(--macaron-mint-rgb), 0.5);
  border-radius: 0.55rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mod-setrec-btn:hover { background: rgba(var(--macaron-mint-rgb), 0.32); }

/* ---- 加减键 / USB / pod 接口槽 ---- */
.mod-soft-btn {
  fill: #3b424b;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.15s ease, transform 0.08s ease;
}
.mod-soft-btn:hover { fill: #4b545e; }
.mod-soft-btn:active { transform: translateY(1px); }
.mod-soft-txt { fill: rgba(230, 238, 244, 0.85); font-weight: 700; pointer-events: none; }
/* 单摇杆开关（adjustment paddle）：一块摇杆，上下两段可点；命中区透明但可点 */
.mod-paddle-body { fill: #3b424b; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.mod-paddle-sep { stroke: rgba(0, 0, 0, 0.45); stroke-width: 1; }
.mod-paddle-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.mod-paddle-hit:hover { fill: rgba(255, 255, 255, 0.06); }
.mod-paddle-hit:active { fill: rgba(255, 255, 255, 0.12); }
.mod-usb { fill: #1b1f24; stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.8; }
.mod-usb-in { fill: #05070a; }
.mod-slot { fill: #10141a; stroke: rgba(255, 255, 255, 0.12); stroke-width: 0.8; }

/* 去掉主机里所有可交互控件的浏览器默认焦点白框（鼠标 / 键盘都不显示）。
   ⚠️ 用**类选择器**（不带伪类）：outline 只在获得焦点时才绘制，所以给基类写 none
      即可覆盖 :focus 与 :focus-visible 两种状态（Chrome 对 tabindex 元素鼠标点击也走
      :focus-visible，只写 :focus 会有漏网）。
   ⚠️ 新增任何可交互控件（如摇杆命中区 .mod-paddle-hit）都要补进这条，否则会冒出对不上的框。 */
.mod-fire, .mod-fire *, .mod-soft-btn, .mod-paddle-hit, .mod-paddle-hit *,
.mod-setrec-btn, .mod-skin-select { outline: none; }

