/* 优质商家页面样式 */

.street-banner {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 50px 30px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #3a8bcd 100%);
}

.street-banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.street-banner p {
    font-size: 16px;
    opacity: 0.8;
}

.street-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

/* 侧边栏 */
.street-sidebar {
    flex: 0 0 250px;
}

.sidebar-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    padding: 20px;
}

.sidebar-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 分类筛选 */
.category-filter,
.product-filter {
    list-style: none;
    padding: 0;
}

.category-filter li,
.product-filter li {
    margin-bottom: 10px;
}

.category-filter a,
.product-filter a {
    display: block;
    padding: 8px 10px;
    color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-filter a:hover,
.product-filter a:hover {
    background-color: var(--secondary-color);
}

.category-filter li.active a {
    background-color: var(--primary-color);
    color: white;
}

/* 服务筛选 */
.service-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

/* 地区选择 */
.region-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

/* 商家内容区 */
.street-content {
    flex: 1;
}

/* 工具栏 */
.street-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.store-count {
    font-size: 14px;
}

.store-count span {
    font-weight: bold;
    color: var(--primary-color);
}

.store-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-option {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-color);
}

.sort-option:hover,
.sort-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* 商家卡片网格 */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 商家卡片 */
.store-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 商家卡片头部 */
.store-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.store-badges {
    display: flex;
    gap: 5px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    color: white;
}

.badge.official {
    background-color: #4CAF50;
}

.badge.brand {
    background-color: #2196F3;
}

.badge.dealer {
    background-color: #FF9800;
}

.badge.service {
    background-color: #9C27B0;
}

.badge.warranty {
    background-color: #607D8B;
}

.badge.refund {
    background-color: #E91E63;
}

.badge.same-day {
    background-color: #00BCD4;
}

.badge.installment {
    background-color: #795548;
}

/* 商家卡片内容 */
.store-body {
    padding: 20px;
}

.store-name {
    font-size: 18px;
    margin-bottom: 10px;
}

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

.rating-stars {
    color: #FFD700;
    margin-right: 5px;
}

.rating-score {
    font-weight: bold;
}

.store-info {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--light-text);
    height: 40px;
    overflow: hidden;
}

.store-stats {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--light-text);
}

/* 商家卡片底部 */
.store-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.store-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.store-btn:hover {
    background-color: #0056b3;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin: 0 5px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination a.prev,
.pagination a.next {
    width: 40px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .street-container {
        flex-direction: column;
    }
    
    .street-sidebar {
        flex: none;
        width: 100%;
    }
    
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .street-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .store-sort {
        width: 100%;
        justify-content: space-between;
    }
    
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .street-banner {
        padding: 30px 20px;
    }
    
    .street-banner h1 {
        font-size: 24px;
    }
    
    .store-grid {
        grid-template-columns: 1fr;
    }
} 