/* 商品详情页样式 */
.breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #e4393c;
}

.breadcrumb .separator {
    margin: 0 8px;
}

.product-detail {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.product-gallery {
    flex: 0 0 40%;
    padding-right: 30px;
}

.product-info {
    flex: 0 0 60%;
}

.main-image {
    width: 100%;
    height: 400px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: #e4393c;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.product-brief {
    color: #666;
    margin-bottom: 20px;
}

.product-price-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.price-label {
    color: #999;
    margin-right: 10px;
}

.current-price {
    font-size: 28px;
    color: #e4393c;
    font-weight: 700;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.discount {
    display: inline-block;
    padding: 3px 8px;
    background-color: #e4393c;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    margin-left: 10px;
}

.product-attributes {
    margin-bottom: 20px;
}

.attribute-row {
    display: flex;
    margin-bottom: 15px;
}

.attribute-label {
    width: 80px;
    color: #666;
}

.attribute-value {
    flex: 1;
}

.product-options {
    margin-bottom: 25px;
}

.option-title {
    margin-bottom: 10px;
    color: #333;
}

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-item {
    padding: 6px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    border-color: #e4393c;
}

.option-item.active {
    border-color: #e4393c;
    background-color: #fff0f0;
    color: #e4393c;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.quantity-label {
    margin-right: 10px;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.product-stock {
    margin-bottom: 25px;
    color: #333;
}

.stock-number {
    color: #e4393c;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.buy-now-btn {
    flex: 1;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 700;
    background-color: #ff9000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-now-btn:hover {
    background-color: #e67700;
}

.add-to-cart-btn {
    flex: 1;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 700;
    background-color: #e4393c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #c7222a;
}

.product-services {
    margin-bottom: 25px;
}

.service-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

.service-item i {
    margin-right: 5px;
    color: #e4393c;
}

.product-detail-tabs {
    margin-bottom: 30px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-item {
    padding: 12px 25px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-item.active {
    color: #e4393c;
    border-bottom-color: #e4393c;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.product-description {
    color: #333;
    line-height: 1.8;
}

.product-description img {
    max-width: 100%;
    margin: 20px 0;
}

.product-description h3 {
    font-size: 18px;
    margin: 25px 0 15px;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description ul, 
.product-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.product-description li {
    margin-bottom: 8px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs th {
    background-color: #f5f5f5;
    padding: 10px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.product-specs td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.product-specs tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-reviews {
    margin-bottom: 30px;
}

.review-summary {
    display: flex;
    margin-bottom: 20px;
}

.review-score {
    flex: 0 0 180px;
    text-align: center;
    padding: 20px;
    border-right: 1px solid #eee;
}

.average-score {
    font-size: 36px;
    color: #e4393c;
    font-weight: 700;
    margin-bottom: 10px;
}

.score-text {
    color: #666;
}

.review-tags {
    flex: 1;
    padding: 20px;
}

.review-tags-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.review-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-tag {
    padding: 5px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.review-tag:hover,
.review-tag.active {
    background-color: #fff0f0;
    color: #e4393c;
}

.review-list {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.review-rating {
    color: #ff9000;
    font-size: 14px;
    margin-left: 10px;
}

.review-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
}

.review-date {
    margin-right: 15px;
}

.review-actions a {
    margin-left: 15px;
    color: #666;
}

.review-actions a:hover {
    color: #e4393c;
}

.load-more {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 4px;
    margin-top: 20px;
    transition: all 0.3s;
}

.load-more:hover {
    background-color: #e4393c;
    color: #fff;
}

.related-products {
    margin-bottom: 40px;
}

.related-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e4393c;
    position: relative;
}

.related-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #e4393c;
}

.related-product-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.related-product-item {
    flex: 0 0 200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-product-img {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.related-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-product-item:hover .related-product-img img {
    transform: scale(1.05);
}

.related-product-info {
    padding: 15px;
}

.related-product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-product-price {
    color: #e4393c;
    font-weight: 700;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-container {
        flex-direction: column;
    }
    
    .product-gallery {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .product-info {
        flex: 0 0 100%;
    }
    
    .main-image {
        height: 350px;
    }
    
    .related-product-list {
        flex-wrap: wrap;
    }
    
    .related-product-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 20px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .review-summary {
        flex-direction: column;
    }
    
    .review-score {
        flex: 0 0 auto;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .review-tags {
        padding: 0;
    }
    
    .related-product-item {
        flex: 0 0 100%;
    }
} 