/* 商品详情页面样式 */
.product-detail {
    padding: 50px 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    transition: color 0.3s;
}

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

.breadcrumb span {
    color: var(--dark);
    font-weight: 500;
}

/* 商品内容区域 */
.product-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* 商品图片区域 */
.product-gallery {
    flex: 1;
    min-width: 400px;
    padding-right: 40px;
}

.main-image {
    width: 100%;
    height: 400px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
}

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

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

/* 商品信息区域 */
.product-info {
    flex: 1;
    min-width: 400px;
}

.product-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #ffc107;
}

.product-rating span {
    margin-left: 10px;
    color: var(--gray);
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.current-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 10px;
}

.original-price {
    font-size: 16px;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 10px;
}

.discount-tag {
    background-color: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 店铺信息 */
.store-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.store-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

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

.store-link {
    font-size: 14px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.store-link i {
    font-size: 12px;
    margin-left: 5px;
}

/* 商品选项 */
.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;
}

.option-item {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

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

.option-item.active {
    border-color: var(--primary);
    background-color: rgba(0, 184, 169, 0.1);
    color: var(--primary);
}

.color-options .option-item {
    display: flex;
    align-items: center;
}

.color-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #e0e0e0;
}

/* 数量选择器 */
.quantity-selector {
    margin-bottom: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

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

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

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

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

.buy-now-btn {
    background-color: #ff6b6b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    max-width: 180px;
    transition: all 0.3s;
}

.buy-now-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.add-to-cart-btn {
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #009b8e;
    transform: translateY(-2px);
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.wishlist-btn.active {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* 服务保障 */
.product-services {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

.service-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
}

.service-item i {
    color: var(--primary);
    margin-right: 8px;
}

/* 标签页 */
.product-tabs {
    margin-bottom: 50px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-header {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-header:hover {
    color: var(--primary);
}

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

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tab-content {
    display: none;
}

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

/* 产品描述 */
.product-description {
    line-height: 1.8;
}

.product-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.product-description p {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
}

.feature img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.feature-content {
    flex: 1;
    padding: 30px;
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

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

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

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

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

/* 用户评价 */
.reviews-summary {
    display: flex;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
}

.overall-rating {
    text-align: center;
    margin-right: 60px;
}

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

.rating-stars {
    color: #ffc107;
    margin-bottom: 10px;
}

.rating-count {
    font-size: 14px;
    color: var(--gray);
}

.rating-breakdown {
    flex: 1;
}

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

.rating-level {
    width: 40px;
    font-size: 14px;
    color: var(--gray);
}

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

.progress {
    height: 100%;
    background-color: #ffc107;
    border-radius: 4px;
}

.rating-percent {
    width: 40px;
    font-size: 14px;
    color: var(--gray);
    text-align: right;
}

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

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

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

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

.reviewer-details {
    flex: 1;
}

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

.review-date {
    font-size: 12px;
    color: var(--gray);
}

.review-rating {
    color: #ffc107;
}

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

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

.review-images img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
}

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

.load-more-btn {
    background-color: white;
    color: var(--gray);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.3s;
}

.load-more-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* 相关产品 */
.related-products {
    margin-bottom: 50px;
}

.product-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: calc(25% - 15px);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-nav:hover {
    background-color: var(--primary);
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-content {
        flex-direction: column;
    }
    
    .product-gallery {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .feature {
        flex-direction: column;
    }
    
    .feature img {
        width: 100%;
    }
    
    .reviews-summary {
        flex-direction: column;
    }
    
    .overall-rating {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .slider-item {
        min-width: calc(33.333% - 13.333px);
    }
}

@media (max-width: 768px) {
    .product-actions {
        flex-wrap: wrap;
    }
    
    .buy-now-btn, .add-to-cart-btn {
        max-width: none;
        flex: 1 0 40%;
    }
    
    .tab-header {
        padding: 15px;
    }
    
    .slider-item {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-services {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-headers {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .slider-item {
        min-width: 100%;
    }
} 