/* ==========================================================================
   产品详情页样式（detail.html 专用）
   说明：颜色 / 字号 / 间距 / 缓动等变量统一复用 style.css 的 :root，
        这里只写「产品详情」页独有的版块：
        Banner、面包屑、主图+缩略图、右侧信息栏、产品介绍、
        亮点带、案例微调、FAQ 手风琴。
   设计基准：1920 宽设计稿（产品内页.jpg 1920×6311）
   ========================================================================== */


/* ==========================================================================
   01. 页面 Banner（全幅实拍背景 + 居中 PRODUCTS 标题）
       与其他内页同款：上提一个导航高度，让透明导航压在图上方
   ========================================================================== */

.detail-hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-h));
    background-color: #9aa4b0;
}


/* 背景图：四边外扩，给视差留出位移余量 */

.detail-hero__bg {
    position: absolute;
    inset: -8% 0;
    background-image: url("../images/products-hero.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 与其他内页 Banner 同高（1920 基准 550px） */
    height: clamp(320px, 28.6vw, 550px);
    padding-top: var(--header-h);
}

.detail-hero__title {
    font-size: clamp(28px, 2.4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
    animation: detail-hero-in var(--dur-slow) var(--ease) both;
}


/* 标题下的白色短线（设计稿 94×7） */

.detail-hero__title::after {
    content: "";
    display: block;
    width: clamp(54px, 4.9vw, 94px);
    height: clamp(3px, 0.36vw, 7px);
    margin: 22px auto 0;
    background-color: var(--color-white);
    animation: detail-line-in var(--dur-slow) var(--ease) 0.18s both;
}

@keyframes detail-hero-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes detail-line-in {
    from {
        opacity: 0;
        transform: scaleX(0.2);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}


/* ==========================================================================
   02. 面包屑（Home - Products - All-steel series，整体右移约 88px）
   ========================================================================== */

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    /* Banner 到面包屑的留白（设计稿 525 → 586） */
    padding-top: clamp(22px, 3.2vw, 61px);
    /* 设计稿面包屑左边缘比标题更靠右（x=195 对 x=107） */
    padding-left: clamp(0px, 4.58vw, 88px);
    font-size: clamp(14px, 0.94vw, 18px);
    line-height: 1.4;
    color: var(--color-text-muted);
}

.detail-breadcrumb__link {
    color: var(--color-text-muted);
    transition: color var(--dur-fast) var(--ease);
}

.detail-breadcrumb__link:hover {
    color: var(--color-primary);
}

.detail-breadcrumb__sep {
    color: var(--color-text-muted);
}

.detail-breadcrumb__current {
    color: var(--color-text-muted);
}


/* ==========================================================================
   03. 详情首屏两栏（左主图+缩略图 / 右标题+描述+联系条）
       设计稿：主图 111–940（829×457）、右栏 1006–1808，间距 66
   ========================================================================== */

.detail-product {
    /* 面包屑到主图的留白（设计稿 610 → 657） */
    padding-top: clamp(20px, 2.45vw, 47px);
    padding-bottom: clamp(40px, 4vw, 76px);
}

.detail-product__inner {
    display: grid;
    grid-template-columns: minmax(0, 829fr) minmax(0, 802fr);
    column-gap: clamp(26px, 3.44vw, 66px);
    /* 右栏撑满行高，方便把联系条压到底部 */
    align-items: stretch;
}


/* --- 左侧画廊 --- */

.detail-gallery__main {
    /* 设计稿主图 829×457 */
    aspect-ratio: 829 / 457;
    overflow: hidden;
    background-color: #eceef1;
}

.detail-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity var(--dur-fast) var(--ease);
}


/* 缩略图条：‹ + 三张缩略图 + › */

.detail-gallery__strip {
    display: flex;
    align-items: stretch;
    gap: clamp(6px, 0.63vw, 12px);
    /* 主图到缩略图条的间隔（设计稿 1114 → 1124） */
    margin-top: clamp(5px, 0.52vw, 10px);
}

.detail-gallery__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 设计稿箭头 36×127 */
    width: clamp(22px, 1.87vw, 36px);
    height: clamp(70px, 6.6vw, 127px);
    padding: 0;
    border: 0;
    background-color: #e4e4e7;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease);
}

