/* ==========================================================================
   products.css —— 由 tools_split_css.py 从 main.css 拆出（2026-10-19）
   注意：改样式请改对应页面文件，不要再往 main.css 里加
   ========================================================================== */


/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 8px; margin-top: 34px; justify-content: center; flex-wrap: wrap; }

.pager__btn, .pager__num {
    min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    font-size: 14px; color: var(--ink-2); transition: all .2s;
}

.pager__btn:hover, .pager__num:hover { border-color: var(--brand); color: var(--brand); }

.pager__info { margin-left: 8px; font-size: 13px; color: var(--ink-4); }

/* ---------- 产品中心 Hero ---------- */
.pc-hero { position: relative; background: var(--dark); overflow: hidden; }

.pc-hero__media { position: absolute; inset: 0; }

.pc-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }

.pc-hero__body { position: relative; padding: 74px 0 66px; color: #fff; }

.pc-hero__kicker { font-size: 12.5px; letter-spacing: 3px; color: var(--brand-on-dark); font-weight: 600; margin-bottom: 14px; }

.pc-hero__title { font-size: 44px; line-height: 1.15; margin-bottom: 14px; }

.pc-hero__desc { font-size: 15.5px; color: rgba(255,255,255,.78); max-width: 620px; line-height: 1.75; }

.pc-hero__stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }

.pc-hero__stats span { font-size: 13.5px; color: rgba(255,255,255,.66); }

.pc-hero__stats b { display: block; font-size: 30px; color: #fff; font-weight: 700; margin-bottom: 2px; }

/* ---------- 区块标题 ---------- */
.pc-section-head { text-align: center; margin-bottom: 40px; }

.pc-section-title { font-size: 32px; position: relative; display: inline-block; padding-bottom: 14px; }

.pc-section-title::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 54px; height: 3px; background: var(--brand); transform: translateX(-50%); }

.pc-section-sub { font-size: 14.5px; color: var(--ink-3); margin-top: 12px; }

.pc-eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--brand); font-weight: 700; margin-bottom: 10px; }

/* ---------- 主布局：侧栏 + 内容 ---------- */
.pc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }

/* ★ 2026-10-22：products.css 在 common.css 之后加载，同优先级的 `.pc-layout{250px 1fr}`
   会把 common.css 里 `@media(max-width:1080px){.pc-layout{1fr}}` 盖掉 ——
   手机上就变成「250px 侧栏 + 62px 内容列」，系列卡图片被压成 60×38。
   所以两栏模式必须限定在桌面宽度内。 */
@media (max-width: 1080px) {

    .pc-layout { grid-template-columns: minmax(0, 1fr); }

}


.pc-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 92px; }

.pc-side__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg-tint); }

.pc-side__title { font-size: 15px; }

.pc-side__toggle { display: none; background: none; border: 0; color: var(--brand); font-size: 12.5px; cursor: pointer; }

.pc-side__panel { padding: 10px 0 16px; }

.pc-side__all { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 8px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink-2); }

.pc-side__all span { color: var(--ink-4); font-weight: 400; font-size: 12.5px; }

.pc-side__all:hover { background: var(--bg-tint); color: var(--brand); }

.pc-tree { list-style: none; padding: 0 12px; margin: 0; }

.pc-tree__item { border-bottom: 1px dashed var(--line); }

.pc-tree__item:last-child { border-bottom: 0; }

.pc-tree__item > .pc-tree__link { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink-2); }

.pc-tree__item > .pc-tree__link em { font-style: normal; font-size: 12px; color: var(--ink-4); font-weight: 400; }

.pc-tree__item > .pc-tree__link:hover { background: var(--bg-tint); color: var(--brand); }

.pc-tree__sub { list-style: none; padding: 0 0 6px 14px; margin: 0; }

.pc-tree__sub li a { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; font-size: 13px; color: var(--ink-3); border-radius: 7px; position: relative; }

.pc-tree__sub li a::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); transform: translateY(-50%); }

.pc-tree__sub li a em { font-style: normal; font-size: 11.5px; color: var(--ink-4); }

