/* v3-k-hardware/css/k-hw.css：硬件详情页（v3 规范）版式。只用设计令牌；引脚功能色单独定义（已用 dataviz 校验脚本验证 CVD 区分度，
   浅色主题 3 个色对白底 < 3:1，所以每个引脚都同时显示网络名文字 + 图例，颜色不单独承载信息）。
   断点：≥1280 两栏 7/5 · 768–1279 两栏 6/6 · ≤767 单栏（验收 390）。 */

/* ---------- 引脚功能色（分类色，固定顺序，不循环） ---------- */
html[data-ds] { --k-pf-i2c: #3987e5; --k-pf-spi: #d95926; --k-pf-uart: #199e70; --k-pf-pwm: #c98500; --k-pf-adc: #d55181; --k-pf-gpio: #9085e9; --k-pf-power: #e66767; --k-pf-ground: var(--ds-text-3); }
html[data-ds][data-theme="light"], html[data-ds][data-theme="industrial"], html[data-ds][data-theme="warm"] { --k-pf-i2c: #2a78d6; --k-pf-spi: #eb6834; --k-pf-uart: #1baf7a; --k-pf-pwm: #eda100; --k-pf-adc: #e87ba4; --k-pf-gpio: #4a3aa7; --k-pf-power: #e34948; }
[data-pf="i2c"] { --k-pf: var(--k-pf-i2c); } [data-pf="spi"] { --k-pf: var(--k-pf-spi); } [data-pf="uart"] { --k-pf: var(--k-pf-uart); } [data-pf="pwm"] { --k-pf: var(--k-pf-pwm); }
[data-pf="adc"] { --k-pf: var(--k-pf-adc); } [data-pf="gpio"] { --k-pf: var(--k-pf-gpio); } [data-pf="power"] { --k-pf: var(--k-pf-power); } [data-pf="ground"] { --k-pf: var(--k-pf-ground); }

.k-hwp { --k-sn-h: 50px; padding-bottom: var(--ds-sp-10); }
.k-hwp .k-crumbs { padding-top: var(--ds-sp-4); }

/* ---------- 首屏（概览）：左 7 图集 / 右 5 标题区 ---------- */
.k-h3x { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "gal head" "gal info"; grid-template-rows: auto 1fr; gap: 0 var(--ds-sp-8); margin: var(--ds-sp-3) 0 var(--ds-sp-5); }
.k-h3x__gal { grid-area: gal; min-width: 0; }
.k-h3x > .k-hh { grid-area: head; }
.k-h3x__info { grid-area: info; display: flex; flex-direction: column; gap: var(--ds-sp-3); min-width: 0; }
.k-hh__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.k-hh__h1 { margin: var(--ds-sp-2) 0 var(--ds-sp-2); font-size: var(--ds-fs-2xl); line-height: 1.25; overflow-wrap: anywhere; }
.k-hh--c .k-hh__h1 { font-size: var(--ds-fs-xl); margin: 4px 0; }
.k-h3x__sum { margin: 0; color: var(--ds-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-chipline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-sp-2) var(--ds-sp-4); }
.k-chipline__c a { font-weight: var(--ds-fw-semibold); }
.k-revpick { display: inline-flex; align-items: center; gap: var(--ds-sp-2); }
.k-revpick__l { color: var(--ds-text-3); font-size: var(--ds-fs-sm); }
.k-revpick .ds-select { width: auto; min-width: 96px; }

/* 规格格：3 列 × 2 行，数值 16px 粗体 / 标签 12px */
.k-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); overflow: hidden; }
.k-tile { padding: 10px var(--ds-sp-3); border-right: 1px solid var(--ds-divider); border-bottom: 1px solid var(--ds-divider); min-width: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.k-tiles .k-tile:nth-child(3n) { border-right: 0; }
.k-tiles .k-tile:nth-last-child(-n+3):nth-child(3n+1), .k-tiles .k-tile:nth-last-child(-n+3):nth-child(3n+1) ~ .k-tile { border-bottom: 0; }
.k-tile dt { font-size: var(--ds-fs-xs); color: var(--ds-text-3); }
.k-tile dd { margin: 0; font-size: var(--ds-fs-lg); font-weight: var(--ds-fw-bold); line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.k-tiles--row { display: flex; flex-wrap: wrap; border: 0; background: none; gap: 4px var(--ds-sp-4); }
.k-tiles--row .k-tile { border: 0; padding: 0; flex-direction: row-reverse; align-items: baseline; gap: 4px; }
.k-tiles--row .k-tile dd { font-size: var(--ds-fs-sm); font-weight: var(--ds-fw-semibold); }

.k-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.k-cap { text-decoration: none !important; min-height: 26px; }
.k-cap:hover { filter: brightness(1.1); }
.k-cap--off { color: var(--ds-text-3); border-style: dashed; }
.k-acts { display: flex; flex-wrap: wrap; gap: var(--ds-sp-2); align-items: center; }
.k-acts .ds-btn { text-decoration: none; }
.k-btn__n { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 18%, transparent); font-size: var(--ds-fs-xs); font-variant-numeric: tabular-nums; }
.k-actnote { flex-basis: 100%; margin: 0; font-size: var(--ds-fs-xs); color: var(--ds-text-3); }
.k-buyrow { border-top: 1px solid var(--ds-divider); padding-top: var(--ds-sp-2); }
.k-buyline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--ds-link); font: inherit; font-size: var(--ds-fs-md); cursor: pointer; text-align: left; }
.k-buyline:hover > span:first-of-type { text-decoration: underline; }

