/* ===================================
   产品详情页样式
   =================================== */

.product-detail-container {
    background: #fff;
}

/* Banner区域 */
.product-detail-banner {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0; /* 与导航栏融合 */
}

.product-detail-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0.3;
}

.product-detail-banner .banner-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.product-detail-banner .banner-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 80px; /* 为导航栏留出空间 */
}

.product-detail-banner .banner-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.product-detail-banner .banner-breadcrumb {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.product-detail-banner .banner-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.product-detail-banner .banner-breadcrumb a:hover {
    color: #ffd700;
    transform: translateY(-1px);
}

.product-detail-banner .banner-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 5px;
}

.product-detail-banner .banner-breadcrumb span:last-child {
    color: #ffd700;
    font-weight: 600;
}

/* 产品信息区域 */
.product-info-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 产品图片画廊 */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    width: 100%;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    position: relative;
}

.thumbnail-item {
    display: block;
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #333;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 产品详细信息 */
.product-details {
    padding: 20px 0;
}

.product-name {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-label {
    font-size: 16px;
    color: #666;
    min-width: 120px;
}

.meta-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.meta-value.price {
    font-size: 28px;
    color: #e74c3c;
    font-weight: 700;
}

.product-short-desc {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-short-desc p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.product-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-inquiry,
.btn-contact {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-inquiry {
    background: #333;
    color: #fff;
    border: 2px solid #333;
}

.btn-inquiry:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-contact {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-contact:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* 产品描述区域 */
.product-description-section {
    padding: 60px 0;
}

.section-tabs {
    background: #fff;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #333;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.product-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.specifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.spec-item {
    display: flex;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.spec-value {
    color: #666;
}

/* 产品导航 */
.product-navigation {
    padding: 40px 0;
    background: #f8f9fa;
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
}

.nav-link:hover:not(.disabled) {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-link.prev {
    align-items: flex-start;
}

.nav-link.next {
    align-items: flex-end;
}

.nav-link.back {
    align-items: center;
    justify-content: center;
}

.nav-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail-banner {
        height: 250px;
    }
    
    .product-detail-banner .banner-title {
        font-size: 32px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .specifications-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-link.prev,
    .nav-link.next,
    .nav-link.back {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-detail-banner {
        height: 220px;
        margin-top: 60px; /* 移动端导航栏较小 */
    }
    
    .product-detail-banner .banner-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .product-detail-banner .banner-breadcrumb {
        font-size: 14px;
    }
    
    .product-name {
        font-size: 28px;
    }
    
    .main-image-wrapper {
        height: 350px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-inquiry,
    .btn-contact {
        width: 100%;
    }
    
    .tab-header {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .product-detail-banner {
        height: 180px;
    }
    
    .product-detail-banner .banner-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .product-detail-banner .banner-breadcrumb {
        font-size: 12px;
        flex-direction: column;
        gap: 5px;
    }
    
    .product-detail-banner .banner-breadcrumb .separator {
        display: none;
    }
    
    .product-info-section,
    .product-description-section,
    .product-navigation {
        padding: 40px 0;
    }
    
    .product-name {
        font-size: 24px;
    }
    
    .main-image-wrapper {
        height: 300px;
    }
    
    .thumbnail-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .thumbnail-item {
        height: 80px;
    }
}

