/* ==========================================================================
   PRODUCT LIST PAGE (list_product.html)
   depends on: style.css (tokens, header, footer, reveal), partner.css (dealer/contact sections)
   ========================================================================== */

/* ---------- hero ---------- */
.plist-hero {
    position: relative;
    height: 420px;
    padding: 0px 0 0px;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.plist-hero .container {
    position: relative; z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.plist-hero h1 {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin: 0;
}
.plist-hero p {
    margin-top: 16px;
    max-width: 760px;
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
}
.plist-hero .page-breadcrumb { font-size: var(--fs-small); }

/* ---------- category tabs (level-2) ---------- */
.plist-cats { padding: 70px 0 0; background: #fff; }
.plist-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.plist-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    padding: 30px 45px;
    min-width: 0;
    background: #f4f4f4;
    border-radius: 6px;
    font-size: var(--fs-h5);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.plist-tab span { min-width: 0; overflow-wrap: anywhere; }
.plist-tab img {
    width: 54px; height: 50px;
    object-fit: contain;
    flex: none;
}
/* icon pair: "a" = idle state, "b" = active state */
.plist-tab .icon-on { display: none; }
.plist-tab.is-active .icon-off { display: none; }
.plist-tab.is-active .icon-on { display: block; }
.plist-tab:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(200, 16, 46, .25);
}
.plist-tab.is-active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(200, 16, 46, .25);
}

/* ---------- sub category pills (level-3) ---------- */
.plist-cats.is-loading, .plist-grid-sec.is-loading { opacity: .45; pointer-events: none; transition: opacity .2s ease; }
.plist-pills {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 0px 35px;
    border-bottom: 1px solid #E2E4E8;
}
.plist-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 18px 0 18px 5px;
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--ink);
    transition: color .25s ease;
}
.plist-pill::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.plist-pill:hover { color: var(--red); }
.plist-pill.is-active { color: var(--red); }
.plist-pill.is-active::after { transform: scaleX(1); }