/* ---------- 图集 ---------- */
.k-g2__main { position: relative; border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface-2); overflow: hidden; }
.k-g2__track { display: flex; overflow: hidden; height: clamp(260px, 32vw, 430px); cursor: zoom-in; }
.k-g2__slide { flex: 0 0 100%; margin: 0; position: relative; display: none; place-items: center; min-width: 0; }
.k-g2__slide[data-active] { display: grid; }
.k-g2__slide { height: 100%; overflow: hidden; }
.k-g2__slide > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.k-g2__cap { position: absolute; left: 8px; top: 8px; }
.k-g2__zoom { position: absolute; right: 8px; top: 8px; }
.k-g2__foot { display: none; }
.k-g2__thumbs { display: flex; gap: var(--ds-sp-2); margin-top: var(--ds-sp-2); overflow-x: auto; padding: 2px; }
.k-g2__t { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--ds-border); border-radius: var(--ds-r-sm); background: var(--ds-surface); color: var(--ds-text-2); font-size: var(--ds-fs-xs); cursor: pointer; }
.k-g2__t img, .k-g2__t3d { width: 72px; height: 54px; object-fit: cover; border-radius: var(--ds-r-xs); display: grid; place-items: center; background: var(--ds-surface-2); color: var(--ds-text-3); }
.k-g2__t[aria-selected="true"] { border-color: var(--ds-primary); color: var(--ds-link); box-shadow: 0 0 0 1px var(--ds-primary); }
.k-g2__t--3d { border-style: dashed; }
.k-g3d { display: grid; justify-items: center; gap: var(--ds-sp-2); padding: var(--ds-sp-6); text-align: center; max-width: 420px; }
.k-g3d__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-surface-3); color: var(--ds-text-2); }
.k-g3d__t { margin: 0; font-weight: var(--ds-fw-semibold); color: var(--ds-text); } .k-g3d__b { margin: 0; font-size: var(--ds-fs-sm); color: var(--ds-text-2); }
.k-gpin { width: 100%; height: 100%; display: grid; place-items: center; padding: var(--ds-sp-3); gap: 4px; }
.k-gpin .k-pinsvg { max-height: 340px; }
/* 放大查看 */
dialog.k-lb { width: min(1200px, 96vw); height: min(900px, 92vh); max-width: none; max-height: none; padding: 0; border: 1px solid var(--ds-border-strong); border-radius: var(--ds-r-lg); background: var(--ds-overlay); color: var(--ds-text); }
dialog.k-lb[open] { display: flex; flex-direction: column; }
dialog.k-lb::backdrop { background: var(--ds-backdrop); }
.k-lb__bar { display: flex; align-items: center; gap: var(--ds-sp-2); padding: var(--ds-sp-2) var(--ds-sp-3); border-bottom: 1px solid var(--ds-divider); }
.k-lb__count { margin: 0; font-size: var(--ds-fs-sm); color: var(--ds-text-2); }
.k-lb__body { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--ds-sp-2); padding: var(--ds-sp-3); }
.k-lb__stage { height: 100%; min-height: 0; overflow: auto; display: grid; place-items: center; }
.k-lb__fig { margin: 0; display: grid; gap: var(--ds-sp-2); justify-items: center; max-height: 100%; }
.k-lb__fig > img { max-width: 100%; max-height: calc(92vh - 140px); object-fit: contain; }
.k-lb__fig.is-zoom > img { max-width: none; max-height: none; width: 200%; height: auto; }
.k-lb__fig figcaption { display: flex; gap: 6px; align-items: center; font-size: var(--ds-fs-sm); color: var(--ds-text-2); }

/* ---------- 紧凑首屏（非概览标签） ---------- */
.k-hc { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--ds-sp-5); align-items: center; margin: var(--ds-sp-3) 0 var(--ds-sp-4); }
.k-hc__img img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--ds-r-md); border: 1px solid var(--ds-border); display: block; background: var(--ds-surface-2); }
.k-hc__main { min-width: 0; display: grid; gap: 6px; }
.k-hc__side { display: grid; gap: var(--ds-sp-2); justify-items: end; }
.k-hc__side .k-buyrow { border: 0; padding: 0; }

/* ---------- 吸顶子导航 ---------- */
.k-sn { position: sticky; top: var(--k-hdr, 0px); z-index: calc(var(--ds-z-sticky) + 1); background: var(--ds-bg); border-bottom: 1px solid var(--ds-border); }
.k-sn__in { display: flex; align-items: center; gap: var(--ds-sp-3); min-height: var(--k-sn-h); }
.k-sn__id { display: none; align-items: center; gap: var(--ds-sp-2); flex: 0 1 260px; min-width: 0; color: var(--ds-text); text-decoration: none; }
.k-sn__id img { width: 28px; height: 28px; object-fit: cover; border-radius: var(--ds-r-xs); flex: none; }
.k-sn__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--ds-fw-semibold); font-size: var(--ds-fs-sm); min-width: 0; }
.k-sn__rev { font-size: var(--ds-fs-xs); color: var(--ds-text-3); flex: none; }
.k-sn.is-stuck .k-sn__id { display: flex; animation: k-fade var(--ds-dur) var(--ds-ease-out); }
.k-sn__tabs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.k-sn__tabs::-webkit-scrollbar { display: none; }
.k-sn__tabs .ds-tab { white-space: nowrap; text-decoration: none !important; color: var(--ds-text-2); min-height: var(--k-sn-h); }
.k-tab--dim .ds-tab__count { opacity: .75; }
.k-sn__act { display: none; align-items: center; gap: var(--ds-sp-2); flex: none; }
.k-sn.is-stuck .k-sn__act { display: flex; }
.k-sn__act .ds-btn { text-decoration: none; }
/* 2026-10-21 用户反馈：吸顶时左侧冒出缩略图和板名，把整排标签往右推。
   改为标签永远从最左开始（order 0），板名和主操作吸顶时出现在标签右侧（margin-left:auto），标签起点不随吸顶变化。 */
