/* 产品详情页样式 */
.product-detail-container {
    max-width: var(--set-width);
    margin: 20px auto;
    padding: 0 20px;
}

/* 返回按钮 */
.back-button {
    margin-bottom: 40px;
    margin-top: 40px;
}

.back-button a {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s;
}

.back-button a:hover {
    color: #1890ff;
}

.back-icon {
    width: 40px;
    height: 40px;
    margin-right: 5px;
}

/* 产品内容区域 */
.product-content {
    display: flex;
    margin-bottom: 40px;
    gap: 40px;
}

/* 产品图片轮播 */
.product-gallery {
    width: 50%;
}

.product-swiper {
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.product-swiper .swiper-slide {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.product-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-thumbs {
    width: 100%;
}

.product-thumbs .swiper-slide {
    height: 80px;
    opacity: 0.6;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #1890ff;
}

.product-thumbs .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 产品信息 */
.product-info {
    width: 50%;
}

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

.product-category {
    color: #666;
    margin-bottom: 20px;
}

.product-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 产品详情部分 */
.product-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 20px;
    background-color: #1890ff;
    border-radius: 2px;
}

.section-content {
    color: #333;
    line-height: 1.6;
    display: flex;
}

/* 规格表图片 */
.specs-image {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #eee;
}

.product-content-text {
    flex: 1;
}

.product-content-image {
    max-width: 30%;
    height: auto;
    margin-left: 20px;
}

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

    .product-gallery,
    .product-info {
        width: 100%;
    }

    .product-swiper .swiper-slide {
        height: 300px;
    }

    .product-thumbs .swiper-slide {
        height: 60px;
    }

    /* 详情 */
    .product-detail-container {
        margin-top: 80px;
    }
    .section-content {
        display: block;
    }
    .product-content-image {
        max-width: 100%;
        height: auto;
        margin: 20px auto 0 ;
    }
}

@media (max-width: 1280px) {
    .product-detail-container {
        margin-top: 80px;
    }
}

/* 对比表格样式 */
.comparison-table-container {
    margin: 30px 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
    line-height: 1.6;
}

.comparison-table th {
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid #333;
}

.comparison-table th:first-child {
    width: 15%;
    min-width: 100px;
}

.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
    width: 42.5%;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #333;
    vertical-align: top;
    text-align: left;
}

.comparison-table td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    text-align: left;
    color: #333;
    border-right: 1px solid #333;
}

.comparison-table tbody tr:hover {
    background: #f5f7fa;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* 检查和叉号样式 */
.check {
    color: #52c41a;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.cross {
    color: #ff4d4f;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.warning {
    color: #faad14;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }
    
    .comparison-table th {
        font-size: 14px;
    }
    
    .comparison-table th:first-child {
        width: 20%;
        min-width: 80px;
    }
    
    .comparison-table th:nth-child(2),
    .comparison-table th:nth-child(3) {
        width: 40%;
    }
}
