/* 商家页面样式 */
.merchant-page {
    min-height: 500px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    margin: 0 5px;
}

.breadcrumb a:hover {
    color: #ff6b6b;
}

.breadcrumb span {
    color: #ff6b6b;
    margin-left: 5px;
}

/* 筛选栏 */
.merchant-filter {
    margin-bottom: 20px;
}

.merchant-filter .layui-card-header {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-list li {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.filter-list li:hover {
    background-color: #f8f9fa;
}

.filter-list li.active {
    background-color: #ff6b6b;
}

.filter-list li.active a {
    color: white !important;
}

.filter-list li.active .count {
    color: white !important;
}

.filter-list li a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list .count {
    color: #999;
    font-size: 12px;
}

/* 地区筛选 */
.region-level {
    margin-bottom: 15px;
}

.region-level:last-child {
    margin-bottom: 0;
}

.region-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

/* 推荐商家 */
.recommend-merchant-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recommend-merchant-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.recommend-merchant-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.merchant-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}

.default-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #ff6b6b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.merchant-info {
    flex: 1;
}

.merchant-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-score {
    font-size: 12px;
    color: #ff9900;
}

.score-text {
    color: #666;
}

/* 搜索排序栏 */
.search-sort-bar {
    background: white;
}

.search-sort-bar .layui-input-group {
    width: 100%;
}

.search-sort-bar .layui-input {
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-sort-bar .layui-btn-normal {
    border-radius: 0 4px 4px 0;
}

.sort-options {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.sort-item {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sort-item:hover {
    color: #ff6b6b;
    background: #f8f9fa;
}

.sort-item.active {
    color: #ff6b6b;
    background: #fff5f5;
    font-weight: 600;
}

/* 商家列表 */
.merchant-item {
    transition: box-shadow 0.3s;
}

.merchant-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.merchant-main-info {
    text-align: center;
}

.merchant-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 10px;
}

.default-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 10px;
}

.merchant-type-tag {
    text-align: center;
}

.merchant-detail-info {
    padding: 0 15px;
}

.merchant-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.merchant-title a {
    color: #333;
    text-decoration: none;
}

.merchant-title a:hover {
    color: #ff6b6b;
}

.recommend-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.merchant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.meta-item i {
    margin-right: 5px;
    color: #ff6b6b;
}

.meta-label {
    color: #666;
}

.meta-value {
    font-weight: 500;
}

.meta-value.high-score {
    color: #ff6b6b;
}

.meta-value.medium-score {
    color: #ff9900;
}

.meta-value.low-score {
    color: #999;
}

.merchant-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    max-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.merchant-address {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.merchant-address i {
    margin-right: 5px;
    color: #ff6b6b;
}

.merchant-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    text-align: center;
}

.recommend-label {
    color: #ff6b6b;
    font-size: 12px;
    padding: 5px;
    border: 1px dashed #ff6b6b;
    border-radius: 4px;
    margin-top: 10px;
}

/* 空状态 */
.empty-result {
    margin-top: 50px;
    text-align: center;
}

.empty-result .layui-icon {
    color: #ccc;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .merchant-meta {
        gap: 10px;
    }
    
    .merchant-actions {
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
    
    .merchant-logo-large {
        width: 60px;
        height: 60px;
    }
    
    .default-logo-large {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .sort-options {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .merchant-detail-info {
        padding: 15px 0;
    }
}