.detail-gallery__arrow svg {
    width: 46%;
    height: 46%;
    fill: none;
    stroke: var(--color-white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-gallery__arrow:hover {
    background-color: #cfcfd3;
}

.detail-gallery__thumb {
    flex: 1 1 0;
    min-width: 0;
    height: clamp(70px, 6.6vw, 127px);
    padding: 0;
    border: 0;
    background: none;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.86;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}

.detail-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.detail-gallery__thumb:hover {
    opacity: 1;
}


/* 当前选中张：与设计稿一致不加边框，仅恢复为完全不透明 */

.detail-gallery__thumb.is-active {
    opacity: 1;
}

.detail-gallery__thumb:focus-visible,
.detail-gallery__arrow:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


/* --- 右侧信息栏 --- */

.detail-info {
    display: flex;
    flex-direction: column;
    /* 标题上方微调，让标题与主图顶边接近（设计稿 657 → 668） */
    padding-top: clamp(0px, 0.57vw, 11px);
}

.detail-info__title {
    font-size: clamp(26px, 2.5vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}


/* 标题下的红色短线（设计稿 90×7） */

.detail-info__rule {
    display: block;
    width: clamp(60px, 4.69vw, 90px);
    height: clamp(4px, 0.37vw, 7px);
    margin-top: clamp(18px, 2.08vw, 40px);
    background-color: var(--color-primary);
}

.detail-info__desc {
    /* 设计稿行距约 39px，对应字号约 15.5px */
    margin-top: clamp(16px, 2.29vw, 44px);
    font-size: clamp(13px, 0.81vw, 15.5px);
    font-weight: 500;
    line-height: 2.4;
    color: var(--color-text-muted);
}

.detail-info__desc+.detail-info__desc {
    margin-top: clamp(4px, 0.52vw, 10px);
}


/* 简介末尾的定制说明：主色红，比正文略重，作为补充卖点 */

.detail-info__note {
    margin-top: clamp(14px, 1.6vw, 28px);
    font-size: clamp(13px, 0.96vw, 22px);
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-primary);
}


/* 联系条整体压到右栏底部（与左侧缩略图条底部对齐） */

.detail-info__contact {
    margin-top: auto;
    padding-top: clamp(24px, 2.9vw, 56px);
}

.detail-info__divider {
    display: block;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.09);
}

.detail-info__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 1.6vw, 30px);
    /* 分隔线到联系条（设计稿 1110 → 1146） */
    margin-top: clamp(16px, 1.87vw, 36px);
}

.detail-info__phone,
.detail-info__mail {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.1vw, 21px);
    min-width: 0;
}

.detail-info__phone-icon,
.detail-info__mail-icon {
    flex: 0 0 auto;
    display: block;
    width: clamp(26px, 2.29vw, 44px);
    color: var(--color-primary);
}

.detail-info__phone-icon svg,
.detail-info__mail-icon svg {
    display: block;
    width: 100%;
    height: auto;
    fill: currentColor;
}

/* 电话图标轻摆；邮箱图标保持静止 */
.detail-info__phone-icon svg {
    animation: detail-phone-ring 2.4s var(--ease) 1.2s 2 both;
}

@keyframes detail-phone-ring {
    0%,
    100% {
        transform: rotate(0deg);
    }
    6% {
        transform: rotate(-9deg);
    }
    12% {
        transform: rotate(9deg);
    }
    18% {
        transform: rotate(-5deg);
    }
    24% {
        transform: rotate(0deg);
    }
}

.detail-info__phone-text,
.detail-info__mail-text {
    display: block;
    min-width: 0;
}

.detail-info__phone-label,
.detail-info__mail-label {
    display: block;
    font-size: clamp(13px, 0.81vw, 15.5px);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.detail-info__phone-number,
.detail-info__mail-address {
    display: block;
    margin-top: clamp(4px, 0.4vw, 8px);
    font-size: clamp(16px, 1.15vw, 22px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-ink);
    transition: color var(--dur-fast) var(--ease);
}

.detail-info__phone-number:hover,
.detail-info__mail-address:hover {
    color: var(--color-primary);
}


/* Contact Us 胶囊按钮（设计稿 172×46） */

.detail-info__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(11px, 0.83vw, 16px) clamp(24px, 1.98vw, 38px);
    border-radius: var(--radius-pill);
    background-color: var(--color-primary);
    font-size: clamp(13px, 0.81vw, 15.5px);
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
    transition: background-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.detail-info__button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(224, 27, 34, 0.28);
}


/* ==========================================================================
   04. Product Introduction（概述 + 示意图 + 收益 + 系统优势）
   ========================================================================== */

.detail-intro {
    padding-top: clamp(48px, 4.9vw, 44px);
    padding-bottom: clamp(48px, 5vw, 46px);
}


/* 标题容器收缩到文字宽度，让「悬停」只发生在标题文字上 */

.detail-intro__head {
    width: -moz-fit-content;
    width: fit-content;
}