/* ---------- product grid ---------- */
.plist-grid-sec { padding: 50px 0 0px; }
.plist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 25px;
}
.plist-empty {
    grid-column: 1 / -1;
    padding: 70px 0;
    text-align: center;
    font-size: var(--fs-small);
    color: #8a9099;
}
.plist-card {
    background: #fff;
    overflow: hidden;
    transition: transform .3s ease;
}
.plist-card:hover {
    transform: translateY(-4px);
}
.plist-card-img {
    display: block;
    background: #f6f7f8;
    overflow: hidden;
}
.plist-card-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 18px;
    transition: transform .45s ease;
}
.plist-card:hover .plist-card-img img { transform: scale(1.05); }
.plist-card-body{
    padding-top: 25px;
}
.plist-card-body h3 {
    font-size: var(--fs-h5);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.plist-card-body h3 a {  transition: color .25s ease; }
.plist-card-body h3 a:hover { color: var(--red-dark); }
.plist-card-cat {
    /* clamp to max 2 lines with ellipsis (works in Chrome/Firefox/Safari/Edge) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: var(--fs-body);
    line-height: normal;
    margin: 10px 0;
}
.plist-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.plist-card-more svg { width: 13px; height: 12px; transition: transform .25s ease; }
.plist-card-more:hover { color: var(--red-dark); }
.plist-card-more:hover svg { transform: translateX(4px); }

/* ---------- SEO text ---------- */
.plist-seo { padding: 65px 0 0px; }
.plist-seo-block h2 {
    font-size: clamp(24px, 2.6vw, 46px);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 20px;
}
.plist-seo-block h3 {
    font-size: var(--fs-h4);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 20px;
}
.plist-seo-block p {
    font-size: var(--fs-body);
    line-height: 1.8;
    margin: 0;
}
.plist-seo-block + .plist-seo-block { margin-top: 36px; }
.plist-seo-list {
    margin: 0;
    list-style: disc;
}
.plist-seo-list li {
    font-size: var(--fs-body);
    line-height: 1.8;
    list-style-position: inside;
    margin-bottom: 15px;
}
@media (max-width: 767px) {
    .plist-seo-list { grid-template-columns: 1fr; }
}

/* ---------- cable line ---------- */
.plist-cable { padding: 60px 0 70px; }
.plist-cable-title {
    font-size: clamp(24px, 2.6vw, 46px);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 40px;
}
.plist-cable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:30px 25px;
}
.plist-cable-card {
    background: #f6f7f8;
    border: 1px solid #eef0f2;
    padding: 35px 26px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.plist-cable-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}
.plist-cable-card h3 {
    font-size: var(--fs-h4);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 20px;
}
.plist-cable-card p {
    font-size: var(--fs-body);
    line-height: 1.75;
    color: #6b6b6c;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .plist-grid { grid-template-columns: repeat(3, 1fr); }
    .plist-cable-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .plist-hero { padding: 90px 0 64px; }
    .plist-tabs { grid-template-columns: repeat(2, 1fr); }
    .plist-tab { height: 76px; font-size: 14px; }
    .plist-seo-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 767px) {
    .plist-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .plist-grid-sec { padding: 32px 0 10px; }
    .plist-card-body { padding: 14px 14px 18px; }
    .plist-card-body h3 { font-size: 15px; }
    .plist-cable-grid { grid-template-columns: 1fr; }
    .plist-pills { gap: 8px; }
    .plist-pill { height: 38px; padding: 0 16px; font-size: 13px; }
}

@media (max-width: 575px) {
    .plist-tabs { grid-template-columns: 1fr 1fr; gap: 12px; }
    .plist-tab { height: auto; min-height: 64px; padding: 10px 14px; font-size: 13px; gap: 8px; }
    .plist-tab img { width: 30px; height: 30px; }
    .plist-grid { grid-template-columns: 1fr; }
    /* 手机：子栏目页签改为圆角卡片式按钮，换行后依然整齐美观 */
    .plist-pills { gap: 10px; margin-top: 20px; border-bottom: 0; }
    .plist-pill {
        height: auto;
        padding: 8px 16px;
        font-size: 13px;
        line-height: 1.4;
        color: #4b5055;
        background: #f4f4f4;
        border: 1px solid #e4e6ea;
        border-radius: 4px;
        transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
    }
    .plist-pill::after { display: none; }
    .plist-pill:not(.is-active):hover { color: var(--red); border-color: var(--red); }
    .plist-pill.is-active {
        color: #fff;
        background: var(--red);
        border-color: var(--red);
        box-shadow: 0 4px 10px rgba(200, 16, 46, .28);
    }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (detail_product.html)
   ========================================================================== */

/* ---------- hero ---------- */
.pdetail-hero { padding: 30px 0 0; background: #fff; margin-bottom: 70px;}
/* breadcrumb text: all pure black (links, separators, current page) */
.pdetail-hero .page-breadcrumb { margin-top: 0; font-size: var(--fs-xs); color: #000; }
.pdetail-hero .page-breadcrumb a { color: #000; }
.pdetail-hero .page-breadcrumb a:hover { color: #000; }
.pdetail-hero .page-breadcrumb .sep { margin: 0 8px; color: #000; }
.pdetail-hero .page-breadcrumb [aria-current] { color: #000; }

.pdetail-top {
    margin-top: 55px;
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    gap: 50px;
    align-items: start;
}
/* 网格子项默认 min-width:auto，不会收缩到内容最小宽度以下；
   标题/特性文本中若有超长不间断字符串，会把列宽顶出容器右边界 */
.pdetail-top > * { min-width: 0; }
/* seo_description 经 nl2br 输出为纯文本，允许超长字符串在任意位置断行 */
.pdetail-info { overflow-wrap: anywhere; }

/* ---------- gallery ---------- */
.pdetail-gallery-main {
    margin: 0;
    background: #f6f7f8;
    overflow: hidden;
    position: relative;
}
/* prev / next buttons over the main media */
.pdetail-gallery-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1b1b1b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.pdetail-gallery-nav svg { width: 14px; height: 22px; }
.pdetail-gallery-nav:hover { background: #c8102e; color: #fff; }
.pdetail-gallery-nav:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }
.pdetail-gallery-nav--prev { left: 14px; }
.pdetail-gallery-nav--next { right: 14px; }
@media (max-width: 575px) {
    .pdetail-gallery-nav { width: 36px; height: 36px; }
    .pdetail-gallery-nav svg { width: 12px; height: 19px; }
    .pdetail-gallery-nav--prev { left: 8px; }
    .pdetail-gallery-nav--next { right: 8px; }
}
.pdetail-gallery-main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 24px;
}
/* main video: fills the frame, keeps square ratio, letterboxes on gallery bg */
.pdetail-gallery-main video {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f6f7f8;
}
.pdetail-gallery-main [hidden] { display: none; }
.pdetail-gallery-thumbs {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c8102e #eceef1;
    -webkit-overflow-scrolling: touch;
}
.pdetail-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}
.pdetail-gallery-thumbs::-webkit-scrollbar-track {
    background: #eceef1;
    border-radius: 3px;
}
.pdetail-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #c8102e;
    border-radius: 3px;
}
.pdetail-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #a80d26;
}
.pdetail-thumb {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    padding: 6px;
    border: 2px solid transparent;
    transition: border-color .25s ease;
}
.pdetail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pdetail-thumb:hover { border-color: #1b1b1b; }
.pdetail-thumb.is-active { border-color: #1b1b1b; }
/* video thumbnail: first frame preview + centered play badge */
.pdetail-thumb--video { position: relative; }
.pdetail-thumb--video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.pdetail-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.pdetail-thumb-play svg { width: 14px; height: 14px; margin-left: 2px; }

/* ---------- info ---------- */
.pdetail-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -.01em;
    margin: 0;
}
.pdetail-features {
    margin-top: 40px;
    font-size: var(--fs-h5);
    line-height: 1.9;
}
.pdetail-features p { margin: 0 0 10px; }

/* ---------- key points checklist (red circle-check items from tag field) ---------- */
.pdetail-checks {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pdetail-checks li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--fs-h5);
    font-weight: 700;
    color: var(--ink);
}
.pdetail-checks li svg {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: var(--red);
}
.pdetail-checks li span { font-size: var(--fs-h4); }

/* ---------- info actions (quote + brochure buttons, side by side) ---------- */
.pdetail-info-actions {
    margin-top: 46px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.pdetail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 42px;
    font-size: var(--fs-small);
    font-weight: 700;
    border-radius: 4px;
    transition: background-color .25s ease;
}
.pdetail-btn--red { background: var(--red); color: #fff; }
.pdetail-btn--red:hover { background: var(--red-dark); color: #fff; }
.pdetail-btn--gray { background: #f2f3f5; color: var(--ink); }
.pdetail-btn--gray:hover { background: #e7e9ec; color: var(--ink); }

/* ---------- feature badges ---------- */
.pdetail-badges {  background-color: #f4f4f4; }
.pdetail-badge-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px 0 35px;
}
.pdetail-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.pdetail-badge img {
    width: 85px;
    height: 43px;
    object-fit: contain;
    flex: none;
}
.pdetail-badge span {
    font-size: var(--fs-h4);
    font-weight: 700;
    color: var(--ink);
}
.pdetail-badge p {
    max-width: 260px;
    font-size: var(--fs-h5);
    line-height: 1.5;
    color: #2e312e;
}

/* ---------- main content ---------- */
.pdetail-content { padding: 70px 0 0; }
.pdetail-content-inner {
    font-size: var(--fs-body);
    line-height: 1.8;
    color: #4a4f57;
}
.pdetail-content-inner h2 {
    font-size: clamp(24px, 2.6vw, 46px);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 24px;
}
.pdetail-content-inner h3 {
    font-size: var(--fs-h5);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 16px;
}
.pdetail-content-inner p { margin: 0 0 18px; }
.pdetail-content-inner img { max-width: 100%; height: auto; border-radius: 6px; }

/* section heading + rich-text classes authored in the document content field */
.pdetail-content-title {
    margin: 0 0 35px;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}
.pdetail-content-sub {
    margin: 34px 0 12px;
    font-size: var(--fs-small);
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--ink);
}
.pdetail-content-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pdetail-content-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
    font-size: var(--fs-body);
    color: #33383f;
    line-height: inherit;
}
.pdetail-content-list li::before {
    content: "·";
    position: absolute;
    left: 2px;
    top: -.1em;
    font-weight: 700;
    color: #33383f;
}

/* ---------- product features: full-bleed horizontal scroller ---------- */
.pdetail-features-sec { padding: 55px 0 0; }

.pdetail-xscroll { position: relative; }
.pdetail-xscroll-track {
    --pf-gap: 30px;
    display: flex;
    gap: var(--pf-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    /* 轨道向左铺满整屏，内容盒左缘与版心对齐；右侧留白保证末卡停在版心右缘 */
    margin-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
.pdetail-xscroll-track::-webkit-scrollbar { display: none; }

.pdetail-feature-item {
    flex: 0 0 calc((100% - 2 * var(--pf-gap)) / 3.05);
    scroll-snap-align: start;
    margin: 0;
    background: #f7f8fa;
    overflow: hidden;
}
.pdetail-feature-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 24px 24px 35px;
}
.pdetail-feature-body {
    padding: 0 30px 35px;
}
.pdetail-feature-title {
    margin: 0 0 12px;
    font-size: var(--fs-h4);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}
.pdetail-feature-desc {
    margin: 0;
    font-size: var(--fs-body);
    line-height: 1.65;
    color: #4a4f57;
}

/* 左右切换按钮：设计稿为贴屏幕左右边缘的红色方形按钮，整图即按钮外观 */
.pdetail-xscroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 66px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: opacity .25s ease;
}
.pdetail-xscroll-nav.is-scrollable { display: flex; }
.pdetail-xscroll-nav:hover { opacity: .85; }
.pdetail-xscroll-nav img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pdetail-xscroll-nav--prev { left: 0; }
.pdetail-xscroll-nav--next { right: 0; }

/* 左右边缘半透明遮罩：还有未展示内容时出现
   宽度 = (视口宽度 - .container 内容宽度) / 2，内容宽度不含左右内边距（即 1520px） */
.pdetail-xscroll::before,
.pdetail-xscroll::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 10px;
    width: max(0px, calc((100vw - (min(100vw, var(--container)) - 2 * var(--gutter))) / 2));
    background: rgba(255, 255, 255, .7);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity .3s;
}
.pdetail-xscroll::before { left: 0; }
.pdetail-xscroll::after { right: 0; }
.pdetail-xscroll.is-fadeable-left::before { opacity: 1; }
.pdetail-xscroll.is-fadeable::after { opacity: 1; }

@media (max-width: 767px) {
    .pdetail-feature-item { flex: 0 0 calc((100% - var(--pf-gap)) / 2.05); }
    .pdetail-feature-body { padding: 0 18px 22px; }
    .pdetail-feature-title { font-size: 17px; margin-bottom: 8px; }
    .pdetail-feature-desc { font-size: 14px; }
}
@media (max-width: 575px) {
    .pdetail-feature-item { flex: 0 0 100%; }
    .pdetail-xscroll-nav { width: 48px; height: 52px; }
}

/* ---------- battle rope anchor ---------- */
.pdetail-battle {
    margin-top: 70px;
    padding: 75px 0;
    background: #0f1419;
    color: #fff;
}
.pdetail-battle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.pdetail-battle-row + .pdetail-battle-row { margin-top: 40px; }
.pdetail-battle-row--reverse { grid-template-columns: 1fr 1fr; }
.pdetail-battle-media { margin: 0; }
.pdetail-battle-media img,
.pdetail-battle-media video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 752 / 508;
    object-fit: cover;
    background: #000;
}
.pdetail-battle-title {
    margin: 0 0 24px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}
.pdetail-battle-copy {
    padding-right: 45px;
}
.pdetail-battle-row--reverse .pdetail-battle-copy { padding-left: 45px; }
.pdetail-battle-copy p {
    margin: 0;
    font-size: var(--fs-body);
    line-height: 1.65;
    color: #b9bdc2;
}
.pdetail-battle-lead { color: #c9ccd0; }
.pdetail-battle-sub {
    margin: 26px 0 10px;
    font-size: var(--fs-h4);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

/* ---------- specifications ---------- */
.pdetail-specs { padding: 70px 0 70px; }
.pdetail-specs-title {
    margin: 0 0 40px;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}
.pdetail-specs-grid {
    display: grid;
    grid-template-columns: 0.97fr 1fr;
    gap: 40px;
    align-items: start;
}
.pdetail-specs-media { margin: 0; }
.pdetail-specs-media img {
    display: block;
    width: 100%;
    height: auto;
}
.pdetail-specs-intro {
    margin: 0 0 30px;
    font-size: var(--fs-body);
    line-height: 1.75;
    color: #14191f;
}
.pdetail-accordion {
    border-top: 1px solid #3E3E3E;
}
.pdetail-accordion-toggle {  }
.pdetail-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #3E3E3E;
    background: none;
    cursor: pointer;
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--ink);
    text-align: left;
}
.pdetail-accordion-toggle svg {
    flex: none;
    width: 24px;
    height: 24px;
    color: #6b7078;
    transition: transform .25s ease;
}
.pdetail-accordion-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.pdetail-accordion-panel { display: none; padding: 2px 0 18px; }
.pdetail-accordion-item.is-open .pdetail-accordion-panel { display: block; }
.pdetail-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 13px 0;
    border-top: 1px solid #eef0f2;
    font-size: var(--fs-body);
    line-height: 1.5;
}
.pdetail-spec-row:first-child { border-top: 0; }
.pdetail-spec-row span:first-child { color: #4a4f57; }
.pdetail-spec-row span:last-child { color: #6b7078; text-align: right; }

/* ---------- faq ---------- */
.pdetail-faq {
    padding: 50px 0 60px;
    background: #f6f7f8;
}
.pdetail-faq-title {
    margin: 0 0 55px;
    text-align: center;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}
.pdetail-faq-list {
    max-width: 1230px;
    margin: 0 auto;
    border-top: 1px solid #dfe3e8;
}
.pdetail-faq-item { border-bottom: 1px solid #dfe3e8; }
.pdetail-faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 24px 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    text-align: left;
}
.pdetail-faq-icon {
    position: relative;
    flex: none;
    width: 12px;
    height: 12px;
}
.pdetail-faq-icon::before,
.pdetail-faq-icon::after {
    content: "";
    position: absolute;
    background: var(--red);
}
.pdetail-faq-icon::before {
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
}
.pdetail-faq-icon::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    transition: opacity .25s ease;
}
.pdetail-faq-toggle[aria-expanded="true"] .pdetail-faq-icon::after { opacity: 0; }
.pdetail-faq-panel { display: none; padding: 0 0 26px; }
.pdetail-faq-item.is-open .pdetail-faq-panel { display: block; }
.pdetail-faq-panel p {
    margin: 0;
    font-size: var(--fs-body);
    line-height: 1.75;
    color: #6b6b6c;
}

/* ---------- related equipment ---------- */
.pdetail-related { padding: 65px 0 70px; }
.pdetail-related .sec-title { margin-top: 0; font-size: var(--fs-h2);}
.pdetail-related-viewport {
    margin-top: 29px;
    padding: 6px 0;
    overflow: hidden;
}
.pdetail-related-grid {
    display: flex;
    gap: 25px;
    /* JS 切换时用 transform 平移，保证有明显的滑动过渡效果 */
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.pdetail-related .arrow-nav { margin-bottom: 6px; }
.pdetail-related .arrow-btn:disabled { opacity: .45; pointer-events: none; }
.pdetail-related-card {
    flex: 0 0 calc((100% - 3 * 25px) / 4);
    /* flex item 默认 min-width:auto 会被 nowrap 标题撑宽，必须归零才能保持等宽 */
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .3s ease;
}
.pdetail-related-card:hover { transform: translateY(-4px); }
.pdetail-related-img {
    display: block;
    background: #f6f7f8;
    overflow: hidden;
}
.pdetail-related-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 16px;
    transition: transform .45s ease;
}
.pdetail-related-card:hover .pdetail-related-img img { transform: scale(1.05); }
.pdetail-related-body { padding: 30px 20px; }
.pdetail-related-body h3 {
    font-size: var(--fs-h5);
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px;
}
.pdetail-related-body h3 a {
    /* title stays on one line, overflow ends with an ellipsis */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .25s ease;
}
.pdetail-related-body h3 a:hover { color: var(--red); }
.pdetail-related-desc {
    /* clamp to max 2 lines with ellipsis */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 14px;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: #3f3f3f;
}
.pdetail-related-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.pdetail-related-more svg { width: 13px; height: 12px; transition: transform .25s ease; }
.pdetail-related-more:hover { color: var(--red-dark); }
.pdetail-related-more:hover svg { transform: translateX(4px); }

/* ==========================================================================
   DETAIL PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    /* stack gallery + info: right column is too cramped below 1200px */
    .pdetail-top { grid-template-columns: 1fr; gap: 40px; }
    /* keep the square main media from stretching full-width when stacked */
    .pdetail-gallery { max-width: 640px; margin: 0 auto; width: 100%; }
    .pdetail-related-card { flex: 0 0 calc((100% - 2 * 25px) / 3); }
    .pdetail-battle-row,
    .pdetail-battle-row--reverse { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .pdetail-badge-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .pdetail-battle-row,
    .pdetail-battle-row--reverse { grid-template-columns: 1fr; gap: 28px; }
    /* 单列堆叠后，奇数行将两个子元素位置互换（延续桌面端左右交错节奏）。
       不依赖子元素类名：无论行内是 media/copy 还是其他结构，首尾子元素直接对调；
       nth-of-type 与 nth-child 双写，覆盖行被额外标签包裹的两种结构 */
    .pdetail-battle-row:nth-of-type(odd) > *:first-child,
    .pdetail-battle-row:nth-child(odd) > *:first-child { order: 2; }
    .pdetail-battle-row:nth-of-type(odd) > *:last-child,
    .pdetail-battle-row:nth-child(odd) > *:last-child { order: 1; }
    .pdetail-battle-row + .pdetail-battle-row { margin-top: 45px; }
    .pdetail-specs-grid { grid-template-columns: 1fr; gap: 40px; }
    .pdetail-specs-media { max-width: 520px; }
}

@media (max-width: 767px) {
    .pdetail-hero { padding-top: 24px; }
    .pdetail-top { gap: 30px; }
    .pdetail-gallery-thumbs { gap: 10px; }
    .pdetail-thumb { flex: 0 0 70px; width: 70px; height: 70px; }
    .pdetail-badge-list { grid-template-columns: repeat(2, 1fr); padding: 24px 0; }
    .pdetail-badge svg { width: 30px; height: 30px; }
    .pdetail-badge span { font-size: 14px; }
    .pdetail-related-grid { gap: 14px; }
    .pdetail-related-card { flex: 0 0 calc((100% - 14px) / 2); }
    .pdetail-battle { margin-top: 45px; }
    .pdetail-battle-title { margin-bottom: 16px; }
    .pdetail-battle-copy p { font-size: 15px; }
    .pdetail-battle-sub { margin-top: 20px; font-size: 18px; }
    .pdetail-specs-intro { font-size: 15px; margin-bottom: 22px; }
    .pdetail-accordion-toggle { font-size: 16px; padding: 16px 0; }
    .pdetail-spec-row { font-size: 14px; gap: 16px; padding: 11px 0; }
    .pdetail-faq { margin-top: 45px; padding: 45px 0 50px; }
    .pdetail-faq-title { margin-bottom: 24px; }
    .pdetail-faq-toggle { font-size: 16px; padding: 18px 0; gap: 18px; }
    .pdetail-faq-panel { padding-bottom: 20px; }
    .pdetail-faq-panel p { font-size: 15px; }
}

@media (max-width: 575px) {
    /* 收紧各区块间距：桌面 70-75px 的留白在手机上过大，统一降到 40-45px 区间 */
    .pdetail-hero { margin-bottom: 45px; }
    .pdetail-top { margin-top: 30px; }
    .pdetail-content { padding-top: 45px; }
    .pdetail-features-sec { padding-top: 45px; }
    .pdetail-battle { margin-top: 40px; padding: 45px 0; }
    .pdetail-battle-row + .pdetail-battle-row { margin-top: 32px; }
    .pdetail-specs { padding: 45px 0; }
    .pdetail-specs-title { margin-bottom: 26px; }
    .pdetail-faq { padding: 40px 0 45px; }
    .pdetail-related { padding: 45px 0 50px; }
    .pdetail-related-viewport { margin-top: 20px; }
    .pdetail-related-card { flex: 0 0 100%; }
    .pdetail-badge-list { grid-template-columns: 1fr 1fr; }
    /* stack the quote/brochure buttons full width on phones */
    .pdetail-info-actions { flex-direction: column; gap: 14px; }
    .pdetail-btn { width: 100%; }
}