.k-sn__tabs { order: 0; }
.k-sn__id { order: 1; margin-left: auto; flex: 0 1 220px; }
.k-sn__act { order: 2; }
/* 标签文字放大一号并统一加粗（所有标签同字重，切换时宽度不变、不挤动相邻标签）；选中项另加底色和加粗下划线 */
.k-sn__tabs .ds-tab { font-size: var(--ds-fs-lg); font-weight: var(--ds-fw-semibold); }
.k-sn__tabs .ds-tab[aria-current="page"] { color: var(--ds-text); background: var(--ds-primary-soft); border-radius: var(--ds-r-sm) var(--ds-r-sm) 0 0; }
.k-sn__tabs .ds-tab[aria-current="page"]::after { height: 3px; left: 0; right: 0; }
@keyframes k-fade { from { opacity: 0; } to { opacity: 1; } }
.k-panel3 { padding-top: var(--ds-sp-5); min-height: 50vh; }
.k-hsec { scroll-margin-top: calc(var(--k-hdr, 0px) + var(--k-sn-h) + 12px); margin: 0 0 var(--ds-sp-8); }
.k-hsec .ds-section__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-sp-3); margin-bottom: var(--ds-sp-3); }
.k-hsec .ds-section__head h2 { margin: 0; font-size: var(--ds-fs-xl); }
.k-hsec h2:focus { outline: none; }

/* ---------- 页内目录 ---------- */
.k-withtoc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--ds-sp-8); align-items: start; }
.k-withtoc--r { grid-template-columns: minmax(0, 1fr) 220px; }
.k-toc2 { position: sticky; top: calc(var(--k-hdr, 0px) + var(--k-sn-h) + 16px); }
.k-toc2__h { margin: 0 0 var(--ds-sp-2); font-size: var(--ds-fs-xs); font-weight: var(--ds-fw-semibold); color: var(--ds-text-3); text-transform: uppercase; letter-spacing: .04em; }
.k-toc2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--ds-divider); }
.k-toc2 a { display: block; margin-left: -2px; padding: 5px var(--ds-sp-3); border-left: 2px solid transparent; font-size: var(--ds-fs-sm); color: var(--ds-text-2); text-decoration: none; }
.k-toc2 a:hover { color: var(--ds-text); }
.k-toc2 a[aria-current="location"] { color: var(--ds-link); border-left-color: var(--ds-primary); font-weight: var(--ds-fw-semibold); }

/* ---------- 概览 ---------- */
.k-hl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--ds-sp-3); }
.k-hl__c { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ic t" "ic eg" "ic n"; gap: 2px var(--ds-sp-3); padding: var(--ds-sp-3); height: 100%; border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); color: var(--ds-text); text-decoration: none !important; }
.k-hl__c:hover { border-color: var(--ds-primary-border); background: var(--ds-row-hover); }
.k-hl__ic { grid-area: ic; } .k-hl__ic img { width: 40px; height: 30px; border-radius: var(--ds-r-xs); object-fit: cover; }
.k-hl__t { grid-area: t; font-weight: var(--ds-fw-semibold); } .k-hl__eg { grid-area: eg; font-size: var(--ds-fs-xs); color: var(--ds-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-hl__n { grid-area: n; font-size: var(--ds-fs-sm); color: var(--ds-link); display: inline-flex; align-items: center; gap: 2px; }
.k-qs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-sp-3); counter-reset: qs; }
.k-qs__s { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--ds-sp-3); padding: var(--ds-sp-4); border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); align-items: start; }
.k-qs__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-primary); color: var(--ds-on-primary); font-weight: var(--ds-fw-bold); }
.k-qs__t { margin: 4px 0 6px; font-size: var(--ds-fs-md); }
.k-qs__s p { margin: 0 0 var(--ds-sp-2); font-size: var(--ds-fs-sm); color: var(--ds-text-2); }
.k-qs__line { display: block; padding: 6px var(--ds-sp-2); border-radius: var(--ds-r-xs); background: var(--ds-term-bg); color: var(--ds-term-fg); font-size: var(--ds-fs-xs); overflow-x: auto; white-space: pre; }
.k-qs__more { margin-top: var(--ds-sp-2); font-size: var(--ds-fs-sm); } .k-qs__more summary { cursor: pointer; color: var(--ds-link); }
.k-qs__more .ds-table-wrap, .k-qs__pre { margin-top: var(--ds-sp-2); }
.k-qs__pre { max-height: 180px; font-size: var(--ds-fs-xs); }
.k-recs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--ds-sp-3); }
.k-rec { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--ds-sp-3); padding: var(--ds-sp-3); border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); }
.k-rec__thumb { width: 72px; height: 54px; border-radius: var(--ds-r-xs); background: var(--ds-surface-2); display: grid; place-items: center; overflow: hidden; color: var(--ds-text-3); }
.k-rec__thumb img { width: 100%; height: 100%; object-fit: cover; }
.k-rec__t { margin: 0; font-size: var(--ds-fs-md); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; } .k-rec__v { font-size: var(--ds-fs-xs); color: var(--ds-text-3); font-weight: 400; }
.k-rec__s { margin: 2px 0 6px; font-size: var(--ds-fs-sm); color: var(--ds-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-spec { table-layout: fixed; } .k-spec th[scope="row"] { width: 32%; color: var(--ds-text-2); font-weight: var(--ds-fw-medium); }
.k-spec__gh { background: var(--ds-surface-2) !important; color: var(--ds-text) !important; font-size: var(--ds-fs-xs) !important; text-transform: uppercase; letter-spacing: .04em; }
.k-spec td { overflow-wrap: anywhere; }
.k-pinov { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--ds-sp-6); align-items: start; }
.k-pinov__svg { display: grid; gap: var(--ds-sp-2); min-width: 0; }
.k-ob__l { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-sp-2); }
.k-ob__l li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--ds-sp-3); align-items: center; padding: var(--ds-sp-2); border: 1px solid var(--ds-divider); border-radius: var(--ds-r-sm); background: var(--ds-surface); }
.k-ob__l img { width: 40px; height: 30px; border-radius: var(--ds-r-xs); object-fit: cover; } .k-ob__m { font-weight: var(--ds-fw-semibold); }
.k-ob .k-h3 { margin-top: 0; }
.k-relrow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--ds-sp-3); }
.k-relrow .ds-card__media { aspect-ratio: 16 / 8; }
.k-relg + .k-relg { margin-top: var(--ds-sp-4); }

