.main-content{
    background-image: url(../images/bg-detail.jpg);
    background-repeat: repeat-y;
    background-size: cover;
    background-position: center;
    width: 100%;
}

/* 内容容器 */
.content-container {
    max-width: 1226px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    color: #666;
    display: block;
    margin-bottom: 0;
}

/* 产品展示区域 */
.product-container {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    /* background: #fff; */
}

/* 左侧推荐产品 */
.recommended-products {
    width: 200px;
    flex-shrink: 0;
}

.recommended-products h2 {
    font-size: 18px;
    padding: 10px;
    /*border-bottom: 2px solid #007bff;*/
    text-align: center;
    background-color: #0e0e0e;
    color: #FFF;
    margin-bottom: 0;
}

.product-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s;
    padding: 15px;
    text-align: center;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    margin-top: 30px;
}

.product-info h3 {
    color: #ff4d4f;
    font-size: 16px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.product-price {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: bold;
}

/* 右侧产品列表 */
.product-list {
    flex: 1;
}

.list-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sort-options {
    display: flex;
    gap: 20px;
}

.sort-options a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.sort-options a:hover,
.sort-options a.active {
    color: #007bff;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #007bff;
}

/* 虚线边框样式 */
.dashed-border {
    border: 2px dashed #ff0000;
}

/* 抖动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* 应用抖动动画 */
.shake {
    animation: shake 1s ease-in-out; /* 0.8秒完成一次抖动 */
}

/* 消失效果 */
.fade-out {
    border-color: transparent;
}

.disabled-style{
    opacity: 0.7;
}

/* 左侧产品展示区域 */
.product-top {
    flex: 1;
    display: flex;
    gap: 30px;
}

/* 左侧产品展示区域 */
.detail-left {
    width: 450px;
    flex-shrink: 0;
}

.product-swiper {
    width: 100%;
    height: 450px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    border-radius: 4px;
}

.product-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /*object-fit: cover;*/
}

.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    color: #ddd;
}

.product-swiper .swiper-pagination-bullet-active {
    background: #ff0000;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.btn-download {
    flex: 1;
    padding: 5px 10px;
    text-align: center;
    border: 1px solid #E10101;
    background-color: #E10101;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 8px;
}

.btn-download:hover {
    opacity: 0.7;
}

.btn-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 右侧产品信息区域 */
.detail-right {
    flex: 1;
}

.product-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.spec-selection {
    margin-bottom: 15px;
}

.spec-header {
    display: flex;
    margin-bottom: 3px;
    width: 50%;
}

.btn-spec {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #eee;
    background: #EEFBFF;
    /* color: #ff0000; */
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 6px !important;
    border-top: 6px solid #EEFBFF;
}

.btn-spec:disabled{
    cursor: not-allowed;
}

.btn-spec:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-right: none;
}

.btn-spec:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.btn-spec.active {
    background: #fff;
    color: #E10000;
    border-top: 6px solid #E10000; /* 顶部粗红线 */
}

.spec-content {
    padding: 0;
    border: none;
    border-radius: 4px;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    background: #F6F9FC;
}

.spec-item:nth-child(odd) {
    background: #F6F9FC;
}

.spec-item:nth-child(even) {
    /* background: #fff; */
}

.spec-item label {
    width: 120px;
    color: #333;
    padding: 8px 15px;
    /* background: #F6F9FC; */
    background: #D3DCE6;
    margin: 0;
    font-size: 14px;
}

.spec-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 5px 15px;
    background: #F6F9FC;
    width: 100%;
}

.spec-value select {
    width: 280px;
    padding: 6px 25px 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23666" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 8px center;
    font-size: 14px;
    color: #333;
}

.spec-value .unit {
    color: #666;
    font-size: 14px;
}

/* 主体型号样式特殊处理 */
.spec-item:first-child .spec-value {
    font-size: 14px;
    color: #333;
    justify-content: space-between;
    height: 46px;
}

.tag {
    padding: 2px 8px;
    border: 1px solid #0066ff;
    border-radius: 2px;
    font-size: 12px;
    /*cursor: pointer;*/
    color: #0066ff;
    margin-left: 5px;
}

.btn-clipboard:disabled{
    color: #999;
    border-color: #999;
    cursor: not-allowed;
}

/*.tag.blue {*/
/*    color: #0066ff;*/
/*    border-color: #0066ff;*/
/*}*/

.action-buttons {
    text-align: right;
    /*display: flex;*/
    /*gap: 15px;*/
}