.detail-intro__title {
    font-size: clamp(26px, 2.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}


/* 标题下红色短线（设计稿 90×7）：默认收起，鼠标移入标题时从左向右展开 */

.detail-intro__rule {
    display: block;
    width: clamp(60px, 4.69vw, 90px);
    height: clamp(4px, 0.37vw, 7px);
    margin-top: clamp(12px, 1.04vw, 20px);
    background-color: var(--color-primary);
}

.detail-intro__head:hover .detail-intro__rule,
.detail-intro__head:focus-within .detail-intro__rule {
    transform: scaleX(1);
}


/* 触屏等无 hover 能力的设备：保持常显，避免红线永远看不到 */

@media (hover: none) {
    .detail-intro__rule {
        transform: scaleX(1);
    }
}

.detail-intro__subtitle {
    /* 设计稿标题 26px 加粗 */
    font-size: clamp(18px, 1.35vw, 26px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-ink);
}

.detail-intro__body>.detail-intro__subtitle:first-child {
    margin-top: clamp(30px, 3.23vw, 62px);
}

.detail-intro__text {
    margin-top: clamp(10px, 1.09vw, 21px);
    font-size: clamp(13px, 0.89vw, 17px);
    font-weight: 500;
    line-height: 1.95;
    color: var(--color-text-muted);
}

.detail-intro__text p+p {
    margin-top: clamp(2px, 0.6vw, 12px);
}


/* 「Benefit of the program」段落块：与示意图之间留小间距 */

.detail-intro__text--tight {
    margin-top: clamp(18px, 1.3vw, 25px);
}


/* 系统示意图：设计稿位于 210–1598（1388×541）的浅灰底板上 */

.detail-schematic {
    max-width: 1388px;
    margin: clamp(36px, 10.9vw, 210px) auto 0;
}

.detail-schematic img {
    display: block;
    width: 100%;
    height: auto;
}


/* 系统优势编号列表 */

.detail-advantage {
    margin-top: clamp(12px, 1.35vw, 26px);
    list-style: none;
}

.detail-advantage__item {
    display: flex;
    align-items: flex-start;
    gap: clamp(4px, 0.42vw, 8px);
    margin-top: clamp(2px, 0.52vw, 10px);
    font-size: clamp(13px, 0.89vw, 17px);
    font-weight: 500;
    line-height: 1.95;
    color: var(--color-text-muted);
}

/* 序号：用 CSS 画圈，避免 ①—⑥ 字符在 Barlow 缺字形时回退成乱码 */
.detail-advantage__no {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    margin-top: 0.32em;
    border: 1px solid rgba(17, 18, 20, 0.28);
    border-radius: 50%;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1;
    color: var(--color-ink);
}

.detail-advantage__text strong {
    font-weight: 800;
    color: var(--color-ink);
}


/* ==========================================================================
   05. PRODUCT INTRODUCTION 亮点带（浅底 + 四张白卡）
       设计稿：带区 3211–3719，卡片 4 张等宽（358×173）
   ========================================================================== */

.detail-highlights {
    position: relative;
    padding-top: clamp(32px, 2.6vw, 50px);
    padding-bottom: clamp(40px, 3.4vw, 66px);
    /* 底色与背景实拍相乘叠加：让四张白卡在浅底上形成清晰边界 */
    background-color: #e8eaee;
    background-image: url("../images/detail-band-bg.jpg");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

.detail-highlights__title {
    font-size: clamp(26px, 2.4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--color-ink);
}

.detail-highlights__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 3.85vw, 74px);
    margin-top: clamp(24px, 2.6vw, 50px);
}


/* --- 单张亮点卡 --- */

.highlight-card {
    --reveal-delay: 0ms;
    display: flex;
    flex-direction: column;
    /* 设计稿卡片 358×173 */
    min-height: clamp(124px, 9vw, 173px);
    padding: clamp(18px, 1.4vw, 27px) clamp(16px, 1.5vw, 29px) 0;
    border-radius: 6px;
    border-bottom: 3px solid transparent;
    background-color: var(--color-white);
    /* 静置时投影很轻，只用于把卡片从浅底背景上「抬」起来 */
    box-shadow: 0 6px 18px rgba(28, 32, 38, 0.06);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur-fast) var(--ease);
}

.detail-highlights__cards .highlight-card:nth-child(2) {
    --reveal-delay: 90ms;
}

.detail-highlights__cards .highlight-card:nth-child(3) {
    --reveal-delay: 180ms;
}

.detail-highlights__cards .highlight-card:nth-child(4) {
    --reveal-delay: 270ms;
}

