/* 面包屑导航 */
.breadcrumb {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    font-size: 14px;
    color: var(--light-text);
}

.breadcrumb li:after {
    content: '/';
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb li:last-child:after {
    display: none;
}

.breadcrumb a {
    color: var(--light-text);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* 商品概览区域 */
.product-detail {
    padding: 40px 0;
    background-color: var(--light-bg);
}

.product-overview {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.product-gallery {
    flex: 1;
    max-width: 500px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.thumbnail.active {
    border-color: var(--primary-color);
}

.product-info {
    flex: 1.5;
}

.product-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rating {
    display: flex;
    align-items: center;
}

.rating i {
    color: #ffb400;
    font-size: 14px;
    margin-right: 2px;
}

.rating span {
    margin-left: 5px;
    color: var(--light-text);
}

.product-id {
    font-size: 14px;
    color: var(--light-text);
}

.product-price {
    margin-bottom: 30px;
}

.current-price {
    font-size: 32px;
    font-weight: 600;
    color: #ff5252;
    margin-bottom: 5px;
}

.price-note {
    font-size: 14px;
    color: var(--light-text);
}

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.option-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option i {
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.color-option.active {
    border-color: var(--primary-color);
}

.color-option.active i {
    opacity: 1;
}

.color-option[data-color="white"] i {
    color: #333;
}

.spec-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.spec-option.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background-color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: #f5f5f5;
}

.quantity-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.stock-info {
    font-size: 14px;
    color: var(--light-text);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.buy-now {
    padding: 12px 30px;
    font-size: 16px;
}

.add-to-cart {
    padding: 12px 20px;
    font-size: 16px;
}

.wishlist-btn {
    width: 46px;
    height: 46px;
    border: 1px solid #ddd;
    background-color: var(--white);
    color: var(--light-text);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.wishlist-btn:hover {
    color: #ff5252;
}

.seller-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
}

.seller-logo {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}

.seller-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.seller-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating-score {
    font-size: 18px;
    font-weight: 600;
    color: #ff5252;
}

.rating-stars i {
    color: #ffb400;
    font-size: 14px;
}

.visit-store {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f5f5f5;
    color: var(--text-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.visit-store:hover {
    background-color: #eee;
}

/* 详情选项卡 */
.product-details-tabs {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background-color: #f5f5f5;
}

.tabs-nav li {
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tabs-nav li:hover {
    background-color: #eee;
}

.tabs-nav li.active {
    background-color: var(--white);
    font-weight: 500;
}

.tabs-nav li.active:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

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

/* 商品详情标签页 */
.product-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.product-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 30px;
}

.feature-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    margin-bottom: 0;
}

.product-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 规格参数标签页 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table th, .specs-table td {
    padding: 15px;
    text-align: left;
}

.specs-table th {
    width: 180px;
    font-weight: 500;
    color: var(--text-color);
}

.specs-table td {
    color: var(--light-text);
}

/* 用户评价标签页 */
.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overall-rating .rating-score {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.overall-rating .rating-stars {
    margin-bottom: 10px;
}

.overall-rating .rating-stars i {
    font-size: 18px;
}

.overall-rating .total-reviews {
    font-size: 14px;
    color: var(--light-text);
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.star-level {
    width: 40px;
    font-size: 14px;
    color: var(--light-text);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
}

.percentage {
    width: 40px;
    font-size: 14px;
    color: var(--light-text);
    text-align: right;
}

.review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    margin-right: auto;
}

.reviewer-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.review-date {
    font-size: 14px;
    color: var(--light-text);
}

.review-rating i {
    color: #ffb400;
}

.review-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.review-images img:hover {
    transform: scale(1.05);
}

/* 相关产品 */
.related-products {
    padding: 60px 0;
    background-color: var(--white);
}

/* 响应式布局 */
@media (max-width: 992px) {
    .product-overview {
        flex-direction: column;
    }
    
    .product-gallery {
        max-width: 100%;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tabs-nav li {
        flex: 1;
        text-align: center;
        padding: 15px;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .feature-highlight {
        flex-direction: column;
        gap: 20px;
    }
    
    .specs-table th {
        width: 120px;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .buy-now, .add-to-cart {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .product-name {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .tabs-nav li {
        font-size: 14px;
        padding: 10px;
    }
    
    .tabs-content {
        padding: 20px;
    }
} 