/* 详情页特定样式 */

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

.breadcrumb ul {
    display: flex;
    align-items: center;
}

.breadcrumb ul li {
    font-size: 14px;
    color: #666;
}

.breadcrumb ul li:not(:last-child):after {
    content: '>';
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb ul li:last-child {
    color: #333;
    font-weight: bold;
}

/* 产品详情区域 */
.product-detail {
    padding: 60px 0;
}

.product-detail .container {
    display: flex;
    gap: 40px;
}

/* 产品图片区域 */
.product-images {
    flex: 1;
}

.main-image {
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
}

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

.thumbnail {
    flex: 1;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

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

/* 产品信息区域 */
.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

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

.product-info .rating i {
    color: var(--primary-color);
    margin-right: 2px;
}

.product-info .rating span {
    margin-left: 5px;
    color: #666;
    font-size: 14px;
}

.product-info .price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.description p {
    color: #666;
}

/* 选项区域 */
.options {
    margin-bottom: 30px;
}

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

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

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

.option-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.option-item input {
    margin-right: 5px;
}

.option-item label {
    cursor: pointer;
}

.option-item.active label {
    color: var(--primary-color);
    font-weight: bold;
}

/* 数量控制器 */
.quantity {
    margin-bottom: 30px;
}

.quantity h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn.minus {
    border-radius: 4px 0 0 4px;
}

.quantity-btn.plus {
    border-radius: 0 4px 4px 0;
}

.quantity input {
    width: 60px;
    height: 36px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
}

/* 操作按钮 */
.actions {
    display: flex;
    gap: 15px;
}

.actions .btn {
    padding: 12px 25px;
    font-size: 16px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #333;
}

/* 标签页区域 */
.product-tabs {
    margin-top: 40px;
    padding-bottom: 60px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

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

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

.tab-pane {
    display: none;
}

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

.tab-pane h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.tab-pane p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

/* 特点列表 */
.features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-bottom: 10px;
}

.feature i {
    color: var(--success-color);
    margin-right: 10px;
}

/* 营养信息 */
.nutrition-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.nutrition-name {
    font-weight: bold;
}

.nutrition-value {
    color: #666;
}

.tab-pane h3 {
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 30px;
}

/* 评价摘要 */
.review-summary {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.average-rating {
    flex: 1;
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.total-reviews {
    color: #666;
    margin-top: 10px;
}

.rating-bars {
    flex: 2;
}

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

.rating-label {
    width: 50px;
}

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

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

.rating-count {
    width: 30px;
    text-align: right;
    color: #666;
}

/* 评价列表 */
.reviews-list {
    margin-bottom: 30px;
}

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

.reviewer-info {
    display: flex;
    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 h4 {
    margin-bottom: 5px;
}

.review-date {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.review-content p {
    line-height: 1.6;
}

.load-more {
    text-align: center;
}

/* 相关产品 */
.related-products {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.related-products h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.products-slider {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail .container,
    .products-slider {
        flex-direction: column;
    }
    
    .product-images,
    .product-info {
        width: 100%;
    }
    
    .product-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .review-summary {
        flex-direction: column;
    }
    
    .average-rating {
        margin-bottom: 30px;
    }
    
    .nutrition-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1 0 100%;
        text-align: center;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
    }
} 