/* ---------- 引脚 SVG ---------- */
.k-pinwrap { overflow-x: auto; border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); padding: var(--ds-sp-2); }
.k-pinsvg { display: block; max-width: 100%; height: auto; margin: 0 auto; font-family: var(--ds-font); }
.k-pinsvg__board { fill: var(--ds-surface-2); stroke: var(--ds-border-strong); stroke-width: 1.5; }
.k-pinsvg__hdr { fill: var(--ds-surface-3); stroke: var(--ds-border); }
.k-pinsvg__hn { fill: var(--ds-text); font-size: 14px; font-weight: 700; }
.k-pin { cursor: pointer; outline: none; }
.k-pin__hit { fill: transparent; }
.k-pin__dot { fill: var(--k-pf); stroke: var(--ds-surface-2); stroke-width: 2; }
.k-pin__net { fill: var(--ds-text); font-size: 12.5px; font-weight: 600; font-family: var(--ds-mono); }
.k-pin__mcu { fill: var(--ds-text-3); font-size: 11.5px; font-family: var(--ds-mono); }
.k-pin:hover .k-pin__hit, .k-pin.is-hl .k-pin__hit { fill: var(--ds-row-current); stroke: var(--ds-primary); stroke-width: 1.5; }
.k-pin:focus-visible .k-pin__hit { stroke: var(--ds-focus); stroke-width: 3; }
.k-pinsvg[data-hl] .k-pin:not(.is-hl) { opacity: .4; }
.k-pinsvg[data-pf]:not([data-pf="all"]) .k-pin { opacity: .25; }
.k-pinsvg[data-pf="i2c"] .k-pin[data-pf="i2c"], .k-pinsvg[data-pf="spi"] .k-pin[data-pf="spi"], .k-pinsvg[data-pf="uart"] .k-pin[data-pf="uart"], .k-pinsvg[data-pf="pwm"] .k-pin[data-pf="pwm"],
.k-pinsvg[data-pf="adc"] .k-pin[data-pf="adc"], .k-pinsvg[data-pf="gpio"] .k-pin[data-pf="gpio"], .k-pinsvg[data-pf="power"] .k-pin[data-pf="power"], .k-pinsvg[data-pf="ground"] .k-pin[data-pf="ground"] { opacity: 1; }
.k-pinsvg--mini .k-pin { cursor: default; }
.k-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--ds-sp-4); font-size: var(--ds-fs-sm); color: var(--ds-text-2); }
.k-legend li { display: inline-flex; align-items: center; gap: 6px; }
.k-legend__sw, .k-pfdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--k-pf); flex: none; }
.k-pfdot { margin-right: 6px; vertical-align: 0; }
.k-pinbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-sp-2); margin-bottom: var(--ds-sp-3); }
.k-pinbar .k-chips { margin: 0; }
.k-pintables { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: var(--ds-sp-4); }
.k-pintbl tr[data-current] td { background: var(--ds-row-current) !important; box-shadow: inset 3px 0 0 var(--ds-primary); }
.k-pintbl td .ds-btn--icon { width: 28px; padding: 0; }
.k-schg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--ds-sp-4); }
.k-pdfcard .k-h3 { margin-top: 0; }
.k-sch__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.k-sch__big { width: 100%; height: auto; }
.k-desc { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--ds-sp-3); }
.k-desc div { padding: var(--ds-sp-3); border: 1px solid var(--ds-divider); border-radius: var(--ds-r-sm); background: var(--ds-surface); }
.k-desc dt { font-size: var(--ds-fs-xs); color: var(--ds-text-3); } .k-desc dd { margin: 2px 0 0; }
.k-mrcard .k-h3 { margin-top: var(--ds-sp-3); }