.highlight-card__desc {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(13px, 0.81vw, 15.5px);
    font-weight: 500;
    line-height: 2.15;
    color: var(--color-text-muted);
}

.highlight-card__divider {
    display: block;
    height: 1px;
    margin-top: clamp(12px, 1vw, 19px);
    background-color: rgba(0, 0, 0, 0.08);
}

.highlight-card__label {
    padding: clamp(12px, 1vw, 19px) 0;
    text-align: center;
    font-size: clamp(14px, 0.94vw, 18px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-primary);
}


/* 鼠标移入：底部出现红色粗边（设计稿截图即为该 hover 态） */

.highlight-card:hover,
.highlight-card:focus-within {
    border-bottom-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   06. Our Customer Cases（复用首页手风琴画廊，仅调整本页尺寸与留白）
       设计稿：画廊 3986–4646（高 660），窄卡 232 / 展开卡 890
   ========================================================================== */

.detail-cases {
    padding-top: clamp(40px, 4.74vw, 91px);
    padding-bottom: clamp(40px, 4.2vw, 80px);
    background-color: var(--color-white);
}

.detail-cases__head {
    max-width: 900px;
}

.detail-cases__head .section-sub {
    margin-top: clamp(8px, 0.94vw, 18px);
}


/* 两排八图的静态网格：每行四张，不做手风琴切换 */

.detail-cases__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.05vw, 20px);
    margin-top: clamp(24px, 3.1vw, 60px);
}

.detail-cases__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: #f2f2f3;
    aspect-ratio: 4 / 3;
}

.detail-cases__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur) var(--ease);
}

.detail-cases__item:hover img {
    transform: scale(1.06);
}

.detail-cases__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: clamp(20px, 2.2vw, 36px) clamp(12px, 1.1vw, 20px) clamp(10px, 0.94vw, 18px);
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62));
    font-size: clamp(11px, 0.68vw, 13px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.detail-cases__item:hover .detail-cases__caption,
.detail-cases__item:focus-within .detail-cases__caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .detail-cases__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-cases__item img,
    .detail-cases__caption {
        transition: none;
    }

    .detail-cases__item:hover img {
        transform: none;
    }
}


/* ==========================================================================
   07. FAQ 手风琴（浅色底 + 淡纹理，默认展开第一条）
   ========================================================================== */

.detail-faq {
    position: relative;
    padding-top: clamp(48px, 4.74vw, 91px);
    padding-bottom: clamp(80px, 8.9vw, 171px);
    background-color: #f2f2f3;
    /* 白色蒙层压淡纹理，避免斜向接缝抢掉问题行的可读性 */
    background-image: linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)), url("../images/detail-faq-bg.jpg");
    background-position: center;
    background-size: cover, cover;
    background-repeat: no-repeat;
}

.detail-faq__title {
    font-size: clamp(26px, 2.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}

.faq-list {
    margin-top: clamp(24px, 3.23vw, 62px);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.13);
}

.faq-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.13);
}


/* 问题行 */

.faq-item__head {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq-item__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 36px);
    width: 100%;
    padding: clamp(16px, 1.35vw, 26px) clamp(12px, 1.5vw, 29px);
    border: 0;
    background: none;
    font-family: inherit;
    font-size: clamp(14px, 0.89vw, 17px);
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    color: var(--color-ink);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease), font-weight var(--dur-fast) var(--ease);
}


/* 展开条：设计稿用浅灰底 + 加粗标题 */

.faq-item.is-open .faq-item__toggle {
    background-color: #e8e8ea;
    font-weight: 800;
}

.faq-item__toggle:hover {
    background-color: #ececee;
}

.faq-item__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(18px, 1.25vw, 24px);
    color: #8d8d92;
    transition: transform var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}

.faq-item__icon svg {
    display: block;
    width: 100%;
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* 展开时箭头翻转 180° */

.faq-item.is-open .faq-item__icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}


/* 答案面板：grid 0fr → 1fr 实现「不确定高度」的平滑展开 */

.faq-item__panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    background-color: var(--color-white);
    transition: grid-template-rows var(--dur) var(--ease);
}

.faq-item.is-open .faq-item__panel {
    grid-template-rows: 1fr;
}

.faq-item__body {
    min-height: 0;
    padding: 0 clamp(12px, 1.5vw, 29px);
    font-size: clamp(13px, 0.81vw, 15.5px);
    font-weight: 500;
    line-height: 2;
    color: var(--color-text-muted);
    opacity: 0;
    transition: opacity var(--dur) var(--ease), padding var(--dur) var(--ease);
}