.pc-tree__sub li a:hover { color: var(--brand); background: var(--bg-tint); }

/* 三级子类目（2026-10-19）：比二级再缩一级，一眼能看出是「孙级」 */
.pc-tree__sub .pc-tree__sub { padding: 0 0 3px 12px; }
.pc-tree__sub .pc-tree__sub li a { padding: 5px 10px; font-size: 12.5px; color: var(--ink-4); }
.pc-tree__sub .pc-tree__sub li a::before { width: 3px; height: 3px; }

/* ---------- 产品系列卡 ---------- */
.pc-series { padding: 62px 0 20px; }

.pc-series__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.pc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }

.pc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.pc-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }

.pc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

/* ★ 2026-10-22 srcset 兜底：模板给 img 写了 width=960 height=600，
   一旦 CSS 没生效（或某天被覆盖），img 会按属性值撑成 960 宽把 2 列网格顶穿。
   aspect-ratio + width:100% 双保险，高度交给容器 16:10 */
.pc-card__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; }

.pc-card:hover .pc-card__media img { transform: scale(1.05); }

.pc-card__body { padding: 18px 20px 20px; }

.pc-card__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 18px; margin-bottom: 8px; }

.pc-card__title em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); padding: 2px 8px; border-radius: 20px; white-space: nowrap; }

.pc-card__desc { font-size: 13px; color: var(--ink-3); line-height: 1.72; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.pc-card__more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--brand); }

.pc-card__subs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }

.pc-card__subs a { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); background: var(--bg-tint); border: 1px solid var(--line); padding: 5px 10px; border-radius: 20px; }

.pc-card__subs a em { font-style: normal; color: var(--brand); font-weight: 600; }

.pc-card__subs a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- CTA ---------- */
.pc-cta { position: relative; overflow: hidden; padding: 74px 0; text-align: center; color: #fff; }

/* <picture> 在 absolute 定位下要被 img 撑满，否则内部 absolute 的 .pc-cta__bg 失去参照 */
.pc-cta__bgwrap { position: absolute; inset: 0; display: block; }

.pc-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.pc-cta::after { content: ''; position: absolute; inset: 0; background: rgba(15,18,22,.68); }

.pc-cta__body { position: relative; z-index: 1; }

.pc-cta__body h2 { font-size: 32px; margin-bottom: 24px; }

/* ==========================================================================
   分类页（子类目卡 / 参数表格）
   ========================================================================== */
/* ---------- 分类页 banner（深蓝照片底 + 左文字 + 右展示图） ---------- */
.cat-hero {
    position: relative;
    overflow: hidden;
    background: #06182f;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* 背景图：宽幅照片，右侧主体、左侧压暗给文字 */
.cat-hero__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 74% 50%;
    z-index: 0;
}

.cat-hero__mask {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(96deg, rgba(6, 24, 47, .96) 0%, rgba(6, 24, 47, .90) 34%,
                        rgba(6, 24, 47, .64) 58%, rgba(6, 24, 47, .18) 82%, rgba(6, 24, 47, .06) 100%),
        radial-gradient(120% 90% at 88% 40%, rgba(48, 140, 255, .22) 0%, transparent 62%);
}

/* 细网格纹理，和首页 hero 呼应；左侧浓右侧淡出 */
.cat-hero__mask::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(120, 178, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 178, 255, .07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .45) 52%, transparent 84%);
    mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .45) 52%, transparent 84%);
}

.cat-hero__inner { position: relative; z-index: 2; padding-bottom: 34px; }

/* 左文字 + 右展示图；文字顶部对齐，不垂直居中 */
.cat-hero__top { display: flex; align-items: flex-start; gap: 36px; }

.cat-hero__text { flex: 1 1 auto; min-width: 0; padding-top: 2px; max-width: 760px; }

.cat-hero__kicker {
    font-size: 11.5px; letter-spacing: 2.2px; color: #62a8ff;
    font-weight: 700; margin: 0 0 8px; text-transform: none;
}

.cat-hero__kicker span { color: rgba(255, 255, 255, .34); margin: 0 4px; }

