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

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
}

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

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

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* 产品主区域 */
.product-detail-section {
    padding: 40px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.gallery-main {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    cursor: zoom-in;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-main:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumb-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: #007bff;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品信息区 */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-new { background: #28a745; color: white; }
.badge-hot { background: #dc3545; color: white; }
.badge-ai { background: #6f42c1; color: white; }

.product-meta {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* 价格区 */
.price-section {
    background: #fff5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.price-label {
    font-size: 14px;
    color: #666;
}

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

.price-value small {
    font-size: 20px;
}

.moq-tag {
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.price-retail {
    font-size: 14px;
    color: #999;
}

.price-retail .value {
    text-decoration: line-through;
}

/* 关键规格 */
.key-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-icon {
    font-size: 24px;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 12px;
    color: #666;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 颜色选择 */
.color-selection {
    margin-bottom: 25px;
}

.color-selection label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-tag {
    padding: 6px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
}

/* 操作按钮 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn {
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
}

.btn-outline {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* 信任标识 */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.badge-item {
    font-size: 14px;
    color: #666;
}

/* 标签页 */
.product-tabs-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.tabs-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.tabs-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 规格表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    width: 200px;
    background: #f8f9fa;
    font-weight: 500;
    color: #666;
}

/* 灯箱 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.lightbox img {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: relative;
    }
    
    .gallery-main img {
        height: 350px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .key-specs {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 50%;
        padding: 15px;
        font-size: 14px;
    }
}

