/* ===== Block 1 ===== */
/* 点击触发的按钮div */
        .open-popup-btn {
            width: 200px;
            height: 50px;
            line-height: 50px;
            text-align: center;
            background: #0e8a25;
            color: #fff;
            border-radius: 6px;
            cursor: pointer;
            margin:10px 0 0 0 !important;
        }

        /* 全屏灰色遮罩 */
        .popup-mask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.45);
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        .popup-mask.show {
            opacity: 1;
            pointer-events: auto;
        }

        /* 弹窗主体（严格沿用你的CSS） */
        .quote-popup {
            width: 675px;
            max-height: 85vh;
            background-color: #f4f4f8;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            border-radius: 10px;
            overflow: hidden;
            z-index: 10001;
            opacity: 0;
            transition: all 0.3s;
            pointer-events: none;
        }
        .quote-popup.show {
            opacity: 1;
            pointer-events: auto;
        }

        /* 弹窗头部 */
        .popup-header {
            padding: 32px 30px 20px;
            text-align: center;
            position: relative;
        }
        .popup-header h2 {
            font-size: 42px;
            font-weight: bold;
            color: #111;
            margin-bottom: 12px;
        }
        .popup-header p {
            color: #555;
            font-size: 17px;
            line-height: 1.6;
        }
        .close-btn {
            position: absolute;
            top: 22px;
            right: 24px;
            font-size: 30px;
            color: #e10d0d;
            cursor: pointer;
            border: none;
            background: transparent;
        }

        /* 表单内容区 */
        .popup-body {
            padding: 0 40px 30px;
          
            max-height: calc(80vh - 160px);
        }
        .form-item {
            margin-bottom: 24px;
        }
        .form-item label {
            display: block;
            font-size: 18px;
            color: #222;
            margin-bottom: 8px;
        }
        .form-item input {
            width: 100%;
            height: 54px;
            border: none;
            border-radius: 6px;
            background: #ffffff;
            font-size: 16px;
            padding: 0 16px;
        }

        /* 提交按钮 */
        .submit-btn {
            width: 100%;
            height: 62px;
            background-color: #0e8a25;
            color: #fff;
            border: none;
            border-radius: 999px;
            font-size: 20px;
            cursor: pointer;
        }
        @media (max-width:768px){
    .quote-popup.show {
        width: 98%;
    }
    .popup-header h2 {
    font-size: 28px;
    }
    
    .form-item {
    margin-bottom: 10px;
}
.form-item input{
    width: 100%;
    height: 40px;}
}

/* ===== Block 2 ===== */
.inq_form_wrap{
    width:100%;
    max-width:1440px;
    margin:20px auto;
    padding:0 10px;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}
.inq_form_box{
    background:#f7f9fc;
    padding:40px;
    border-radius:12px;
}
.inq_title{
    font-size:clamp(24px,2vw,32px);
    color:#222;
    margin:0 0 30px;
    text-align:center;
    font-weight:600;
}
.inq_row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-bottom:24px;
}
.inq_form_group{
    width:100%;
}
.inq_form_group_full{
    grid-column:1/-1;
}
.inq_form_group label{
    display:block;
    font-size:15px;
    color:#333;
    margin-bottom:8px;
}
.inq_form_group input,
.inq_form_group select,
.inq_form_group textarea{
    width:100%;
    padding:14px 16px;
    border:1px solid #d8e0ea;
    border-radius:6px;
    font-size:15px;
    outline:none;
    background:#fff;
    box-sizing:border-box;
}
.inq_form_group input:focus,
.inq_form_group select:focus,
.inq_form_group textarea:focus{
    border-color:#1677bb;
}
.inq_form_group textarea{
    min-height:140px;
    resize:vertical;
}
.inq_submit_box{
    text-align:center;
    margin-top:10px;
}
.inq_submit_btn{
    padding:15px 48px;
    background:#0e8a25;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:16px;
    cursor:pointer;
    transition:0.2s;
}
.inq_submit_btn:hover{
    background:#0f5f96;
}
/* 移动端适配 */
@media(max-width:768px){
    .inq_form_box{
        padding:12px;
    }
    .inq_row{
        grid-template-columns:1fr;
        gap:16px;
    }
    .inq_title{
        font-size:22px;
    }
}

/* ===== Block 3 ===== */
.fp_wrap{
    width:100%;
    max-width:1440px;
    margin:0 auto;
    padding:50px 20px;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}
