/*===== 公共基础：产品/新闻/案例详情统一 =====*/
.main-content {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
    box-sizing: border-box;
}
/*----------产品详情布局----------*/
.product-top-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items:flex-start !important;
}
.product-img-box {
    flex: 0 0 60%;
    display: flex;
    gap: 20px;
}
.slide-box {
    flex: 1;
    position: relative;
    aspect-ratio: 1 / 1;
    background:#eee;
    overflow:hidden;
}
.slide-img {
    width:100%;
    height:100%;
    object-fit:contain;
}
.slide-btn {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:40px;
    height:40px;
    border:none;
    background:transparent;
    font-size:30px;
    color:#333;
    cursor:pointer;
    z-index:2;
}
.btn-prev { left:10px; }
.btn-next { right:10px; }
.slide-count {
    position:absolute;
    bottom:10px;
    right:10px;
    background:rgba(0,0,0,0.5);
    color:#fff;
    padding:2px 8px;
    font-size:14px;
}
/* PC竖向缩略图：最多显示6张 90*6 + 10*5 =590 */
.thumb-wrap {
    display:flex;
    flex-direction:column;
    gap:10px;
    flex-shrink:0;
    max-height: 590px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top:10px;
}
.thumb-item {
    width:90px;
    height:90px;
    border:2px solid transparent;
    cursor:pointer;
    overflow:hidden;
    flex-shrink:0;
    box-sizing:border-box;
}
.thumb-item.active {
    border-color:#e53935;
}
.thumb-item img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
/* PC端单独控制顺序，缩略图在左侧 */
.product-img-box .thumb-wrap{
    order:1;
}
.product-img-box .slide-box{
    order:2;
}
.product-info-box {
    flex:1;
    flex-basis:40%;
}
.product-btn-group {
    text-align:center;
    margin:15px 0;
    position:relative;
    margin-top:24px;
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    justify-content: center;
}
.btn-buy, .btn-consult {
    padding:12px 32px;
    border:none;
    font-size:16px;
    border-radius:4px;
    cursor:pointer;
}
.btn-buy {
    background:#f44336;
    color:#fff;
}
.btn-consult {
    background:#ff9800;
    color:#fff;
}
.btn-buy:hover {
    background:#d32f2f;
}
.btn-consult:hover {
    background:#f57c00;
}
/*----------咨询弹窗表单========== */
.consult-form-wrap{
    position:absolute;
    z-index:99;
    top:100%;
    left:50%;
    transform: translateX(-50%);
    width:100%;
    margin-top:10px;
    padding:2px;
    background:#ffffff;
    border:1px solid #eee;
    border-radius:8px;
    box-shadow:0 2px 12px rgba(0,0,0,0.12);
    box-sizing:border-box;
}
.consult-form-wrap.hidden{
    display:none;
}
.form-row{
    margin-bottom:14px;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:10px !important;
}
.form-row label{
    width:85px !important;
    flex-shrink:0 !important;
    margin:0 !important;
    font-size:15px;
}
.field-wrap{
    flex:1 !important;
    min-width:0 !important;
}
.cus-contact-input{
    width:100%;
    box-sizing:border-box;
    padding:9px 12px;
    border:1px solid #ccc;
    border-radius:4px;
    min-height:46px;
    font-size:15px;
}
textarea.cus-contact-input{
    min-height:100px;
    resize:none;
}
.code-input-wrap{
    display:flex;
    gap:10px;
}
.code-input-wrap input{
    flex:1;
    min-height:46px;
    font-size:15px;
    min-width:0;
}
.cus-vcode-img{
    height:46px;
    cursor:pointer;
    flex-shrink:0;
    max-width:110px;
}
.more-btn{
    padding:10px 30px;
    background:#e53935;
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
    font-size:16px;
}
/*----------新闻详情----------*/
.article-h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #222;
    text-align: center;
}
.article-body {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
    word-break: break-all;
    margin-bottom: 20px;
}
.article-body img {
    max-width: 100%;
    height: auto;
}
.time-bottom {
    font-size: 14px;
    color: #666;
    padding-top:10px;
    border-top:1px solid #eee;
    text-align: right;
}
/*----------案例详情----------*/
.case-top-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}
.case-img-box {
    flex: 0 0 60%;
}
.case-big-pic {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #eee;
    overflow: hidden;
}
.case-big-pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.case-thumb {
    display: flex;
    gap: 10px;
    margin-top:12px;
    padding:0;
    list-style:none;
}
.case-thumb li {
    width:90px;
    height:90px;
    border:2px solid transparent;
    overflow:hidden;
    cursor:pointer;
}
.case-thumb li.active {
    border-color:#f44336;
}
.case-thumb img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.case-top-text {
    flex:1;
    flex-basis:40%;
}
.case-h1 {
    font-size:24px;
    font-weight:bold;
    margin:0 0 20px 0;
    color:#222;
}
.detail-content {
    line-height:1.8;
    font-size:16px;
    color:#333;
    word-wrap:break-word;
    word-break:break-all;
}
.detail-content img {
    max-width:100%;
    height:auto;
}
/*----------手机适配 <=768px----------*/
@media (max-width:768px){
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    /*产品*/
    .product-top-row {
        flex-direction:column;
        gap:20px;
    }
    .product-img-box {
        flex-basis:auto;
        flex:0 0 100%;
        flex-direction:column !important;
        gap:12px;
    }
    /*手机端取消order干涉，缩略图横向一行3张*/
    .product-img-box .thumb-wrap{
        order:initial !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        margin-top:8px !important;
        max-height:none !important;
    }
    .product-img-box .slide-box{
        order:initial !important;
    }
    .thumb-item {
        flex:0 0 calc((100% - 2 * 10px)/3);
        width:auto;
        height:70px;
    }
    .product-btn-group{
        justify-content: center;
    }
    .btn-buy,.btn-consult{
        flex:1;
    }
    /*咨询表单移动端*/
    .product-btn-group{
        position: static !important;
    }
    .consult-form-wrap{
        position: static !important;
        z-index:auto !important;
        top:auto !important;
        left:auto !important;
        transform:none !important;
        margin-top:12px !important;
        width:100% !important;
        padding:14px !important;
    }
    .form-row label{
        width:75px !important;
        font-size:14px;
    }
    .cus-contact-input{
        font-size:14px;
        min-height:44px;
    }
    .code-input-wrap{
        gap:6px !important;
    }
    .cus-vcode-img{
        max-width:100px !important;
    }
    /*新闻*/
    .article-h1 {
        font-size: 20px;
    }
    .article-body {
        font-size:15px;
    }
    /*案例*/
    .case-top-row {
        flex-direction:column;
        gap:20px;
    }
    .case-img-box {
        flex-basis:auto;
        flex:0 0 100%;
    }
    .case-h1 {
        font-size:20px;
    }
    .detail-content {
        font-size:15px;
    }
    .case-thumb li {
        flex:0 0 70px;
        width:70px;
        height:70px;
    }
}