.btn-action {
    /*flex: 1;*/
    padding: 6px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-action.inquiry {
    background: #fff;
    border: 1px solid #ff0000;
    color: #ff0000;
}

.btn-action.cart {
    background: #ff9900;
    color: #fff;
}

.btn-action.buy {
    background: #ff0000;
    color: #fff;
}

.btn-action:hover {
    opacity: 0.7;
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 报价交期样式 */
.spec-price-content {
    background: #F6F9FC;
    padding: 20px;
    border-radius: 4px;
}

.product-model {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-box {
    border: 1px dashed #ccc;
    border-radius: 4px;
    padding: 15px;
    background: #fff;
}

.price-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.price-item:last-child {
    margin-bottom: 0;
}

.price-label {
    color: #333;
    min-width: 150px;
}

.price-value {
    color: #E10000;
    font-weight: 500;
}

.delivery-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.delivery-input input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.btn-minus,
.btn-plus {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.btn-minus:hover,
.btn-plus:hover {
    background: #f5f5f5;
}

.quantity-control .unit {
    margin-left: 5px;
    color: #666;
}

.detail-tabs {
    display: flex;
    /* gap: 10px; */
    border-bottom: 1px solid #eee;
}

.btn-tab {
    padding: 8px 20px;
    border: 1px solid #eee;
    background: #EEFBFF;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    /* border-radius: 4px; */
    margin-bottom: -1px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-right: none;
    border-top: 6px solid #EEFBFF;
}

.btn-tab:disabled{
    cursor: not-allowed;
}

.btn-tab:last-child {
    border-right: 1px solid #eee;
}

.btn-tab.active {
    color: #E10000;
    border-top: 6px solid #E10000;
    background: #fff;
    /* border-bottom: 1px solid #fff; */
}

.detail-content{
    padding: 10px;
    background: #fff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    min-height: 500px;
}

.model-content{
    /*margin: -10px;*/
    font-size: 14px;
}

.detail-content > div {
    display: none;
}

.detail-content > div.active {
    display: block;
}

.no-content{
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-top: 120px;
    color: #999;
    font-size: 18px;
    font-weight: 600;
}
.no-content .fa{
    margin-right: 10px;
    color: #f58323;
}

/* 产品型号区域样式 */
.parts-reference {
    width: 100%;
    /*border: 1px solid #e5e5e5;*/
    border-top-width: 0;
    border-radius: 2px;
    overflow: hidden;
}

.parts-header {
    display: flex;
    background-color: #f5f5f5;
    font-weight: bold;
    border-bottom: 1px solid #e5e5e5;
}

.parts-body {
    max-height: 550px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aaa #f5f5f5;
}

.parts-body::-webkit-scrollbar {
    width: 4px;
}

.parts-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.parts-body::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 2px;
}

.parts-row {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}

.parts-row:last-child {
    /*border-bottom: none;*/
}

.parts-row:hover {
    background-color: #f9f9f9;
}

.parts-col {
    padding: 8px 4px;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    text-align: center;
    overflow: hidden;
}

.parts-seq {
    width: 10%;
    justify-content: center;
}

.parts-model {
    width: 75%;
    justify-content: flex-start;
    /*border-right: 1px solid #e5e5e5;*/
}

.parts-operate {
    width: 25%;
    /*justify-content: center;*/
}

.parts-qty {
    width: 15%;
    justify-content: center;
}

.btn-mini{
    margin-right: 8px;
    padding: 3px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
    background: #ff9900;
    color: #fff;
}

.btn-mini.btn-download-model{
    background-color: #E10101;
}

/* 推荐案例库产品样式 */
.recommended-cases {
    margin-top: 30px;
    /* background: #fff; */
    border-radius: 4px;
    padding: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.view-more {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-more:hover {
    color: #E10000;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.case-card:hover {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    padding: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.case-image:hover img {
    transform: scale(1.05);
}

.case-tag {
    margin-right: 5px;
    padding: 4px 6px;
    font-size: 14px;
    color: #fff;
    border-radius: 2px;
}

.case-tag.hot {
    background-color: #f39c12;
}
.case-tag.new {
    background-color: #1688f1;
}
.case-tag.recommend {
    background-color: #f75444;
}
.case-tag.top {
    background-color: #18bc9c;
}
.case-tag.focus {
    background-color: #f39c12;
}

.case-info {
    padding: 15px;
}

.case-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.case-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.case-tags .tag {
    font-size: 14px;
    color: #666;
    padding: 4px 6px;
    border-radius: 2px;
    border: 1px solid #D0D0D0;
}

.case-tags a:hover {
    background-color: #D0D0D0;
}

.case-views {
    color: #999;
    font-size: 12px;
}

.case-views i {
    margin-right: 5px;
}

.selectize-control {
    width: 280px;
}

/* 问答手风琴 */
.qa-accordion {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-item {
    background: #FAFAFA; /* 浅白背景 */
    border-radius: 8px;
    padding: 12px 20px;
    position: relative;
}

.qa-header {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.qa-index {
    font-weight: 600;
    color: #333;
}

.qa-question {
    flex: 1;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.qa-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E10000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 0.5;
}

.qa-item.active .qa-icon { background: #FF6B6B; }

.qa-body {
    padding: 6px 0 14px 0;
    color: #878787;
    line-height: 1.8;
    font-size: 14px;
    display: none;
}

/* hover 效果 */
.qa-item:hover { box-shadow: 0 8px 18px rgba(64,41,173,0.08); }

/* 响应式布局 */


/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .product-container {
        flex-direction: column;
    }

    .recommended-products {
        width: 100%;
    }

    .product-item {
        min-width: 200px;
    }

    .product-top {
        flex-direction: column;
    }

    .detail-left {
        width: 100%;
    }
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .product-container{
        flex-direction: column-reverse;
    }

    .recommended-products {
        width: 100%;
    }

    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        /* gap: 10px; */
    }

    .spec-item label {
        width: 100%;
    }

    .spec-value select {
        width: 100%;
    }

    .btn-tab {
        padding: 4px;
    }

    .action-buttons {
        display: flex;
        /*flex-direction: column;*/
    }

    .btn-action{
        margin: 0 5px;
        font-size: 14px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .detail-content{
        min-height: auto;
    }

    .no-content{
        margin-top: 0;
        padding: 100px 0;
        font-size: 16px;
    }

    .parts-seq{
        display: none;
    }

}


