/* 页面标题样式 */
.page-title {
    background-color: var(--light-bg);
    padding: 30px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-title h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.breadcrumbs {
    font-size: 14px;
    color: var(--gray-text);
}

.breadcrumbs a {
    color: var(--gray-text);
}

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

/* 产品详情部分 */
.product-detail-section {
    padding-bottom: 60px;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 产品图片部分 */
.product-images {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 400px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

/* 产品信息部分 */
.product-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.product-rating i {
    color: #ffb53f;
    margin-right: 3px;
}

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

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

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

.price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 18px;
    color: var(--gray-text);
    text-decoration: line-through;
}

.discount {
    background-color: #e74c3c;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-short-desc {
    margin-bottom: 25px;
    line-height: 1.7;
}

.product-variants {
    margin-bottom: 25px;
}

.variant-option {
    margin-bottom: 15px;
}

.option-title {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.option-values a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.option-values a:hover,
.option-values a.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

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

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: #e0e0e0;
}

#quantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.add-to-cart-btn,
.buy-now-btn {
    height: 42px;
    padding: 0 25px;
    font-size: 14px;
}

.add-to-cart-btn i {
    margin-right: 8px;
}

/* 销售人员信息 */
.seller-info {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

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

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

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

.seller-details p {
    color: var(--gray-text);
    font-size: 14px;
    margin-bottom: 8px;
}

.seller-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.seller-contact a {
    font-size: 14px;
    color: var(--primary-color);
}

.seller-contact a i {
    margin-right: 5px;
}

/* 产品详情选项卡 */
.product-details-tabs {
    margin-bottom: 40px;
}

.tabs-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 25px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.tabs-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.tab-panel {
    display: none;
}

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

.tab-panel h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.tab-panel h4 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.tab-panel p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.tab-panel ul,
.tab-panel ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tab-panel ul li,
.tab-panel ol li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.feature-images {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.feature-img {
    flex: 1;
    text-align: center;
}

.feature-img img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.feature-img p {
    font-size: 14px;
    color: var(--gray-text);
}

/* 规格参数表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.specs-table th {
    background-color: var(--light-bg);
    font-weight: 600;
}

.specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.package-list li {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

/* 用户评价部分 */
.review-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-avg {
    text-align: center;
}

.avg-rating {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.avg-stars {
    margin: 10px 0;
}

.avg-stars i {
    color: #ffb53f;
    font-size: 18px;
}

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

.rating-bars {
    flex: 1;
}

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

.star-label {
    width: 60px;
    font-size: 14px;
}

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

.progress {
    height: 100%;
    background-color: #ffb53f;
}

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

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

.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.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 {
    font-size: 16px;
    margin-bottom: 5px;
}

.review-rating i {
    color: #ffb53f;
    font-size: 14px;
}

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

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

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

/* 相关产品部分 */
.related-products {
    margin-top: 60px;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .review-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-images {
        flex-direction: column;
    }
    
    .tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .related-products .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
    }
    
    .package-list {
        grid-template-columns: 1fr;
    }
} 