.fp_title{
    text-align:center;
    font-size:clamp(18px,3vw,30px);
    font-weight:;
    color:#111;
    margin-bottom:16px;
    position:relative;
}
.fp_title::after{
   content: "";
    display: block;
    width: 2px;
    height: 10px;
    background: #222222;
    margin: 8px auto 0;
}
.fp_subtitle{
    text-align:center;
    font-size:clamp(14px,1.2vw,17px);
    color:#444;
    margin-bottom:40px;
}
.fp_grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:12px;
}
.fp_card{
    display:block;
    text-decoration:none;
    color:inherit;
}
.fp_card_img{
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    background:linear-gradient(180deg,#c8e0f0 0%,#a8c8e0 50%,#d8e8f0 100%);
}
.fp_card_img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.fp_card_name_overlay{
    position:absolute;
    top:24px;
    left:0;
    width:100%;
    text-align:center;
    color:#222;
    font-size:clamp(16px,1.5vw,22px);
    font-weight:bold;
    line-height:1.3;
    padding:0 10px;
    box-sizing:border-box;
}
.fp_card_name_bottom{
    text-align:center;
    font-weight:normal;
    color:#111;
    padding:20px 10px 10px;
}
/* 平板适配 */
@media(max-width:992px){
    .fp_grid{
        grid-template-columns:repeat(2,1fr);
        gap:16px;
    }
}
/* 手机端适配 */
@media(max-width:576px){
    .fp_wrap{
        padding:36px 16px;
    }
    .fp_grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }
    .fp_card_name_overlay{
        top:16px;
    }
}

/* ===== 产品详情页左侧边栏 ===== */
.pdetail_page {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 1440px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}
.pdetail_sidebar {
    width: 18%;
    margin-right: 3%;
    flex: none;
}
.pdetail_content {
    flex: 1;
    width: 79%;
    min-width: 0;
}
.pdetail_content .visual_plugins_container,
.pdetail_content .ly_product_purchase_2,
.pdetail_content .ly_product_description_1 {
    width: 100%;
}
.pdetail_content .wide {
    width: 100% !important;
    padding: 0 !important;
}
.pdetail_sidebar .top_title {
    height: 56px;
    line-height: 56px;
    border-bottom: 1px solid #e8e8e8;
    overflow: hidden;
    font-size: 20px;
    color: #222;
    text-transform: uppercase;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pdetail_sidebar .category_box .one_item {
    padding: 6px 0;
}
.pdetail_sidebar .category_box .cate_item {
    display: inline-block;
    line-height: 32px;
    font-size: 14px;
    color: #333;
    padding-right: 20px;
}
.pdetail_sidebar .category_box .cate_item:hover {
    color: #1687c8;
    text-decoration: none;
}
.pdetail_sidebar .relate_box {
    margin-top: 30px;
}
.pdetail_sidebar .related_item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}
.pdetail_sidebar .related_item .pic_box {
    flex: none;
    width: 80px;
    margin-right: 12px;
    background: #fff;
}
.pdetail_sidebar .related_item .pic_box img {
    width: 100%;
    display: block;
}
.pdetail_sidebar .related_item .content a {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}
.pdetail_sidebar .related_item .content a:hover {
    color: #1687c8;
}


/* ===== 产品详情页：右侧信息区布局调整（高优先级覆盖） ===== */
.ly_product_purchase_2 .goods_wrapper .goods_info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    width: 48% !important;
}
.ly_product_purchase_2 .goods_wrapper .goods_info .g_name {
    margin-bottom: 15px !important;
}
.ly_product_purchase_2 .goods_wrapper .goods_info .g_params {
    width: 100% !important;
    margin-bottom: 15px !important;
}
.ly_product_purchase_2 .goods_wrapper .goods_info .g_params .param_item {
    margin-top: 0 !important;
}
.ly_product_purchase_2 .goods_wrapper .goods_info .g_params .param_item .cell {
    line-height: 1.6 !important;
    font-size: 14px !important;
    color: #555 !important;
    width: 100% !important;
}
.ly_product_purchase_2 .goods_wrapper .goods_info .g_button {
    margin-top: 20px !important;
}
.ly_product_purchase_2 .goods_wrapper .goods_info .share_toolbox {
    margin-top: 15px !important;
    padding-top: 0 !important;
}

/* ===== 按钮左对齐 + 间距收紧 ===== */
.ly_product_purchase_2 .goods_wrapper .goods_info .g_button {
    display: block !important;
    text-align: left !important;
    margin-top: 5px !important;
}
.ly_product_purchase_2 .goods_wrapper .goods_info .open-popup-btn {
    margin: 0 !important;
    display: inline-block !important;
    text-align: center !important;
}
.ly_product_purchase_2 .goods_wrapper .goods_info .share_toolbox {
    margin-top: 20px !important;
}

/* ===== 缩略图列：一屏固定 5 张，5 张总高 = 主图高度，底部对齐 =====
   主题 1e767e7f…css 的断点是 1000px：
     >1000px → 左栏布局（缩略图竖列在主图左侧）
     ≤1000px → 堆叠布局（主图在上，缩略图变全宽横条 height:92px）
   所以下面这组覆盖必须限定在 >1000px，否则会把 ≤1000px 的缩略图横条压成 0。

   单张尺寸与间距由 product-thumbs.js 按主图高度反算后经 CSS 变量下发：
       size = min(89, (H - 4*4)/5)      gap = (H - 5*size)/4
   ⇒ 5*size + 4*gap === H 恒等成立，末张底边与主图底边严格重合。
   超过 5 张时由 JS 用 translateY 翻页，上/下箭头显隐也由 JS 接管
   （PhotoThumbs 插件的箭头条件是 p>6，本站 6 张时它不会显示箭头）。 */