.cat-hero__title {
    font-size: 34px; line-height: 1.2; margin: 0 0 12px;
    color: #fff; letter-spacing: -.4px;
    overflow-wrap: break-word;
}

.cat-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }

.cat-hero__meta span {
    display: inline-flex; align-items: baseline; gap: 4px;
    font-size: 12.5px; color: #9fb6d1;
    padding: 3px 10px; border-radius: 100px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.cat-hero__meta b {
    color: #62a8ff; font-size: 14px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* banner 里的主 CTA */
.cat-hero__cta {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 13px; border-radius: 100px;
    font-size: 12.5px; font-weight: 600; color: #fff;
    background: var(--brand);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: background .18s ease, transform .18s ease;
}

.cat-hero__cta:hover { background: #1877f2; transform: translateX(2px); }

/* 首屏三条典型规格（从该类产品属性里自动挑的高频项） */
.cat-hero__specs {
    display: flex; flex-wrap: wrap; gap: 6px 8px;
    margin-top: 13px;
}

.cat-hero__specs a { text-decoration: none; }

.cat-hero__specs i {
    display: inline-flex; align-items: baseline; gap: 5px;
    font-style: normal; font-size: 12px; line-height: 1.5;
    padding: 3.5px 10px; border-radius: 5px;
    background: rgba(98, 168, 255, .10);
    border: 1px solid rgba(98, 168, 255, .26);
    color: #b6cce6;
    max-width: 100%;
    transition: background .18s ease, border-color .18s ease;
}

.cat-hero__specs a:hover i { background: rgba(98, 168, 255, .2); border-color: rgba(98, 168, 255, .5); }

.cat-hero__specs i em {
    font-style: normal; color: #8aa4c2; flex: none;
}

.cat-hero__specs i b {
    font-weight: 600; color: #eaf3ff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 分类页正文：左「说明 + 属性」 | 右「询价」，紧凑两栏 ---------- */
.cat-body { padding: 16px 0 2px; }

.cat-body--tight { padding-top: 14px; }

.cat-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 26px;
    align-items: start;
    padding-bottom: 8px;
}

.cat-panel__desc { min-width: 0; }

.cat-panel__aside {
    min-width: 0;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

/* ---------- 名单页分栏对齐（2026-10-21 明哥要求）----------
   问题：右侧分类头图原本跟着询价块往下流，与「加工定制能力」的蓝色标题线错位。
   做法：左栏拆 intro / cap、右栏拆 quote / pic，用两行网格让 cap 与 pic 同处第二行，
   pic 再下移「cap 上内边距 + 标题高度」贴住蓝线（数值见下面的 --cap-line）。 */
.cat-panel--split {
    grid-template-rows: auto auto;
    column-gap: 26px;
    row-gap: 0;
}

/* 拆分后 desc / aside 只作容器，子块直接参与父网格 */
.cat-panel--split .cat-panel__desc,
.cat-panel--split .cat-panel__aside { display: contents; }

.cat-panel--split .cat-intro { grid-area: 1 / 1 / 2 / 2; min-width: 0; }

/* 说明与能力之间的 20px 间距改用 padding，避免 margin 折叠把网格行顶开 */
.cat-panel--split .cat-cap {
    grid-area: 2 / 1 / 3 / 2;
    min-width: 0;
    padding-top: 20px;
}

.cat-panel--split .cat-cap .cat-h2--block { margin-top: 0; }

.cat-panel--split .cat-quote {
    grid-area: 1 / 2 / 2 / 3;
    min-width: 0;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

/* 31px = 标题行高 22.4 + padding-bottom 7 + 蓝线 2；再 +20 的 cap 内边距 */
.cat-panel--split .cat-aside__pic {
    grid-area: 2 / 2 / 3 / 3;
    margin: 51px 0 0 22px;
}

.cat-h2 {
    font-size: 16px; font-weight: 700; color: var(--ink);
    line-height: 1.4;
    padding-bottom: 7px; margin: 0 0 12px;
    border-bottom: 2px solid var(--brand);
}

.cat-h2--block { margin-top: 20px; }

.cat-points { margin: 0 0 10px; padding: 0; list-style: none; }

.cat-points li {
    position: relative;
    padding-left: 15px;
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--ink-2);
    word-break: break-word;
}

.cat-points li + li { margin-top: 2px; }

.cat-points li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand);
}

.cat-lead {
    font-size: 13px;
    line-height: 1.75;
    margin: 0;
    color: var(--ink-3);
    word-break: break-word;
}

/* ---------- 右侧栏分类头图（2026-10-21）：固定 121:75 ≈ 1.61:1，移动端 3:2 ---------- */
.cat-aside__pic {
    margin: 16px 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.cat-aside__pic img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 121 / 75;
    object-fit: cover;
    background: var(--bg-tint);
}

.cat-aside__pic figcaption {
    padding: 7px 10px 8px;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--ink-4);
}

/* ---------- 部分现货列表（2026-10-21）：加工定制能力下方的现货速览 ---------- */
.cat-stock { padding: 24px 0 4px; }

.cat-stock__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 9px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--brand);
}