/* ---------- 固件 ---------- */
.k-fwbar { position: sticky; top: calc(var(--k-hdr, 0px) + var(--k-sn-h)); z-index: var(--ds-z-sticky); background: var(--ds-bg); padding-top: var(--ds-sp-2); }
.k-fwbar__r { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-sp-2) var(--ds-sp-3); }
.k-cat--fw .k-cat__aside { top: calc(var(--k-hdr, 0px) + var(--k-sn-h) + 12px); max-height: calc(100vh - var(--k-hdr, 0px) - var(--k-sn-h) - 24px); }
.k-cat--fw .k-fwgroup__h { top: calc(var(--k-hdr, 0px) + var(--k-sn-h) + 56px); padding: 0; }
.k-fwgroup__b { display: flex; align-items: center; gap: var(--ds-sp-2); width: 100%; min-height: 36px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.k-fwgroup__b[aria-expanded="false"] .ds-icon { transform: rotate(-90deg); }
.k-cat--fw .k-fwrow { grid-template-columns: 20px 64px minmax(0, 1fr) auto; }
.k-fwrow__cb { display: flex; align-items: flex-start; padding-top: 14px; } .k-fwrow__cb input { width: 16px; height: 16px; accent-color: var(--ds-primary); }
.k-cat--fw .k-fwrow__thumb { height: 48px; }
.k-fwrow--off { background: var(--ds-surface-2); } .k-fwrow--off .k-fwrow__thumb, .k-fwrow--off .k-fwrow__main > .ds-badges { opacity: .6; }
.k-histt { margin-top: var(--ds-sp-2); }
.k-cmpbar { position: fixed; left: 50%; bottom: var(--ds-sp-4); transform: translateX(-50%); z-index: var(--ds-z-drawer); display: flex; align-items: center; gap: var(--ds-sp-2); max-width: min(760px, calc(100vw - 24px)); padding: var(--ds-sp-2) var(--ds-sp-3); border: 1px solid var(--ds-border-strong); border-radius: var(--ds-r-lg); background: var(--ds-overlay); box-shadow: var(--ds-shadow-3); }
.k-cmpbar[hidden] { display: none; }
.k-cmpbar__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--ds-fs-sm); }
dialog.k-cmpd { width: min(980px, calc(100vw - 24px)); }
.k-cmpt tr[data-diff] td { background: var(--ds-warn-soft); }
.k-cmpt th[scope="row"] { color: var(--ds-text-2); white-space: nowrap; }

/* ---------- 外设 ---------- */
.k-phead2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-sp-3); margin-bottom: var(--ds-sp-3); }
.k-psum { display: grid; grid-template-columns: repeat(4, minmax(90px, auto)); margin: 0; border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); overflow: hidden; }
.k-psum .k-tile { border-bottom: 0; } .k-psum .k-tile:last-child { border-right: 0; }
.k-pgrps { display: grid; gap: var(--ds-sp-5); }
.k-pgrp[hidden] { display: none; }
.k-pcell { display: flex; gap: var(--ds-sp-3); align-items: center; } .k-pcell img { width: 40px; height: 30px; object-fit: cover; border-radius: var(--ds-r-xs); flex: none; }
.k-pcell__m { font-weight: var(--ds-fw-semibold); }

/* ---------- 资料下载 ---------- */
.k-dkg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-sp-3); }
.k-dk { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: var(--ds-sp-2) var(--ds-sp-3); padding: var(--ds-sp-3); border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); }
.k-dk--pend { border-style: dashed; background: transparent; }
.k-dk__ic { width: 36px; height: 36px; border-radius: var(--ds-r-sm); display: grid; place-items: center; background: var(--ds-surface-2); color: var(--ds-text-2); }
.k-dk__m { min-width: 0; } .k-dk__t { margin: 0; font-size: var(--ds-fs-md); overflow-wrap: anywhere; } .k-dk__s { margin: 2px 0 0; font-size: var(--ds-fs-sm); color: var(--ds-text-2); overflow-wrap: anywhere; }
.k-dk__meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px var(--ds-sp-3); align-items: center; font-size: var(--ds-fs-xs); color: var(--ds-text-3); }
.k-dk__a { grid-column: 2; } .k-dk__a .ds-btn { text-decoration: none; }
.k-dk__pend { color: var(--ds-text-2); }
.k-docs3__foot { border-top: 1px solid var(--ds-divider); padding-top: var(--ds-sp-3); }

/* ---------- 评测 ---------- */
.k-rvsum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--ds-sp-6); align-items: center; margin-bottom: var(--ds-sp-6); }
.k-rvsum__h { display: flex; gap: var(--ds-sp-5); align-items: center; }
.k-rvsum__h .k-h2 { margin: 0 0 4px; }
.k-rvsum__r { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--ds-sp-4); align-items: center; }
.k-radar { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.k-radar__grid { fill: none; stroke: var(--ds-divider); stroke-width: 1; } .k-radar__axis { stroke: var(--ds-divider); stroke-width: 1; }
.k-radar__area { fill: color-mix(in srgb, var(--k-pf-i2c) 22%, transparent); stroke: var(--k-pf-i2c); stroke-width: 2; stroke-linejoin: round; }
.k-radar__dot { fill: var(--k-pf-i2c); stroke: var(--ds-surface); stroke-width: 2; }
.k-radar__lb { fill: var(--ds-text-2); font-size: 12px; }
.k-tpl--off td { color: var(--ds-text-3); }
.k-rv > .ds-state .ds-row { justify-content: center; }

/* ---------- 版本差异 ---------- */
.k-revs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--ds-sp-3); }
.k-revs__i { padding: var(--ds-sp-3); border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); }
.k-revs__i.is-cur { border-color: var(--ds-primary); box-shadow: 0 0 0 1px var(--ds-primary); }
.k-revs__i a { text-decoration: none; color: var(--ds-text); } .k-revs__i p { margin: 4px 0 0; color: var(--ds-text-2); }
.k-revt th[scope="row"] { color: var(--ds-text-2); white-space: nowrap; }
.k-revt tr[data-diff="1"] .k-diffc { background: var(--ds-warn-soft); font-weight: var(--ds-fw-semibold); }
.k-cpt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--ds-sp-3); }
.k-cpt .k-tile { display: grid; gap: 2px; border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface); }
.k-cpt p { margin: 0; } .k-cpt__r { font-weight: var(--ds-fw-bold); } .k-cpt__n { font-size: var(--ds-fs-lg); font-weight: var(--ds-fw-semibold); }
.k-revid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--ds-sp-4); align-items: center; }
.k-revid > .ds-badge { justify-self: start; }
.k-revid__ph { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed var(--ds-border-strong); border-radius: var(--ds-r-md); color: var(--ds-text-3); font-size: var(--ds-fs-sm); text-align: center; padding: var(--ds-sp-3); }

