/* ============ base.css：三套设计共用的「功能性」样式 ============
   只放 JS 依赖的显隐 / 展开 / 语言切换机制，不放任何视觉风格。 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { min-height: 100vh; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* 长截图导出的加载遮罩转圈（导出的那段 JS 会用；原来那里是个相机 emoji，与全站 SVG 图标不一致） */
@keyframes dsSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { @keyframes dsSpin { to { transform: none; } } }
/* 补上的图标：结果说明开头（颜色跟随结果卡状态色）、联动 / 自动计算状态条、页脚标题与赞赏语 */
.ds-c .pv-det-ico { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--st, currentColor); }
.ds-c .pv-det-ico .ico { width: 17px; height: 17px; stroke-width: 2; }
.ds-c .pv-mode-ico { width: 15px; height: 15px; margin-right: 5px; vertical-align: -2.5px; stroke-width: 2; }
.ds-c .footer-legal .card-title { margin-bottom: 10px; color: var(--ink); }
.ds-c .bottom-msg-text .pv-heart { width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px; color: var(--ink-2); }
/* 长截图生成中的全屏遮罩：中间放「保存长截图」按钮上的同一个图标，外圈一道细弧转动表示进行中 */
.ds-c .pv-shot-load { position: relative; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 22px;
  border-radius: 50%; background: var(--fill); color: var(--ink); }
.ds-c .pv-shot-load .ico { width: 30px; height: 30px; }
.ds-c .pv-shot-load i { position: absolute; inset: -6px; border-radius: 50%; border: 2.5px solid rgba(142, 154, 175, .22);
  border-top-color: var(--export-accent, currentColor); animation: dsSpin .9s linear infinite; }

/* 中英切换 */
.lang-en { display: none !important; }
body.en-mode .zh { display: none !important; }
body.en-mode .lang-en { display: unset !important; }
body.en-mode span.lang-en, body.en-mode b.lang-en { display: inline-block !important; }

/* 下拉菜单：JS 通过 .show / .is-closing 控制 */
.dropdown-container { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; z-index: 99999; min-width: 150px; max-height: 40vh; overflow-y: auto; margin-top: 6px; transform-origin: top center; }
.dropdown-menu.left { left: 0; right: auto; transform-origin: top left; }
.dropdown-menu.right { right: 0; left: auto; transform-origin: top right; }
.dropdown-menu.show { display: block; animation: dsMenuIn .22s cubic-bezier(.2, .8, .2, 1); }
.dropdown-menu.is-closing { display: block; pointer-events: none; animation: dsMenuOut .15s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes dsMenuIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dsMenuOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-4px) scale(.98); } }
.dropdown-option { display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; transition: background-color .14s ease; }

/* 使用前必看：details 展开 / 收起动画（JS 加 .closing） */
details.tutorial-details summary { list-style: none; cursor: pointer; }
details.tutorial-details summary::-webkit-details-marker { display: none; }
details.tutorial-details > div:last-child { overflow: hidden; }
details.tutorial-details[open]:not(.closing) summary .dropdown-icon { transform: rotate(180deg); }
details.tutorial-details[open]:not(.closing) > div:last-child { animation: dsOpen .32s cubic-bezier(.4,0,.2,1) forwards; }
details.tutorial-details.closing > div:last-child { animation: dsClose .32s cubic-bezier(.4,0,.2,1) forwards !important; }
@keyframes dsOpen { from { max-height: 0; opacity: 0; } to { max-height: 1200px; opacity: 1; } }
@keyframes dsClose { from { max-height: 1200px; opacity: 1; } to { max-height: 0; opacity: 0; } }
#updateBadge { display: none; }

/* 赋能子选项 / 扩展自充能：按父级激活态展开（由 __pvMorph 测量真实高度驱动平滑开合，告别 max-height:320px 空跑延迟） */
.empower-sub-options, #extraNitroContainer, #extraUltContainer, #extraPerSecContainer {
  display: none !important; flex-direction: column; overflow: hidden;
}
.empower-item.active .empower-sub-options, .empower-sub-options.is-closing,
.extra-active-nitro #extraNitroContainer, #extraNitroContainer.is-closing,
.extra-active-ult #extraUltContainer, #extraUltContainer.is-closing,
.extra-active-persec #extraPerSecContainer, #extraPerSecContainer.is-closing {
  display: flex !important;
}

/* 赞赏码 / GitHub Sponsors 随主题与语言切换 */
#imgLight { display: none; }
body.light-mode #imgDark { display: none; }
body.light-mode #imgLight { display: inline-block; }
body.en-mode #imgDark, body.en-mode #imgLight { display: none !important; }
#gh-support-link { display: none; }
body.en-mode #gh-support-link { display: inline-flex !important; }

/* Toast：使用纯 GPU 合成的 transform + opacity 弹性上浮，不触发 bottom 布局重排 */
.copy-toast { visibility: hidden; opacity: 0; position: fixed; z-index: 2147483000; left: 50%; bottom: 48px; transform: translate3d(-50%, 14px, 0) scale(.95); transition: opacity .26s cubic-bezier(.2, .8, .2, 1), transform .26s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .26s; pointer-events: none; }
.copy-toast.show { visibility: visible; opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); transition: opacity .26s cubic-bezier(.2, .8, .2, 1), transform .26s cubic-bezier(.22, 1, .36, 1), visibility 0s; }

/* 原始结果文字保留在 DOM（导出文本 / 长图都读它），视觉上由 .ds-gauge 取代 */
.result-num.ds-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 专精地图复选框：原 JS 会写行内 flex/width/font-size，新布局下统一接管 */
#specLeft, #specRight { flex: 1 1 0 !important; width: auto !important; max-width: none !important; min-width: 0; }
#specLabel { font-size: inherit !important; white-space: normal !important; height: auto !important; }

/* 数字输入：去掉步进箭头；滚轮不误改（原 JS 已处理 blur） */
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
label, .nav-btn, .dropdown-option, .card-title, .slider-header, .empower-info, .empower-sub-options { user-select: none; -webkit-user-select: none; }

/* 滑块：仅拇指可拖（沿用原站防误触设计） */
.slider-control { width: 100%; pointer-events: none; }
.slider-control::-webkit-slider-thumb { pointer-events: auto; cursor: grab; }
.slider-control::-moz-range-thumb { pointer-events: auto; cursor: grab; }

/* 移动端：车辆技能附加充能效率卡片沉底（原站行为） */
@media (max-width: 849px) {
  #topLayout { display: flex; flex-direction: column; }
  #topLayout > .desktop-col { display: contents; }
  .eff-card-mobile { order: 10; }
}

/* 性能模式 / 减弱动效 */
body.performance-mode *, body.performance-mode *::before, body.performance-mode *::after { transition: none !important; animation: none !important; }
body.performance-mode details.tutorial-details.closing > div:last-child { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ---------- 结构骨架（三套共用，只管排布） ---------- */
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.desktop-layout { display: flex; flex-direction: column; }
.desktop-col { display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 850px) { .desktop-layout { flex-direction: row; align-items: flex-start; } .desktop-col { flex: 1; } }
.row-grid { display: grid; grid-template-columns: 1fr 1fr; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.form-control { width: 100%; min-width: 0; }
.input-unit { position: absolute; pointer-events: none; }
.header { display: flex; align-items: center; }
.header h1 { margin: 0; }
.top-bar, .top-right, .top-left { display: flex; align-items: center; }
.nav-btn { display: inline-flex; align-items: center; cursor: pointer; }
.theme-ico .ico { display: none; }
body:not([data-theme-mode="light"]) .theme-ico .ico:nth-child(2) { display: inline-block; }
body[data-theme-mode="light"] .theme-ico .ico:nth-child(1) { display: inline-block; }
.tutorial-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tut-head, .tut-actions { display: flex; align-items: center; gap: 8px; }
.tut-head { flex-wrap: wrap; }
.tut-actions button { background: none; border: 0; cursor: pointer; display: flex; }
.dropdown-icon { display: flex; transition: transform .3s; }
#tutorialBtnInner { transform: none !important; box-shadow: none !important; }
.car-select { position: relative; z-index: 100; }
.car-search-box { position: relative; }
.car-search-box > .ico { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.car-filters { display: grid; grid-template-columns: 1fr 1fr; }
.car-filters .dropdown-menu, .car-list-box .dropdown-menu { width: 100%; }
#carDropdown { max-height: 52vh; }
.select-btn { width: 100%; justify-content: space-between; }
.select-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.car-info-bar { flex-wrap: wrap; align-items: center; }
#carImgWrap { position: relative; }
#carImage { display: block; margin: 0 auto; object-fit: contain; }
#carQualityBar { z-index: 2; }
#carPreviewTags, #carPreviewChips { flex-wrap: wrap; }
.card-title { display: flex; align-items: center; }
.card-title .limit-badge { margin-left: auto; }
.nitro-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 850px) { .nitro-grid { grid-template-columns: 1fr 1fr; } }
.nitro-item { display: flex; align-items: center; justify-content: space-between; }
.nitro-left { display: flex; align-items: center; flex: 1; min-width: 0; }
.nitro-left label { cursor: pointer; flex: 1; }
.nitro-right-wrapper { position: relative; display: flex; align-items: center; }
.nitro-right-unit { position: absolute; pointer-events: none; }
#specGrid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.check-line { display: flex; align-items: center; cursor: pointer; }
.slider-header { display: flex; justify-content: space-between; align-items: baseline; }
.empower-list { display: flex; flex-direction: column; }
.empower-flex { display: flex; align-items: flex-start; }
.empower-info { flex: 1; min-width: 0; display: block; cursor: pointer; }
.empower-info > label { display: block; cursor: pointer; }
.sub-row { display: flex; align-items: center; flex-wrap: wrap; }
.sub-checkbox-label { display: flex; align-items: center; cursor: pointer; }
.extra-toggle { display: flex; align-items: center; cursor: pointer; width: 100%; }
.scope-row { display: flex; flex-wrap: wrap; }
.mode-bar { display: flex; align-items: center; justify-content: space-between; }
.mode-info { flex: 1; min-width: 0; line-height: 1.45; }
.mode-btn { flex: none; cursor: pointer; max-width: 42%; }
.ds-gauge-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ds-gauge-main { display: flex; align-items: center; }
.ds-readout { display: flex; flex-direction: column; min-width: 0; }
.ds-bar { position: relative; overflow: hidden; }
.ds-bar-fill { height: 100%; width: 0; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.ds-bar-mark { position: absolute; top: 0; bottom: 0; left: 62.5%; }
.ds-ring { display: none; }
.ds-ring circle { fill: none; }
.ds-ring-fill { transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .5s cubic-bezier(.2,.8,.2,1); }
.formula-box { word-break: break-all; }
.share-btn-group { display: grid; grid-template-columns: repeat(3, 1fr); }
.share-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.social-row, .thanks-list { display: flex; flex-wrap: wrap; justify-content: center; }
.social-tag, .bug-btn { display: inline-flex; align-items: center; text-decoration: none; }
.bottom-image-wrapper { text-align: center; }
#imgDark, #imgLight { width: 320px; max-width: 80%; height: auto; aspect-ratio: 1 / 1; }
#gh-support-link { align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ds-dock { display: none; }
.ds-dock-item { display: flex; align-items: center; cursor: pointer; border: 0; font: inherit; }

/* ================= C · 车机 Cockpit =================
   思路：像一个原生 App —— 分组列表、开关、圆环读数、底部结果胶囊。
   强调色跟随所选赛车的品质（传说金 / 史诗紫 / 稀有蓝 / 普通绿），没选车时为中性灰。 */
.ds-c {
  --bg: #f2f2f6; --cell: #ffffff; --fill: #f2f2f5; --fill-2: #dcdce2; --fill-hover: #e8e8ee; --sep: #e6e6eb;
  --ink: #111114; --ink-2: #5f5f67; --ink-3: #6f6f78;
  --acc: #1d1d1f; --acc-ink: #1d1d1f; --on-acc: #fff; --flash-rgb: 29, 29, 31;
  --acc-soft: rgba(29,29,31,.07); --acc-glow: rgba(29,29,31,.07);
  --pass: #1a8f45; --pass-fill: #34c759; --fail: #d92d20; --fail-fill: #ff3b30; --warn: #8a4f00;
  --pass-soft: rgba(52,199,89,.13); --fail-soft: rgba(255,59,48,.11); --warn-soft: rgba(184,110,0,.14); --dock-2: rgba(255,255,255,.14);
  /* 勾选 / 开关用背景图绘制（不用 input::after —— html2canvas 会因此导出失败） */
  --check-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 5 8.5l4.4-4.8' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-k: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 5 8.5l4.4-4.8' fill='none' stroke='%23111114' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --knob: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11.8' r='10.2' fill='%23000' fill-opacity='.16'/%3E%3Ccircle cx='11' cy='11' r='10' fill='%23fff'/%3E%3C/svg%3E");
  --check-acc: var(--check-w);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.035);
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --sans: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  --round: "Noto Sans SC", ui-rounded, "SF Pro Rounded", "HarmonyOS Sans SC", "MiSans", system-ui, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Noto Sans SC", monospace;
}

.ds-c[data-quality="legend"] { --acc: #f2a900; --acc-ink: #9a6400; --flash-rgb: 242, 169, 0; --acc-soft: rgba(242,169,0,.14); --acc-glow: rgba(242,169,0,.22); }
.ds-c[data-quality="epic"] { --acc: #9b5de5; --acc-ink: #7a3fc4; --flash-rgb: 155, 93, 229; --acc-soft: rgba(155,93,229,.13); --acc-glow: rgba(155,93,229,.2); }
.ds-c[data-quality="rare"] { --acc: #1e90e8; --acc-ink: #0f6fb8; --flash-rgb: 30, 144, 232; --acc-soft: rgba(30,144,232,.13); --acc-glow: rgba(30,144,232,.2); }
.ds-c[data-quality="common"] { --acc: #2fb872; --acc-ink: #15814a; --flash-rgb: 47, 184, 114; --acc-soft: rgba(47,184,114,.14); --acc-glow: rgba(47,184,114,.2); }
.ds-c:not(.light-mode) {
  --bg: #000000; --cell: #1c1c1e; --fill: #2a2a2d; --fill-2: #3a3a3d; --fill-hover: #343438; --sep: #2c2c2f;
  --ink: #f5f5f7; --ink-2: #a3a3aa; --ink-3: #6c6c73;
  --acc: #8e8e93; --acc-ink: #f5f5f7; --flash-rgb: 142, 142, 147; --acc-soft: rgba(142,142,147,.16); --acc-glow: rgba(142,142,147,.14);
  --pass: #30d158; --pass-fill: #30d158; --fail: #ff453a; --fail-fill: #ff453a; --warn: #ffb340;
  --pass-soft: rgba(48,209,88,.15); --fail-soft: rgba(255,69,58,.15); --warn-soft: rgba(255,179,64,.16); --dock-2: rgba(28,28,30,.1);
  --shadow: none;
}
.ds-c:not(.light-mode)[data-quality="legend"] { --acc: #ffbf2e; --acc-ink: #ffc94d; --flash-rgb: 255, 191, 46; --acc-soft: rgba(255,191,46,.15); --acc-glow: rgba(255,191,46,.2); }
.ds-c:not(.light-mode)[data-quality="epic"] { --acc: #b77bff; --acc-ink: #c99bff; --flash-rgb: 183, 123, 255; --acc-soft: rgba(183,123,255,.15); --acc-glow: rgba(183,123,255,.2); }
.ds-c:not(.light-mode)[data-quality="rare"] { --acc: #4aaeff; --acc-ink: #6fbfff; --flash-rgb: 74, 174, 255; --acc-soft: rgba(74,174,255,.15); --acc-glow: rgba(74,174,255,.2); }
.ds-c:not(.light-mode)[data-quality="common"] { --acc: #3ccf84; --acc-ink: #5edc9b; --flash-rgb: 60, 207, 132; --acc-soft: rgba(60,207,132,.15); --acc-glow: rgba(60,207,132,.2); }
.ds-c {
  --primary: var(--acc-ink); --secondary: var(--ink); --accent: var(--fail); --success: var(--pass); --warning: var(--warn);
  --text-color: var(--ink); --text-muted: var(--ink-2); --border: var(--sep);
  --inner-bg: var(--fill); --box-bg: var(--fill); --box-bg-light: var(--fill); --input-bg: var(--fill); --card-bg: var(--cell);
  --btn-shadow: none; --nitro-active-bg: var(--acc-soft); --ult-active-bg: var(--acc-soft);
  --export-bg: var(--bg); --export-accent: var(--ink); --export-pass: var(--pass); --export-fail: var(--fail); --export-range: var(--acc);
  background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
}
.ds-c input, .ds-c button { font-family: inherit; }
.ds-c .app-container { max-width: 1320px; margin: 0 auto; padding: 14px 24px 60px; }

/* 顶栏：圆形图标按钮 */
.ds-c .top-bar { justify-content: space-between; position: relative; z-index: 1000; margin-bottom: 10px; }
.ds-c .top-right { gap: 8px; }
.ds-c .nav-btn { height: 38px; gap: 7px; padding: 0 14px; background: var(--cell); border: 0; border-radius: 999px; box-shadow: var(--shadow); color: var(--ink); font-size: 13.5px; font-weight: 600; transition: background .15s; }
.ds-c .top-bar .nav-btn:hover { background: var(--fill); }
.ds-c .top-bar #authorBtn, .ds-c .top-bar #themeBtn, .ds-c .top-bar #profileBtn { width: 38px; padding: 0; justify-content: center; }
.ds-c .top-bar .nav-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ds-c .top-bar .nav-btn .ico { width: 18px; height: 18px; }
.ds-c .dropdown-menu { background: var(--cell); border-radius: var(--r-md); padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 0 0 1px var(--sep); }
.ds-c .dropdown-option { padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink); }
.ds-c .dropdown-option .ico { width: 17px; height: 17px; color: var(--ink-2); }
.ds-c .dropdown-option:hover { background: var(--fill-hover); }
.ds-c .dropdown-option.selected { background: var(--fill); font-weight: 600; }
.ds-c .dropdown-option.sel-common { --qcs: rgba(47,184,114,.16); } .ds-c .dropdown-option.sel-rare { --qcs: rgba(30,144,232,.16); }
.ds-c .dropdown-option.sel-epic { --qcs: rgba(155,93,229,.16); } .ds-c .dropdown-option.sel-legend { --qcs: rgba(242,169,0,.18); }
.ds-c .dropdown-option[class*="sel-"] { background: var(--qcs); font-weight: 600; color: var(--ink); }
.ds-c .dropdown-option img { width: 20px !important; height: 20px !important; }
/* 浅色下这几个位置的图标：定位图标原图是「淡蓝色天平」、专精图标是「白色」剪影。
   绝不能用 invert —— 反色会把蓝色变成橙黄、白色变成纯黑（V3 设计稿原来的 invert(1) brightness(.35)
   就是这么把彩色图标弄成黑块的）。这里只压亮度、保留色相：蓝的仍是蓝、白的变成中灰，都不发死。 */
.ds-c.light-mode .dropdown-option img, .ds-c.light-mode .select-btn img { filter: brightness(.6); }

/* 大标题 */
.ds-c .header { gap: 16px; padding: 10px 2px 22px; }
.ds-c .brand-mark { width: 60px; height: 60px; border-radius: 15px; flex: none; box-shadow: 0 4px 14px rgba(80, 40, 200, .25); }
.ds-c .header h1 { font-size: 30px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.ds-c .header p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.ds-c .header p a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* 提示卡 */
.ds-c #tutorialWrapper { margin-bottom: 18px; }
.ds-c .tutorial-details { background: var(--cell); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ds-c .tutorial-details summary { padding: 14px 16px; }
.ds-c .tut-head { font-size: 15px; font-weight: 700; gap: 10px; }
.ds-c .tut-head .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); }
.ds-c #updateBadge { background: var(--fail-fill); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.ds-c .tut-actions { gap: 4px; color: var(--ink-3); }
.ds-c #closeTutorialBtn { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--ink-2); align-items: center; justify-content: center; }
.ds-c #closeTutorialBtn .ico { width: 15px; height: 15px; }
.ds-c .tut-body { padding: 0 16px 16px; }
.ds-c .tut-video { display: flex; width: fit-content; align-items: center; gap: 8px; height: 40px; padding: 0 20px; margin: 4px auto 16px; border-radius: 999px; background: var(--ink); color: var(--cell); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.ds-c .tut-notes-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; padding: 12px 0 0 40px; border-top: 1px solid var(--sep); }
.ds-c #notesContent { margin-left: 40px; }
@media (max-width: 849px) { .ds-c .tut-notes-title { padding-left: 0; } .ds-c #notesContent { margin-left: 0; } }
.ds-c #notesContent { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; padding-left: 18px; }
.ds-c #notesContent li + li { margin-top: 6px; }
.ds-c .calc-note { padding: 4px 6px 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* 版式：选车 → 基础属性 → 两个独立测算组（各自「输入 + 结果」成对，中间明显隔断） */
.ds-c .desktop-layout { gap: 16px; }
.ds-c .desktop-col { gap: 16px; }
.ds-c .cp-hero { margin-bottom: 26px; }
.ds-c .cp-base { display: flex; flex-direction: column; gap: 16px; }
.ds-c { --tray: rgba(0,0,0,.045); --tray-line: rgba(0,0,0,.06); }
.ds-c:not(.light-mode) { --tray: rgba(255,255,255,.035); --tray-line: rgba(255,255,255,.08); }
.ds-c .cp-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 34px; }
.ds-c .cp-group { background: var(--tray); border-radius: 26px; padding: 15px; border: 1px solid var(--tray-line); min-width: 0; }
.ds-c .cp-group-head { display: flex; align-items: center; gap: 10px; margin: 2px 4px 14px; }
.ds-c .cp-group-head .section-divider { padding: 0; }
.ds-c .cp-step { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--cell); font: 800 15px/1 var(--round); }
.ds-c .cp-group-body { display: flex; flex-direction: column; gap: 14px; }
.ds-c .cp-group-body > * { flex: none; }
/* 隔断：窄屏为横向分隔条，≥850px 两组左右并排、中间竖向分隔 */
/* 隔断：窄屏为横向分隔条，≥850px 两组左右并排、中间竖向分隔。
   中间原来的文字胶囊已按用户要求移除，所以 gap 归零 —— 分割线保持连续不断开。 */
.ds-c .cp-split { display: flex; align-items: center; gap: 0; margin: 22px 6px; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.ds-c .cp-split::before, .ds-c .cp-split::after { content: ""; flex: 1; height: 0; border-top: 2px dashed var(--fill-2); }
.ds-c .cp-split > span { white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: var(--cell); box-shadow: var(--shadow); }
.ds-c .cp-split-short { display: none; }
@media (min-width: 850px) {
  .ds-c .cp-calc { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; }
  .ds-c .cp-split { flex-direction: column; margin: 18px 0; font-size: 12px; }
  .ds-c .cp-split::before, .ds-c .cp-split::after { width: 0; height: auto; border-top: 0; border-left: 2px dashed var(--fill-2); }
  .ds-c .cp-split > span { writing-mode: vertical-rl; letter-spacing: 4px; padding: 12px 5px; }
  .ds-c .cp-split-long { display: none; }
  .ds-c .cp-split-short { display: inline; }
}
@media (min-width: 1100px) { .ds-c .cp-calc { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); } }
/* 开局连发测算区：桌面横跨两栏放在最下面（它用的是首发 + 循环两边的结果）；手机接在循环区后面，中间同样一道虚线分隔 */
@media (min-width: 850px) {
  .ds-c .cp-group-chain { grid-column: 1 / -1; margin-top: 22px; }
  .ds-c .cp-split-chain { display: none; }
}
.ds-c .cp-group-chain .section-divider > span::before { content: "CHAIN · 连发"; color: var(--ink-3); }
.ds-c .chain-lead { margin: -2px 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.ds-c .chain-steps { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr); align-items: stretch; margin-bottom: 14px; }
.ds-c .chain-step { --cs: var(--ink-3); position: relative; min-width: 0; padding: 12px 14px 13px; border-radius: var(--r-md); background: var(--fill);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--cs) 0%, transparent); transition: box-shadow .3s, opacity .3s; }
.ds-c .chain-step.is-ok { --cs: var(--pass); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--pass) 35%, transparent); }
.ds-c .chain-step.is-bad { --cs: var(--fail); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--fail) 45%, transparent); }
.ds-c .chain-step.is-off { opacity: .45; }
.ds-c .cs-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ds-c .cs-ico { display: inline-flex; width: 16px; height: 16px; color: var(--cs); }
.ds-c .cs-ico .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.ds-c .cs-val { margin-top: 6px; font: 800 26px/1.1 var(--round); letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.ds-c .cs-val small { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.ds-c .cs-how { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ds-c .cs-out { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--cs); font-variant-numeric: tabular-nums; }
.ds-c .cs-how:empty, .ds-c .cs-out:empty { display: none; }
.ds-c .chain-arrow { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.ds-c .chain-arrow::before { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: -3px; }
.ds-c .chain-card.is-idle { --st: var(--ink-3); --st-soft: var(--fill); }
.ds-c .chain-card.is-idle .ds-status { color: var(--ink-3); background: var(--fill); }
.ds-c .result-desc .pv-chain-need { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 599px) {
  /* 手机：三格竖排成三行 —— 左边名称，右边数值，下面一行写怎么来的 */
  .ds-c .chain-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ds-c .chain-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 11px 13px; }
  .ds-c .cs-head { grid-column: 1; }
  .ds-c .cs-val { grid-column: 2; margin-top: 0; text-align: right; font-size: 22px; }
  .ds-c .cs-how, .ds-c .cs-out { grid-column: 1 / -1; }
  .ds-c .cs-how { margin-top: 3px; }
  .ds-c .chain-arrow { height: 16px; }
  .ds-c .chain-arrow::before { transform: rotate(135deg); margin: -4px 0 0; }
}

/* 环境光背景：取当前赛车图做大半径模糊（先缩小再放大，省 GPU）+ 品质色辉光 + 细颗粒。
   只在屏幕上渲染（fixed、z-index:-1、不在 .app-container 内），长图导出仍是纯色底。 */
/* 打光颜色单独一套 token（--amb-*），不直接用 --acc-*：
   浅色跟随品质色（看着还行）；深色不用品质色 —— 没选车时留一层中性白光，选了车就把打光收掉。 */
.ds-c { --amb-glow: var(--acc-glow); --amb-soft: var(--acc-soft); }
.ds-c:not(.light-mode) { --amb-glow: rgba(255,255,255,.10); --amb-soft: rgba(255,255,255,.05); }
.ds-c:not(.light-mode).ds-has-car { --amb-glow: transparent; --amb-soft: transparent; }
.ds-c .ds-ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(55% 45% at 12% -5%, var(--amb-glow), transparent 72%),
              radial-gradient(45% 40% at 105% 35%, var(--amb-soft), transparent 70%),
              radial-gradient(60% 50% at 40% 112%, var(--amb-soft), transparent 70%); }
/* 固定像素宽度（不再用 vmax）：拖动窗口时这层的盒子不变，浏览器无需重新栅格化这块大模糊，
   这是「拖宽度卡顿」里最贵的一项；覆盖面积靠 scale(2.6)。 */
.ds-c .ds-ambient canvas { position: absolute; left: 50%; top: 30%; width: 1120px; max-width: none; height: auto; transform: translate(-50%, -50%) scale(2.6); opacity: 0; transition: opacity .9s ease; }
/* 模糊与提饱和已在 view.js 里预先画进 canvas（浅色 2.2 / 深色 1.7），这里不再用 CSS filter */
/* 换车交叉淡入：两层 A/B 轮换，view.js 把新图放到「暗着的那层」再切 .is-on —— 旧车淡出、新车淡入 */
body.ds-c .ds-ambient canvas.is-on { opacity: .55; }
/* 浅色底本身亮，模糊车辆要更实一点才看得见；.3 让背景的亮度起伏与深色模式 .55 基本持平
   （实测 浅色 .3 起伏 std 15.5 / 深色 .55 std 15.7） */
body.ds-c.light-mode .ds-ambient canvas.is-on { opacity: .3; }
/* 只有选了车才把这层提升为独立合成层（省一块大纹理），拖窗口时它就只做合成、不再重新模糊 */
body.ds-c.ds-has-car .ds-ambient canvas { will-change: transform, opacity; }
.ds-c .ds-ambient::after { content: ""; position: absolute; inset: 0; opacity: .07; background-size: 170px 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.ds-c.light-mode .ds-ambient::after { opacity: .05; }
body.ds-c.performance-mode .ds-ambient canvas { display: none; }

/* C · 分组列表与原生控件 */
.ds-c .card { background: var(--cell); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; }
.ds-c .card-title { gap: 10px; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.ds-c .limit-badge { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--fill); padding: 4px 10px; border-radius: 999px; }
.ds-c .card-hint { font-size: 13px; line-height: 1.6; margin: -6px 0 14px; color: var(--ink-2); }
.ds-c .card-hint b { display: block; color: var(--ink); font-weight: 600; }
.ds-c .section-divider { padding: 10px 4px 0; font-size: 20px; font-weight: 800; letter-spacing: -.2px; }

/* 输入：填充式圆角框 */
.ds-c .form-group { margin-bottom: 14px; }
.ds-c .form-group.flush, .ds-c .card > .form-group:last-child, .ds-c .row-grid .form-group { margin-bottom: 0; }
.ds-c .row-grid { gap: 12px; margin-bottom: 14px; }
.ds-c .card > .row-grid:last-child { margin-bottom: 0; }
.ds-c .form-label { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 6px 2px; line-height: 1.45; }
.ds-c .form-group.is-key .form-label { color: var(--ink); font-weight: 700; }
.ds-c .form-control { height: 46px; background: var(--fill); border: 0; border-radius: var(--r-md); padding: 0 44px 0 14px; color: var(--ink); font: 700 19px/1 var(--round); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s, background .15s; }
/* 原来这里还给「关键参数」的输入框加了一圈 1.5px 品级色内描边。但它跟聚焦态
   （下一行的 .form-control:focus，同样是 --acc 描边）长得一模一样，看着就像一直卡在高亮。
   去掉描边，关键字段只靠加粗变深的 label 区分。 */
.ds-c .form-control:focus { outline: none; background: var(--cell); box-shadow: inset 0 0 0 2px var(--acc); }
/* 双指缩放已放开（见 viewport）；输入控件上屏蔽双击缩放，避免填数字时画面跳动 */
input, select, textarea, button { touch-action: manipulation; }
.ds-c .input-unit { right: 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ds-c #carSearch { font: 500 15px var(--sans); padding-left: 40px; }
.ds-c #carSearch::placeholder { color: var(--ink-3); }

/* 氮气规格：磁贴 */
.ds-c .nitro-grid { gap: 8px; margin-bottom: 14px; grid-template-columns: 1fr 1fr; }
.ds-c .nitro-left label { white-space: nowrap; }
/* 选中描边用真 border 而不是 box-shadow: inset —— html2canvas 会把 inset 阴影画成 16px 粗带
   （实测隔离图 32px@scale2），长截图导出会变成一圈超粗的框。padding 减 2px 保持外框尺寸不变。 */
.ds-c .nitro-item { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; background: var(--fill); border-radius: var(--r-md); border: 2px solid transparent; transition: border-color .22s cubic-bezier(.22, 1, .36, 1), background-color .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s cubic-bezier(.22, 1, .36, 1); }
.ds-c .nitro-item.selected { background: var(--cell); border-color: var(--acc); }
.ds-c .nitro-left { gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ds-c .nitro-item.selected .nitro-left { color: var(--ink); }
.ds-c .nitro-left input[type="radio"] { appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; cursor: pointer; background: no-repeat center / 12px 12px; transition: background-color .18s ease, border-color .18s ease, transform .15s cubic-bezier(.2, .8, .2, 1); }
.ds-c .nitro-left input[type="radio"]:active { transform: scale(.86); }
.ds-c .nitro-left input[type="radio"]:checked { background-color: var(--acc); border-color: var(--acc); background-image: var(--check-acc); }
.ds-c .nitro-right-input { width: 100%; height: 34px; background: transparent; border: 0; padding: 0 22px 0 2px; color: var(--ink); font: 700 22px/1 var(--round); font-variant-numeric: tabular-nums; }
.ds-c .nitro-right-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }
.ds-c .nitro-right-unit { right: 2px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.ds-c #specGrid { gap: 12px; }
.ds-c #specLeft { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 4px; align-items: baseline; } .ds-c #specLeft > .input-wrapper { grid-column: 1 / -1; } .ds-c #actualUltTimeSpan { font-size: 12px; color: var(--pass); margin: 0 0 6px 0; white-space: nowrap; width: max-content; }
.ds-c #actualUltTimeSpan:empty { display: none; }
.ds-c .spec-box { display: flex; align-items: center; min-height: 46px; padding: 6px 12px 6px 14px; background: var(--fill); border-radius: var(--r-md); }
.ds-c .check-line { gap: 10px; font-size: 14px; color: var(--ink); line-height: 1.35; }
.ds-c #specLabel { flex-direction: row-reverse; justify-content: space-between; width: 100%; }
.ds-c .check-line.small { font-size: 13px; color: var(--ink-2); }

/* 开关（赋能 / 专精 / 扩展模块）与圆形勾选（作用范围 / 阵容） */
/* 开关旋钮 / 勾选都用背景图画（input 上不能用 ::after，否则 html2canvas 长图导出直接报错） */
.ds-c .empower-checkbox, .ds-c #isSpec, .ds-c .extra-toggle input { appearance: none; width: 44px; height: 26px; border-radius: 999px; margin: 0; flex: none; cursor: pointer; background: var(--fill-2) var(--knob) no-repeat 2px 50% / 22px 22px; transition: background-color .2s, background-position .2s cubic-bezier(.3,.7,.4,1), transform .15s cubic-bezier(.2, .8, .2, 1); }
.ds-c .empower-checkbox:not(:disabled):active, .ds-c #isSpec:active, .ds-c .extra-toggle input:active { transform: scale(.94); }
.ds-c .empower-checkbox:checked, .ds-c #isSpec:checked, .ds-c .extra-toggle input:checked { background-color: var(--acc); background-position: 20px 50%; }
.ds-c .empower-checkbox:disabled { cursor: not-allowed; }
.ds-c .scope-row input, .ds-c .sub-checkbox-label input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-3); margin: 0; flex: none; cursor: pointer; background: no-repeat center / 13px 13px; transition: background-color .18s ease, border-color .18s ease, transform .15s cubic-bezier(.2, .8, .2, 1); }
.ds-c .scope-row input:active, .ds-c .sub-checkbox-label input:active { transform: scale(.86); }
.ds-c .scope-row input:checked, .ds-c .sub-checkbox-label input:checked { background-color: var(--acc); border-color: var(--acc); background-image: var(--check-acc); }

/* 滑块 */
.ds-c .slider-wrapper { padding: 2px 0 6px; }
.ds-c .slider-wrapper + .slider-wrapper { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--sep); }
.ds-c .slider-header { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; gap: 10px; }
.ds-c .slider-value { font: 700 22px/1 var(--round); color: var(--ink); }
.ds-c .slider-control { appearance: none; height: 28px; background: transparent; margin: 0; }
.ds-c .slider-control::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--acc) var(--fill, 0%), var(--fill-2) var(--fill, 0%)); transition: filter .22s ease, box-shadow .22s ease; }
.ds-c .slider-control::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--acc) var(--fill, 0%), var(--fill-2) var(--fill, 0%)); transition: filter .22s ease, box-shadow .22s ease; }
.ds-c .slider-control::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 .5px rgba(0,0,0,.08); transition: transform .34s cubic-bezier(.34, 1.56, .64, 1), box-shadow .26s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.ds-c .slider-control::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .34s cubic-bezier(.34, 1.56, .64, 1), box-shadow .26s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .ds-c .slider-control::-webkit-slider-thumb:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 4px color-mix(in oklab, var(--acc) 16%, transparent); }
  .ds-c .slider-control::-moz-range-thumb:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 4px color-mix(in oklab, var(--acc) 16%, transparent); }
}
.ds-c .slider-control::-webkit-slider-thumb:active,
.ds-c .slider-control:active::-webkit-slider-thumb,
.ds-c .slider-control.is-jelly-dragging::-webkit-slider-thumb {
  transform: scaleX(1.18) scaleY(.90);
  cursor: grabbing;
  box-shadow: 0 3px 12px rgba(0,0,0,.32),
              0 0 0 7px color-mix(in oklab, var(--acc) 26%, transparent),
              0 0 14px color-mix(in oklab, var(--acc) 36%, transparent);
  transition: transform .12s cubic-bezier(.2, .8, .2, 1), box-shadow .16s ease;
}
.ds-c .slider-control::-moz-range-thumb:active,
.ds-c .slider-control:active::-moz-range-thumb,
.ds-c .slider-control.is-jelly-dragging::-moz-range-thumb {
  transform: scaleX(1.18) scaleY(.90);
  cursor: grabbing;
  box-shadow: 0 3px 12px rgba(0,0,0,.32),
              0 0 0 7px color-mix(in oklab, var(--acc) 26%, transparent),
              0 0 14px color-mix(in oklab, var(--acc) 36%, transparent);
  transition: transform .12s cubic-bezier(.2, .8, .2, 1), box-shadow .16s ease;
}
.ds-c .slider-control.is-jelly-dragging::-webkit-slider-runnable-track { filter: brightness(1.08); box-shadow: 0 0 10px color-mix(in oklab, var(--acc) 24%, transparent); }
.ds-c .slider-control.is-jelly-dragging::-moz-range-track { filter: brightness(1.08); box-shadow: 0 0 10px color-mix(in oklab, var(--acc) 24%, transparent); }