.cat-stock__eyebrow {
    margin: 0 0 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--brand);
}

.cat-stock__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.cat-stock__link {
    flex: 0 0 auto;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}

.cat-stock__link:hover { text-decoration: underline; }

.cat-stock__note {
    margin: 0;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--ink-3);
    background: var(--bg-tint);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.cat-stock__note b { color: var(--ink); font-weight: 700; }

.cat-stock__note a { color: var(--brand); font-weight: 600; }

.cat-stock__note a:hover { text-decoration: underline; }

/* 说明区底部补一句「看全部 N 个型号」的引导，替代零散留白 */
.cat-more {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 11px;
    font-size: 13px; font-weight: 600; color: var(--brand);
}

.cat-more:hover { text-decoration: underline; }

/* 产品属性（分类级共性参数，两列） */
.cat-attrs { margin-bottom: 0; }

.cat-attrs__table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.cat-attrs__table th,
.cat-attrs__table td {
    padding: 7px 10px;
    font-size: 12.5px;
    text-align: left;
    border: 1px solid var(--line);
    word-break: break-word;
}

.cat-attrs__table th {
    width: 50%;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--bg-tint);
}

/* 4 列布局：参数 / 值 / 参数 / 值
   ★ tbody 是 column-count 分栏，tr 又被 display:table 化 → 外层 table 上的 th{width} 管不到列宽，
     必须在 tr 里用 colgroup 或给 th 直接写 width（这里 th 自带 width，值是 auto） */
.cat-attrs__table tbody { display: block; column-count: 2; column-gap: 0; }

.cat-attrs__table tbody tr {
    display: table; width: 100%; table-layout: fixed;
    break-inside: avoid;
}

.cat-attrs__table tbody th { width: 128px; padding-right: 6px; }

.cat-attrs__table tbody td { padding-left: 8px; }

/* 表下口径说明（2026-11-04）：加工能力是「常规区间」，与 /custom-product 的
   「可达成能力」区分开，免得两页数字看着打架 */
.cat-attrs__note {
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.65;
    color: var(--ink-3);
}

.pl-hero { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 26px 0 34px; }

.pl-hero__layout { display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: center; }

.pl-hero__kicker { font-size: 12px; letter-spacing: 2.4px; color: var(--brand); font-weight: 700; margin-bottom: 10px; }

.pl-hero__kicker span { color: var(--ink-4); margin: 0 4px; }

.pl-hero__title { font-size: 34px; margin-bottom: 14px; }

.pl-hero__meta { display: flex; gap: 26px; margin-top: 18px; }

.pl-hero__meta span { font-size: 13px; color: var(--ink-4); }

.pl-hero__meta b { color: var(--brand); font-size: 15px; margin-right: 3px; }

.pl-children__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.ch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }

.ch-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.ch-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-tint); }

.ch-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.ch-card:hover .ch-card__media img { transform: scale(1.05); }

.ch-card__body { padding: 18px 20px 22px; }

.ch-card__title { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 8px; }

.ch-card__title em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); padding: 2px 8px; border-radius: 20px; }

