/* ==========================================================================
   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; }
  /* 右栏有三张卡（预览 / 实时读数 / 结论），可能比视口还高：
     加 max-height + 内部滚动，否则 sticky 会把最下面那张卡顶出屏幕、滚不到 */
  .vape-visual {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}

.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, 114, 182, 0.22); border-color: rgba(244, 114, 182, 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); }

/* 瓦数滑块：已滑过的部分填色（--fill 由 JS 写入） */
#coil-watt::-webkit-slider-runnable-track {
  background: linear-gradient(90deg,
    var(--card-accent, var(--accent)) 0%,
    var(--card-accent, var(--accent)) var(--fill, 0%),
    var(--surface-3) var(--fill, 0%),
    var(--surface-3) 100%);
}
#coil-watt::-moz-range-track { background: var(--surface-3); }
#coil-watt::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--card-accent, var(--accent));
}

/* 卡片标题 + 右侧按钮一行 */
.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: rgba(255, 253, 249, 0.75);
  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: rgba(255, 253, 249, 0.7);
  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.28);
  border-color: var(--macaron-mint-ink);
  color: var(--macaron-mint-ink);
  font-weight: 700;
}
.batt-status.is-warn {
  background: rgba(var(--macaron-peach-rgb), 0.28);
  border-color: var(--macaron-peach-ink);
  color: var(--macaron-peach-ink);
  font-weight: 700;
}
.batt-status.is-danger {
  background: rgba(var(--macaron-pink-rgb), 0.34);
  border-color: var(--pink-deep);
  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 写 data-heat 切换 */
  --coil-wire: #94a3b8;
  --coil-glow: rgba(148, 163, 184, 0.35);
}
.coil-svg[data-heat="soft"] { --coil-wire: #f59e0b; --coil-glow: rgba(245, 158, 11, 0.5); }
.coil-svg[data-heat="balanced"] { --coil-wire: #ea580c; --coil-glow: rgba(234, 88, 12, 0.6); }
.coil-svg[data-heat="warm"] { --coil-wire: #dc2626; --coil-glow: rgba(220, 38, 38, 0.7); }
.coil-svg[data-heat="hot"] { --coil-wire: #b91c1c; --coil-glow: rgba(185, 28, 28, 0.85); }
.coil-svg[data-heat="danger"] { --coil-wire: #7f1d1d; --coil-glow: rgba(127, 29, 29, 0.95); }

/* 底部辉光（呼吸） */
.coil-halo {
  fill: var(--coil-wire);
  opacity: 0.1;
  animation: coilPulse 3.4s ease-in-out infinite;
}
@keyframes coilPulse {
  0%, 100% { opacity: 0.07; }
  50% { opacity: 0.2; }
}

/* 后弧：绕到线圈背后的半圈 */
.coil-back {
  fill: none;
  stroke: #9aa7b4;
  stroke-width: 3;
  opacity: 0.35;
  transition: d 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 前螺旋：主发热丝 */
.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;
}
/* 前螺旋上的金属高光 */
.coil-hi {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.55;
  transition: d 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 引脚 */
.coil-leg {
  fill: none;
  stroke: var(--coil-wire);
  stroke-width: 4;
  stroke-linecap: round;
  transition: d 0.3s ease, stroke 0.4s ease;
}
/* 电极柱虚线 */
.coil-deck { stroke: #cbd5e1; stroke-width: 1.5; stroke-dasharray: 4 4; }
.coil-deck-label { fill: var(--text-muted); font-size: 10px; }
/* 尺寸标注 */
.coil-dim .dim-line,
.coil-dim .dim-cap { stroke: #94a3b8; stroke-width: 1; }
.coil-dim .dim-text { fill: var(--text-muted); font-size: 10px; }

/* 入场：绕线动画（首次 / 圈数变化时播放一次） */
@keyframes coilDraw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.coil-front,
.coil-hi {
  stroke-dasharray: 1;
  animation: coilDraw 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.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: rgba(255, 253, 249, 0.6);
}
.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: rgba(244, 114, 182, 0.16);
  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: rgba(244, 114, 182, 0.12); }

.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(255, 171, 145, 0.18);
  border: 1px solid var(--macaron-peach-ink);
  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 6px 14px rgba(120, 96, 66, 0.18));
}
.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;
}

.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: rgba(255, 253, 249, 0.8); }
.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); }

/* 称重操作单 */
.mix-card { margin-top: 1.1rem; }
.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 rgba(198, 156, 108, 0.14);
  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);
}
.pill-main {
  color: #fff;
  background: var(--macaron-peach-ink);
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.35);
}

/* 欧姆公式提示一行 */
.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;
}

/* --------------------------------------------------------------------------
   瓦数 · 发热程度（主控）
   -------------------------------------------------------------------------- */
.watt-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.watt-num { display: flex; align-items: baseline; gap: 0.2rem; }
.watt-num > span {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.watt-num > em { font-style: normal; font-size: 1rem; font-weight: 700; color: var(--text-3); }
.watt-rec {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-2);
}
/* 推荐区间：本卡最该被一眼看到的数 —— 胶囊托底 + 卡片强调色描边 + 加大加粗 */
.watt-rec .rec-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.watt-rec .rec-value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  padding: 0.14rem 0.62rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--card-accent, var(--accent));
}
.btn-xs { padding: 0.28rem 0.6rem; font-size: 0.7rem; border-radius: 8px; }

.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 #fff;
  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(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0369a1;
}
.heat-verdict.is-good {
  background: rgba(101, 158, 135, 0.12);
  border-color: rgba(101, 158, 135, 0.35);
  color: #3f6b58;
}
.heat-verdict.is-hot {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  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: #3f6b58; }
.liq-note .con { color: var(--macaron-peach-ink); }

/* --------------------------------------------------------------------------
   四段选择（线圈数：单 / 双 / 三 / 四发）—— 占满整格，等分按钮
   -------------------------------------------------------------------------- */
.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; }

/* --------------------------------------------------------------------------
   主控卡：瓦数 —— 顶部色条 + 稍强的边框，在一列卡片里第一眼看到它
   -------------------------------------------------------------------------- */
.watt-card {
  border-top: 3px solid #fb923c;
  border-color: rgba(217, 119, 6, 0.28);
  box-shadow: 0 8px 24px -12px rgba(217, 119, 6, 0.45);
}
.watt-card:hover {
  border-color: rgba(217, 119, 6, 0.42);
  box-shadow: 0 10px 28px -12px rgba(217, 119, 6, 0.5);
}

/* --------------------------------------------------------------------------
   右栏「实时读数」仪表盘
   -------------------------------------------------------------------------- */
.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);
}

/* ==========================================================================
   本页布局微调（密度基准已上提到公共 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; }
}