/* 赋能：设置列表行，开关在右 */
/* 赋能：分类分段器（复用顶部模式切换胶囊与滑块动画） */
/* 赋能分类分段器：遵循全站 mode-seg 视觉规范（毛玻璃微透，拒绝纯黑死色） */
.ds-c .empower-seg {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: var(--r-md);
  background: var(--fill);
  border: 1px solid var(--sep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.ds-c .empower-seg-thumb {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 10px;
  pointer-events: none;
  background: var(--raise);
  box-shadow: inset 0 0 0 1.5px var(--acc), 0 6px 14px -10px rgba(0, 0, 0, .45);
  transition: transform .46s cubic-bezier(.3, .8, .2, 1), width .46s cubic-bezier(.3, .8, .2, 1), height .3s, box-shadow .3s;
}

.ds-c.light-mode .empower-seg-thumb {
  background: #fff;
}

.ds-c .empower-seg-thumb.no-anim {
  transition: none !important;
}

.ds-c .empower-seg-opt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  transition: color .3s, transform .12s;
}

.ds-c .empower-seg-opt:active {
  transform: scale(.98);
}

.ds-c .empower-seg-opt.is-on {
  color: var(--ink);
  font-weight: 700;
}

.ds-c .empower-seg-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.ds-c .empower-seg-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.ds-c .empower-seg-status {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--ink-3);
  font-weight: 500;
  transition: background-color .2s, color .2s, font-weight .2s;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.ds-c.light-mode .empower-seg-status {
  background: rgba(0, 0, 0, .06);
}

.ds-c .empower-seg-status.has-pick {
  background: var(--acc-soft);
  color: var(--acc-ink);
  font-weight: 700;
}

/* 装配概览状态条（半透明毛玻璃底，胶囊徽标透光，防挤压抗折行） */
.ds-c .empower-summary-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 12px;
  background: var(--fill);
  border-radius: var(--r-sm);
  border: 1px solid var(--sep);
  font-size: 12px;
  min-width: 0;
}

.ds-c .empower-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
}

.ds-c .empower-slot .slot-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--raise);
  color: var(--ink-2);
  border: 1px solid var(--sep);
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
  line-height: 1.4;
}

.ds-c .empower-slot .slot-val {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ds-c .empower-slot .slot-val.empty {
  color: var(--ink-3);
  font-weight: normal;
}

.ds-c .empower-slot-sep {
  color: var(--ink-3);
  font-weight: bold;
  flex-shrink: 0;
}

.ds-c .empower-clear-btn {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  border: 1px solid var(--sep);
  background: var(--raise);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
}

.ds-c .empower-clear-btn:hover {
  background: var(--fail-soft);
  color: var(--fail);
  border-color: var(--fail);
}

/* PC 宽屏限高滚动与抗瘸腿：赋能面板限制最大高度，内部独立丝滑滚动，彻底杜绝把卡片顶得太长导致左侧瘸腿留白！ */
@media (min-width: 850px) {
  .ds-c .empower-tab-pane {
    max-height: 460px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--fill-2) transparent;
  }
  .ds-c .empower-tab-pane::-webkit-scrollbar {
    width: 5px;
  }
  .ds-c .empower-tab-pane::-webkit-scrollbar-track {
    background: transparent;
  }
  .ds-c .empower-tab-pane::-webkit-scrollbar-thumb {
    background: var(--fill-2);
    border-radius: 999px;
  }
  .ds-c .empower-tab-pane::-webkit-scrollbar-thumb:hover {
    background: var(--ink-3);
  }
}
@media (max-width: 849px) {
  .ds-c .empower-seg-opt {
    padding: 8px 6px;
  }
  .ds-c .empower-seg-txt {
    gap: 5px;
  }
  .ds-c .empower-seg-name {
    font-size: 12.5px;
  }
  .ds-c .empower-seg-status {
    font-size: 10.5px;
    padding: 1.5px 5px;
    max-width: 72px;
  }
  .ds-c .empower-summary-bar {
    padding: 6px 8px;
    gap: 6px;
  }
  .ds-c .empower-slot .slot-val {
    font-size: 11.5px;
  }
  .ds-c .empower-tab-pane {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--fill-2) transparent;
  }
  .ds-c .empower-tab-pane::-webkit-scrollbar {
    width: 4px;
  }
  .ds-c .empower-tab-pane::-webkit-scrollbar-thumb {
    background: var(--fill-2);
    border-radius: 999px;
  }
}

@media (max-width: 400px) {
  .ds-c .empower-seg-opt {
    padding: 7px 3px;
  }
  .ds-c .empower-seg-name {
    font-size: 11.5px;
  }
  .ds-c .empower-seg-status {
    font-size: 10px;
    padding: 1px 4px;
    max-width: 60px;
  }
}

/* 赋能流动双列排布（彻底杜绝同行拉伸留白、彻底移除 hover 闪烁、遵循全站透光视觉规范） */
.ds-c .empower-grid {
  display: block !important;
  columns: 2;
  column-gap: 8px;
}
@media (max-width: 640px) {
  .ds-c .empower-grid {
    columns: 1 !important;
  }
}

/* 赋能卡片项：完全向全站 .nitro-item 设计语言看齐，微光高光与半透明质感，杜绝纯黑死色 */
.ds-c .empower-grid .empower-item {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 11px;
  border-radius: var(--r-md);
  background: var(--fill);
  border: 1.5px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  transition: background-color .22s cubic-bezier(.22, 1, .36, 1),
              border-color .22s cubic-bezier(.22, 1, .36, 1),
              box-shadow .22s cubic-bezier(.22, 1, .36, 1),
              opacity .25s ease,
              filter .25s ease;
  vertical-align: top;
}

@media (hover: hover) and (pointer: fine) {
  .ds-c .empower-grid .empower-item:not(.is-muted-exclusive):not(.is-conflict):hover {
    background-color: var(--fill-hover);
    border-color: color-mix(in oklab, var(--acc) 38%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .3);
  }
}

/* 选中激活状态：暖金色微光渐变 + 琥珀金边框高光（100% 官方设计语言） */
.ds-c .empower-grid .empower-item.active {
  background-color: var(--raise);
  background-image: linear-gradient(180deg, color-mix(in oklab, var(--acc) 16%, transparent), transparent);
  border-color: var(--acc);
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, .4);
}
.ds-c.light-mode .empower-grid .empower-item.active {
  background-color: #fff;
}

/* 单选互斥变灰与同系冲突变灰：平滑半透明淡出，彻底变灰禁点 */
.ds-c .empower-item.is-muted-exclusive,
.ds-c .empower-item.is-conflict {
  opacity: .32 !important;
  filter: grayscale(.85) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  cursor: not-allowed;
}
.ds-c .empower-item.is-conflict {
  pointer-events: none;
}

/* 描述文字全量自然展示，彻底杜绝鼠标移入一闪一闪弹出的剧烈抖动 */
.ds-c .empower-grid .empower-info .desc {
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--ink-2);
  display: block;
  margin-top: 2px;
  word-break: break-word;
}

.ds-c .empower-info .desc strong {
  color: var(--ink);
}

.ds-c .empower-item.active .desc strong {
  color: var(--acc-ink);
}

