body{
    background-color: #f5f5f5;
}
.main-content{
    margin-top: 80px;
}
.breadcrumb-section{
    padding: 20px 0;
}
.breadcrumb-container{
    max-width: 1226px;
    margin: 0 auto;
}
.breadcrumb-container a{
    color: #333;
}
.breadcrumb-container a:hover{
    color: #000;
}
.breadcrumb-container span{
    color: #999;
}

/* 案例详情区域 */
.case-detail-section {
    padding: 10px 0 30px;
}

.case-detail-container {
    max-width: 1226px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.case-detail-top {
    display: flex;
    gap: 40px;
}

/* 产品图库 */
.product-gallery {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.product-main-image {
    position: relative;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img,
.product-main-image video {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.video-overlay .fa-play-circle {
    font-size: 60px;
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s;
}

.video-overlay:hover .fa-play-circle {
    opacity: 1;
    transform: scale(1.1);
}

.product-thumbnails {
    position: relative;
    overflow: hidden;
}

.thumbnails-slider {
    width: 98%;
    margin: 0 auto;
}

.swiper-slide {
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}

.swiper-slide.active {
    opacity: 1;
    border: 2px solid #00a0e9;
}

.thumbnail-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.thumbnail-inner img {
    max-width: 100%;
    /*max-height: 100%;*/
    height: 80px;
    object-fit: cover;
}

.video-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.video-icon .fa-play-circle {
    font-size: 24px;
    color: #fff;
}

/*.swiper-button-prev,*/
/*.swiper-button-next {*/
/*    width: 30px;*/
/*    height: 30px;*/
/*    background-color: #fff;*/
/*    border-radius: 50%;*/
/*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
/*    color: #333;*/
/*}*/

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 14px !important;
}

/* 产品信息 */
.product-info {
    flex: 1;
    position: relative;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 20px;
    color: #333;
}

.product-categories {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.category-label {
    color: #666;
    margin-right: 10px;
}

.category-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    margin: 5px;
    text-decoration: none;
    transition: all 0.3s;
    line-height: 1.4;
    border-radius: 4px;
}

.category-tag:hover {
    background-color: #E10000;
    border-color: #E10000;
    color: #fff;
}

.product-description {
    margin-bottom: 30px;
}

.description-label {
    color: #666;
    margin-right: 10px;
}

.description-text {
    color: #333;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /*position: absolute;*/
    /*bottom: 10px;*/
}

.product-actions a:hover{
    color: #FFF !important;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background-color: #00a0e9;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.action-button:hover {
    background-color: #0088cc;
}

.action-button i {
    margin-right: 8px;
}

.tech-consult {
    background-color: #00a0e9;
}

.download-3d {
    background-color: #4CAF50;
}

.download-bom {
    background-color: #FF9800;
}

.download-tech {
    background-color: #9C27B0;
}

/* 案例详情内容区域 */
.case-detail-content {
    padding-top: 30px;
}

/* 选项卡样式 */
.detail-tabs {
    width: 100%;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    /*margin-bottom: 20px;*/
}

.tab-item {
    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;
}

.tab-item.active {
    color: #E10000;
    border-top: 6px solid #E10000;
    background: #fff;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    max-height: 620px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aaa #f5f5f5;
}

/* 自定义滚动条样式 */
.tab-pane::-webkit-scrollbar {
    width: 4px;
}

.tab-pane::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.tab-pane::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 2px;
}

.tab-pane.active {
    display: block;
}

/* 案例介绍内容样式 */
.case-intro-content {
    padding: 20px 10px;
}

/* 3D预览内容样式 */
.preview-3d-content {
    /*padding: 0 10px;*/
}

/* 产品部件选型参考样式 */
.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: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parts-seq {
    width: 15%;
    justify-content: center;
    border-right: 1px solid #e5e5e5;
}

.parts-img {
    width: 15%;
    justify-content: center;
    border-right: 1px solid #e5e5e5;
}

.parts-img img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.parts-name {
    width: 40%;
    justify-content: flex-start;
    padding-left: 15px;
    border-right: 1px solid #e5e5e5;
}

.parts-model {
    width: 30%;
    justify-content: flex-start;
    padding-left: 15px;
    /*border-right: 1px solid #e5e5e5;*/
}

.parts-qty {
    width: 15%;
    justify-content: center;
}

/* 评论区样式 */
.case-detail-comment {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comment-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.like-btn, .collect-btn {
    padding: 6px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.like-btn:hover, .collect-btn:hover {
    background-color: #e5e5e5;
}

.like-btn i, .collect-btn i {
    margin-right: 5px;
    font-size: 16px;
}

.like-btn span, .collect-btn span {
    margin-left: 3px;
    color: #666;
}

.comment-form {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
}

.form-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.form-content {
    position: relative;
    margin-bottom: 10px;
}

.form-content textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px;
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.form-content textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.text-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #999;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.login-btn, .submit-btn {
    padding: 8px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.login-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.login-btn:hover {
    background-color: #f5f5f5;
}

.submit-btn {
    background-color: #00a0e9;
    border: 1px solid #00a0e9;
    color: #fff;
}

.submit-btn:hover {
    background-color: #0088cc;
}

.submit-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* 类似案例推荐样式 */
.case-recommend {
    margin-top: 40px;
}

.recommend-header h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px;
    color: #333;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.recommend-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    background-color: #fff;
}

.recommend-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.case-tag {
    margin-right: 5px;
    padding: 2px 8px;
    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;
}

.item-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.item-image img {
    padding: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.recommend-item:hover .item-image img {
    transform: scale(1.05);
}

.item-info {
    padding: 15px;
}

.item-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.item-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.item-tags a {
    font-size: 14px;
    color: #666;
    /*background-color: #f5f5f5;*/
    padding: 4px 6px;
    border-radius: 2px;
    border: 1px solid #D0D0D0;
}

.item-tags a:hover{
    background-color: #D0D0D0;
}

.item-views {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
}

.item-views i {
    margin-right: 5px;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .breadcrumb-container,
    .case-detail-container {
        padding: 20px;
    }
    
    .case-detail-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-gallery {
        flex: 0 0 100%;
    }
    
    .product-main-image {
        height: 350px;
    }
    
    .tab-pane {
        /*height: 450px;*/
    }
    
    .case-image {
        flex: 0 0 100%;
    }
    
    .parts-img {
        width: 20%;
    }
    
    .parts-name {
        width: 25%;
    }
    
    .parts-model {
        width: 32%;
    }
    
    .parts-col {
        padding: 10px 5px;
        font-size: 14px;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .like-btn, .collect-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .comment-form {
        padding: 12px;
    }
    
    .recommend-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .item-image {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .main-content{
        margin-top: 60px;
    }

    .breadcrumb-section{
        padding: 0;
    } 

    .breadcrumb-container,
    .case-detail-container {
        padding: 10px;
    }
    
    .product-main-image {
        height: 300px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-actions {
        flex-direction: row;
    }
    
    .action-button {
        width: 30%;
        font-size: 14px;
    }
    
    .tab-item {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .tab-pane {
        /*height: 500px;*/
    }
    
    .parts-header {
        font-size: 13px;
    }
    
    .parts-col {
        padding: 8px 3px;
        font-size: 12px;
    }
    
    .parts-img img {
        max-height: 50px;
    }
    
    .parts-name, .parts-model {
        padding-left: 5px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .like-btn, .collect-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .like-btn i, .collect-btn i {
        font-size: 14px;
    }
    
    .comment-form {
        padding: 10px;
    }
    
    .form-title {
        font-size: 14px;
    }
    
    .form-content textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    .login-btn, .submit-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .recommend-header h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .recommend-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-image {
        height: 120px;
    }
    
    .item-info {
        padding: 10px;
    }
}