/* ---------- 购买抽屉 ---------- */
dialog.k-buyd { margin: 0 0 0 auto; width: min(420px, 100vw); height: 100%; max-height: none; border-radius: 0; border-width: 0 0 0 1px; }
dialog.k-buyd[open] { animation: ds-drawer-in var(--ds-dur) var(--ds-ease-out); }
dialog.k-buyd .ds-dialog__head h2 { font-size: var(--ds-fs-md); }
.k-buyg + .k-buyg { margin-top: var(--ds-sp-2); } .k-buyg .k-h3 { margin-top: 0; }
.k-kit { flex-basis: 100%; font-size: var(--ds-fs-sm); } .k-kit summary { cursor: pointer; color: var(--ds-link); } .k-kit ul { margin-top: 4px; }

/* ---------- 骨架 / 手机底部条 ---------- */
.k-skel { display: grid; gap: 4px; padding: var(--ds-sp-2) 0; }
.k-skel--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-sp-3); }
.k-mbar { display: none; }

/* ============ 768–1279：两栏 6/6，规格 2 列，次要列隐藏 ============ */
@media (max-width: 1279px) {
  .k-h3x { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--ds-sp-6); }
  .k-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-tiles .k-tile:nth-child(3n) { border-right: 1px solid var(--ds-divider); } .k-tiles .k-tile:nth-child(2n) { border-right: 0; }
  .k-tiles .k-tile { border-bottom: 1px solid var(--ds-divider) !important; }
  .k-withtoc, .k-withtoc--r { grid-template-columns: minmax(0, 1fr); gap: var(--ds-sp-4); }
  .k-toc2--ov { display: none; }
  .k-withtoc > .k-toc2:not(.k-toc2--ov) { position: sticky; top: calc(var(--k-hdr, 0px) + var(--k-sn-h)); z-index: var(--ds-z-sticky); background: var(--ds-bg); padding: var(--ds-sp-2) 0; border-bottom: 1px solid var(--ds-divider); }
  .k-withtoc > .k-toc2 .k-toc2__h { display: none; }
  .k-withtoc > .k-toc2 ul { display: flex; overflow-x: auto; border: 0; gap: var(--ds-sp-1); scrollbar-width: none; }
  .k-withtoc > .k-toc2 a { white-space: nowrap; border: 1px solid var(--ds-border); border-radius: 999px; margin: 0; padding: 4px var(--ds-sp-3); }
  .k-withtoc > .k-toc2 a[aria-current="location"] { border-color: var(--ds-primary-border); background: var(--ds-primary-soft); }
  .k-dkg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-col2 { display: none; }
  .k-rvsum { grid-template-columns: minmax(0, 1fr); }
  .k-hc { grid-template-columns: 96px minmax(0, 1fr); } .k-hc__img img { width: 96px; height: 72px; }
  .k-hc__side { grid-column: 1 / -1; justify-items: start; grid-template-columns: auto auto; align-items: center; justify-content: space-between; }
  .k-sn__id { flex-basis: 180px; }
}
@media (max-width: 960px) { .k-pinov { grid-template-columns: minmax(0, 1fr); } .k-qs { grid-template-columns: minmax(0, 1fr); } .k-rvsum__r { grid-template-columns: minmax(0, 1fr); justify-items: center; } }

