﻿/* 基础样式 */
.seller-store-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* 卖家信息区域 */
.seller-profile-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.seller-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

.seller-avatar {
    flex: 0 0 120px;
}

.store-logo {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

.seller-main-info {
    flex: 1;
}

.store-name {
    font-size: 28px;
    margin: 0 0 10px;
    color: #2c3e50;
}

.seller-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating {
    color: #FFD700;
    font-size: 16px;
}

.rating-value {
    font-weight: 500;
    color: #555;
}

.seller-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

    .stat-item i {
        color: #3498db;
    }

/* 卖家详情 */
.seller-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.detail-section h3 {
    font-size: 20px;
    margin: 0 0 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-description {
    line-height: 1.6;
    color: #555;
}

.detail-columns {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.detail-column {
    flex: 1;
}

.detail-item {
    margin-bottom: 20px;
}

    .detail-item h4 {
        font-size: 16px;
        margin: 0 0 8px;
        color: #34495e;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .detail-item p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

/* 产品区域 */
.products-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .section-header h2 {
        font-size: 24px;
        margin: 0;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.sort-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.product-badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 1;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.new-badge {
    background: #27ae60;
}

.discount-badge {
    background: #e74c3c;
}

.product-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

    .product-image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2c3e50;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #FFD700;
    font-size: 14px;
}

.review-count {
    color: #95a5a6;
    font-size: 12px;
}

.price-container {
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 14px;
    margin-right: 5px;
}

.sale-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}

.current-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 10px;
}

.stock-status.in-stock {
    color: #27ae60;
}

.stock-status.out-stock {
    color: #e74c3c;
}

/* 空状态 */
.empty-products, .no-reviews {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
    color: #95a5a6;
}

    .empty-products i, .no-reviews i {
        margin-bottom: 15px;
        color: #bdc3c7;
    }

    .empty-products h3, .no-reviews h3 {
        margin: 10px 0;
        color: #7f8c8d;
    }

/* 评价区域 */
.reviews-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
}

.review-card {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

    .review-card:last-child {
        border-bottom: none;
    }

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #2c3e50;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-date {
    font-size: 12px;
    color: #95a5a6;
}

.review-content {
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.review-product {
    font-size: 13px;
    color: #7f8c8d;
}

    .review-product a {
        color: #3498db;
        text-decoration: none;
    }

        .review-product a:hover {
            text-decoration: underline;
        }

.btn-view-all {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

    .btn-view-all:hover {
        background: #2980b9;
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .seller-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .seller-meta {
        justify-content: center;
    }

    .detail-columns {
        flex-direction: column;
        gap: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.comment-photo {
    margin-top: 10px;
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