.faq-item.is-open .faq-item__body {
    padding: clamp(16px, 1.77vw, 34px) clamp(12px, 1.5vw, 29px) clamp(20px, 2.1vw, 40px);
    opacity: 1;
}


/* ==========================================================================
   08. 响应式适配
   ========================================================================== */


/* 窄桌面 / 笔记本：两栏改为上下结构 */

@media (max-width: 1100px) {
    .detail-product__inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: clamp(24px, 3vw, 42px);
    }
    .detail-info {
        padding-top: 0;
    }
    .detail-info__contact {
        margin-top: clamp(24px, 3vw, 40px);
        padding-top: 0;
    }
}


/* 平板：亮点卡两列、示意图留白收紧 */

@media (max-width: 1024px) {
    .detail-highlights__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(14px, 2.6vw, 34px);
    }
    .detail-highlights__cards .highlight-card:nth-child(2n) {
        --reveal-delay: 90ms;
    }
    .detail-highlights__cards .highlight-card:nth-child(3),
    .detail-highlights__cards .highlight-card:nth-child(4) {
        --reveal-delay: 0ms;
    }
    .detail-schematic {
        margin-top: clamp(30px, 4vw, 60px);
    }
}


/* 手机：字号收紧、缩略图条更矮、联系条竖排 */

@media (max-width: 640px) {
    .detail-hero__inner {
        height: clamp(250px, 42vw, 340px);
    }
    .detail-hero__title {
        font-size: clamp(24px, 5vw, 32px);
    }
    .detail-hero__title::after {
        width: 52px;
        height: 3px;
        margin-top: 14px;
    }
    .detail-breadcrumb {
        padding-left: 0;
        gap: 7px;
    }
    .detail-gallery__arrow {
        width: 24px;
        height: 64px;
    }
    .detail-gallery__thumb {
        height: 64px;
    }
    .detail-info__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .detail-info__button {
        width: 100%;
        max-width: 220px;
    }
    .detail-advantage__item {
        font-size: 14px;
    }
}


/* ==========================================================================
   09. 减少动态效果偏好：关闭入场位移、电话图标摆动与卡片悬浮
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .detail-hero__title,
    .detail-hero__title::after,
    .detail-info__phone-icon svg {
        animation: none;
    }
    .highlight-card {
        transition: none;
    }
    .highlight-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   10. 修复：产品只有一张图时，下方缩略图被 flex 拉伸成一张大图
   原因：.detail-gallery__thumb 的 flex: 1 1 0，单张时会占满箭头之间的全部宽度。
   处理：单图时（由 detail.js 给缩略图条加 .is-single）改为固定尺寸，并隐藏无意义的翻页箭头；
        两张及以上保持原有「三栏平分」的样式不变。
   ========================================================================== */

.detail-gallery__strip.is-single .detail-gallery__thumb {
    /* 高度见上方原规则 clamp(70px, 6.6vw, 127px)，缩略图原比例 230×127 */
    flex: 0 0 auto;
    width: calc(clamp(70px, 6.6vw, 127px) * 230 / 127);
}

.detail-gallery__strip.is-single .detail-gallery__arrow {
    display: none;
}

@media (max-width: 640px) {
    /* 窄屏缩略图高度为 64px，宽度需同步换算，保持 230:127 */
    .detail-gallery__strip.is-single .detail-gallery__thumb {
        width: calc(64px * 230 / 127);
    }
}
/* （注：内容由AI生成） */


/* ==========================================================================
   11. 修复：详情页富文本（CMS 编辑器残留的内联样式）把页面撑宽
   表现：390px 手机上 document.scrollWidth 变成 1058px，出现横向滚动条/文字被截断。
   两处内联样式：
     ① .detail-advantage 列表被写死 width:1035.5px
     ② 右栏简介每段 span 被 text-wrap:nowrap 锁成单行（单行宽 646px，右栏只有 346px）
   ========================================================================== */

/* ① 富文本列表 / 简介容器：无视写死的像素宽度，跟随容器 */
.detail-advantage,
.detail-intro__body ul,
.detail-intro__text {
    width: auto !important;
    max-width: 100% !important;
}

/* ② 解除 nowrap：右栏简介、正文段落里的 span 恢复自动换行 */
.detail-info p,
.detail-info p span,
.detail-intro__text p,
.detail-intro__text p span {
    text-wrap: wrap !important;
    white-space: normal !important;
}

/* ③ 长英文串 / 连续字符兜底断行，避免个别长单词再次顶破容器 */
.detail-info,
.detail-intro__text,
.detail-advantage {
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* （注：内容由AI生成） */