.ch-card__desc { font-size: 13px; color: var(--ink-3); line-height: 1.72; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ch-card__more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--brand); }

/* ---------- 筛选栏 ---------- */
.pl-main { padding: 28px 0 60px; }

.pl-filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }

.pl-filter__row { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }

.pl-drop { position: relative; }

.pl-drop__toggle { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: .2s; }

.pl-drop__toggle:hover { border-color: var(--brand); color: var(--brand); }

.pl-drop__toggle svg { transition: transform .2s; }

.pl-drop.is-open .pl-drop__toggle { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.pl-drop.is-open .pl-drop__toggle svg { transform: rotate(180deg); }

.pl-drop__toggle i { font-style: normal; display: inline-block; min-width: 16px; height: 16px; line-height: 16px; text-align: center; background: var(--brand); color: #fff; border-radius: 20px; font-size: 10.5px; padding: 0 4px; }

.pl-drop__panel { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }

.pl-drop.is-open .pl-drop__panel { display: block; }

.pl-drop__list { max-height: 300px; overflow-y: auto; padding: 8px; }

.pl-opt { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); }

.pl-opt:hover { background: var(--bg-tint); }

.pl-opt input { position: absolute; opacity: 0; pointer-events: none; }

.pl-opt__box { flex: none; width: 15px; height: 15px; border: 1.5px solid var(--ink-4); border-radius: 4px; position: relative; transition: .15s; }

.pl-opt input:checked ~ .pl-opt__box { background: var(--brand); border-color: var(--brand); }

.pl-opt input:checked ~ .pl-opt__box::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.pl-opt__txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pl-opt__n { flex: none; color: var(--ink-4); font-size: 11px; }

.pl-drop__foot { padding: 8px; border-top: 1px solid var(--line); }

.pl-drop__apply { width: 100%; height: 34px; background: var(--brand); color: #fff; border: 0; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }

.pl-drop__apply:hover { background: var(--brand-dark); }

.pl-filter__bar { display: flex; align-items: flex-end; gap: 16px; padding-top: 14px; flex-wrap: wrap; }

.pl-filter__name { flex: 1; min-width: 240px; }

.pl-filter__name > label { display: block; font-size: 12.5px; color: var(--ink-4); margin-bottom: 6px; }

.pl-filter__nameCtl { display: flex; gap: 8px; }

.pl-filter__kw { flex: 1; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; outline: none; }

.pl-filter__kw:focus { border-color: var(--brand); }

.pl-filter__go { height: 38px; padding: 0 22px; background: var(--ink); color: #fff; border: 0; border-radius: 8px; font-size: 13px; cursor: pointer; }

.pl-filter__go:hover { background: var(--brand); }

.pl-filter__reset { height: 38px; padding: 0 18px; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-3); cursor: pointer; }

.pl-filter__reset:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 工具栏 ---------- */
.pl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px 14px; flex-wrap: wrap; }

.pl-result { font-size: 13.5px; color: var(--ink-3); }

.pl-result b { color: var(--brand); font-size: 15px; }

.pl-result em { font-style: normal; margin-left: 10px; color: var(--ink-4); font-size: 12.5px; }

.pl-toolbar__right { display: flex; align-items: center; gap: 10px; }

.pl-sort__label { font-size: 13px; color: var(--ink-3); }

.pl-sort__select { height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2.4'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 9px center / 13px; appearance: none; font-size: 13px; color: var(--ink-2); cursor: pointer; }

.pl-sort__select:focus { border-color: var(--brand); outline: none; }

/* ---------- 参数表格 ---------- */
.pl-table__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.pl-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }

.pl-table thead th { position: sticky; top: 0; z-index: 5; background: var(--bg-tint); color: var(--ink-2); font-weight: 600; font-size: 12.5px; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }

.pl-table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }

.pl-table tbody tr:last-child td { border-bottom: 0; }

.pl-table tbody tr:hover td { background: var(--brand-soft); }