/* ============ ≤767：单栏，图集滑动，底部固定条 ============ */
@media (max-width: 767px) {
  .k-hwp { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .k-h3x { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "gal" "info"; gap: var(--ds-sp-3); }
  .k-hh__h1 { font-size: var(--ds-fs-xl); }
  .k-g2__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: auto; aspect-ratio: 4 / 3; cursor: default; overscroll-behavior-x: contain; }
  .k-g2__track::-webkit-scrollbar { display: none; }
  .k-g2__slide { display: grid; scroll-snap-align: start; }
  .k-g2__thumbs { display: none; }
  .k-g2__zoom { display: none; }
  .k-g2__foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--ds-sp-3); position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: var(--ds-overlay); border: 1px solid var(--ds-border); }
  .k-g2__dots { display: flex; gap: 4px; } .k-g2__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-text-3); opacity: .5; }
  .k-g2__dots span[data-on] { opacity: 1; background: var(--ds-text); }
  .k-g2__n { font-size: var(--ds-fs-xs); color: var(--ds-text-2); font-variant-numeric: tabular-nums; }
  .k-h3x__info > .k-acts, .k-h3x__info > .k-buyrow, .k-hc__side { display: none; }
  .k-caps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .k-caps .k-cap { flex: none; }
  .k-hc { grid-template-columns: 72px minmax(0, 1fr); gap: var(--ds-sp-3); } .k-hc__img img { width: 72px; height: 54px; }
  .k-hc .k-tiles--row { display: none; }
  .k-sn.is-stuck .k-sn__id, .k-sn.is-stuck .k-sn__act { display: none; }
  .k-sn__in { padding: 0; } .k-sn__tabs { padding: 0 var(--ds-sp-2); }
  .k-mbar { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--ds-sp-2); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--ds-z-drawer); padding: var(--ds-sp-2) var(--ds-sp-3) calc(var(--ds-sp-2) + env(safe-area-inset-bottom)); background: var(--ds-overlay); border-top: 1px solid var(--ds-border-strong); box-shadow: var(--ds-shadow-3); }
  .k-mbar .ds-btn { min-height: var(--ds-ctl-lg); justify-content: center; text-decoration: none; }
  .k-mbar__price { white-space: nowrap; }
  .k-cmpbar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .k-fwbar { top: calc(var(--k-hdr, 0px) + var(--k-sn-h)); }
  .k-fwbar__r { width: 100%; justify-content: space-between; }
  .k-cat--fw .k-fwrow { grid-template-columns: 20px minmax(0, 1fr); }
  .k-cat--fw .k-fwrow__thumb { display: none; } .k-cat--fw .k-fwrow__side { grid-column: 1 / -1; }
  .k-cat--fw .k-fwgroup__h { position: static; }
  .k-dkg, .k-skel--cards { grid-template-columns: minmax(0, 1fr); }
  .k-psum { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .k-psum .k-tile:nth-child(2) { border-right: 0; } .k-psum .k-tile:nth-child(-n+2) { border-bottom: 1px solid var(--ds-divider); }
  .k-revid { grid-template-columns: minmax(0, 1fr); }
  /* 参数表：标签上 / 值下，不再挤成两列 */
  .k-spec, .k-spec tbody, .k-spec tr, .k-spec th, .k-spec td { display: block; width: 100% !important; }
  .k-spec tr { padding: 6px var(--ds-sp-3); border-bottom: 1px solid var(--ds-divider); } .k-spec th[scope="row"], .k-spec td { padding: 0; border: 0; }
  .k-spec th[scope="row"] { font-size: var(--ds-fs-xs); color: var(--ds-text-3); } .k-spec .k-spec__gh { padding: 6px var(--ds-sp-3); }
  .k-spec tr:has(.k-spec__gh) { padding: 0; }
  .k-spec caption { display: block; width: 100%; text-align: left; }
  /* 规范 §2.2：规格 2 列 × 3 行 */
  .k-h3x .k-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-h3x .k-tiles .k-tile { border-right: 1px solid var(--ds-divider) !important; padding: 8px 10px; }
  .k-h3x .k-tiles .k-tile:nth-child(2n) { border-right: 0 !important; } .k-h3x .k-tiles .k-tile:nth-last-child(-n+2):nth-child(2n+1), .k-h3x .k-tiles .k-tile:nth-last-child(-n+2):nth-child(2n+1) ~ .k-tile { border-bottom: 0 !important; }
  .k-h3x .k-tile dd { font-size: var(--ds-fs-md); }
  .k-relrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-pintables { grid-template-columns: minmax(0, 1fr); }
  dialog.k-buyd { margin: auto 0 0; width: 100%; max-width: 100%; height: auto; max-height: 85vh; border-width: 1px 0 0; border-radius: var(--ds-r-lg) var(--ds-r-lg) 0 0; }
  dialog.k-lb { width: 100vw; height: 100vh; border-radius: 0; }
  .k-lb__body { grid-template-columns: minmax(0, 1fr); } .k-lb__prev, .k-lb__next { display: none; }
}
@media (prefers-reduced-motion: reduce) { .k-sn.is-stuck .k-sn__id, dialog.k-buyd[open] { animation: none; } }
@media (forced-colors: active) { .k-pin__dot, .k-legend__sw, .k-pfdot { forced-color-adjust: none; } .k-pin.is-hl .k-pin__hit { stroke: Highlight; } }

/* ---------- 下载面板（k-dl.js）：桌面居中 ≤560px，≤767 底部半屏（同购买抽屉） ---------- */
dialog.k-dld { width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 820px); }
dialog.k-dld .ds-dialog__head h2 { font-size: var(--ds-fs-md); overflow-wrap: anywhere; }
.k-dl__body { overscroll-behavior: contain; }
.k-dl { display: grid; gap: var(--ds-sp-3); min-width: 0; }
.k-dl .k-h3 { margin: var(--ds-sp-2) 0 var(--ds-sp-2); }
.k-dl__meta { display: grid; gap: 6px; }
.k-dl__vsel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-sp-2); } .k-dl__vsel .ds-label { margin: 0; } .k-dl__vsel select { max-width: 100%; }
.k-dl__meta p { margin: 0; }
.k-dl__alert { margin: 0; }
.k-dl__main { justify-content: flex-start; gap: var(--ds-sp-3); height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; text-align: left; white-space: normal; }
.k-dl__mainx { display: grid; min-width: 0; } .k-dl__mainn { font-weight: var(--ds-fw-semibold); overflow-wrap: anywhere; font-size: var(--ds-fs-md); } .k-dl__mains { font-size: var(--ds-fs-sm); opacity: .92; }
.k-dl__main--np { display: flex; align-items: center; flex-wrap: wrap; padding: 8px var(--ds-sp-4); border: 1px dashed var(--ds-border-strong); border-radius: var(--ds-r-md); color: var(--ds-text-2); }
.k-dl__which { margin: 6px 0 0; }
.k-dl__files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); }
.k-dl__f { display: flex; align-items: center; gap: var(--ds-sp-3); padding: var(--ds-sp-2) var(--ds-sp-3); border-bottom: 1px solid var(--ds-divider); }
.k-dl__f:last-child { border-bottom: 0; }
.k-dl__fm { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.k-dl__fn { font-size: var(--ds-fs-sm); color: var(--ds-text); overflow-wrap: anywhere; }
.k-dl__fd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--ds-fs-xs); color: var(--ds-text-2); }
.k-dl__fb { flex: none; }
.k-dl__parts p { margin: 6px 0 0; overflow-wrap: anywhere; }
.k-dl__foot { justify-content: space-between; }
.k-dl__confirm p { margin: 0 0 var(--ds-sp-2); }
.k-rel__dl { flex: none; align-self: center; }
.k-rec__a { margin-top: var(--ds-sp-2); }
@media (max-width: 767px) {
  dialog.k-dld { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; border-width: 1px 0 0; border-radius: var(--ds-r-lg) var(--ds-r-lg) 0 0; }
  dialog.k-dld[open] { animation: k-sheet-in var(--ds-dur) var(--ds-ease-out); }
  .k-dl__fbt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .k-dl__foot .ds-btn { flex: 1 1 auto; }
  .k-rel { flex-wrap: wrap; }
}
@keyframes k-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.k-dld[open] { animation: none; } }