@media (min-width: 1001px) {
    .ly_product_purchase_2 .goods_wrapper .goods_img {
        align-items: stretch !important;
        /* 按自身内容（主图）定高：否则右侧更高的产品信息栏会把整行撑高，
           缩略图列跟着变高，列底就会比主图底多出 10.7px */
        align-self: flex-start !important;
    }
    .ly_product_purchase_2 .goods_wrapper .thumb_size {
        flex: 1 !important;
    }
    /* 缩略图列高度 = 主图高度（其 ul 是 absolute，不贡献高度，所以可 stretch 到行高） */
    .ly_product_purchase_2 .goods_wrapper .thumb_small {
        min-height: 0 !important;
        height: auto !important;
        align-self: stretch !important;
        overflow: hidden !important;
        --ts-size: 89px;   /* 主题原始单张尺寸，JS 会按主图高度覆盖 */
        --ts-gap: 13px;    /* 主题原始间距，JS 会按主图高度覆盖 */
    }
    /* ul 锁死 top，使 PhotoThumbs 对 ul 的 top 动画失效，翻页统一走 translateY */
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        transition: transform .25s ease !important;
    }
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul li {
        display: block !important;
        flex: 0 0 auto !important;
        width: var(--ts-size, 89px) !important;
        height: var(--ts-size, 89px) !important;
        min-height: 0 !important;
        max-width: 100% !important;
        margin: 0 0 var(--ts-gap, 13px) 0 !important;
    }
    /* 末张不再留间距，保证 5 张正好填满列高 */
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul li:last-child {
        margin-bottom: 0 !important;
    }
    /* 缩略图填满卡片（尺寸由变量决定，可能略小于 89） */
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul li > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    /* li 里那个空 span 会撑出额外高度，隐藏掉 */
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul li > span {
        display: none !important;
    }
}
.ly_product_purchase_2 {
    padding-bottom: 20px !important;
}
.ly_product_description_1 {
    padding-top: 20px !important;
}

/* ===== 手机端适配（放最后确保优先级最高） ===== */
@media (max-width: 768px) {
    .pdetail_page { flex-direction: column !important; width: 100% !important; max-width: 100% !important; }
    .pdetail_sidebar { display: none !important; }
    .pdetail_content { width: 100% !important; flex: none !important; }
    .pdetail_content .wide { width: 100% !important; max-width: 100% !important; padding: 0 10px !important; }
    .pdetail_content .section { padding: 0 !important; }
    .ly_product_purchase_2 .goods_wrapper { flex-direction: column !important; align-items: stretch !important; }
    .ly_product_purchase_2 .goods_wrapper .goods_img { width: 100% !important; display: flex !important; flex-direction: column !important; }
    .ly_product_purchase_2 .goods_img .thumb_size { position: relative !important; }
    .ly_product_purchase_2 .goods_wrapper .goods_info { width: 100% !important; }
    /* 重置之前桌面端对thumb_small的覆盖，让原CMS手机端样式生效 */
    .ly_product_purchase_2 .goods_wrapper .thumb_small {
        height: 92px !important;
        min-height: 92px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        height: auto !important;
        width: 100% !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
    }
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul li {
        display: block !important;
        flex: 1 !important;
        width: auto !important;
        height: auto !important;
        margin: 0 3px !important;
    }
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul li:first-child { margin-left: 0 !important; }
    .ly_product_purchase_2 .goods_wrapper .thumb_small ul li:last-child { margin-right: 0 !important; }
    .ly_product_purchase_2 .goods_wrapper .thumb_small .switching_btn {
        top: 42% !important;
        margin-top: 0 !important;
    }
    .ly_product_purchase_2 .goods_wrapper .thumb_small .thumb_switching_left {
        left: 0 !important;
        right: auto !important;
        transform: translateY(-50%) rotate(90deg) !important;
    }
    .ly_product_purchase_2 .goods_wrapper .thumb_small .thumb_switching_right {
        right: 0 !important;
        left: auto !important;
        transform: translateY(-50%) rotate(-90deg) !important;
    }
    /* 小圆点（JS在手机端启用） */
    .mobile_dots { display: none; }
}
@media (max-width: 768px) {
    .mobile_dots {
        display: flex !important;
        justify-content: center;
        gap: 6px;
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        z-index: 10;
        margin: 0 !important;
    }
    .mobile_dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.6);
        cursor: pointer;
    }
    .mobile_dots span.active { background: #1c7140; }
}