.pl-table .col-no { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.pl-table .col-no a:hover { color: var(--brand); }

.pl-table .col-spec { font-weight: 600; color: var(--ink); }

.pl-table .col-spec a:hover { color: var(--brand); }

.pl-table .col-price { color: var(--brand); font-weight: 600; }

.pl-table .col-price em { font-style: normal; color: var(--ink-4); font-weight: 400; }

/* 无价格的产品，货期不可信，标「请咨询」而不是「现货」 */
.pl-table .col-lead em { font-style: normal; color: var(--ink-4); }

.pl-curve { color: var(--brand); font-size: 12.5px; border-bottom: 1px dashed var(--brand-line); }

.pl-buy { display: inline-block; padding: 5px 13px; background: var(--brand); color: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; }

.pl-buy:hover { background: var(--brand-dark); }

/* position:relative 必须有：否则 input 的包含块落到初始包含块，会绕过 .pl-table__wrap 的 overflow 裁剪，撑宽文档（移动端横向溢出） */
.pl-cmp { display: inline-flex; cursor: pointer; position: relative; }

.pl-cmp input { position: absolute; inset: 0 auto auto 0; width: 15px; height: 15px; margin: 0; opacity: 0; pointer-events: none; }

.pl-cmp span { width: 15px; height: 15px; border: 1.5px solid var(--ink-4); border-radius: 4px; position: relative; transition: .15s; }

.pl-cmp input:checked ~ span { background: var(--brand); border-color: var(--brand); }

.pl-cmp input:checked ~ span::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.pl-empty { padding: 70px 0; text-align: center; color: var(--ink-4); }

.pl-empty p { margin-bottom: 18px; }

/* ---------- 分页补充 ---------- */
.pager--pl { margin-top: 26px; }

/* ---------- 对比条 ---------- */
.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(16,24,40,.1); }

.cmpbar__inner { display: flex; align-items: center; gap: 16px; height: 62px; }

.cmpbar__left { display: flex; align-items: center; gap: 10px; flex: none; }

.cmpbar__label { font-size: 14px; font-weight: 600; }

.cmpbar__count { font-size: 12.5px; color: var(--ink-4); }

.cmpbar__count b { color: var(--brand); }

.cmpbar__tags { flex: 1; display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }

.cmpbar__right { display: flex; align-items: center; gap: 12px; flex: none; }

.cmpbar__clear { background: none; border: 0; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }

.cmpbar__clear:hover { color: var(--brand); }

/* ---------- 对比弹窗 ---------- */
.cmppop { position: fixed; inset: 0; z-index: 80; }

.cmppop__mask { position: absolute; inset: 0; background: rgba(14,17,20,.55); }

.cmppop__dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1080px, 92vw); max-height: 86vh; overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.cmppop__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }

.cmppop__head h2 { font-size: 19px; }

.cmppop__close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; }

.cmppop__body { padding: 20px 24px 26px; overflow-x: auto; }

.cmppop__body .pl-table { border: 1px solid var(--line); border-radius: var(--radius-sm); }

.cmppop__body .pl-table tbody th { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-tint); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ---------- 波长区间滑块 ---------- */
.pl-slider { padding: 16px 4px 6px; border-top: 1px dashed var(--line); margin-top: 14px; }

.pl-slider__title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }

.pl-slider__vals { font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: 8px; }

.pl-slider__track { position: relative; height: 26px; max-width: 420px; }

.pl-slider__track input[type=range] {
    position: absolute; left: 0; top: 0; width: 100%; height: 26px;
    margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none;
}

.pl-slider__track input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    border: 2px solid var(--brand); box-shadow: var(--shadow-sm); cursor: pointer;
}

.pl-slider__track input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 2px solid var(--brand); cursor: pointer;
}

.pl-slider__track::before {
    content: ''; position: absolute; left: 0; top: 12px; width: 100%; height: 3px;
    background: var(--line); border-radius: 3px;
}

.pl-slider__ends { display: flex; justify-content: space-between; max-width: 420px; font-size: 11.5px; color: var(--ink-4); }

/* ==========================================================================
   产品列表 —— 展开行「详细参数」
   点产品编号（或行内空白处）在下方展开图片 + 详细参数 + 文件下载
   ========================================================================== */