/* ---------- 烧录前确认（k-flashpre.js）：同下载面板，桌面居中，≤767 底部半屏 ---------- */
dialog.k-fpd { width: min(580px, calc(100vw - 32px)); max-height: min(88vh, 860px); }
dialog.k-fpd .ds-dialog__head h2 { font-size: var(--ds-fs-md); overflow-wrap: anywhere; }
.k-fp__meta { display: grid; gap: var(--ds-sp-2); }
.k-fp__kv { margin: 0; } .k-fp__chip { overflow-wrap: anywhere; }
.k-fp__env .k-chks { margin: 0; }
.k-fp section { min-width: 0; }
.k-fp__none { margin: 0; color: var(--ds-text-2); font-size: var(--ds-fs-sm); }
.k-fp__list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: var(--ds-fs-sm); }
.k-fp__pins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.k-fp__url { margin: 0; padding: var(--ds-sp-2) var(--ds-sp-3); border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: var(--ds-surface-2); overflow-wrap: anywhere; word-break: break-all; }
.k-fp__foot { justify-content: flex-end; flex-wrap: wrap; gap: var(--ds-sp-2); }
.k-fp__go[disabled] { cursor: not-allowed; }
@media (max-width: 767px) {
  dialog.k-fpd { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 90vh; border-width: 1px 0 0; border-radius: var(--ds-r-lg) var(--ds-r-lg) 0 0; }
  dialog.k-fpd[open] { animation: k-sheet-in var(--ds-dur) var(--ds-ease-out); }
  .k-fp__foot .ds-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { dialog.k-fpd[open] { animation: none; } }

/* ---------- 烧录页专注模式：顶部固定返回栏 ---------- */
.k-flback { position: sticky; top: var(--ds-header-h); z-index: calc(var(--ds-z-header) - 1); background: var(--ds-surface); border-bottom: 1px solid var(--ds-border); }
.k-flback__in { display: flex; align-items: center; min-height: 44px; }
.k-flback__a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: var(--ds-fw-semibold); color: var(--ds-link, var(--ds-primary)); text-decoration: none; overflow-wrap: anywhere; }
.k-flback__a:hover { text-decoration: underline; }
.k-fl-busy { display: flex; align-items: center; gap: 6px; margin: var(--ds-sp-3) 0 0; }
/* live-v1【2026-10-24】真实店铺 / 评测 / 3D：只在接口有数据时出现 */
.k-buyrow--live { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-sp-2) var(--ds-sp-3); }
.k-buyprice { font-weight: var(--ds-fw-semibold); color: var(--ds-text); }
.k-g3d--real { max-width: 520px; }
.k-g3d__list { display: grid; gap: var(--ds-sp-2); justify-items: center; margin: 0; padding: 0; }
.k-rvlist { display: grid; gap: var(--ds-sp-4); }
.k-rv__concl { margin: var(--ds-sp-3) 0; }
.k-rv__body summary { cursor: pointer; color: var(--ds-link); }
/* 2026-10-27 芯片原厂生命周期提示（NRND / 停产）：板卡页标题区、芯片页概览 */
.k-lc { margin: var(--ds-sp-3) 0; }
/* 2026-10-29 产品图显示完整：图集缩略条、紧凑页头、吸顶条小图、推荐固件缩略图都改 contain + 白底，不裁图 */
.k-g2__t img, .k-hc__img img, .k-sn__id img, .k-rec__thumb img, .k-hl__ic img, .k-ob__l img, .k-pcell img { object-fit: contain; background: #ffffff; }
.k-rec__thumb { background: #ffffff; }
/* 板子页主图框：白底，和照片白底连成一片（原来深色主题下两侧是深色条，看起来像图没显示全） */
.k-g2__main, .k-g2__slide, .k-gal__main { background: #ffffff; }
/* 3D / 引脚图这类非照片幻灯片用主题文字色，白底上会看不清：这些幻灯片仍用主题表面色 */
.k-g2__slide:has(> .k-g3d), .k-g2__slide:has(> .k-gpin), .k-g2__main:has(.k-g2__slide[data-active] > .k-g3d), .k-g2__main:has(.k-g2__slide[data-active] > .k-gpin) { background: var(--ds-surface-2); }
