/* 产品详情页样式 */

.section-product-detail {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff5f5 100%);
}

/* 面包屑导航 */
.product-breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
    color: #0d6efd;
}

.product-breadcrumb span {
    margin: 0 0.75rem;
    color: #cbd5e1;
}

.product-breadcrumb .current {
    color: #0d6efd;
    font-weight: 600;
}

/* 产品详情内容 */
.product-detail-wrapper {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* 产品图片画廊 */
.product-gallery {
    margin-bottom: 2rem;
}

.gallery-main {
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4ff 0%, #dbeafe 100%);
}

.gallery-main .img-placeholder {
    height: 350px;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
}

.thumb-item {
    flex: 1;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #0d6efd;
}

.thumb-item .img-placeholder {
    height: 80px;
}

/* 产品详情信息 */
.product-info-detail {
    padding: 1rem 0;
}

.product-info-detail .product-badge {
    margin-bottom: 1rem;
}

.product-info-detail h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* 产品规格 */
.product-specs {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(220, 53, 69, 0.05));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #475569;
}

.spec-value {
    color: #0d6efd;
    font-weight: 600;
}

/* 产品特点 */
.product-features {
    margin-bottom: 2rem;
}

.product-features h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #475569;
}

.product-features li i {
    color: #0d6efd;
    font-size: 1.1rem;
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.btn-outline {
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.btn-outline:hover {
    background: #0d6efd;
    color: #fff;
}

/* 标签页 */
.product-detail-tabs {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.tabs-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #dc3545);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: #0d6efd;
}

.tab-btn.active {
    color: #0d6efd;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 详情部分 */
.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1rem;
}

.detail-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, #0d6efd, #dc3545);
    border-radius: 2px;
}

.detail-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 优势网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.advantage-item {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(220, 53, 69, 0.08));
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.15);
}

.advantage-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.advantage-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* 规格表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 1rem 0;
}

.spec-key {
    font-weight: 600;
    color: #475569;
    width: 40%;
}

.spec-val {
    color: #0d6efd;
    font-weight: 600;
}

/* 行业标签 */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.industry-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(220, 53, 69, 0.1));
    border-radius: 50px;
    color: #0d6efd;
    font-weight: 600;
    transition: all 0.3s ease;
}

.industry-tag:hover {
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    color: #fff;
}

.industry-tag i {
    font-size: 1rem;
}

/* 相关产品 */
.related-products {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.related-products h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item .img-placeholder {
    margin-bottom: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f4ff 0%, #dbeafe 100%);
}

.related-item span {
    color: #475569;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-item:hover span {
    color: #0d6efd;
}

/* 响应式 */
@media (max-width: 992px) {
    .section-product-detail {
        padding: 3rem 0;
    }

    .product-detail-wrapper {
        padding: 1.5rem;
    }

    .gallery-main .img-placeholder {
        height: 280px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-info-detail h2 {
        font-size: 1.5rem;
    }

    .tabs-header {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}