.pl-row-main.pl-expandable { cursor: pointer; }

.pl-table .pl-row-main .pl-thumb-wrap {
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

.pl-table .pl-expand-icon {
    display: flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; flex: none;
    color: var(--ink-4); font-size: 16px; line-height: 1;
    transition: transform .25s ease;
}

.pl-table .pl-product-sku { font-variant-numeric: tabular-nums; }

.pl-table .pl-row-main:hover .pl-product-sku { color: var(--brand); }

.pl-table .pl-row-main.is-expanded .pl-expand-icon { transform: rotate(90deg); color: var(--brand); }

.pl-table .pl-row-main.is-expanded > td { background: var(--brand-soft); }

.pl-detail-row { display: none; }

.pl-detail-row.is-open { display: table-row; }

.pl-table tbody .pl-detail-row > td { padding: 0; white-space: normal; border-bottom: 1px solid var(--line); }

.pl-detail-inner {
    display: block;
    padding: 18px 22px;
    background: #fbfbfc;
    white-space: normal;
}

/* 展开行不再显示产品主图（列表图会拖慢首屏），只留参数与操作 */
.pl-detail-specs { min-width: 0; }

.pl-table .pl-detail-specs h4 {
    font-size: 14px; font-weight: 700; color: var(--ink);
    margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand);
}

.pl-detail-table { width: 100%; border-collapse: collapse; }

.pl-table .pl-detail-table tbody { display: block; column-count: 2; column-gap: 22px; }

.pl-table .pl-detail-table tbody tr {
    display: table; width: 100%; table-layout: fixed;
    border-bottom: 1px solid var(--line); break-inside: avoid;
}

.pl-table .pl-detail-table tbody tr:last-child { border-bottom: 0; }

.pl-table .pl-detail-table tbody td { padding: 8px 10px; font-size: 12.5px; vertical-align: middle; white-space: normal; }

.pl-dt-label { width: 112px; font-weight: 600; color: var(--ink-3); background: var(--bg-tint); }

.pl-dt-value { color: var(--ink); word-break: break-word; }

.pl-table .pl-detail-table tbody tr:hover td { background: transparent; }

.pl-detail-nospec { font-size: 13px; color: var(--ink-4); }

/* 展开行底部操作（曲线 / 查看详情） */
.pl-detail-ops { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.pl-detail-op {
    display: inline-flex; align-items: center;
    padding: 7px 18px; border: 1px solid var(--brand); border-radius: 6px;
    background: var(--brand); color: #fff;
    font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.pl-detail-op:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.pl-detail-op--ghost {
    background: #fff; color: var(--brand);
}

.pl-detail-op--ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }

.pl-lightbox.is-open { opacity: 1; pointer-events: auto; }

/* 分类页 hero：蓝光 + 网格 */
.pc-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(900px 420px at 24% 0%, rgba(45, 132, 240, .20), transparent 70%);
}

.pc-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image:
        linear-gradient(rgba(120, 178, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 178, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
}

.pc-hero__body { z-index: 2; }

/* 产品中心 hero：左侧厚重的深蓝遮罩，保证标题可读（背景图仅作纹理） */
.pc-hero__media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg,
        rgba(6, 26, 51, .95) 0%, rgba(6, 26, 51, .88) 32%,
        rgba(6, 26, 51, .68) 62%, rgba(6, 26, 51, .46) 100%);
}

.pc-hero__media img { opacity: .42; }

/* 2026-10-22 换图：新 banner 是 5.2:1 的超宽构图（1920×693，主体在右），
   容器只有约 1.93:1，cover 会左右各裁 ~42%。靠右对齐才能保住右侧的镜头主体。
   ★ 别改成 center —— 一改主体就被切一半 */
.pc-hero__media img { object-position: 88% center; }

@media (max-width: 1160px) {

    .cat-attrs__table tbody { column-count: 2; }

}