/* 同系冲突提示信息 */
.ds-c .empower-conflict-tip {
  font-size: 10.5px;
  font-weight: 600;
  color: #ff9800;
  margin-top: 2px;
  margin-bottom: 2px;
}

.ds-c .empower-sub-options {
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--raise);
  border-radius: var(--r-sm);
  border: 1px solid var(--sep);
}

.ds-c .empower-series-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.ds-c .badge-yellow {
  color: #fbc02d;
  background: color-mix(in oklab, #fbc02d 16%, transparent);
  border: 1px solid color-mix(in oklab, #fbc02d 38%, transparent);
}
.ds-c .badge-red {
  color: #ff5252;
  background: color-mix(in oklab, #ff5252 16%, transparent);
  border: 1px solid color-mix(in oklab, #ff5252 38%, transparent);
}
.ds-c .badge-green {
  color: #4caf50;
  background: color-mix(in oklab, #4caf50 16%, transparent);
  border: 1px solid color-mix(in oklab, #4caf50 38%, transparent);
}
.ds-c .badge-purple {
  color: #ab47bc;
  background: color-mix(in oklab, #ab47bc 16%, transparent);
  border: 1px solid color-mix(in oklab, #ab47bc 38%, transparent);
}
.ds-c .empower-group-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 14px 2px 6px; display: flex; align-items: center; }
.ds-c .empower-group-title:first-of-type { margin-top: 4px; }
.ds-c .empower-head-label { display: block; cursor: pointer; margin-bottom: 4px; }
.ds-c .empower-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ds-c .empower-ico { width: 34px; height: 34px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28)); transition: transform .25s cubic-bezier(.2,.8,.25,1), filter .25s; }
.ds-c .empower-item.active .empower-ico { transform: scale(1.08); filter: drop-shadow(0 0 10px var(--acc)); }
.ds-c .empower-sp-badge { display: inline-flex; align-items: center; padding: 1px 6px; font-size: 10.5px; font-weight: 700; border-radius: 4px; color: #ff5252; background: color-mix(in oklab, #ff5252 16%, transparent); border: 1px solid color-mix(in oklab, #ff5252 38%, transparent); margin-left: 6px; vertical-align: middle; }
.ds-c .empower-calc-badge { display: inline-flex; align-items: center; padding: 1px 6px; font-size: 10.5px; font-weight: 700; border-radius: 4px; color: var(--acc-ink); background: var(--acc-soft); border: 1px solid color-mix(in oklab, var(--acc) 50%, transparent); margin-left: 6px; vertical-align: middle; }
.ds-c .empower-cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ds-c .dot-red { background-color: #ff5252; box-shadow: 0 0 6px rgba(255, 82, 82, .6); }
.ds-c .dot-green { background-color: #4caf50; box-shadow: 0 0 6px rgba(76, 175, 80, .6); }
.ds-c .dot-purple { background-color: #ab47bc; box-shadow: 0 0 6px rgba(171, 71, 188, .6); }
.ds-c .dot-yellow { background-color: #fbc02d; box-shadow: 0 0 6px rgba(251, 192, 45, .6); }
.ds-c .empower-list { margin-bottom: 16px; background: var(--fill); border-radius: var(--r-md); overflow: hidden; }
.ds-c .empower-list:last-of-type { margin-bottom: 0; }
.ds-c .empower-item { padding: 12px 14px; transition: background .2s ease, opacity .2s ease; }
.ds-c .empower-item + .empower-item { border-top: 1px solid var(--sep); }
.ds-c.light-mode .empower-item + .empower-item { border-top-color: var(--fill-2); }
.ds-c .empower-item.active { background: var(--acc-soft); }
.ds-c .empower-flex { flex-direction: row-reverse; gap: 14px; }
.ds-c .empower-checkbox-wrapper { margin-top: 2px; }
.ds-c .empower-info .title { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.ds-c .empower-info .desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.ds-c .empower-info .desc strong { color: var(--ink); }
.ds-c .empower-item.active .desc strong { color: var(--acc-ink); }
.ds-c .empower-sub-options { gap: 8px; margin-top: 10px; padding: 10px 12px; background: var(--cell); border-radius: var(--r-sm); }
.ds-c .sub-row { gap: 8px; font-size: 13px; color: var(--ink-2); }
.ds-c .sub-input { width: 54px; height: 32px; background: var(--fill); color: var(--ink); border: 0; border-radius: 8px; text-align: center; font: 700 16px var(--round); }
.ds-c .sub-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }
.ds-c .sub-checkbox-label { gap: 10px; font-size: 13.5px; color: var(--ink); }
.ds-c .empower-limit-tip { margin-top: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--fail); background: var(--fail-soft); border-radius: var(--r-sm); overflow: hidden; }

/* 扩展自充能 */
.ds-c .extra-card .card-title { margin-bottom: 10px; }
.ds-c .extra-section { background: var(--fill); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px; transition: background .2s ease; }
.ds-c .extra-section:last-child { margin-bottom: 0; }
.ds-c .extra-toggle { flex-direction: row-reverse; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ds-c .extra-active-nitro, .ds-c .extra-active-ult, .ds-c .extra-active-persec { background: var(--acc-soft); }
.ds-c .extra-body { margin-top: 12px; padding: 12px; background: var(--cell); border-radius: var(--r-sm); }
.ds-c .extra-body .form-control { background: var(--fill); }
.ds-c .scope-row { gap: 20px; margin-top: 2px; }

/* 联动 / 自动计算 */
.ds-c .mode-bar { gap: 10px; padding: 10px 10px 10px 14px; margin-bottom: 14px; background: var(--fill); border-radius: var(--r-md); font-size: 12.5px; }
.ds-c .mode-btn { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cell); font-size: 13px; font-weight: 700; line-height: 1.2; transition: opacity .15s; }
.ds-c .mode-btn:hover { opacity: .85; }

/* 车辆 */
.ds-c .car-hero { padding: 0; overflow: hidden; background: radial-gradient(72% 36% at 50% 38%, var(--acc-glow), transparent 100%), var(--cell); }
.ds-c .car-stage { position: relative; min-height: 230px; display: flex; align-items: center; justify-content: center; padding: 22px 16px 8px; }
.ds-c #carImgWrap { position: static !important; }
.ds-c #carQualityBar { display: none; }
.ds-c #carImage { max-height: 200px; filter: drop-shadow(0 16px 14px rgba(0,0,0,.22)); }
.ds-c #carPreviewPlaceholder { position: absolute; bottom: 24px; font-size: 14px; color: var(--ink-3); }
.ds-c .car-meta { padding: 12px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.ds-c .car-meta > :not(:first-child) { margin-top: 10px; }
.ds-c #carPreviewName { font-size: 20px; font-weight: 800; }
.ds-c #carPreviewTags { gap: 6px; justify-content: center; }
.ds-c #carPreviewTags > span { border-radius: 999px !important; padding: 4px 12px !important; font-size: 12.5px !important; font-weight: 600 !important; border: 0 !important; }
.ds-c #carPreviewTags > span:first-child { background: var(--acc) !important; color: var(--on-acc) !important; }
.ds-c #carPreviewTags > span:not(:first-child) { background: var(--fill) !important; color: var(--ink-2) !important; }
/* 定位 / 专精图标同理：只压亮度、保留色相（说明见 c-1-tokens.css）。原 V3 设计稿的
   invert(1) brightness(.35) 会把蓝色的定位图标和白色的专精图标一起弄成黑块。 */
.ds-c.light-mode #carPreviewTags img { filter: brightness(.6); }
.ds-c #carPreviewChips { gap: 6px; justify-content: center; }
.ds-c #carPreviewChips img { width: 30px !important; height: 30px !important; }
/* 芯片槽位图标是「为深色底设计的半透明灰色软块」（5 种图源外形都是同一个圆，只有内部纹路不同），
   浅色下直接放会是一团深色污渍、反相又变成没有边界的白块。所以：反相把盘面变浅（220 左右），
   再用两层 drop-shadow 沿它的 alpha 形状描出一圈深色轮廓（轮廓最暗 ~76）——
   实测 槽腔 221 / 轮廓清晰度 178，既保持浅色底，形状笔画又看得清。 */
/* 芯片槽位（浅色）：撤掉 contrast 阈值（它会把「形状」整块压成实心黑），
   只把原来的橙黄反色改成中性灰 —— 保持设计里那层「圆盘 + 略深一圈形状」的关系。
   注：原图里的形状是「填充区」（灰度 83 的实心块），不是描边，滤镜造不出描边；
   若要真正的黑色描边，得把这 5 种形状（○ △ ◇ ◣ V）重画成内联 SVG。 */
.ds-c.light-mode #carPreviewChips img { filter: grayscale(1) invert(1) brightness(1.3) drop-shadow(0 0 .5px rgba(0,0,0,.55)) drop-shadow(0 0 .5px rgba(0,0,0,.55)); }
.ds-c #carPreviewAutoMsg { width: 100%; text-align: left; font-size: 13px; line-height: 1.7; color: var(--pass); padding: 12px 14px; background: var(--pass-soft); border-radius: var(--r-md); }
.ds-c #carPreviewAutoMsg a { color: var(--ink) !important; }

.ds-c .car-search-box { margin-bottom: 10px; }
.ds-c .car-search-box > .ico { left: 14px; width: 17px; height: 17px; color: var(--ink-3); }
.ds-c .car-filters { gap: 10px; margin-bottom: 10px; }
.ds-c .select-btn { height: 46px; padding: 0 14px; background: var(--fill); border-radius: var(--r-md); box-shadow: none; color: var(--ink); font-size: 14px; }
.ds-c .select-btn:hover { background: var(--fill-hover); }
.ds-c .select-btn .ico { width: 16px; height: 16px; color: var(--ink-3); }
.ds-c .select-btn img { width: 18px !important; height: 18px !important; }
.ds-c .car-list-btn { height: 54px; padding: 0 12px; font-size: 16px; font-weight: 700; background: var(--cell); border: 2px solid var(--acc); }
/* 「已选车辆」那格：悬停必须看得见反馈，但又不能像之前那样把白底压成灰底（浅色下显得整块发灰）。
   改成填一层品质色淡底（--acc-soft：传说金 / 史诗紫 / 稀有蓝 / 普通绿，未选车时是中性淡灰）+ 描边保持。 */
.ds-c .car-list-btn:hover { background: var(--acc-soft); border-color: var(--acc); box-shadow: 0 6px 20px var(--acc-soft); }
.ds-c .car-info-bar { margin-top: 12px; padding: 12px 14px; gap: 4px 6px; font-size: 13px; color: var(--ink-2); background: var(--fill); border-radius: var(--r-md); }
.ds-c .car-info-bar b { color: var(--ink); }
.ds-c .car-info-bar .car-badge { background: var(--acc); color: var(--on-acc); padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* C · 结果组件 / 分享 / 页脚 / 底部胶囊 */
/* 强调色上的前景色：金 / 绿 / 深色模式下的亮色系用深色勾，其余用白勾 */
.ds-c[data-quality="legend"], .ds-c[data-quality="common"], .ds-c:not(.light-mode)[data-quality] { --on-acc: #111114; --check-acc: var(--check-k); }
.ds-c:not(.light-mode)[data-quality="none"] { --on-acc: #fff; --check-acc: var(--check-w); }

.ds-c .result-card { --st: var(--pass); --st-fill: var(--pass-fill); --st-soft: var(--pass-soft); padding: 18px; }
.ds-c .result-card.error-state { --st: var(--fail); --st-fill: var(--fail-fill); --st-soft: var(--fail-soft); }
.ds-c .result-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ds-c .result-req { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.ds-c .ds-gauge { padding: 12px 0 14px; }
.ds-c .ds-gauge-top { margin-bottom: 10px; }
.ds-c .ds-gauge-main { gap: 18px; }
.ds-c .ds-ring { display: block; width: 112px; height: 112px; flex: none; }
.ds-c .ds-ring-track { stroke: var(--fill); stroke-width: 11; }
.ds-c .ds-ring-fill { stroke: var(--st-fill); stroke-width: 11; stroke-linecap: round; }
.ds-c .ds-gauge[data-state="idle"] .ds-ring-fill { stroke: transparent; }
.ds-c .ds-readout { gap: 2px; }
.ds-c .ds-value { font: 800 40px/1.05 var(--round); letter-spacing: -.8px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ds-c .ds-value small { font-size: 18px; letter-spacing: 0; color: var(--ink-2); font-weight: 700; }
.ds-c .ds-delta { font-size: 13px; font-weight: 700; color: var(--st); }
.ds-c .ds-bar { display: none; }
.ds-c .ds-status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--st); background: var(--st-soft); }
.ds-c .ds-gauge[data-state="idle"] .ds-status { color: var(--ink-3); background: var(--fill); }
.ds-c .ds-target { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ds-c .result-desc { margin-bottom: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.65; background: var(--st-soft); border-radius: var(--r-md); }
.ds-c .result-desc b, .ds-c .result-desc strong { font-weight: 700; }
.ds-c .formula-box { padding: 12px 14px; background: var(--fill); border-radius: var(--r-md); font: 12px/1.75 var(--mono); color: var(--ink-2); }
.ds-c .formula-box b { color: var(--ink); }

/* 分享 */
.ds-c .share-block { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.ds-c .share-card { padding: 8px; }
.ds-c .share-btn-group { gap: 8px; }
.ds-c .share-btn { position: relative; gap: 8px; padding: 16px 8px; background: var(--fill); border: 1px solid transparent; border-radius: var(--r-md); color: var(--ink); font-size: 14px; font-weight: 700; transition: background-color .18s ease, border-color .22s ease, box-shadow .22s ease, color .18s ease, transform .12s cubic-bezier(.2, .8, .2, 1); }
.ds-c .share-btn:hover { background: var(--fill-hover); }
.ds-c .share-btn:active { transform: scale(.97); }
.ds-c .share-btn > .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--cell); color: var(--ink); }
.ds-c .share-btn .pv-share-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cell); color: var(--ink); transition: background-color .24s ease, color .24s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .24s ease; flex: none; }
.ds-c .share-btn .pv-share-ico .ico { position: absolute; width: 18px; height: 18px; padding: 0; border-radius: 0; background: transparent !important; color: inherit; transition: transform .26s cubic-bezier(.34, 1.56, .64, 1), opacity .18s ease; }
.ds-c .share-btn .pv-share-ico .ico-def { opacity: 1; transform: rotate(0deg) scale(1); }
.ds-c .share-btn .pv-share-ico .ico-ok  { opacity: 0; transform: rotate(90deg) scale(.42); }
.ds-c .share-btn .pv-share-txt { position: relative; display: inline-grid; place-items: center; }
.ds-c .share-btn .pv-share-txt > span { grid-area: 1 / 1; transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }
.ds-c .share-btn .pv-share-lbl-ok { opacity: 0; transform: translateY(4px); color: var(--acc); pointer-events: none; }
.ds-c .share-btn.is-copied {
  border-color: color-mix(in oklab, var(--acc) 65%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--acc) 14%, transparent), color-mix(in oklab, var(--acc) 4%, var(--fill)));
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 4px 16px -4px color-mix(in oklab, var(--acc) 28%, transparent);
}
.ds-c .share-btn.is-copied .pv-share-ico {
  background-color: var(--acc) !important;
  color: #16181e;
  transform: scale(1.06);
  box-shadow: 0 0 12px color-mix(in oklab, var(--acc) 45%, transparent);
}
.ds-c .share-btn.is-copied .pv-share-ico .ico-def { opacity: 0; transform: rotate(-90deg) scale(.42); }
.ds-c .share-btn.is-copied .pv-share-ico .ico-ok  { opacity: 1; transform: rotate(0deg) scale(1); }
.ds-c .share-btn.is-copied .pv-share-lbl-def { opacity: 0; transform: translateY(-4px); }
.ds-c .share-btn.is-copied .pv-share-lbl-ok  { opacity: 1; transform: translateY(0); }

/* 页脚 */
.ds-c .site-footer { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ds-c .footer-legal { background: var(--cell); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.ds-c .footer-legal p + p { margin-top: 8px; }
.ds-c .social-row { flex-direction: column; gap: 0; margin: 12px -4px -6px; }
.ds-c .social-tag { gap: 10px; height: 44px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); border-top: 1px solid var(--sep); }
.ds-c .social-tag .ico { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--fill); }
.ds-c .social-tag::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--ink-3); }
.ds-c .site-footer .card-title { font-size: 15px; gap: 8px; }
.ds-c .site-footer .card-title .ico { width: 18px; height: 18px; color: var(--ink-2); }
.ds-c .card-text { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; }
.ds-c .bug-btn { width: 100%; justify-content: space-between; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--cell); font-size: 14px; font-weight: 700; }
.ds-c .bug-btn > span { flex: 1; }
.ds-c .thanks-list { justify-content: flex-start; gap: 6px; margin-bottom: 12px; }
.ds-c .thanks-item { padding: 5px 12px; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 600; }
.ds-c .thanks-foot { margin: 0; }
.ds-c .bottom-image-wrapper { grid-column: 1 / -1; background: var(--cell); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 18px; }
.ds-c .bottom-msg-text { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.ds-c #imgDark, .ds-c #imgLight { border-radius: var(--r-lg); }
.ds-c #gh-support-link { height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--cell); font-weight: 700; }
.ds-c .copy-toast { background: var(--ink); color: var(--cell); padding: 12px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600; min-width: 220px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* 底部结果胶囊 · 液态玻璃
   通用层（所有浏览器）：backdrop 模糊+提饱和、半透明着色、镜面高光描边、柔和投影 —— 即使没有折射也是完整的玻璃质感。
   增强层（仅 Chromium）：view.js 按胶囊实际尺寸生成位移贴图，SVG feDisplacementMap 做边缘折射（body.ds-lg-refract）。
   Safari / Firefox 不支持 backdrop-filter: url()，自动停留在通用层。 */
.ds-c { --glass-tint: rgba(255,255,255,.55); --glass-rim: rgba(255,255,255,.95); --glass-edge: rgba(0,0,0,.08);
  --glass-shadow: 0 12px 32px rgba(20,20,40,.16), 0 2px 6px rgba(20,20,40,.08);
  --dock-ink: #111114; --dock-2: rgba(255,255,255,.72); --dock-2-rim: rgba(0,0,0,.06); --dock-hover: rgba(255,255,255,.4); --dock-sep: rgba(0,0,0,.1); }
.ds-c:not(.light-mode) { --glass-tint: rgba(40,40,46,.5); --glass-rim: rgba(255,255,255,.22); --glass-edge: rgba(255,255,255,.1);
  --glass-shadow: 0 14px 40px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
  --dock-ink: #f5f5f7; --dock-2: rgba(255,255,255,.13); --dock-2-rim: rgba(255,255,255,.08); --dock-hover: rgba(255,255,255,.06); --dock-sep: rgba(255,255,255,.14); }
.ds-c .ds-dock { display: flex; position: fixed; z-index: 1500; left: 50%; bottom: 16px; transform: translate(-50%, 0); gap: 4px; padding: 5px; border-radius: 999px; isolation: isolate;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(18px) saturate(1.9); backdrop-filter: blur(18px) saturate(1.9);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 0 1px var(--glass-edge), var(--glass-shadow);
  transition: transform .3s cubic-bezier(.3,.7,.4,1), opacity .2s; }
/* 顶部高光条：模拟曲面玻璃反光 */
.ds-c .ds-dock::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 42%); opacity: .55; }
.ds-c:not(.light-mode) .ds-dock::after { background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 45%); opacity: 1; }
/* Chromium 折射层 */
body.ds-c.ds-lg-refract .ds-dock { -webkit-backdrop-filter: none; backdrop-filter: none; }
body.ds-c.ds-lg-refract .ds-dock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  backdrop-filter: url(#ds-lg-filter) blur(3px) saturate(1.9); }
/* 注：这里原来有一条「滚动期按帧率自动摘掉边缘位移折射」的规则，已移除。
   那类帧率判据在真机上不可靠（后台切回、惯性滚动、省电降频都会让读数失真），
   所以折射改为任何时候都完整保留；用户若不想要动画，可在左上角菜单里整体关掉「动画效果」。 */
body.ds-c.ds-results-visible .ds-dock { transform: translate(-50%, 150%); opacity: 0; pointer-events: none; }
body.ds-c.performance-mode .ds-dock, body.ds-c.performance-mode .ds-dock::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.ds-c.performance-mode .ds-dock { background: var(--cell); }
@media (prefers-reduced-transparency: reduce) { .ds-c .ds-dock { background: var(--cell); } body.ds-c .ds-dock::before { backdrop-filter: none; } }
.ds-c .ds-dock-item { position: relative; z-index: 2; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; background: transparent; color: var(--dock-ink); transition: background .15s; }
/* 选中态只跟随「最后点的那一项」（view.js 切 .is-active）；悬停只在有鼠标的设备生效，避免触屏点完后 :hover 粘住 */
.ds-c .ds-dock-item.is-active { background: var(--dock-2); box-shadow: inset 0 0 0 1px var(--dock-2-rim); }
@media (hover: hover) { .ds-c .ds-dock-item:not(.is-active):hover { background: var(--dock-hover); } }
.ds-c .ds-dock-item:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.ds-c .ds-dock-item:not(.is-gone) ~ .ds-dock-item:not(.is-gone)::after { content: ""; position: absolute; left: -3px; top: 12px; bottom: 12px; width: 1px; background: var(--dock-sep); transition: opacity .15s; }
.ds-c .ds-dock-item.is-active + .ds-dock-item::after, .ds-c .ds-dock-item + .ds-dock-item.is-active::after { opacity: 0; }
.ds-c .ds-dock-item::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.ds-c .ds-dock-item[data-state="pass"]::before { background: var(--pass-fill); box-shadow: 0 0 0 3px rgba(52,199,89,.2); }
.ds-c .ds-dock-item[data-state="fail"]::before { background: var(--fail-fill); box-shadow: 0 0 0 3px rgba(255,59,48,.2); }
.ds-c .ds-dock-k { font-size: 12.5px; font-weight: 600; opacity: .7; white-space: nowrap; }
.ds-c .ds-dock-v { font: 800 17px var(--round); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-c .copy-toast { bottom: 82px; }

@media (max-width: 849px) {
  .ds-c .app-container { padding: 12px 14px 96px; }
  .ds-c .top-bar #langBtnText { display: none; }
  .ds-c .top-bar #langToggleBtn { width: 38px; padding: 0; justify-content: center; }
  .ds-c .header { padding: 8px 2px 18px; gap: 12px; }
  .ds-c .brand-mark { width: 52px; height: 52px; border-radius: 13px; }
  .ds-c .header h1 { font-size: 23px; }
  .ds-c .card { padding: 16px; }
  .ds-c .car-hero { padding: 0; }
  .ds-c .share-card { padding: 8px; }
  .ds-c .site-footer { grid-template-columns: 1fr; }
  .ds-c .ds-ring { width: 96px; height: 96px; }
  .ds-c .ds-value { font-size: 36px; }
  .ds-c .share-btn { font-size: 12.5px; }
  .ds-c #specGrid { grid-template-columns: 1fr; } .ds-c #specLeft { display: block; } .ds-c #actualUltTimeSpan { max-width: 100%; }
}

/* =====================================================================
   C-4 · V4 视觉层（叠加在 c-1/2/3 之后，不改任何 id / class）
   由 build.mjs 按文件名排序自动收集进正式版 <style>。
   核心思路：
   1) 卡片从「不透明纯色」改成「带品质色调的半透明玻璃」——背景本身已经是模糊过的车图，
      所以卡片不需要 backdrop-filter，纯 alpha 透出即可，零额外 GPU 成本。
   2) 背景从「一块固定的光」改成「随滚动漂移的分区光」：首发区=点火橙，循环区=回路青。
   3) 首屏车辆在手机上去掉卡片框、出血铺满，品质字样做描边大字作为舞台背景。
   4) 结果卡成为每个测算区的视觉主角：状态色辉光 + 270° 转速表式读数（JS 在 proto.js）。
   ===================================================================== */

/* ---------- 字体：由 <head> 里那份 npmmirror（国内可直连）分片 CSS 提供，详见那几行注释 ----------
   手机装了第三方系统字体时，system-ui / sans-serif 都会被替换；指定这一套后各设备显示一致。 */
.ds-c select, .ds-c textarea { font-family: inherit; }

/* ---------- 0. 新 token ---------- */
.ds-c {
  --zone-first: #ff8a1f;            /* 首发 · 点火橙 */
  --zone-loop: #14c4e3;             /* 循环 · 回路青 */
  --surface: rgba(255, 255, 255, .74);
  --surface-rim: rgba(255, 255, 255, .95);
  --surface-edge: rgba(20, 24, 40, .06);
  --surface-drop: 0 14px 34px -18px rgba(30, 34, 70, .22);
  --raise: rgba(255, 255, 255, .78);
  --fill: rgba(118, 118, 128, .11); --fill-2: rgba(118, 118, 128, .22); --fill-hover: rgba(118, 118, 128, .16);
  --sep: rgba(60, 60, 67, .12);
}
.ds-c:not(.light-mode) {
  --bg: #05060a;
  --surface: rgba(22, 23, 29, .62);
  --surface-rim: rgba(255, 255, 255, .09);
  --surface-edge: rgba(255, 255, 255, .055);
  --surface-drop: 0 22px 44px -22px rgba(0, 0, 0, .7);
  --raise: rgba(255, 255, 255, .075);
  --fill: rgba(255, 255, 255, .065); --fill-2: rgba(255, 255, 255, .16); --fill-hover: rgba(255, 255, 255, .1);
  --sep: rgba(255, 255, 255, .08);
}
/* 表面带一点当前赛车的品质色（传说金 / 史诗紫 / 稀有蓝 / 普通绿），整页跟着车「换皮」 */
@supports (color: color-mix(in oklab, red, blue)) {
  .ds-c:not(.light-mode) { --surface: color-mix(in oklab, var(--acc) 8%, rgba(18, 19, 25, .6)); }
  .ds-c.light-mode { --surface: color-mix(in oklab, var(--acc) 3%, rgba(255, 255, 255, .86)); }
}

/* ---------- 1. 玻璃卡片 ---------- */
.ds-c .card, .ds-c .tutorial-details, .ds-c .footer-legal, .ds-c .bottom-image-wrapper {
  background-color: var(--surface);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 140px);
  box-shadow: inset 0 1px 0 var(--surface-rim), inset 0 0 0 1px var(--surface-edge), var(--surface-drop);
}
.ds-c.light-mode .card, .ds-c.light-mode .tutorial-details, .ds-c.light-mode .footer-legal, .ds-c.light-mode .bottom-image-wrapper { background-image: none; }
/* 顶栏三个按钮（菜单 / 主题 / 语言）：与卡片同一套半透明玻璃，不再是实心块 */
.ds-c .top-bar .nav-btn {
  background-color: var(--surface);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 var(--surface-rim), inset 0 0 0 1px var(--surface-edge), var(--surface-drop);
  transition: background-color .15s, transform .15s;
}
.ds-c.light-mode .top-bar .nav-btn { background-image: none; }
.ds-c .top-bar .nav-btn:hover { background-color: var(--surface); background-image: linear-gradient(var(--fill-hover), var(--fill-hover)); }
.ds-c .top-bar .nav-btn:active { transform: scale(.96); }
/* 「动画效果」开关：菜单项右侧一个迷你开关（与页面里其他开关同一套画法，只是缩小一号），
   不再用写着「开 / 关」的胶囊 —— 那颗胶囊太占宽度，会把「动画效果」挤成两行。 */
.ds-c #authorMenu .dropdown-option { white-space: nowrap; }
.ds-c .pv-fx-opt .pv-fx-sw {
  flex: none; width: 36px; height: 22px; margin-left: auto; border-radius: 999px;
  background: var(--fill-2) var(--knob) no-repeat 2px 50% / 18px 18px;
  transition: background-color .2s, background-position .2s cubic-bezier(.3, .7, .4, 1);
}
.ds-c .pv-fx-opt .pv-fx-sw.on { background-color: var(--acc); background-position: 16px 50%; }
.ds-c .pv-fx-opt { gap: 10px; }
.ds-c .pv-fx-opt > span.zh, .ds-c .pv-fx-opt > span.lang-en { margin-right: 14px; }
/* 卡片里的「凸起层」也改成半透明，避免在玻璃上出现一块块实心黑洞 */
.ds-c:not(.light-mode) .nitro-item.selected,
.ds-c:not(.light-mode) .empower-sub-options,
.ds-c:not(.light-mode) .extra-body,
.ds-c:not(.light-mode) .car-list-btn,
.ds-c:not(.light-mode) .share-btn > .ico,
.ds-c:not(.light-mode) .share-btn .pv-share-ico,
.ds-c:not(.light-mode) .cp-split > span { background-color: var(--raise); }
.ds-c .nitro-item.selected { background-image: linear-gradient(180deg, color-mix(in oklab, var(--acc) 16%, transparent), transparent); }

/* ---------- 2. 背景：分区光随滚动漂移 ---------- */
.ds-c .ds-ambient {
  background:
    radial-gradient(70% 42% at 50% -6%, color-mix(in oklab, var(--acc) 26%, transparent), transparent 72%),
    radial-gradient(55% 40% at 108% 30%, color-mix(in oklab, var(--acc) 12%, transparent), transparent 70%),
    var(--bg);
}
.ds-c.light-mode .ds-ambient {
  background:
    radial-gradient(70% 42% at 50% -6%, color-mix(in oklab, var(--acc) 22%, transparent), transparent 72%),
    radial-gradient(55% 40% at 108% 30%, color-mix(in oklab, var(--acc) 10%, transparent), transparent 70%),
    #f3f4f8;
}
body.ds-c .ds-ambient canvas.is-on { opacity: .62; }
body.ds-c.light-mode .ds-ambient canvas.is-on { opacity: .34; }
/* 分区光：三团随滚动漂移的光（首发 / 循环 / 基础属性），统一画在一块低分辨率画布上 ——
   绘制逻辑见 view.js 里的 dsZoneGlow。三团光的 keyframes（位置 / 缩放 / 透明度）与原来逐项一致，
   包括缩放那点「呼吸」都保留了。

   为什么换实现：原来是三个带 scale(7.5) 与 will-change 的 fixed 伪元素，每一个都是独立合成层，
   光栅化尺寸约 2700×2700 物理像素，三块合计接近 87MB 纹理，每帧都要重新合成一遍。
   这正是套壳内核（Via / 系统 WebView）下顿挫的根源 —— 真机实测：只关掉这三团光就恢复顺滑，
   而帧率读数一直 100+，说明卡在合成器而不是主线程，「掉帧才降级」那类兜底根本察觉不到它。
   画布方案把三团光并成一层、内部按 1/2 分辨率绘制，纹理降到几百 KB，外观不变：
   颜色 / 位置 / 大小 / 透明度曲线照旧，浅色模式下的 multiply 合成也保留。 */
.ds-c .ds-zoneglow {
  position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity .6s ease;
}
.ds-c .ds-zoneglow.is-on { opacity: 1; }
.ds-c.light-mode .ds-zoneglow { mix-blend-mode: multiply; }
.ds-c.performance-mode .ds-zoneglow { display: none; }
@media (prefers-reduced-motion: reduce) { .ds-c .ds-zoneglow { display: none; } }

/* ---------- 3. 区块标题：中英双层 kicker，给每段一个身份 ---------- */
.ds-c .section-divider > span::before {
  display: block; margin-bottom: 4px;
  font: 800 10.5px/1 var(--round); letter-spacing: .22em; color: var(--ink-3);
}
.ds-c .cp-base .section-divider > span::before { content: "SETUP · 基础"; }
.ds-c .cp-group-first .section-divider > span::before { content: "IGNITION · 首发"; color: var(--zone-first); }
.ds-c .cp-group-loop .section-divider > span::before { content: "LOOP · 循环"; color: var(--zone-loop); }
.ds-c .share-block .section-divider > span::before { content: "EXPORT · 分享"; }

/* ---------- 4. 首屏车辆：手机上出血铺满 + 品质描边大字舞台 ---------- */
.ds-c .car-stage { isolation: isolate; overflow: hidden; }
.ds-c .car-stage::before {      /* 地面聚光 */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: 6%; width: 86%; height: 34%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--acc) 55%, transparent), transparent);
  opacity: .55;
}
.ds-c .car-stage::after {       /* 品质描边大字 */
  position: absolute; z-index: -1; left: 0; right: 0; top: 8%; text-align: center; white-space: nowrap;
  font: 900 clamp(64px, 22vw, 120px)/1 var(--round); letter-spacing: .04em; font-style: italic;
  color: transparent; -webkit-text-stroke: 1.2px color-mix(in oklab, var(--acc) 60%, transparent); opacity: .55;
}
.ds-c[data-quality="legend"] .car-stage::after { content: "LEGEND"; }
.ds-c[data-quality="epic"] .car-stage::after { content: "EPIC"; }
.ds-c[data-quality="rare"] .car-stage::after { content: "RARE"; }
.ds-c[data-quality="common"] .car-stage::after { content: "COMMON"; }
.ds-c #carImage { position: relative; }
.ds-c #carPreviewName { font-size: 22px; letter-spacing: -.2px; }
@media (max-width: 849px) {
  .ds-c .car-hero { background: transparent !important; background-image: none !important; box-shadow: none !important; margin: 0 -14px; border-radius: 0; }
  .ds-c .car-stage { min-height: 250px; padding-top: 18px; }
  .ds-c #carImage { max-height: 230px; transform: scale(1.1); }
  .ds-c .car-meta { padding: 4px 18px 8px; }
  .ds-c #carPreviewAutoMsg { background: color-mix(in oklab, var(--pass) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--pass) 22%, transparent); }
}

/* ---------- 5. 两个测算区：分区色托盘 + 发光序号 ---------- */
.ds-c .cp-group-first { --zone: var(--zone-first); }
.ds-c .cp-group-loop { --zone: var(--zone-loop); }
.ds-c .cp-group {
  position: relative;
  background: linear-gradient(180deg, color-mix(in oklab, var(--zone) 13%, transparent), transparent 320px), var(--tray);
  border-color: color-mix(in oklab, var(--zone) 30%, transparent);
}
.ds-c .cp-group::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--zone), transparent);
}
.ds-c .cp-step {
  background: var(--zone); color: #0b0b0e;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--zone) 22%, transparent), 0 0 22px color-mix(in oklab, var(--zone) 55%, transparent);
}

/* ---------- 6. 结果卡：状态色辉光，成为每个区的主角 ---------- */
.ds-c .result-card {
  background-color: var(--surface);
  background-image: radial-gradient(120% 60% at 0% 0%, color-mix(in oklab, var(--st-fill) 20%, transparent), transparent 62%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--st-fill) 32%, transparent), inset 0 1px 0 var(--surface-rim),
              0 24px 50px -26px color-mix(in oklab, var(--st-fill) 55%, transparent);
}
.ds-c .ds-gauge[data-state="idle"] { --st-fill: var(--ink-3); }
.ds-c .ds-ring-fill { filter: drop-shadow(0 0 5px color-mix(in oklab, var(--st-fill) 70%, transparent)); }
.ds-c .ds-value { font-size: 44px; }
@media (max-width: 849px) { .ds-c .ds-value { font-size: 40px; } }

/* ---------- 7. 可读性修正 ---------- */
/* 运算解析盒：不再逐字符硬折（3\n5.260 / nit\nros），等宽改为 tabular 数字的无衬线 */
.ds-c .formula-box { word-break: normal; overflow-wrap: anywhere; font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 12.5px; line-height: 1.8; }
/* 单位「个」在小号浅灰下像一个 ↑ 箭头：提高对比 */
.ds-c .input-unit { color: var(--ink-2); font-size: 13.5px; }
/* 标题副文：中文不在词中间断行 */
.ds-c .header p { word-break: keep-all; overflow-wrap: anywhere; }
/* 被互斥锁住的赋能：0.4 透明度下几乎读不出来 */
.ds-c .empower-item[style*="opacity: 0.4"] { opacity: .58 !important; }

/* ---------- 8. 底部胶囊 ---------- */
/* 标签文字保持中性墨色（不用分区色）；状态点沿用 V3：达成绿点、失败红点 */
/* 打开下拉 / 正在输入时让位，不再盖住车辆列表与软键盘上方的输入框 */
body.ds-c:has(.dropdown-menu.show) .ds-dock,
body.ds-c:has(input[type="number"]:focus, input[type="text"]:focus) .ds-dock { transform: translate(-50%, 150%); opacity: 0; pointer-events: none; }

/* ---------- 9. 手机端渐进披露（proto.js 给低频卡片加 .pv-collapsible） ---------- */
.ds-c .pv-collapsible > .card-title { cursor: pointer; }
.ds-c .pv-collapsible > .card-title::after {
  content: ""; width: 22px; height: 22px; margin-left: 8px; flex: none; border-radius: 50%;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 14px;
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.ds-c .pv-collapsible:not(.pv-shut) > .card-title::after { transform: rotate(180deg); }
.ds-c .pv-collapsed > :not(.card-title) { display: none !important; }
.ds-c .pv-collapsed > .card-title { margin-bottom: 0; }
.ds-c .pv-sum { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.ds-c .pv-sum.on { color: var(--acc-ink); }
.ds-c .pv-collapsible .limit-badge { margin-left: 8px; }

/* ---------- V4.1 微调 ---------- */
/* 手机：环境光车图放到视口中部、更饱和，让每一屏卡片后面都有颜色起伏 */
@media (max-width: 849px) {
  .ds-c .ds-ambient canvas { top: 48%; }
  body.ds-c:not(.light-mode) .ds-ambient canvas.is-on { opacity: .72; }
}
/* 浅色：凸起层与标签保持实白，避免「脏玻璃」发灰 */
.ds-c.light-mode #carPreviewTags > span:not(:first-child),
.ds-c.light-mode .nitro-item.selected,
.ds-c.light-mode .car-list-btn { background-color: rgba(255,255,255,.9) !important; }
.ds-c.light-mode .car-stage::after { -webkit-text-stroke-color: color-mix(in oklab, var(--acc) 75%, transparent); opacity: .5; }
.ds-c.light-mode .car-stage::before { opacity: .8; }
/* 卡片标题与徽标在窄屏换行时，徽标单独一行，不再把标题挤成两行 */
@media (max-width: 480px) {
  .ds-c .card-title:has(.limit-badge) { flex-wrap: wrap; row-gap: 6px; }
  .ds-c .card-title:has(.limit-badge) .limit-badge { margin-left: 0; order: 3; flex-basis: auto; }
  .ds-c .pv-collapsible .card-title:has(.limit-badge) .limit-badge { display: none; }
}
/* 第三团光（基础属性区那团品质色光）也并进上面那块画布了，不再需要这个伪元素。 */

/* ---------- 分区标识去掉橙 / 青：只留品质色，测算区回到中性 ---------- */
.ds-c { --zone-first: var(--acc); --zone-loop: var(--acc); }
.ds-c .cp-group-first .section-divider > span::before,
.ds-c .cp-group-loop .section-divider > span::before { color: var(--ink-3); }
.ds-c .cp-step { background: var(--ink); color: var(--cell); box-shadow: none; }
.ds-c .cp-group { background: var(--tray); border-color: var(--tray-line); }
.ds-c .cp-group::before { display: none; }
/* 随滚动的背景光：一团品质色 + 一团中性白光，靠明暗起伏而不是换色 */
body.ds-c:not(.light-mode)::after { background: radial-gradient(closest-side, rgba(255, 255, 255, .2), transparent); }

/* ---------- 下拉菜单也换成玻璃材质 ----------
   下拉浮在内容上方，单靠半透明会让底下的文字透出来、读不清，
   所以这里用真正的 backdrop-filter 模糊（菜单面积小、只在打开时存在，成本可以忽略）。 */
.ds-c { --menu-bg: rgba(255, 255, 255, .72); --menu-rim: rgba(255, 255, 255, .9); --menu-edge: rgba(20, 24, 40, .08); }
.ds-c:not(.light-mode) { --menu-bg: rgba(30, 31, 38, .66); --menu-rim: rgba(255, 255, 255, .1); --menu-edge: rgba(255, 255, 255, .07); }
@supports (color: color-mix(in oklab, red, blue)) {
  .ds-c:not(.light-mode) { --menu-bg: color-mix(in oklab, var(--acc) 8%, rgba(26, 27, 34, .66)); }
  .ds-c.light-mode { --menu-bg: color-mix(in oklab, var(--acc) 3%, rgba(255, 255, 255, .74)); }
}
.ds-c .dropdown-menu {
  background-color: var(--menu-bg);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 120px);
  -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: inset 0 1px 0 var(--menu-rim), inset 0 0 0 1px var(--menu-edge), 0 18px 48px rgba(0, 0, 0, .28);
}
.ds-c.light-mode .dropdown-menu { background-image: none; box-shadow: inset 0 1px 0 var(--menu-rim), inset 0 0 0 1px var(--menu-edge), 0 16px 40px rgba(30, 34, 70, .18); }
/* 不支持 backdrop-filter / 性能模式 / 减弱透明度：退回实色，保证可读 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ds-c .dropdown-menu { background-color: var(--cell); } }
body.ds-c.performance-mode .dropdown-menu { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--cell); }
@media (prefers-reduced-transparency: reduce) { .ds-c .dropdown-menu { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--cell); } }
/* 菜单里的悬停 / 选中底色同样用半透明填充 */
.ds-c .dropdown-option:hover { background: var(--fill-hover); }
.ds-c .dropdown-option.selected { background: var(--fill); }
/* 聚焦的输入框：深色下不再变成一块实心深灰 */
.ds-c:not(.light-mode) .form-control:focus { background: var(--raise); }

/* =====================================================================
   第二轮：表情换图标 / 芯片图形 / 字重 / 手机选车面板 / 步进按钮 / 页面压缩 / 长截图
   ===================================================================== */

/* ---------- 字重减负：标题不再一律特粗，只有结果数字保留 800 ---------- */
.ds-c .header h1 { font-weight: 700; }
.ds-c .section-divider { font-weight: 700; }
.ds-c .card-title { font-weight: 600; }
.ds-c #carPreviewName { font-weight: 700; }
.ds-c .form-group.is-key .form-label { font-weight: 600; }
.ds-c .nitro-left { font-weight: 500; }
.ds-c .nitro-item.selected .nitro-left { font-weight: 600; }
.ds-c .empower-info .title { font-weight: 500; }
.ds-c .extra-toggle { font-weight: 500; }
.ds-c .tut-head { font-weight: 600; }
.ds-c .tut-video, .ds-c .mode-btn, .ds-c .share-btn, .ds-c .bug-btn, .ds-c #gh-support-link, .ds-c .car-list-btn { font-weight: 600; }
.ds-c .limit-badge, .ds-c .result-req, .ds-c .social-tag, .ds-c .thanks-item, .ds-c .copy-toast { font-weight: 500; }
.ds-c .ds-status, .ds-c .ds-delta { font-weight: 600; }
.ds-c .cp-step { font-weight: 700; }
.ds-c .section-divider > span::before { font-weight: 700; }
.ds-c .pv-arc .pv-arc-lbl { font-weight: 700; }

/* ---------- 图标：提示条 / 选车提示 / 未上线车辆 ---------- */
.ds-c .pv-toast { display: inline-flex; align-items: center; gap: 8px; }
.ds-c .pv-toast .ico { width: 18px; height: 18px; flex: none; }
.ds-c .pv-warn { width: 15px; height: 15px; margin: 0 4px 0 0; vertical-align: -2px; }
.ds-c .pv-q { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- 芯片槽位：线性图形 ---------- */
.ds-c .pv-chip { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--fill); box-shadow: inset 0 0 0 1px var(--sep); color: var(--ink-2); }
.ds-c .pv-chip svg { width: 18px; height: 18px; display: block; }

/* ---------- 整数输入的 − / + ---------- */
.ds-c .pv-has-step .form-control { padding-right: 104px; }
.ds-c .pv-has-step .input-unit { right: 86px; }
.ds-c .pv-step { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.ds-c .pv-step-btn, .ds-c .pv-sub-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; border: 0; cursor: pointer;
  background: var(--raise); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sep); transition: transform .1s, background .15s; }
.ds-c.light-mode .pv-step-btn, .ds-c.light-mode .pv-sub-btn { background: #fff; }
.ds-c .pv-step-btn { width: 34px; height: 34px; border-radius: 10px; }
.ds-c .pv-sub-btn { width: 30px; height: 30px; border-radius: 50%; }
.ds-c .pv-step-btn .ico, .ds-c .pv-sub-btn .ico { width: 15px; height: 15px; }
.ds-c .pv-step-btn:active, .ds-c .pv-sub-btn:active { transform: scale(.92); background: var(--fill-hover); }
.ds-c .sub-row { gap: 6px; }

/* ---------- 手机端：计算过程默认收起 ---------- */
.ds-c .pv-fold-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; border: 0; border-radius: var(--r-md);
  background: var(--fill); color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
.ds-c .pv-fold-btn { transition: margin-bottom .3s cubic-bezier(.2,.8,.2,1); }
.ds-c .pv-fold-btn .ico { width: 15px; height: 15px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ds-c .pv-fold-btn.open { margin-bottom: 8px; }
.ds-c .pv-fold-btn.open .ico { transform: rotate(180deg); }
.ds-c .formula-box.pv-fold-closed { display: none; }

/* ---------- 手机端：页脚合并成一张卡 ---------- */
.ds-c .pv-mini-details > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ds-c .pv-mini-details > summary::-webkit-details-marker { display: none; }
.ds-c .pv-mini-details > summary .ico { width: 14px; height: 14px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ds-c .pv-mini-details[open]:not(.pv-closing) > summary .ico { transform: rotate(180deg); }
/* 使用须知：原站的 max-height 关键帧动画交给 v4.js 的真实高度动画（.pv-js 由脚本加上，脚本不可用时仍走原动画） */
details.tutorial-details.pv-js > div:last-child { animation: none !important; }
details.tutorial-details.pv-js.pv-closing summary .dropdown-icon { transform: none; }
@media (max-width: 849px) {
  .ds-c .site-footer { gap: 0; margin-top: 24px; padding: 2px 16px; border-radius: var(--r-lg);
    background-color: var(--surface); background-image: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 140px);
    box-shadow: inset 0 1px 0 var(--surface-rim), inset 0 0 0 1px var(--surface-edge), var(--surface-drop); }
  .ds-c.light-mode .site-footer { background-image: none; }
  .ds-c .site-footer > .card, .ds-c .site-footer > .footer-legal, .ds-c .site-footer > .bottom-image-wrapper {
    background: none !important; box-shadow: none !important; border-radius: 0; padding: 16px 0; }
  .ds-c .site-footer > * + * { border-top: 1px solid var(--sep); }
  .ds-c .site-footer .card-text { margin-bottom: 10px; }
  .ds-c .bottom-msg-text { font-size: 13px; margin-bottom: 12px; }
  .ds-c #imgDark, .ds-c #imgLight { width: 176px; }
  .ds-c .share-block { margin-top: 24px; }
}

/* ---------- 手机选车：底部整屏面板 ---------- */
.pv-sheet, .pv-sheet-mask { display: none; }
.ds-c .pv-thumb { display: none; }
@media (max-width: 849px) {
  .ds-c .pv-sheet-mask { display: block; position: fixed; inset: 0; z-index: 4000; background: rgba(0, 0, 0, .42); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.ds-c.pv-sheet-open .pv-sheet-mask { opacity: 1; pointer-events: auto; }
  .ds-c .pv-sheet.dropdown-container { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; top: 7vh; z-index: 4001;
    border-radius: 22px 22px 0 0; background-color: var(--menu-bg);
    -webkit-backdrop-filter: blur(30px) saturate(1.7); backdrop-filter: blur(30px) saturate(1.7);
    box-shadow: inset 0 1px 0 var(--menu-rim), 0 -12px 40px rgba(0, 0, 0, .35);
    transform: translateY(102%); visibility: hidden; transition: transform .34s cubic-bezier(.2, .8, .2, 1), visibility 0s .34s; }
  body.ds-c.pv-sheet-open .pv-sheet.dropdown-container { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  body.ds-c.pv-sheet-open { overflow: hidden; }
  body.ds-c.pv-sheet-open .ds-dock { transform: translate(-50%, 150%); opacity: 0; pointer-events: none; }
  .ds-c .pv-sheet-grab { position: relative; flex: none; width: 38px; height: 5px; margin: 8px auto 2px; border-radius: 3px; background: var(--fill-2); touch-action: none; cursor: grab; }
  /* 横条本体只有 5px 高，手指很难按准；用伪元素把命中区扩成约 138×25，拖动才跟手 */
  .ds-c .pv-sheet-grab::before { content: ""; position: absolute; left: -50px; right: -50px; top: -10px; bottom: -10px; }
  .ds-c .pv-sheet-grab:active { cursor: grabbing; }
  .ds-c .pv-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; touch-action: none; }
  .ds-c .pv-sheet-head b { font-size: 17px; font-weight: 600; }
  .ds-c .pv-sheet-done { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
  .ds-c .pv-sheet-search { flex: none; position: relative; margin: 0 16px 10px; }
  .ds-c .pv-sheet-search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
  .ds-c .pv-sheet-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 0; border-radius: 12px; background: var(--fill); color: var(--ink); font: 500 16px var(--sans); outline: none; }
  .ds-c .pv-sheet-search input:focus { box-shadow: inset 0 0 0 2px var(--acc); }
  .ds-c .pv-sheet-search input::placeholder { color: var(--ink-3); }
  .ds-c .pv-sheet-tools { flex: none; padding: 0 16px; }
  .ds-c .pv-sheet .car-filters { margin-bottom: 10px; }
  .ds-c .pv-sheet .car-filters .select-btn { height: 40px; }
  .ds-c .pv-sheet-qual { flex: none; display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
  .ds-c .pv-sheet-qual::-webkit-scrollbar { display: none; }
  .ds-c .pv-qchip { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink-2); font: 500 13.5px var(--sans); cursor: pointer; }
  .ds-c .pv-qchip span { margin-left: 5px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .ds-c .pv-qchip.on { background: var(--ink); color: var(--cell); }
  .ds-c .pv-qchip.on span { color: inherit; opacity: .6; }
  .ds-c .pv-sheet-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--sep); padding: 6px 8px calc(16px + env(safe-area-inset-bottom)); }
  .ds-c .pv-sheet #carDropdown { display: block !important; position: static; width: auto; max-height: none; margin: 0; padding: 0; overflow: visible;
    background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
  .ds-c .pv-sheet #carDropdown .dropdown-option { min-height: 60px; padding: 8px 10px; gap: 12px; font-size: 15px; }
  .ds-c .pv-sheet .pv-thumb { display: block; flex: none; width: 76px; height: 42px; border-radius: 10px; overflow: hidden; background: var(--fill); }
  .ds-c .pv-sheet .pv-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .ds-c .pv-sheet .dropdown-option[data-id="-1"] .pv-thumb { background: var(--fill); }
}

/* ---------- 长截图：导出克隆里用这些替换原生控件；并去掉 html2canvas 不认识的 color-mix / oklab ---------- */
.ds-c .pv-x-sw { position: relative; display: inline-block; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--fill-2); }
.ds-c .pv-x-sw.on { background: var(--acc); }
.ds-c .pv-x-sw i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ds-c .pv-x-sw.on i { left: 20px; }
.ds-c .pv-x-ck { position: relative; display: inline-block; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.ds-c .pv-x-ck.on { background: var(--acc); border-color: var(--acc); }
.ds-c .pv-x-ck.on i { position: absolute; left: 50%; top: 45%; width: 5px; height: 9px; margin: -5px 0 0 -2.5px; border: solid var(--on-acc); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ds-c .pv-x-val { display: flex; align-items: center; }
.ds-c .sub-input.pv-x-val { justify-content: center; }
.ds-c .pv-x-ph { color: var(--ink-3); font-weight: 500 !important; }
.ds-c .pv-export { --surface: rgba(28, 29, 35, .94); --menu-bg: var(--cell); --raise: rgba(255, 255, 255, .075); }
.ds-c.light-mode .pv-export { --surface: #ffffff; --raise: #ffffff; }
.ds-c .pv-export .card { background-image: none; }
.ds-c .pv-export .nitro-item.selected { background-image: none; }
.ds-c .pv-export .car-stage::before, .ds-c .pv-export .car-stage::after { content: none; }
.ds-c .pv-export #carPreviewAutoMsg { background: var(--pass-soft) !important; box-shadow: none !important; }
.ds-c .pv-export .result-card { background-image: none; box-shadow: inset 0 0 0 1px var(--st-soft); }
.ds-c .pv-export .ds-ring-fill { filter: none; }
.ds-c .pv-export .pv-step, .ds-c .pv-export .pv-sub-btn, .ds-c .pv-export .pv-fold-btn, .ds-c .pv-export .pv-thumb { display: none !important; }
.ds-c .pv-export .pv-has-step .form-control { padding-right: 44px; }
.ds-c .pv-export .pv-has-step .input-unit { right: 14px; }
.ds-c .pv-export .car-stage::before { background: none; }
.ds-c .pv-export .car-stage::after { -webkit-text-stroke: 0 transparent; }

/* ---------- 270° 仪表（原来由脚本注入，挪到样式表里） ---------- */
.ds-c .pv-arc .ds-ring-track, .ds-c .pv-arc .ds-ring-fill, .ds-c .pv-arc .pv-mark { transform: rotate(135deg); transform-origin: 50% 50%; }
.ds-c .pv-arc .ds-ring-fill { transition: stroke-dasharray .6s cubic-bezier(.2, .8, .2, 1); }
.ds-c .pv-arc .pv-ticks { stroke: var(--ink-3); stroke-width: .9; stroke-linecap: round; opacity: .55; fill: none; }
.ds-c .pv-arc .pv-mark { fill: none; stroke: var(--ink); stroke-width: 15; }
.ds-c .pv-arc .pv-arc-lbl { font: 700 11px var(--round); fill: var(--ink-2); }

/* ---------- 第二轮微调 ---------- */
/* 选车面板：原站给下拉里的所有 img 强制了 20px（定位 / 专精小图标用），车图要单独放开 */
@media (max-width: 849px) {
  .ds-c .pv-sheet .pv-thumb img { width: 100% !important; height: 100% !important; object-fit: contain; }
  .ds-c .pv-qchip { padding: 0 10px; font-size: 13px; }
}
/* 赋能子选项：标题单独一行，− 数字 + 永远在同一行 */
.ds-c .empower-sub-options .sub-label { flex: 1 0 100%; }
.ds-c .empower-sub-options .sub-input { width: 48px; }
/* 长截图：html2canvas 会把 inset 阴影画成粗色带 —— 导出时去掉所有阴影与折叠箭头 */
.ds-c .pv-export, .ds-c .pv-export * { box-shadow: none !important; }
.ds-c .pv-export .pv-collapsible > .card-title::after { content: none; }

/* =====================================================================
   第三轮：浅色模式车图 / 专精图标 / 品质描边字 / 芯片恢复原版
   ===================================================================== */
/* 芯片：原版图标抠图（无底盘），按主题切换浅 / 深两版；覆盖掉上一轮的线性图形样式 */
.ds-c .pv-chip { width: 28px; height: 28px; border-radius: 0; background: none; box-shadow: none; }
.ds-c .pv-chip img { width: 28px !important; height: 28px !important; display: block; filter: none !important; }
.ds-c .pv-chip .pv-chip-l { display: none; }
.ds-c.light-mode .pv-chip .pv-chip-d { display: none; }
.ds-c.light-mode .pv-chip .pv-chip-l { display: block; }
.ds-c #carPreviewChips { gap: 8px; }

/* 浅色：车辆背后不再是灰色的模糊层，给车一块干净的亮底（中心白、向四周淡出） */
@media (max-width: 849px) {
  .ds-c.light-mode .car-stage {
    background: radial-gradient(70% 62% at 50% 52%, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .82) 42%, rgba(255, 255, 255, 0) 76%);
  }
}
.ds-c.light-mode .car-hero { background-color: rgba(255, 255, 255, .9); }

/* 浅色：品质描边大字加深（用更深的品质墨色 + 稍粗的描边） */
.ds-c.light-mode .car-stage::after { -webkit-text-stroke: 1.5px var(--acc-ink); opacity: .55; }
.ds-c.light-mode[data-quality="none"] .car-stage::after { opacity: 0; }

/* 浅色：专精图标（城市 / 场地 / 山路，原图是白色剪影）改成清晰的深色剪影 */
.ds-c.light-mode img[src*="6b03fddcf523615f"], .ds-c.light-mode img[src*="7708febb380440f4"], .ds-c.light-mode img[src*="1c3fdf64e6be6a83"],
.ds-c.light-mode img[src*="new_carport_icon_city"], .ds-c.light-mode img[src*="new_carport_icon_court"], .ds-c.light-mode img[src*="new_carport_icon_mountainroad"] {
  filter: brightness(0) opacity(.74) !important;
}

/* 选车面板缩略图：原站给浅色下拉里的所有 img 加了 brightness(.6)（本意是压暗定位 / 专精小图标），
   车图也被一起压暗成了「黑黢黢」—— 车图单独豁免，并在浅色下给一块白底 */
.ds-c .pv-thumb img { filter: none !important; }
.ds-c.light-mode .pv-sheet .pv-thumb { background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 24, 40, .06); }

/* 深色：品级描边大字 —— 只有描边、不填充；用品质色的亮色版、中等粗细与透明度，
   亮背景上看得清，暗背景上也不抢车的视线 */
.ds-c:not(.light-mode) .car-stage::after {
  -webkit-text-stroke: 1.3px var(--acc-ink);
  color: transparent;
  opacity: .5;
}
.ds-c:not(.light-mode)[data-quality="none"] .car-stage::after { opacity: 0; }
/* COMMON 字母最宽，窄屏会溢出：单独缩小一档 */
.ds-c[data-quality="common"] .car-stage::after { font-size: clamp(52px, 17.5vw, 100px); top: 10%; }
/* 四种品质色亮度不同（金、绿天然更亮，紫、蓝更暗），按感知亮度分别配透明度，让四种看起来一样「轻」 */
.ds-c:not(.light-mode)[data-quality="legend"] .car-stage::after { opacity: .46; }
.ds-c:not(.light-mode)[data-quality="common"] .car-stage::after { opacity: .5; }
.ds-c:not(.light-mode)[data-quality="rare"] .car-stage::after { opacity: .56; }
.ds-c:not(.light-mode)[data-quality="epic"] .car-stage::after { opacity: .62; }

/* ============================================================================
   桌面端同步（≥850px）：手机端这几轮的改进搬到电脑上
   1) 选车下拉：每行带车图缩略图，顶部吸顶一排品质筛选（与手机选车面板同一套）；列表更高
   2) 下拉菜单底色调实：浮在正文上时，背后的文字不再透出来
   3) 选车卡：原来挤成一行的「名称 | 定位 / 专精 | ace_charge | 大招时长 | SP」改成六格出厂数据，
      计算说明收进卡片底部当脚注 —— 右栏下方那块空白没了，车辆展示卡与选车卡等高、下沿对齐
   4) 页脚三张卡等高；可点击的行在鼠标悬停时给反馈
   ============================================================================ */
.ds-c .pv-dd-qual, .ds-c .pv-specs { display: none; }
.ds-c #carDropdown .pv-dd-empty { padding: 18px 12px; font-size: 13px; color: var(--ink-3); text-align: center; }
@media (min-width: 850px) {
  .ds-c { --dd-bg: rgba(250, 250, 252, .95); --dd-head: #fbfbfd; }
  .ds-c:not(.light-mode) { --dd-bg: rgba(28, 29, 36, .93); --dd-head: #1d1e25; }
  @supports (color: color-mix(in oklab, red, blue)) {
    .ds-c:not(.light-mode) { --dd-bg: color-mix(in oklab, var(--acc) 7%, rgba(26, 27, 34, .93)); --dd-head: color-mix(in oklab, var(--acc) 7%, #1c1d23); }
    .ds-c.light-mode { --dd-bg: color-mix(in oklab, var(--acc) 3%, rgba(255, 255, 255, .95)); --dd-head: color-mix(in oklab, var(--acc) 3%, #fff); }
  }
  .ds-c .dropdown-menu { background-color: var(--dd-bg); }
  /* 长截图：html2canvas 不认 color-mix 算出来的 oklab()，导出克隆里换回纯色（同 .pv-export 里的 --menu-bg） */
  .ds-c .pv-export { --dd-bg: var(--cell); --dd-head: var(--cell); }

  /* 选车下拉 */
  .ds-c #carDropdown { max-height: min(560px, 64vh); padding: 0 6px 6px; overscroll-behavior: contain; scrollbar-width: thin; }
  .ds-c #carDropdown > .pv-dd-qual { display: flex; gap: 6px; position: sticky; top: 0; z-index: 2; margin: 0 -6px 6px; padding: 10px 12px;
    background: var(--dd-head); border-bottom: 1px solid var(--sep); }
  .ds-c .pv-dd-qual .pv-qchip { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink-2);
    font: 500 13px var(--sans); cursor: pointer; transition: background-color .15s, color .15s; }
  .ds-c .pv-dd-qual .pv-qchip span { margin-left: 5px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .ds-c .pv-dd-qual .pv-qchip.on { background: var(--ink); color: var(--cell); }
  .ds-c .pv-dd-qual .pv-qchip.on span { color: inherit; opacity: .6; }
  .ds-c #carDropdown .dropdown-option { min-height: 56px; padding: 7px 12px 7px 8px; gap: 14px; }
  .ds-c #carDropdown .pv-thumb { display: block; flex: none; width: 76px; height: 42px; border-radius: 10px; overflow: hidden; background: var(--fill); }
  .ds-c #carDropdown .pv-thumb img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; }
  .ds-c.light-mode #carDropdown .pv-thumb { background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 24, 40, .06); }

  /* 车辆展示卡与选车卡等高 */
  .ds-c .cp-hero { align-items: stretch; }
  .ds-c .cp-hero > .desktop-col:first-child { display: flex; }
  .ds-c .cp-hero #carPreview { flex: 1; display: flex; flex-direction: column; }
  .ds-c .cp-hero .car-hero { flex: 1; display: flex; flex-direction: column; }
  .ds-c .cp-hero .car-stage { flex: 1; min-height: 250px; }
  .ds-c .cp-hero #carImage { max-height: 224px; }
  .ds-c .cp-hero .car-select { flex: 1; display: flex; flex-direction: column; }
  .ds-c .car-select > .calc-note { margin-top: auto; padding: 14px 2px 0; border-top: 1px solid var(--sep); font-size: 12px; }
  .ds-c .car-select > .pv-specs:not([hidden]) { margin-bottom: 16px; }

  /* 出厂数据 */
  .ds-c #carSelectInfo { display: none !important; }
  .ds-c .pv-specs { display: block; margin-top: 14px; }
  .ds-c .pv-specs[hidden] { display: none; }
  .ds-c .pv-specs-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .ds-c .pv-specs-head span { font-size: 12px; font-weight: 500; color: var(--ink-3); }
  .ds-c .pv-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ds-c .pv-spec { min-width: 0; padding: 10px 14px 11px; border-radius: var(--r-md); background: var(--fill); }
  .ds-c .pv-spec-k { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ds-c .pv-spec-v { margin-top: 3px; font: 700 21px/1.2 var(--round); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ds-c .pv-spec-v small { margin-left: 2px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
  .ds-c .pv-spec.is-none .pv-spec-v { color: var(--ink-3); font-weight: 500; }

  /* 页脚三张卡等高 */
  .ds-c .site-footer { align-items: stretch; }
}
/* 鼠标悬停反馈（只给有鼠标的设备，触屏上 :hover 会粘住） */
@media (hover: hover) and (pointer: fine) {
  .ds-c .nitro-item:not(.selected):hover { background-color: var(--fill-hover); }
  .ds-c .empower-item:not(.active):hover { background-color: var(--fill-hover); }
  .ds-c .social-tag:hover .ico { background-color: var(--fill-2); }
  .ds-c .social-tag:hover::after { color: var(--ink); }
  .ds-c .pv-dd-qual .pv-qchip:not(.on):hover { background-color: var(--fill-hover); color: var(--ink); }
}

/* ============================================================================
   真机诊断开关（URL 参数，配合 <body> 开头那段脚本）
   用途：在真实手机上逐个排除「到底哪一层在拖慢这类套壳内核」。
     ?diag=1    左上角实时帧率浮层（含最低帧率与当前降级状态）
     ?noglow=1  关掉三团滚动分区光
     ?nodock=1  关掉 dock 的 backdrop-filter
     ?noamb=1   关掉环境光背景层
     ?perf=1    强制无动画性能模式（环境光 + 光团 + dock 玻璃全关）
     ?bare=1    最彻底：以上全关，并把半透明卡片改成不透明
   这些 class 只被 CSS 消费，不触碰任何业务逻辑；不带参数时等于不存在。
   ============================================================================ */
body.diag-noglow .ds-zoneglow { display: none !important; }
body.diag-nodock .ds-dock, body.diag-nodock .ds-dock::before {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background-image: none !important; background-color: var(--cell);
}
body.diag-noamb .ds-ambient { display: none !important; }
body.diag-bare .card, body.diag-bare .tutorial-details, body.diag-bare .footer-legal, body.diag-bare .bottom-image-wrapper {
  background-color: var(--cell) !important; background-image: none !important;
}

/* ============================================================================
   计算模式（先机汇能 / 团魂获能 / 辅助供能）· 增益装置 · 组队区
   - 首屏脚本还没跑时，按 <body data-calc-mode> 先把不属于当前模式的块藏好（避免闪一下）；
     脚本接管后去掉 calc-boot，改由 .is-gone 控制显隐，切换时带高度 + 透明度过渡。
   - 视觉沿用 V4：玻璃表面；品质色只用在选中态，其余保持中性。
   ============================================================================ */
body.calc-boot[data-calc-mode="solo"] [data-modes]:not([data-modes~="solo"]),
body.calc-boot[data-calc-mode="support"] [data-modes]:not([data-modes~="support"]),
body.calc-boot[data-calc-mode="team"] [data-modes]:not([data-modes~="team"]) { display: none !important; }
.ds-c .is-gone { display: none !important; }

/* ---------- 模式切换：一张玻璃卡片 —— 上面分段控件（滑动的选中块），一条细分隔线，下面是当前模式的说明 ---------- */
.ds-c .mode-switch { margin: 0 0 20px; padding: 6px; border-radius: var(--r-lg);
  background-color: var(--surface); background-image: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 140px);
  box-shadow: inset 0 1px 0 var(--surface-rim), inset 0 0 0 1px var(--surface-edge), var(--surface-drop); }
.ds-c.light-mode .mode-switch { background-image: none; }
.ds-c .mode-seg { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ds-c .mode-thumb { position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 15px; pointer-events: none;
  background: var(--raise); box-shadow: inset 0 0 0 1.5px var(--acc), 0 8px 20px -12px rgba(0, 0, 0, .45);
  transition: transform .46s cubic-bezier(.3, .8, .2, 1), width .46s cubic-bezier(.3, .8, .2, 1), height .3s, box-shadow .3s; }
.ds-c.light-mode .mode-thumb { background: #fff; }
.ds-c .mode-thumb.no-anim { transition: none; }
.ds-c .mode-opt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 11px 14px;
  border: 0; border-radius: 15px; background: transparent; color: var(--ink-2); text-align: left; cursor: pointer; font: inherit;
  transition: background-color .2s, color .3s, transform .12s; }
.ds-c .mode-opt:active { transform: scale(.97); }
.ds-c .mode-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--fill); color: var(--ink-2); transition: background-color .35s, color .35s, transform .35s cubic-bezier(.3, .8, .2, 1); }
.ds-c .mode-ico .ico { width: 20px; height: 20px; }
.ds-c .mode-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ds-c .mode-name { font-size: 15.5px; font-weight: 700; color: inherit; white-space: nowrap; }
.ds-c .mode-sub { margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.ds-c .mode-opt.is-on { color: var(--ink); }
.ds-c .mode-opt.is-on .mode-ico { background: var(--acc); color: var(--on-acc); transform: scale(1.04); }
.ds-c .mode-opt.is-on .mode-sub { color: var(--ink-2); }
.ds-c .mode-opt:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .ds-c .mode-opt:not(.is-on):hover { background: var(--fill-hover); color: var(--ink); } }
/* 说明：三段叠在同一格里交叉淡入淡出（不位移、不闪），外框高度由 JS 量好当前那段后平滑过渡 */
.ds-c .mode-desc { display: grid; margin: 6px 8px 0; padding: 12px 6px 10px; border-top: 1px solid var(--sep); overflow: hidden;
  font-size: 13px; line-height: 1.65; color: var(--ink-2); transition: height .32s cubic-bezier(.2, .8, .2, 1); }
.ds-c .mode-desc.no-anim { transition: none; }
.ds-c .mode-desc b { color: var(--ink); font-weight: 600; }
.ds-c .mode-desc .md { grid-area: 1 / 1; align-self: start; opacity: 0; visibility: hidden; transition: opacity .16s ease-out, visibility 0s linear .16s; }
body[data-calc-mode="solo"] .mode-desc .md-solo, body[data-calc-mode="support"] .mode-desc .md-support, body[data-calc-mode="team"] .mode-desc .md-team {
  opacity: 1; visibility: visible; transition: opacity .28s cubic-bezier(.3, .7, .3, 1) .1s, visibility 0s; }
.ds-c .mode-desc.no-anim .md { transition: none; }
/* 说明分长短两版：电脑上一整句，手机上一行短句 */
.ds-c .mode-desc .md-s { display: none; }
/* 手机：一条细分段控件（只留模式名，去掉图标和小字）+ 一行居中短说明。三个模式始终同时可见、一点即切，
   整块高度从原来的约 200px 压到约 80px */
@media (max-width: 849px) {
  .ds-c .mode-switch { margin: 0 0 16px; padding: 4px; border-radius: 16px; }
  .ds-c .mode-seg { gap: 2px; }
  .ds-c .mode-thumb { border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--acc), 0 6px 14px -10px rgba(0, 0, 0, .45); }
  .ds-c .mode-opt { min-height: 38px; padding: 6px 4px; gap: 0; border-radius: 12px; text-align: center; }
  .ds-c .mode-ico, .ds-c .mode-sub { display: none; }
  .ds-c .mode-txt { align-items: center; max-width: 100%; }
  .ds-c .mode-name { font-size: 14px; font-weight: 600; letter-spacing: .2px; }
  .ds-c .mode-opt.is-on .mode-name { font-weight: 700; }
  body.en-mode .ds-c .mode-name, body.ds-c.en-mode .mode-name { font-size: 12.5px; }
  .ds-c .tm-switch-field .tm-sw-long { display: none; }
  .ds-c .mode-desc { margin: 4px 6px 0; padding: 7px 2px 6px; font-size: 12.5px; line-height: 1.5; text-align: center; }
  .ds-c .mode-desc .md-l { display: none; }
  .ds-c .mode-desc .md-s { display: inline; }
}
/* 电脑（够宽时）：分段控件和说明并成一行 —— 左边三个模式（图标 + 名称 + 小字），右边竖线隔开的说明；
   整块高度从约 120px 压到约 70px。窄一些的电脑 / 平板横屏（850–1099px）仍是上下两层 */
@media (min-width: 1100px) {
  .ds-c .mode-switch { display: flex; align-items: center; }
  .ds-c .mode-seg { flex: none; grid-template-columns: repeat(3, 1fr); }
  .ds-c .mode-opt { justify-content: flex-start; gap: 10px; padding: 8px 20px 8px 9px; }
  .ds-c .mode-ico { width: 34px; height: 34px; border-radius: 11px; }
  .ds-c .mode-ico .ico { width: 18px; height: 18px; }
  .ds-c .mode-name { font-size: 15px; }
  .ds-c .mode-sub { font-size: 12px; }
  .ds-c .mode-desc { flex: 1 1 0; min-width: 0; margin: 0 0 0 10px; padding: 2px 14px 2px 18px; border-top: 0; border-left: 1px solid var(--sep);
    font-size: 12.5px; line-height: 1.6; align-self: center; }
}

/* ---------- 组队区（团魂获能 / 辅助供能共用一块位置）：整行卡片纵向排列，卡片内部用网格，避免左右两列一长一短 ---------- */
.ds-c .cp-team { margin-bottom: 26px; }
/* 用 margin-top 代替 flex gap：收起的块高度动画到 0 之后，仍会占着一个 gap（16px），
   等动画结束加上 is-gone 移出布局时那 16px 才消失 —— 下方卡片会突跳一下。
   换成能参与动画的 margin-top（_SLIDE_KEYS 里就有 marginTop），收放全程连续。 */
.ds-c .tm-stack { display: flex; flex-direction: column; margin-top: 16px; }
.ds-c .tm-stack > * + * { margin-top: 16px; }
.ds-c .cp-team .section-divider .tm-title { display: none; }
body[data-calc-mode="support"] .cp-team .section-divider .tm-title-support,
body[data-calc-mode="team"] .cp-team .section-divider .tm-title-team,
body[data-calc-mode="solo"] .cp-team[data-title="support"] .section-divider .tm-title-support,
body[data-calc-mode="solo"] .cp-team[data-title="team"] .section-divider .tm-title-team { display: inline; }
body.ds-c[data-calc-mode="support"] .cp-team .section-divider > span::before,
body.ds-c[data-calc-mode="solo"] .cp-team[data-title="support"] .section-divider > span::before { content: "SUPPORT · 辅助供能"; }
body.ds-c[data-calc-mode="team"] .cp-team .section-divider > span::before,
body.ds-c[data-calc-mode="solo"] .cp-team[data-title="team"] .section-divider > span::before { content: "TEAM SOUL · 团魂获能"; }
/* ↑ 切回先机汇能时组队区要收起：标题保留最后一个模式的字，收起途中不会先塌一行 */
.ds-c .tm-grid { display: grid; gap: 12px; align-items: end; }
.ds-c .tm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-c .tm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-c .tm-span-2 { grid-column: span 2; }
.ds-c .tm-gap-top { margin-top: 14px; }
.ds-c .tm-grid .form-group { margin-bottom: 0; }
/* 和输入框同高的说明格 / 开关格，网格里一行对齐 */
.ds-c .tm-cell-note { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border-radius: var(--r-md);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-3); background: var(--fill); }
.ds-c .tm-cell-note b { color: var(--ink); font-weight: 600; }
.ds-c .tm-switch-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 10px 0 14px;
  border-radius: var(--r-md); background: var(--fill); font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background-color .25s; }
.ds-c .tm-switch-field.on { background: var(--acc-soft); }
.ds-c .tm-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 18px 2px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ds-c .tm-group > span:first-child { white-space: nowrap; }
/* 英文界面：站内把 span.lang-en 设成了 inline-block，夹着 <strong> 的说明句会被拆成几段各自换行；装置说明里改回行内 */
body.en-mode .dev-item .desc span.lang-en { display: inline !important; }
.ds-c .card-title + .tm-group, .ds-c .tm-src + .tm-group { margin-top: 2px; }
.ds-c .tm-badge { flex: none; font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: var(--fill); padding: 3px 9px; border-radius: 999px; }
.ds-c .form-hint { margin: 6px 2px 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
/* 自动读取提示：沿用选车卡「已自动填充」的绿色 */
.ds-c .tm-src { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.6; color: var(--ink-2); background: var(--fill); }
.ds-c .tm-src b { color: var(--ink); font-weight: 600; }
.ds-c .tm-src.is-ok { color: var(--pass); background: var(--pass-soft); }
.ds-c .tm-src.is-ok b { color: inherit; }
.ds-c .tm-src.is-warn { color: var(--warn); background: var(--warn-soft); }
.ds-c .tm-src .tm-src-note { display: block; margin-top: 3px; color: var(--ink-2); }
.ds-c .tm-src .ico { width: 15px; height: 15px; margin-right: 4px; vertical-align: -2.5px; }
.ds-c #mateSrc { margin: 12px 0 0; }
.ds-c .tm-note { padding: 10px 12px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.6; color: var(--ink-2); background: var(--fill); }
.ds-c #teamInOff { margin-top: 10px; }

/* ---------- 团魂获能第一行：团魂 / 先机 / 汇能（后两个是从智能芯片联动面板搬来的同一组输入框） ---------- */
.ds-c .tm-chip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ds-c .tm-chip-row > .row-grid { display: contents; }
.ds-c .tm-chip-row .form-group { margin-bottom: 0; }
.ds-c .tm-soul-hint { margin: 8px 2px 0; }
.ds-c .tm-soul-hint b { color: var(--ink-2); font-weight: 600; }
.ds-c .tm-chip-bar:empty { display: none; }
/* 团魂 / 先机 / 汇能：三个框同一套样式 —— 标签行 = 名称 + 状态字（自动 / 不适用）+ 右侧一把锁。
   状态字只是文字，不是按钮；能点的只有锁。锁只在团魂获能模式下出现（先机、汇能搬回芯片联动面板时藏起来）。 */
.ds-c #tmChipRow .form-group { position: relative; }
.ds-c #tmChipRow .form-label { display: flex; align-items: center; gap: 6px; min-height: 24px; padding-right: 30px; }
.ds-c .tm-state, .ds-c .tm-lock { display: none; }
.ds-c #tmChipRow .tm-state { display: inline; font-size: 11.5px; font-weight: 600; color: var(--pass); white-space: nowrap; }
.ds-c #tmChipRow .tm-state.is-na { color: var(--ink-3); font-weight: 500; }
.ds-c #tmChipRow .tm-state:empty { display: none; }
.ds-c #tmChipRow .tm-lock { display: inline-flex; position: absolute; top: 0; right: 0; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--ink-3); background: transparent;
  transition: background-color .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.ds-c #tmChipRow .tm-lock .ico { width: 14px; height: 14px; stroke-width: 2; }
.ds-c #tmChipRow .tm-lock:hover { background: var(--fill); color: var(--ink-2); }
.ds-c #tmChipRow .tm-lock:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.ds-c #tmChipRow .tm-lock.is-locked { color: var(--acc-ink); background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-glow); }
.ds-c #tmChipRow .tm-lock.is-na { visibility: hidden; }
.ds-c .tm-lock.is-pop { animation: lockIn .3s cubic-bezier(.3, .8, .2, 1); }
.ds-c .tm-lock.is-pop-b { animation: lockInB .3s cubic-bezier(.3, .8, .2, 1); }
/* 计算器算出来的值：数字用绿色（与状态条「自动反算」同色）；不适用：整格变灰、不能输入（与锁定的反制卡同一种灰法） */
.ds-c #tmChipRow .form-control.tm-auto { color: var(--pass); }
.ds-c #tmChipRow .input-wrapper { transition: opacity .35s, filter .35s; }
.ds-c #tmChipRow .form-group.tm-na .input-wrapper { opacity: .38; filter: grayscale(1); }
.ds-c #tmChipRow .form-group.tm-na .form-control { cursor: not-allowed; }
/* 窄屏：标签行不许折行（三列输入框要对齐），放不下时名称截断；「不适用」靠整格变灰 + 状态条说明 */
.ds-c #tmChipRow .form-label { flex-wrap: nowrap; white-space: nowrap; }
.ds-c #tmChipRow .form-label > .zh, .ds-c #tmChipRow .form-label > .lang-en { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .ds-c #tmChipRow .form-label { gap: 4px; padding-right: 26px; }
  .ds-c #tmChipRow .tm-lock { width: 22px; height: 22px; top: 1px; }
  body.en-mode #tmChipRow .tm-state { display: none; }
}
@media (max-width: 400px) { .ds-c #tmChipRow .tm-state.is-na { display: none; } }
.ds-c .pv-export .tm-lock { display: none !important; }
/* 反算把值改了：底色轻轻亮一下 */
@keyframes tmSolved { from { background-color: var(--pass-soft); } }
@keyframes tmSolvedB { from { background-color: var(--pass-soft); } }
.ds-c .form-control.tm-solved { animation: tmSolved .9s ease-out; }
.ds-c .form-control.tm-solved-b { animation: tmSolvedB .9s ease-out; }
/* 反算说明（拉满也不够 / 不吃团魂 / 不靠团魂也能首发） */
.ds-c .tm-solve-note { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2); background: var(--fill); }
.ds-c .tm-solve-note .ico { flex: none; width: 15px; height: 15px; margin-top: 2px; stroke-width: 2; }
.ds-c .tm-solve-note b { font-weight: 700; color: var(--ink); }
.ds-c .tm-solve-note.is-warn { color: var(--warn); background: var(--warn-soft); }
.ds-c .tm-solve-note.is-warn b { color: inherit; }
.ds-c .tm-chip-bar > .mode-bar { margin: 12px 0 0; }
/* 智能芯片联动面板：团魂获能模式下只剩首发氮气，标题跟着换；底下一行提示先机 / 汇能去哪了 */
.ds-c .chip-card .chip-t-team { display: none; }
body[data-calc-mode="team"] .chip-card .chip-t-main { display: none; }
body[data-calc-mode="team"] .chip-card .chip-t-team { display: inline; }
.ds-c .tm-chip-moved { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2); background: var(--fill); }
.ds-c .tm-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- 队友辅助车：复用选车框（同一个按钮 + 下拉 + 手机底部选车面板） ---------- */
.ds-c .tm-mate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-c .tm-mate-grid > .tm-mate-pick { grid-column: span 2; }
.ds-c .mate-list-box .car-list-btn { height: 46px; font-size: 15px; }
.ds-c .mate-list-box .car-list-btn.is-empty > span { color: var(--ink-2); font-weight: 600; }
.ds-c .mate-list-box .car-list-btn .mate-lbl-v { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.ds-c .tm-mate-hint { margin: 10px 2px 0; }
.ds-c #cardTeamIn { position: relative; }
.ds-c #cardTeamIn.mate-open { z-index: 100; }                       /* 下拉盖住下面的结果卡 */
.ds-c .mate-dd-head { display: none; }
.ds-c #mateDropdown .pv-dd-empty { padding: 18px 12px; font-size: 13px; color: var(--ink-3); text-align: center; }
@media (min-width: 850px) {
  .ds-c #mateDropdown { max-height: min(520px, 60vh); padding: 0 6px 6px; overscroll-behavior: contain; scrollbar-width: thin; }
  .ds-c #mateDropdown > .mate-dd-head { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; z-index: 2; margin: 0 -6px 6px; padding: 10px 12px;
    background: var(--dd-head); border-bottom: 1px solid var(--sep); }
  .ds-c #mateDropdown .pv-dd-qual { display: flex; gap: 6px; }
  .ds-c .mate-dd-search { position: relative; display: block; }
  .ds-c .mate-dd-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
  .ds-c .mate-dd-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 0; border-radius: 10px; background: var(--fill); color: var(--ink); font: 500 14px var(--sans); outline: none; }
  .ds-c .mate-dd-search input:focus { box-shadow: inset 0 0 0 2px var(--acc); }
  .ds-c .mate-dd-search input::placeholder { color: var(--ink-3); }
  .ds-c #mateDropdown .dropdown-option { min-height: 56px; padding: 7px 12px 7px 8px; gap: 14px; }
  .ds-c #mateDropdown .pv-thumb { display: block; flex: none; width: 76px; height: 42px; border-radius: 10px; overflow: hidden; background: var(--fill); }
  .ds-c #mateDropdown .pv-thumb img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; }
  .ds-c.light-mode #mateDropdown .pv-thumb { background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 24, 40, .06); }
}
/* 手机：列表被搬进底部选车面板，样式与主选车列表一致 */
.ds-c .pv-sheet .pv-sheet-t-mate { display: none; }
.ds-c .pv-sheet.is-mate .pv-sheet-t-car { display: none; }
.ds-c .pv-sheet.is-mate .pv-sheet-t-mate { display: inline; }
@media (max-width: 849px) {
  .ds-c .pv-sheet #mateDropdown { display: block !important; position: static; width: auto; max-height: none; margin: 0; padding: 0; overflow: visible;
    background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
  .ds-c .pv-sheet #mateDropdown .dropdown-option { min-height: 60px; padding: 8px 10px; gap: 12px; font-size: 15px; }
  .ds-c .pv-sheet.is-mate .pv-sheet-tools { display: none; }
}

/* 结果卡：与首发 / 循环结果卡同一套 —— 状态胶囊、270° 仪表（刻度 + 阈值标记）、大数字、辉光；
   这里没有「达成 / 失败」，状态色统一用蓝色（与底部胶囊「供能」的蓝点同色）。仪表和两个小计排成一行 */
.ds-c { --info-ink: #0866d6; --info-soft: rgba(10, 132, 255, .12); }
.ds-c:not(.light-mode) { --info-ink: #6cb4ff; --info-soft: rgba(64, 156, 255, .16); }
.ds-c .tm-result { --st: var(--info-ink); --st-fill: var(--info); --st-soft: var(--info-soft); padding: 18px;
  background-color: var(--surface);
  background-image: radial-gradient(120% 60% at 0% 0%, color-mix(in oklab, var(--st-fill) 20%, transparent), transparent 62%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--st-fill) 32%, transparent), inset 0 1px 0 var(--surface-rim),
              0 24px 50px -26px color-mix(in oklab, var(--st-fill) 55%, transparent); }
.ds-c .tm-result.is-idle .ds-status { color: var(--ink-3); background: var(--fill); }
/* 空态：弧长 0 + 圆头线帽（stroke-linecap: round）会在 135° 起点画出一个实心圆点。
   首发 / 循环卡有 .ds-gauge[data-state="idle"] 兜着，这两张蓝卡挂在 .tm-result 上没有 data-state，这里同样藏掉 */
.ds-c .tm-result.is-idle .ds-ring-fill { stroke: transparent; }
/* 空态的解析盒是个只有内边距的空色块：没内容就先别显示（有内容后 is-idle 会被摘掉） */
.ds-c .tm-result.is-idle .formula-box:empty { display: none; }
.ds-c .tm-gauge-top { margin: 12px 0 10px; }
.ds-c .tm-gauge-top { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.ds-c .tm-gauge-top .ds-status { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-c .tm-gauge-top .ds-target { margin-left: auto; text-align: right; }
.ds-c .tm-res-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; margin: 0 0 14px; }
.ds-c .tm-gauge { min-width: 0; }
.ds-c .tm-gauge .ds-value { white-space: nowrap; }
.ds-c .pv-export .tm-result { background-image: none; box-shadow: inset 0 0 0 1px var(--st-soft); }
.ds-c .tm-stat { min-width: 0; padding: 10px 14px 11px; border-radius: var(--r-md); background: var(--fill); }
.ds-c .tm-stat-k { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-c .tm-stat-v { margin-top: 3px; font: 700 21px/1.2 var(--round); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-c .tm-stat-v small { margin-left: 1px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.ds-c .tm-stat-s { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 数值变化时轻轻跳一下 */
@keyframes tmTick { from { opacity: 1; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes tmTickB { from { opacity: 1; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ds-c .tm-tick { animation: tmTick .34s cubic-bezier(.2, .8, .2, 1); }
.ds-c .tm-tick-b { animation: tmTickB .34s cubic-bezier(.2, .8, .2, 1); }

/* ---------- 增益装置：三块磁贴（与氮气规格同一套选中描边），手机上纵向排列 ---------- */
.ds-c .ui-switch { -webkit-appearance: none; appearance: none; width: 44px; height: 26px; border-radius: 999px; margin: 0; flex: none; cursor: pointer;
  background: var(--fill-2) var(--knob) no-repeat 2px 50% / 22px 22px; transition: background-color .2s, background-position .2s cubic-bezier(.3, .7, .4, 1); }
.ds-c .ui-switch:checked { background-color: var(--acc); background-position: 20px 50%; }
.ds-c .dev-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ds-c .dev-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill);
  border: 2px solid transparent; transition: background-color .25s, border-color .25s; }
.ds-c .dev-item.active { background: var(--acc-soft); border-color: var(--acc); }
.ds-c .dev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.ds-c .dev-title-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ds-c .dev-ico { width: 34px; height: 34px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28)); transition: transform .25s cubic-bezier(.2,.8,.25,1), filter .25s; }
.ds-c .dev-item.active .dev-ico { transform: scale(1.08); filter: drop-shadow(0 0 10px var(--acc)); }
.ds-c .dev-item .title { font-size: 14.5px; font-weight: 600; }
.ds-c .dev-item .desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.ds-c .dev-item .desc strong { color: var(--ink); transition: color .25s; }
.ds-c .dev-item.active .desc strong { color: var(--acc-ink); }
@media (hover: hover) and (pointer: fine) { .ds-c .dev-item:not(.active):hover { background-color: var(--fill-hover); } }
.ds-c .dev-sub { margin-top: 12px; }
.ds-c .dev-sub .tm-grid { align-items: start; }
/* ---------- 特殊芯片：槽位 + 芯片库（全站一致现代毛玻璃卡片设计） ---------- */
.ds-c .chips-card .card-hint { margin-bottom: 12px; }
.ds-c #devAccNote { margin-top: 8px; }
.ds-c .chip-slots { display: flex; flex-direction: column; gap: 8px; }
.ds-c .chip-slot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  background-color: var(--surface);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 140px);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 var(--surface-rim), var(--surface-drop);
  text-align: left; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.ds-c .chip-slot.is-filled {
  background-color: color-mix(in oklab, var(--acc) 7%, var(--surface));
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 140px);
  border: 1.5px solid var(--acc);
  box-shadow: inset 0 1px 0 var(--surface-rim), inset 0 0 0 1px var(--surface-edge), 0 10px 30px -10px color-mix(in oklab, var(--acc) 30%, transparent); }

/* 空槽：通透毛玻璃底 + 虚线；展开时高亮微光（卡片底已透出模糊车图，子元素不再重复叠 backdrop-filter） */
.ds-c .chip-slot.is-empty { align-items: center; justify-content: center; gap: 10px; min-height: 64px;
  background-color: color-mix(in oklab, var(--surface) 50%, transparent);
  border: 1.5px dashed var(--surface-rim);
  color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.ds-c .chip-slot.is-empty:not(.is-open):hover {
  background-color: var(--surface);
  border-color: color-mix(in oklab, var(--acc) 45%, transparent);
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 6px 18px -6px rgba(0, 0, 0, .25); }
.ds-c .chip-slot.is-empty.is-open {
  border-style: solid; border-color: var(--acc);
  background-color: color-mix(in oklab, var(--acc) 8%, var(--surface));
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 0 0 1px var(--acc), 0 8px 24px -10px color-mix(in oklab, var(--acc) 35%, transparent); }

/* 加号 / 旋转收起圆钮：通透毛玻璃 */
.ds-c .chip-add-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 2px 6px rgba(0, 0, 0, .14);
  color: var(--ink);
  transition: transform .25s cubic-bezier(.3, .8, .2, 1), background-color .2s, border-color .2s; }
.ds-c .chip-add-ico .ico { width: 17px; height: 17px; }
.ds-c .chip-slot.is-empty.is-open .chip-add-ico {
  transform: rotate(45deg);
  background-color: color-mix(in oklab, var(--acc) 14%, var(--surface));
  border-color: color-mix(in oklab, var(--acc) 60%, transparent); }
.ds-c .chip-slot.is-empty:focus-visible, .ds-c .chip-act:focus-visible, .ds-c .chip-tile:focus-visible, .ds-c .chip-seg button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* 图标：毛玻璃底台 + 柔和内发光 */
.ds-c .chip-ico { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  background-color: var(--surface);
  background-image: radial-gradient(75% 75% at 50% 42%, var(--acc-glow), transparent 100%);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 4px 12px rgba(0, 0, 0, .18); }
.ds-c .chip-ico img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.ds-c .chip-ico-fb { display: none; font: 800 20px/1 var(--round); color: var(--ink-2); }
.ds-c .chip-ico.is-fb .chip-ico-fb { display: flex; }
@keyframes chipPop { 0% { opacity: .72; transform: scale(.92) rotate(-2deg); } 100% { opacity: 1; transform: none; } }
.ds-c .chip-slot.is-new .chip-ico { animation: chipPop .5s cubic-bezier(.3, .9, .3, 1); }

/* 已装芯片：名称与核心徽章 */
.ds-c .chip-body { flex: 1 1 0; min-width: 0; }
.ds-c .chip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ds-c .chip-name { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.ds-c .chip-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ds-c .chip-tag { padding: 2.5px 10px; border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 var(--surface-rim);
  color: var(--ink-2); font-size: 11.5px; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.ds-c .chip-tag.is-energy {
  background-color: color-mix(in oklab, var(--acc) 18%, var(--surface));
  border-color: color-mix(in oklab, var(--acc) 55%, transparent);
  color: var(--acc-ink); font-weight: 700; }
.ds-c .chip-desc { margin-top: 5px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.ds-c .chip-desc strong { color: var(--acc-ink); }
.ds-c .chip-acts { flex: none; display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* 卸下/关闭按钮：毛玻璃悬浮圆钮（解决纯黑硬块） */
.ds-c .chip-act { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 8px rgba(0, 0, 0, .16);
  color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.ds-c .chip-act .ico { width: 15px; height: 15px; }
.ds-c .chip-act:hover {
  background-color: color-mix(in oklab, var(--acc) 14%, var(--surface));
  border-color: color-mix(in oklab, var(--acc) 50%, var(--surface-edge));
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 4px 12px color-mix(in oklab, var(--acc) 25%, transparent); }
.ds-c .chip-act:active { transform: scale(.92); }
.ds-c .chip-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 芯片可选项（毛玻璃通透胶囊组，解决纯黑硬底座） */
.ds-c .chip-opts { flex: 1 0 100%; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--surface-edge); }
.ds-c .chip-opt { display: flex; flex-direction: column; gap: 6px; }
.ds-c .chip-opt-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ds-c .chip-seg { display: flex; gap: 4px; padding: 3.5px; border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 var(--surface-rim), inset 0 1px 3px rgba(0, 0, 0, .2); }
.ds-c .chip-seg button { flex: 1 1 0; min-width: 0; padding: 6px 12px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.ds-c .chip-seg.chip-seg-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ds-c .chip-seg-levels button { padding: 6px 2px; }
.ds-c .chip-seg button:not(.is-on):hover {
  background-color: rgba(255, 255, 255, .06);
  color: var(--ink); }
.ds-c .chip-seg button.is-on {
  background-color: color-mix(in oklab, var(--acc) 18%, var(--surface));
  border-color: color-mix(in oklab, var(--acc) 75%, transparent);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 2px 8px color-mix(in oklab, var(--acc) 25%, transparent);
  color: var(--ink);
  font-weight: 700; }

/* 芯片库：毛玻璃展开卡片（解决纯黑背景） */
.ds-c .chip-picker { margin-top: 10px; padding: 14px; border-radius: var(--r-md);
  background-color: var(--menu-bg);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 120px);
  border: 1px solid var(--menu-edge);
  box-shadow: inset 0 1px 0 var(--menu-rim), 0 16px 42px rgba(0, 0, 0, .28); }
.ds-c .chip-picker-head { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; min-height: 36px; }
.ds-c .chip-picker-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.ds-c .chip-search { flex: 1 1 140px; max-width: 220px; height: 36px; padding: 0 14px; border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 var(--surface-rim), inset 0 1px 2px rgba(0, 0, 0, .15);
  color: var(--ink); font: 500 13px var(--sans);
  transition: border-color .2s, box-shadow .2s; }
.ds-c .chip-search:focus { outline: none; border-color: var(--acc);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 0 0 2px color-mix(in oklab, var(--acc) 30%, transparent); }
.ds-c .chip-search::placeholder { color: var(--ink-3); }

/* 芯片列表自适应高度（上限约原 2.5 倍）+ 内部细滚动条视口 + 三大分类排版 */
.ds-c .chip-picker-scroll {
  max-height: min(600px, 72vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 2px 6px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--fill-2) transparent;
}
.ds-c .chip-picker-scroll::-webkit-scrollbar { width: 5px; }
.ds-c .chip-picker-scroll::-webkit-scrollbar-track { background: transparent; }
.ds-c .chip-picker-scroll::-webkit-scrollbar-thumb { background: var(--fill-2); border-radius: 999px; }
.ds-c .chip-picker-scroll::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
.ds-c .chip-cat-list { display: flex; flex-direction: column; gap: 14px; }
.ds-c .chip-cat-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; min-width: 0; }
.ds-c .chip-cat-title { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
.ds-c .chip-cat-count { padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 17px;
  color: var(--ink-3); background: var(--fill-1); border: 1px solid var(--surface-edge); flex-shrink: 0; }
.ds-c .chip-cat-sub { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-c .chip-cat-line { flex: 1; min-width: 12px; height: 1px; background: var(--fill-1); }

.ds-c .chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }

/* 芯片候选项：高质感毛玻璃独立卡片（解决纯黑矩形） */
.ds-c .chip-tile { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 38px 10px 10px; border-radius: 14px;
  background-color: var(--surface);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 80px);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 4px 14px rgba(0, 0, 0, .12);
  color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.ds-c .chip-tile:not(:disabled):not(.is-on):hover {
  background-color: color-mix(in oklab, var(--acc) 9%, var(--surface));
  border-color: color-mix(in oklab, var(--acc) 50%, var(--surface-edge));
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 8px 22px -6px color-mix(in oklab, var(--acc) 25%, transparent);
  transform: translateY(-1px); }
.ds-c .chip-tile.is-on {
  border-color: var(--acc);
  background-color: color-mix(in oklab, var(--acc) 14%, var(--surface));
  box-shadow: inset 0 1px 0 var(--surface-rim), 0 0 0 1px var(--acc), 0 8px 24px -6px color-mix(in oklab, var(--acc) 35%, transparent); }
.ds-c .chip-tile:disabled { opacity: .48; cursor: not-allowed; }
.ds-c .chip-tile.is-locked { background-color: color-mix(in oklab, var(--surface) 88%, transparent); }
.ds-c .chip-tile .chip-ico { width: 44px; height: 44px; border-radius: 12px; box-shadow: none;
  background: color-mix(in oklab, var(--acc) 10%, var(--surface));
  border: 1px solid var(--surface-edge); }
.ds-c .chip-tile-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ds-c .chip-tile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.ds-c .chip-tile-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ds-c .chip-tile-lock { padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 1.45; white-space: nowrap;
  background: color-mix(in oklab, var(--acc) 14%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--acc) 40%, transparent);
  color: var(--acc-ink); }
.ds-c .chip-tile.is-locked .chip-tile-lock {
  background: rgba(248, 113, 113, .14);
  border-color: rgba(248, 113, 113, .38);
  color: #fca5a5; }
.ds-c .chip-tile-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.ds-c .chip-tile-check { position: absolute; top: 50%; right: 10px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: var(--acc) var(--check-acc) no-repeat center / 13px 13px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.ds-c .chip-tile.is-on .chip-tile-check { opacity: 1; transform: none; }
.ds-c .chip-empty { padding: 14px 8px 6px; text-align: center; font-size: 13px; color: var(--ink-3); }
/* 全宽横幅（电脑端）：左图标 + 标题/描述，右紧凑分段开关，最右卸下按钮，垂直居中一线排开 */
@media (min-width: 850px) {
  .ds-c .chips-card { margin-top: 16px; }
  .ds-c .chip-slot.is-filled { flex-wrap: nowrap; align-items: center; gap: 18px; padding: 14px 18px; }
  .ds-c .chip-slot.is-filled .chip-body { flex: 1 1 0; }
  .ds-c .chip-slot.is-filled .chip-opts { order: 2; flex: 0 0 264px; padding-top: 0; padding-left: 18px; border-top: 0; border-left: 1px solid var(--fill-2); }
  .ds-c .chip-slot.is-filled .chip-acts { order: 3; margin-left: 0; }
}
@media (max-width: 849px) {
  .ds-c .chip-picker-scroll { height: 506px; }
  .ds-c .chip-grid { grid-template-columns: 1fr; }
  .ds-c .chip-slot.is-filled { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: center; }
  .ds-c .chip-slot.is-filled .chip-body { display: contents; }
  .ds-c .chip-slot.is-filled .chip-head { grid-row: 1; grid-column: 2; min-width: 0; }
  .ds-c .chip-slot.is-filled .chip-acts { grid-row: 1; grid-column: 3; margin-left: 0; align-self: start; }
  .ds-c .chip-slot.is-filled .chip-desc { grid-column: 1 / -1; margin-top: 0; }
  .ds-c .chip-slot.is-filled .chip-opts { grid-column: 1 / -1; }
  .ds-c .chip-act { width: 34px; height: 34px; }
  .ds-c .chip-search { max-width: none; }
}
@media (max-width: 380px) {
  .ds-c .chip-slot { padding: 12px; }
  .ds-c .chip-ico { width: 44px; height: 44px; }
}
/* 小屏英文下「大招释放能量阈值」标签折成两行，同一行的两个输入框按底端对齐 */
.ds-c #cardCoreParams .row-grid { align-items: end; }   /* 两格下面的说明行数不同：按顶端对齐，输入框才在一条线上 */

@media (max-width: 849px) {
  .ds-c .tm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-c .tm-grid-3 > :nth-child(3), .ds-c .tm-span-2 { grid-column: 1 / -1; }
  .ds-c .tm-chip-row { gap: 10px; }
  .ds-c .tm-chip-row .form-control { padding: 0 28px 0 12px; font-size: 18px; }
  .ds-c .tm-chip-row .input-unit { right: 11px; }
  .ds-c .tm-mate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-c .tm-mate-grid > .tm-mate-pick { grid-column: 1 / -1; }
  .ds-c .dev-list { grid-template-columns: 1fr; }
  .ds-c .tm-res-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .ds-c .tm-res-row > .tm-gauge { grid-column: 1 / -1; margin: 0 0 6px; }
}

/* 小屏（≤ 380px，如 iPhone SE / 小安卓）：模式名允许折行（英文名较长），小计卡收紧内边距、说明可折行，大数字略缩，避免出框 */
@media (max-width: 849px) {
  .ds-c .mode-name { white-space: normal; text-align: center; line-height: 1.2; }
}
@media (max-width: 380px) {
  .ds-c .tm-stat { padding: 9px 11px 10px; }
  .ds-c .tm-stat-k, .ds-c .tm-stat-s { white-space: normal; overflow: visible; line-height: 1.35; }
  .ds-c .tm-stat-v { font-size: 19px; }
  .ds-c .ds-value { font-size: 32px; }
  .ds-c .ds-value small { font-size: 16px; }
  .ds-c .tm-chip-row { gap: 8px; }
  .ds-c .tm-chip-row .form-control { padding: 0 24px 0 10px; font-size: 17px; }
  .ds-c .tm-chip-row .input-unit { right: 9px; }
  /* 带 − / + 步进的次数框单独占一行，否则数字会被单位和按钮挤没 */
  .ds-c .tm-mate-grid > :nth-child(n+4) { grid-column: 1 / -1; }
  .ds-c .dev-sub .tm-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 计算过程：电脑上始终展开，只有手机上默认收起 ---------- */
@media (min-width: 850px) {
  .ds-c .pv-fold-btn { display: none; }
  .ds-c .formula-box.pv-fold-closed { display: block; }
}

/* ---------- 装了增益装置：反制卡整块变灰、滑块锁住 ---------- */
.ds-c .counter-card .slider-wrapper { transition: opacity .35s, filter .35s; }
.ds-c .counter-card.is-locked .slider-wrapper { opacity: .38; filter: grayscale(1); }
.ds-c .counter-card.is-locked .slider-control, .ds-c .counter-card.is-locked .slider-control::-webkit-slider-thumb { pointer-events: none; cursor: not-allowed; }
.ds-c .counter-card.is-locked .slider-control::-moz-range-thumb { pointer-events: none; }
.ds-c .lock-tag { display: none; flex: none; margin-left: auto; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: var(--fill); }
.ds-c .lock-tag .ico { width: 13px; height: 13px; }
@keyframes lockIn { from { opacity: .72; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes lockInB { from { opacity: .72; transform: scale(.94); } to { opacity: 1; transform: none; } }
.ds-c .is-locked > .card-title .lock-tag { display: inline-flex; animation: lockIn .3s cubic-bezier(.3, .8, .2, 1); }
.ds-c .is-locked > .card-title .limit-badge { display: none; }
.ds-c .pv-collapsible.is-locked > .card-title .pv-sum { display: none; }   /* 锁定态右上角统一显示 lock-tag 锁胶囊，隐藏纯文字摘要避免重复 */
.ds-c .dev-lock-note { margin: -4px 0 12px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.55; color: var(--ink-2); background: var(--fill); }
/* 赋能卡：整块变灰、点不动 */
.ds-c .empower-card > :not(.card-title):not(.dev-lock-note) { transition: opacity .35s, filter .35s; }
.ds-c .empower-card.is-locked > :not(.card-title):not(.dev-lock-note) { opacity: .38; filter: grayscale(1); pointer-events: none; }
.ds-c .empower-card.is-locked .empower-item { cursor: not-allowed; }
/* 主车定位与当前模式不符（团魂获能选了辅助车 / 辅助供能选了非辅助车）：调整区整卡同一个变灰锁法，与上面装置锁定一致 */
.ds-c .card.team-card > :not(.card-title):not(.dev-lock-note):not(.tm-src) { transition: opacity .35s, filter .35s; }
.ds-c .card.team-card.is-locked > :not(.card-title):not(.dev-lock-note):not(.tm-src) { opacity: .38; filter: grayscale(1); pointer-events: none; }

/* 辅助供能只看供能：选车卡里「基础参数已自动填充、其余手调」那段提示与它无关，先收起 */
/* （由 syncModeBlocks 用 .is-gone 收起 / 展开，带过渡） */
/* 横屏的手机 / 小平板（宽 ≥ 850 但高 ≤ 520）：模式切换同样用紧凑版（只留模式名 + 一行短说明），别在矮屏上占掉三分之一 */
@media (min-width: 850px) and (max-height: 520px) {
  .ds-c .mode-switch { display: block; margin: 0 0 16px; padding: 4px; border-radius: 16px; }
  .ds-c .mode-seg { gap: 2px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-c .mode-thumb { border-radius: 12px; }
  .ds-c .mode-opt { min-height: 38px; padding: 6px 4px; gap: 0; border-radius: 12px; justify-content: center; text-align: center; }
  .ds-c .mode-ico, .ds-c .mode-sub { display: none; }
  .ds-c .mode-name { font-size: 14px; font-weight: 600; }
  .ds-c .mode-opt.is-on .mode-name { font-weight: 700; }
  .ds-c .mode-desc { margin: 4px 6px 0; padding: 7px 2px 6px; border-left: 0; border-top: 1px solid var(--sep); font-size: 12.5px; line-height: 1.5; text-align: center; }
  .ds-c .mode-desc .md-l { display: none; }
  .ds-c .mode-desc .md-s { display: inline; }
}
/* 手机横屏：底部选车面板贴顶；搜索框和「定位 / 专精」筛选并成一行，品质行和列表照旧，列表能多露两三行 */
@media (max-width: 849px) and (max-height: 500px) {
  .ds-c .pv-sheet.dropdown-container { top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr); }
  .ds-c .pv-sheet-grab, .ds-c .pv-sheet-head, .ds-c .pv-sheet-qual, .ds-c .pv-sheet-list { grid-column: 1 / -1; }
  .ds-c .pv-sheet-grab { margin: 6px auto 0; }
  .ds-c .pv-sheet-head { padding: 2px 16px 6px; }
  .ds-c .pv-sheet-search { margin: 0 6px 8px 16px; }
  .ds-c .pv-sheet-search input { height: 38px; }
  .ds-c .pv-sheet-tools { padding: 0 16px 0 0; }
  .ds-c .pv-sheet .car-filters { margin-bottom: 8px; }
  .ds-c .pv-sheet .car-filters .select-btn { height: 38px; }
  .ds-c .pv-sheet-qual { padding-bottom: 8px; }
  .ds-c .pv-sheet.is-mate .pv-sheet-search { grid-column: 1 / -1; margin-right: 16px; }
}

/* 结果说明里的补充行（首发最少氮气数） */
.ds-c .result-desc .pv-need { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }

/* ---------- 底部胶囊：辅助模式只留「供能」一格，蓝点 ---------- */
.ds-c { --info: #0a84ff; --info-ring: rgba(10, 132, 255, .2); }
.ds-c:not(.light-mode) { --info: #409cff; --info-ring: rgba(64, 156, 255, .24); }
.ds-c .ds-dock-item[data-state="info"]::before { background: var(--info); box-shadow: 0 0 0 3px var(--info-ring); }
.ds-c .ds-dock { max-width: calc(100vw - 16px); }
.ds-c .ds-dock.is-morphing { overflow: hidden; justify-content: center; }

/* 长截图：克隆里不要动画 */
.ds-c .pv-export .mode-thumb { transition: none; }

/* ---------- 全站动效补齐与曲线升级 ---------- */
/* 1) 自动填充卡片呼吸高亮（GPU 合成层 ::after + opacity 呼吸，持续闪烁至用户选中卡片内数值，零 box-shadow 重绘） */
@keyframes pvCardFlash {
  0%, 100% { opacity: .28; }
  50% { opacity: 1; }
}
.ds-c .is-flashing { position: relative; }
.ds-c .is-flashing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(var(--flash-rgb), .82), 0 0 14px -2px rgba(var(--flash-rgb), .34);
  animation: pvCardFlash 1.4s cubic-bezier(.4, 0, .2, 1) infinite;
  will-change: opacity;
}
.ds-c .pv-export .is-flashing::after { display: none; animation: none !important; }

/* 2) 选车舞台与车辆信息换车入场动画（双 keyframes 交替重播，避免 void offsetWidth 强制同步重排） */
@keyframes pvCarEnter {
  from { opacity: 0; transform: translateY(7px) scale(.965); }
  to { opacity: 1; transform: none; }
}
@keyframes pvCarEnterB {
  from { opacity: 0; transform: translateY(7px) scale(.965); }
  to { opacity: 1; transform: none; }
}
@keyframes pvMetaEnter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@keyframes pvMetaEnterB {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.ds-c #carImgWrap.pv-car-enter { animation: pvCarEnter .38s cubic-bezier(.2, .8, .2, 1); }
.ds-c #carImgWrap.pv-car-enter-b { animation: pvCarEnterB .38s cubic-bezier(.2, .8, .2, 1); }
.ds-c .car-meta .pv-meta-enter { animation: pvMetaEnter .34s cubic-bezier(.2, .8, .2, 1); }
.ds-c .car-meta .pv-meta-enter-b { animation: pvMetaEnterB .34s cubic-bezier(.2, .8, .2, 1); }

/* 3) 赋能超限拦截轻巧抖动反馈 */
@keyframes pvShakeA {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
@keyframes pvShakeB {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.ds-c .empower-limit-tip.is-shake { animation: pvShakeA .36s cubic-bezier(.36, .07, .19, .97); }
.ds-c .empower-limit-tip.is-shake-b { animation: pvShakeB .36s cubic-bezier(.36, .07, .19, .97); }

/* 4) 下拉触发按钮箭头旋转与分段按钮按压微交互 */
.ds-c .select-btn > .ico { transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.ds-c .dropdown-container:has(> .dropdown-menu.show:not(.is-closing)) > .select-btn > .ico { transform: rotate(180deg); }
.ds-c .chip-seg button { transition: background-color .15s, color .15s, box-shadow .15s, transform .12s cubic-bezier(.2, .8, .2, 1); }
.ds-c .chip-seg button:active { transform: scale(.96); }

/* 5) 大招实际折算时长绿色文字（#actualUltTimeSpan：未来视界 / 猫眠梦之芯等）出现、更新与退场动画 */
@keyframes pvUltIn {
  from { opacity: 0; transform: translate3d(-8px, 0, 0) scale(.96); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes pvUltOut {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to   { opacity: 0; transform: translate3d(-6px, 0, 0) scale(.96); }
}
@keyframes pvUltUpdateA {
  0%   { opacity: 1; transform: translate3d(0, 2px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pvUltUpdateB {
  0%   { opacity: 1; transform: translate3d(0, 2px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
.ds-c #actualUltTimeSpan { transform-origin: left center; will-change: transform, opacity; }
.ds-c #actualUltTimeSpan.is-entering   { animation: pvUltIn .32s cubic-bezier(.22, 1, .36, 1) both; }
.ds-c #actualUltTimeSpan.is-leaving    { animation: pvUltOut .2s cubic-bezier(.4, 0, .2, 1) forwards; pointer-events: none; }
.ds-c #actualUltTimeSpan.is-updating-a { animation: pvUltUpdateA .26s cubic-bezier(.22, 1, .36, 1); }
.ds-c #actualUltTimeSpan.is-updating-b { animation: pvUltUpdateB .26s cubic-bezier(.22, 1, .36, 1); }

/* 6) 底部透明胶囊栏（.ds-dock）状态变换动画与数字按位纵向滚轮（Odometer）动画 */
.ds-c .ds-dock {
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .26s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}
body.ds-c.ds-results-visible .ds-dock,
body.ds-c.pv-sheet-open .ds-dock,
body.ds-c:has(.dropdown-menu.show) .ds-dock,
body.ds-c:has(input[type="number"]:focus, input[type="text"]:focus) .ds-dock {
  transform: translate(-50%, 140%) scale(.92);
}
.ds-c .ds-dock-item {
  transition: background-color .24s cubic-bezier(.22, 1, .36, 1), box-shadow .24s cubic-bezier(.22, 1, .36, 1), transform .18s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .ds-dock-item:active { transform: scale(.94); }
.ds-c .ds-dock-item::before {
  transition: background-color .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s cubic-bezier(.22, 1, .36, 1);
}

/* 通用数字按位纵向滚轮（Odometer：支持结果卡大数值 ds-value、结果卡数据 cs-val / tm-stat-v 及底部胶囊 dock） */
.ds-c .ds-dock-v,
.ds-c .ds-value,
.ds-c .tm-stat-v,
.ds-c .cs-val {
  position: relative !important;
  display: inline-flex;
  align-items: baseline;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden !important;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.ds-c .pv-odo-txt,
.ds-c .pv-odo-num {
  display: inline-flex;
  align-items: baseline;
  height: 1.2em;
  line-height: 1.2em;
  font-variant-numeric: tabular-nums;
}
.ds-c .pv-odo-txt.is-hidden,
.ds-c .pv-odo-num.is-hidden,
.ds-c .pv-odo-d.is-hidden,
.ds-c .pv-odo-pct.is-hidden {
  display: none !important;
}
/* 小数点与小数部分展开/收起平滑过渡：避免整数与小数切换时的宽度硬切跳字 */
.ds-c .pv-odo-dec {
  display: inline-flex;
  align-items: baseline;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: 0;
  line-height: 1.2em;
  overflow: hidden;
  max-width: 4em;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: left baseline;
  transition: max-width .22s cubic-bezier(.22, 1, .36, 1), opacity .18s cubic-bezier(.22, 1, .36, 1), transform .22s cubic-bezier(.22, 1, .36, 1);
  will-change: max-width, opacity, transform;
}
body.ds-c.is-dragging-slider .pv-odo-dec {
  transition: none !important;
}
.ds-c .pv-odo-dec.is-hidden {
  display: inline-flex !important;
  max-width: 0 !important;
  opacity: 0 !important;
  transform: translate3d(-4px, 0, 0) scale(.8) !important;
  pointer-events: none;
}
/* 数位盒用 inline-flex：它的 baseline 取内部字形基线，而不是 overflow:hidden 之后的盒子底边。
   大小字号混排（40px 整数 + 18px 小数）时只有这样才真正落在同一条基线上。 */
.ds-c .pv-odo-d {
  display: inline-flex;
  flex-direction: column;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
}
.ds-c .pv-odo-t {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .pv-odo-d[data-slot="d3"] > .pv-odo-t { transition-duration: .18s; }
.ds-c .pv-odo-d[data-slot="d2"] > .pv-odo-t { transition-duration: .19s; }
.ds-c .pv-odo-d[data-slot="d1"] > .pv-odo-t { transition-duration: .20s; }
.ds-c .pv-odo-d[data-slot="d0"] > .pv-odo-t { transition-duration: .20s; }
.ds-c .pv-odo-d[data-slot="df0"] > .pv-odo-t,
.ds-c .pv-odo-d[data-slot="df1"] > .pv-odo-t,
.ds-c .pv-odo-d[data-slot="df2"] > .pv-odo-t,
.ds-c .pv-odo-d[data-slot="df"] > .pv-odo-t { transition-duration: .21s; }
body.ds-c.is-dragging-slider .pv-odo-t,
body.ds-c.is-dragging-slider .pv-odo-num,
body.ds-c.is-dragging-slider .pv-odo-txt,
.ds-c .is-odo-instant .pv-odo-t,
.ds-c .is-odo-instant .pv-odo-dec,
.ds-c .is-odo-instant .pv-odo-num,
.ds-c .is-odo-instant .pv-odo-txt {
  transition: none !important;
  animation: none !important;
}
.ds-c .pv-odo-t > i {
  font-style: normal;
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  text-align: center;
}
.ds-c .pv-odo-sym {
  display: inline-block;
  height: 1.2em;
  line-height: 1.2em;
}
/* 小数尾巴与百分号：默认跟容器同样大小同样颜色（底部胶囊 dock 就是这个样子），
   结果卡 / 循环卡片再按各自字号压成灰色小字 */
.ds-c .pv-odo-dec,
.ds-c .pv-odo-pct {
  display: inline-flex;
  align-items: baseline;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: 0;
  line-height: 1.2em;
}
.ds-c .ds-value .pv-odo-dec,
.ds-c .ds-value .pv-odo-pct {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-2);
}
.ds-c .cs-val .pv-odo-dec,
.ds-c .cs-val .pv-odo-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
/* 团魂统计：小数同样压成 13px 灰，只有底部胶囊 dock 是例外（见下） */
.ds-c .tm-stat-v .pv-odo-dec {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.ds-c .tm-stat-v .pv-odo-pct {
  margin-left: 1px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
/* 底部胶囊 dock：小数点前后同字号、同亮度，不做大小与明暗区分 */
.ds-c .ds-dock-v .pv-odo-dec,
.ds-c .ds-dock-v .pv-odo-pct {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
}
/* 反制卡片的数值（.slider-value）行高只有 1（22px）：滚轮盒跟着贴到 1em。
   默认的 1.2em 会把这一行撑高 2px，数字相对左侧标签看着浮起来 */
.ds-c .slider-value .pv-odo-txt,
.ds-c .slider-value .pv-odo-num,
.ds-c .slider-value .pv-odo-d,
.ds-c .slider-value .pv-odo-t > i,
.ds-c .slider-value .pv-odo-sym,
.ds-c .slider-value .pv-odo-dec,
.ds-c .slider-value .pv-odo-pct {
  height: 1em;
  line-height: 1em;
}
@media (max-width: 380px) {
  .ds-c .ds-value .pv-odo-dec,
  .ds-c .ds-value .pv-odo-pct {
    font-size: 16px;
  }
}
.is-capturing-longshot .pv-odo-num { display: none !important; }
.is-capturing-longshot .pv-odo-txt { display: inline-block !important; }

/* 文本与数字状态平滑淡入滑入动画（200ms 克制垂直滚入，交替播放，绝不脱离文档流） */
@keyframes pvOdoRollInA {
  from { opacity: .55; transform: translate3d(0, 22%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pvOdoRollInB {
  from { opacity: .55; transform: translate3d(0, 22%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pvStepUpA {
  from { opacity: .55; transform: translate3d(0, 22%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pvStepUpB {
  from { opacity: .55; transform: translate3d(0, 22%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pvStepDownA {
  from { opacity: .55; transform: translate3d(0, -22%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pvStepDownB {
  from { opacity: .55; transform: translate3d(0, -22%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.ds-c .pv-odo-txt.is-roll-a,
.ds-c .pv-odo-num.is-roll-a {
  animation: pvOdoRollInA .2s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .pv-odo-txt.is-roll-b,
.ds-c .pv-odo-num.is-roll-b {
  animation: pvOdoRollInB .2s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .pv-odo-num.is-step-up-a {
  animation: pvStepUpA .2s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .pv-odo-num.is-step-up-b {
  animation: pvStepUpB .2s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .pv-odo-num.is-step-down-a {
  animation: pvStepDownA .2s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .pv-odo-num.is-step-down-b {
  animation: pvStepDownB .2s cubic-bezier(.22, 1, .36, 1);
}

/* 内联提示框 / 状态说明条在已显示状态下内容或行数切换时的平滑过渡 */
.ds-c .tm-solve-note,
.ds-c .tm-src,
.ds-c .mode-bar,
.ds-c .result-desc {
  transition: background-color .28s cubic-bezier(.22, 1, .36, 1), color .28s cubic-bezier(.22, 1, .36, 1), border-color .28s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .pv-box-in { display: block; }
@keyframes pvBoxSwapA {
  from { opacity: .82; transform: translate3d(0, 2px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pvBoxSwapB {
  from { opacity: .82; transform: translate3d(0, 2px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.ds-c .pv-box-swap-a:not(.tm-solve-note):not(.tm-src):not(#carPreviewAutoMsg),
.ds-c .tm-solve-note.pv-box-swap-a > *,
.ds-c .tm-src.pv-box-swap-a > *,
.ds-c #carPreviewAutoMsg.pv-box-swap-a > * {
  animation: pvBoxSwapA .24s cubic-bezier(.22, 1, .36, 1);
}
.ds-c .pv-box-swap-b:not(.tm-solve-note):not(.tm-src):not(#carPreviewAutoMsg),
.ds-c .tm-solve-note.pv-box-swap-b > *,
.ds-c .tm-src.pv-box-swap-b > *,
.ds-c #carPreviewAutoMsg.pv-box-swap-b > * {
  animation: pvBoxSwapB .24s cubic-bezier(.22, 1, .36, 1);
}

body.ds-c.performance-mode #actualUltTimeSpan,
body.ds-c.performance-mode .ds-dock-item,
body.ds-c.performance-mode .ds-dock-item::before,
body.ds-c.performance-mode .pv-odo-t,
body.ds-c.performance-mode .pv-odo-txt,
body.ds-c.performance-mode .pv-odo-num,
body.ds-c.performance-mode .pv-odo-dec,
body.ds-c.performance-mode .share-btn,
body.ds-c.performance-mode .share-btn .pv-share-ico,
body.ds-c.performance-mode .share-btn .pv-share-ico .ico,
body.ds-c.performance-mode .share-btn .pv-share-txt > span,
body.ds-c.performance-mode .slider-control::-webkit-slider-thumb,
body.ds-c.performance-mode .slider-control::-moz-range-thumb,
body.ds-c.performance-mode .pv-box-swap-a,
body.ds-c.performance-mode .pv-box-swap-b,
body.ds-c.performance-mode .pv-box-swap-a > *,
body.ds-c.performance-mode .pv-box-swap-b > * {
  animation: none !important;
  transition: none !important;
}
body.ds-c.performance-mode .slider-control:active::-webkit-slider-thumb,
body.ds-c.performance-mode .slider-control.is-jelly-dragging::-webkit-slider-thumb,
body.ds-c.performance-mode .slider-control:active::-moz-range-thumb,
body.ds-c.performance-mode .slider-control.is-jelly-dragging::-moz-range-thumb {
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .ds-c #actualUltTimeSpan,
  .ds-c .ds-dock-item,
  .ds-c .ds-dock-item::before,
  .ds-c .pv-odo-t,
  .ds-c .pv-odo-txt,
  .ds-c .pv-odo-num,
  .ds-c .pv-odo-dec,
  .ds-c .share-btn,
  .ds-c .share-btn .pv-share-ico,
  .ds-c .share-btn .pv-share-ico .ico,
  .ds-c .share-btn .pv-share-txt > span,
  .ds-c .slider-control::-webkit-slider-thumb,
  .ds-c .slider-control::-moz-range-thumb,
  .ds-c .pv-box-swap-a,
  .ds-c .pv-box-swap-b,
  .ds-c .pv-box-swap-a > *,
  .ds-c .pv-box-swap-b > * {
    animation: none !important;
    transition: none !important;
  }
  .ds-c .slider-control:active::-webkit-slider-thumb,
  .ds-c .slider-control.is-jelly-dragging::-webkit-slider-thumb,
  .ds-c .slider-control:active::-moz-range-thumb,
  .ds-c .slider-control.is-jelly-dragging::-moz-range-thumb {
    transform: none !important;
  }
}

/* 液体主题切换瞬时落位：屏蔽切换帧的 CSS transition，避免底层慢半拍渐变 */
html.lt-no-trans,
html.lt-no-trans *,
html.lt-no-trans *::before,
html.lt-no-trans *::after {
  transition: none !important;
  transition-duration: 0s !important;
}

/* 个人信息与身份凭据：弹窗外壳复用 community-plans.css 的 .cp-modal-overlay / .cp-modal-dialog / .cp-setting-switch-row / .cp-btn，这里仅补充差异 */
.profile-toggle-wrapper { position: relative; }
/* 昵称：弹窗焦点区，暖金描边高光 + 大号输入框 */
.profile-dialog .profile-nick-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-md); background-color: color-mix(in oklab, var(--acc) 8%, var(--surface)); background-image: linear-gradient(180deg, color-mix(in oklab, var(--acc) 12%, transparent), transparent); border: 1px solid color-mix(in oklab, var(--acc) 55%, var(--surface-edge)); box-shadow: inset 0 1px 0 var(--surface-rim), 0 4px 18px -6px color-mix(in oklab, var(--acc) 35%, transparent); transition: border-color .2s ease, box-shadow .25s ease; }
.profile-dialog .profile-nick-card:focus-within { border-color: var(--acc); box-shadow: inset 0 1px 0 var(--surface-rim), 0 0 0 3px color-mix(in oklab, var(--acc) 24%, transparent), 0 6px 22px -6px color-mix(in oklab, var(--acc) 45%, transparent); }
.profile-dialog .profile-nick-head { display: flex; align-items: center; gap: 8px; }
.profile-dialog .profile-nick-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; color: var(--acc); background: color-mix(in oklab, var(--acc) 16%, transparent); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.profile-dialog .profile-nick-card:focus-within .profile-nick-ico { transform: scale(1.12) rotate(-6deg); }
.profile-dialog .profile-nick-ico .ico { width: 16px; height: 16px; }
.profile-dialog .profile-nick-label { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.profile-dialog .profile-nick-count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color .2s ease; }
.profile-dialog .profile-nick-card.has-value .profile-nick-count { color: var(--acc); }
.profile-dialog .profile-nick-input { width: 100%; height: 50px; padding: 0 14px; font-size: 17px; font-weight: 600; color: var(--ink); background-color: var(--fill); background-image: linear-gradient(180deg, rgba(255,255,255,.04), transparent); border: 1px solid var(--surface-edge); border-radius: var(--r-md); box-shadow: inset 0 1px 0 var(--surface-rim); outline: none; transition: border-color .2s ease, background-color .2s ease; }
.profile-dialog .profile-nick-input::placeholder { color: var(--ink-3); font-weight: 500; }
.profile-dialog .profile-nick-input:focus { border-color: var(--acc); background-color: var(--fill-hover); }
.profile-dialog .profile-nick-hint { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.profile-dialog .profile-nick-card.is-invalid { border-color: var(--fail); animation: profile-shake .38s cubic-bezier(.36, .07, .19, .97); }
.profile-dialog .profile-nick-card.is-invalid .profile-nick-hint { color: var(--fail); }
@keyframes profile-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
/* 进出场与分段错峰淡入 */
.profile-overlay.is-closing { animation: profile-fade-out .18s ease forwards; pointer-events: none; }
.profile-overlay.is-closing .profile-dialog { animation: profile-pop-out .18s ease forwards; }
@keyframes profile-fade-out { to { opacity: 0; } }
@keyframes profile-pop-out { to { opacity: 0; transform: scale(.96) translateY(6px); } }
@keyframes profile-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.profile-dialog .cp-modal-body > *, .profile-dialog .cp-modal-footer { animation: profile-rise .38s cubic-bezier(.2, .8, .2, 1) both; }
.profile-dialog .cp-modal-body > :nth-child(1) { animation-delay: .05s; }
.profile-dialog .cp-modal-body > :nth-child(2) { animation-delay: .11s; }
.profile-dialog .cp-modal-body > :nth-child(3) { animation-delay: .17s; }
.profile-dialog .cp-modal-body > :nth-child(4) { animation-delay: .23s; }
.profile-dialog .cp-modal-footer { animation-delay: .27s; }
.profile-dialog .profile-warn .ico { animation: profile-warn-pulse 1.8s ease-in-out .4s 2; }
@keyframes profile-warn-pulse { 50% { transform: scale(1.18); } }
.profile-dialog .profile-status:not([hidden]) { animation: profile-rise .25s ease both; }
.profile-dialog .cp-modal-close .ico { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.profile-dialog .cp-modal-close:hover .ico { transform: rotate(90deg); }
.profile-dialog .cp-btn:not(.btn-hold):active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .profile-dialog *, .profile-overlay.is-closing, .profile-overlay.is-closing .profile-dialog { animation: none !important; transition: none !important; }
}
.ds-c .top-bar #profileBtn { position: relative; }
.profile-overlay { z-index: 1000000; }
.profile-dialog { outline: none; }
.profile-dialog .cp-modal-title .lang-en { font-weight: 700; }
.profile-dialog .cp-setting-switch-row.profile-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.profile-dialog .profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-dialog .profile-actions .cp-btn { flex: 1 1 130px; justify-content: center; }
.profile-dialog .profile-status { color: var(--warn); }
.profile-dialog .profile-warn { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); background: var(--fail-soft); border-color: color-mix(in oklab, var(--fail) 45%, var(--surface-edge)); line-height: 1.55; }
.profile-dialog .profile-warn .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--fail); }
/* 红色危险按钮：沿用 .cp-btn 规格，语义色取自 --fail */
/* 弹窗内普通按钮：毛玻璃 --fill + 180° 顶光渐变 + rim 内高光，不用纯色底 */
.profile-dialog .cp-btn:not(.cp-btn-save):not(.profile-danger) { background-color: var(--fill); background-image: linear-gradient(180deg, rgba(255,255,255,.04), transparent); border: 1px solid var(--surface-edge); box-shadow: inset 0 1px 0 var(--surface-rim); color: var(--ink); }
.profile-dialog .cp-btn:not(.cp-btn-save):not(.profile-danger):hover { background-color: var(--fill-hover); border-color: color-mix(in oklab, var(--acc) 55%, var(--surface-edge)); transform: translateY(-1px); }
.ds-c .cp-btn.profile-danger { position: relative; overflow: hidden; background-color: color-mix(in oklab, var(--fail) 20%, var(--surface)); background-image: linear-gradient(180deg, color-mix(in oklab, var(--fail) 14%, transparent), transparent); border: 1px solid color-mix(in oklab, var(--fail) 65%, transparent); color: var(--ink); box-shadow: inset 0 1px 0 var(--surface-rim), 0 2px 8px color-mix(in oklab, var(--fail) 22%, transparent); }
.ds-c .cp-btn.profile-danger .ico, .ds-c .cp-btn.profile-danger .hold-ring-wrap { color: var(--fail); }
.ds-c .cp-btn.profile-danger:hover { background-color: color-mix(in oklab, var(--fail) 30%, var(--surface)); border-color: var(--fail); transform: translateY(-1px); }
.ds-c .cp-btn.profile-danger:focus-visible, .ds-c .cp-btn:focus-visible, .profile-dialog .cp-modal-close:focus-visible { outline: 2px solid var(--fail-fill); outline-offset: 2px; }
.ds-c .cp-btn:not(.profile-danger):focus-visible, .profile-dialog .cp-modal-close:focus-visible { outline-color: var(--acc); }
/* 长按确认：视觉与交互对齐后台 .btn-hold（填充条 + 圆环） */
.profile-dialog .profile-hold-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); transition: color .18s ease; }
.profile-dialog .profile-hold-hint.is-holding { color: var(--fail); font-weight: 600; }
.ds-c .btn-hold { isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ds-c .btn-hold::before { content: ""; position: absolute; inset: 0; z-index: 0; background: color-mix(in oklab, var(--fail) 38%, transparent); transform: scaleX(0); transform-origin: left center; transition: transform .22s ease; pointer-events: none; }
.ds-c .btn-hold.is-holding::before { transform: scaleX(1); transition: transform 1s linear; }
.ds-c .btn-hold.is-hold-complete::before { transform: scaleX(1); background: color-mix(in oklab, var(--fail) 55%, transparent); }
.ds-c .btn-hold > * { position: relative; z-index: 1; }
.ds-c .btn-hold.is-holding { box-shadow: 0 0 0 3px var(--fail-soft); transform: scale(.985); }
.hold-ring-wrap { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; flex: none; }
.hold-ring-svg { width: 17px; height: 17px; display: block; transform: rotate(-90deg); }
.hold-ring-track { fill: none; stroke: currentColor; stroke-width: 2.4; opacity: .3; }
.hold-ring-progress { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 56.6; stroke-dashoffset: 56.6; transition: stroke-dashoffset .22s ease; }
.btn-hold.is-holding .hold-ring-progress, .btn-hold.is-hold-complete .hold-ring-progress { stroke-dashoffset: 0; }
.btn-hold.is-holding .hold-ring-progress { transition: stroke-dashoffset 1s linear; }
@media (max-width: 640px) {
  .profile-dialog .cp-modal-footer { flex-wrap: wrap; }
  .profile-dialog .cp-modal-footer .cp-btn { flex: 1 1 120px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-c .btn-hold::before, .btn-hold .hold-ring-progress, .profile-dialog .profile-hold-hint { transition: none !important; }
  .ds-c .btn-hold.is-holding { transform: none; outline: 2px solid var(--fail); outline-offset: -4px; }
}