@media (max-width: 1080px) {

    .cat-hero__title { font-size: 30px; }

    .cat-panel { grid-template-columns: 1fr; gap: 14px; }

    .cat-panel__aside {
        padding-left: 0; border-left: 0; border-top: 1px solid var(--line);
        padding-top: 12px;
        display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    }

    .cat-panel__aside .cat-h2 { flex: 1 0 100%; margin-bottom: 0; }

    .cat-panel__aside .cat-lead { flex: 1 1 260px; }

    .cat-panel__aside .cat-more { margin: 0; }

    /* 单栏后右侧询价区变横排：头图独占一行，保持 121:75 */
    .cat-aside__pic { flex: 1 0 100%; margin-top: 4px; }

    /* 分栏对齐版在单列下退回普通流：网格坐标必须清掉，否则会撑出隐式第二列 */
    .cat-panel--split .cat-intro,
    .cat-panel--split .cat-cap,
    .cat-panel--split .cat-quote,
    .cat-panel--split .cat-aside__pic { grid-area: auto; }

    .cat-panel--split .cat-panel__desc,
    .cat-panel--split .cat-panel__aside { display: block; }

    .cat-panel--split .cat-cap { padding-top: 0; }

    .cat-panel--split .cat-cap .cat-h2--block { margin-top: 20px; }

    .cat-panel--split .cat-quote {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 12px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .cat-panel--split .cat-quote .cat-h2 { flex: 1 0 100%; margin-bottom: 0; }

    .cat-panel--split .cat-quote .cat-lead { flex: 1 1 260px; }

    .cat-panel--split .cat-quote .cat-more { margin: 0; }

    .cat-panel--split .cat-aside__pic { margin: 14px 0 0; }

}

@media (max-width: 900px) {

    .cat-hero__inner { padding-bottom: 18px; }

    /* 窄屏竖直排：图在上、字在下；背景图改为居中，遮罩整体压暗保证可读 */
    .cat-hero__bg { object-position: 62% 50%; }

    .cat-hero__mask {
        background:
            linear-gradient(180deg, rgba(6, 24, 47, .88) 0%, rgba(6, 24, 47, .93) 45%, rgba(6, 24, 47, .97) 100%),
            radial-gradient(100% 60% at 70% 12%, rgba(48, 140, 255, .18) 0%, transparent 70%);
    }

    /* 右侧展示图已移除，窄屏不再需要 column-reverse（没有图要放到上面） */
    .cat-hero__top { flex-direction: column; align-items: stretch; gap: 0; }

    .cat-hero__title { font-size: 23px; margin-bottom: 8px; }

    .cat-hero__text { padding-top: 0; }

    .cat-hero__meta span { font-size: 12px; padding: 2px 8px; }

    .cat-hero__cta { font-size: 12px; padding: 4px 11px; }

    .cat-hero__specs { margin-top: 10px; gap: 5px 6px; }

    .cat-hero__specs i { font-size: 11.5px; padding: 2.5px 8px; }

    .cat-attrs__table tbody { column-count: 1; }

    .cat-attrs__table th { width: 42%; }

    .cat-stock__head { flex-direction: column; align-items: flex-start; gap: 8px; }

}

@media (max-width: 720px) {

    .pc-hero__title { font-size: 30px; }

    .pc-hero__body { padding: 52px 0 46px; }

    .pc-hero__stats { gap: 24px; }

    /* ★ 2026-10-22 这里原来写 `1fr`（单列），但 common.css 的
       `@media(max-width:1080px){.pc-series__grid{repeat(2,1fr)}}` 也在 1-2 列之内，
       靠顺序压不住（products.css 后载）—— 现在显式写 minmax(0,1fr) 单列，
       手机上系列卡回到整宽，图片不再被挤成 60×38。 */
    .pc-series__grid, .pl-children__grid { grid-template-columns: minmax(0, 1fr); }

    .pl-hero__title { font-size: 25px; }

    .cmpbar__inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }

    .cmpbar__tags { order: 3; width: 100%; }

    /* 移动端头图切 3:2（搜索结果卡片常用比例） */
    .cat-aside__pic img { aspect-ratio: 3 / 2; }

}

@media (max-width: 900px) {

    .pl-table .pl-detail-table tbody { column-count: 1; }

}
