/* ============================================
   merchants.css - 服务商列表页 & 详情页样式
   配色：蓝橙双色主题（源自 Logo）
   ============================================ */

/* ==============================
   A. 服务商列表页
   ============================== */

/* ① 主区域 */
.zh_merchants_main {
    background: var(--zh-bg-light);
    padding: 30px 0 60px;
}

/* ② 搜索与统计栏 */
.zh_merchants_toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.zh_merchants_search {
    display: flex;
    align-items: center;
    background: var(--zh-white);
    border-radius: 24px;
    padding: 0 6px 0 18px;
    height: 46px;
    box-shadow: var(--zh-shadow);
    border: 1px solid var(--zh-border);
    flex: 1;
    max-width: 420px;
    transition: border-color 0.3s;
}

.zh_merchants_search:focus-within {
    border-color: var(--zh-primary);
}

.zh_merchants_search i {
    color: #A0AEC0;
    margin-right: 10px;
    font-size: 14px;
}

.zh_merchants_search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--zh-text);
    font-family: inherit;
}

.zh_merchants_search input::placeholder {
    color: #A0AEC0;
}

.zh_merchants_search_btn {
    background: var(--zh-gradient);
    color: #fff;
    border: none;
    padding: 0 20px;
    height: 36px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
}

.zh_merchants_search_btn:hover {
    box-shadow: 0 4px 12px rgba(0,86,184,0.3);
}

.zh_merchants_count {
    font-size: 14px;
    color: #A0AEC0;
    flex-shrink: 0;
}

.zh_merchants_count strong {
    color: var(--zh-primary);
    font-weight: 600;
}

/* ③ 服务商横向卡片列表 */
.zh_merchants_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zh_merchant_row_card {
    display: flex;
    align-items: center;
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    padding: 24px;
    gap: 24px;
    transition: all 0.3s;
    color: inherit;
}

.zh_merchant_row_card:hover {
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-3px);
    color: inherit;
}

.zh_merchant_row_avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--zh-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--zh-primary);
    flex-shrink: 0;
}

.zh_merchant_row_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_merchant_row_avatar_text {
    font-size: 28px;
    font-weight: 700;
    color: var(--zh-primary);
}

.zh_merchant_row_body {
    flex: 1;
    min-width: 0;
}

.zh_merchant_row_top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.zh_merchant_row_name {
    font-size: 18px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0;
    transition: color 0.3s;
}

.zh_merchant_row_card:hover .zh_merchant_row_name {
    color: var(--zh-primary);
}

.zh_merchant_row_verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--zh-primary);
    background: var(--zh-primary-bg);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
    flex-shrink: 0;
}

.zh_merchant_row_desc {
    font-size: 14px;
    color: var(--zh-text-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_merchant_row_footer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zh_merchant_row_stat {
    font-size: 13px;
    color: #A0AEC0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zh_merchant_row_stat i {
    color: var(--zh-accent);
    font-size: 13px;
}

.zh_merchant_row_action {
    flex-shrink: 0;
}

.zh_merchant_row_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--zh-primary-bg);
    color: var(--zh-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.zh_merchant_row_card:hover .zh_merchant_row_btn {
    background: var(--zh-gradient);
    color: #fff;
}

/* ④ 分页（复用 infos.css 中的 .zh_pagination） */
.zh_pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.zh_pagination .pagination {
    gap: 4px;
}

.zh_pagination .page-item .page-link {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--zh-text-secondary);
    background: var(--zh-white);
    box-shadow: var(--zh-shadow);
    transition: all 0.3s;
}

.zh_pagination .page-item .page-link:hover {
    color: var(--zh-primary);
    background: var(--zh-primary-bg);
}

.zh_pagination .page-item.active .page-link {
    background: var(--zh-gradient);
    color: #fff;
}

/* ⑤ 空状态 */
.zh_merchants_empty {
    text-align: center;
    padding: 80px 20px;
}

.zh_merchants_empty i {
    font-size: 56px;
    color: var(--zh-light-blue);
    display: block;
    margin-bottom: 20px;
}

.zh_merchants_empty h3 {
    font-size: 18px;
    color: var(--zh-text);
    margin: 0 0 8px;
}

.zh_merchants_empty p {
    font-size: 14px;
    color: #A0AEC0;
    margin: 0 0 24px;
}

/* ==============================
   B. 服务商详情页
   ============================== */

/* ① 面包屑条 */
.zh_detail_breadcrumb_bar {
    background: var(--zh-primary-bg);
    padding: 14px 0;
}

.zh_detail_breadcrumb_bar .zh_breadcrumb a {
    color: var(--zh-text-secondary);
}

.zh_detail_breadcrumb_bar .zh_breadcrumb a:hover {
    color: var(--zh-primary);
}

.zh_detail_breadcrumb_bar .zh_breadcrumb span {
    color: var(--zh-text);
}

.zh_detail_breadcrumb_bar .zh_breadcrumb .zh_breadcrumb_divider {
    color: #A0AEC0;
}

/* ② 主内容区 */
.zh_merchant_detail_main {
    background: var(--zh-bg-light);
    padding: 24px 0 60px;
}

/* ③ Profile 卡片 - 白色卡片式 */
.zh_merchant_profile_card {
    display: flex;
    gap: 32px;
    background: var(--zh-white);
    border-radius: var(--zh-radius-lg);
    box-shadow: var(--zh-shadow-md);
    padding: 32px;
    margin-bottom: 36px;
    border-top: 4px solid var(--zh-primary);
}

.zh_merchant_profile_left {
    flex-shrink: 0;
    text-align: center;
}

.zh_merchant_profile_avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--zh-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--zh-primary);
    margin-bottom: 16px;
}

.zh_merchant_profile_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_merchant_profile_avatar_text {
    font-size: 32px;
    font-weight: 700;
    color: var(--zh-primary);
}

.zh_merchant_profile_stats {
    display: flex;
    gap: 12px;
}

.zh_merchant_profile_stat {
    text-align: center;
    padding: 10px 16px;
    background: var(--zh-bg-light);
    border-radius: var(--zh-radius-sm);
}

.zh_merchant_profile_stat strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--zh-primary);
    line-height: 1.2;
}

.zh_merchant_profile_stat span {
    font-size: 12px;
    color: #A0AEC0;
}

.zh_merchant_profile_right {
    flex: 1;
    min-width: 0;
}

.zh_merchant_profile_name_row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.zh_merchant_profile_name {
    font-size: 24px;
    font-weight: 700;
    color: var(--zh-text);
    margin: 0;
}

.zh_merchant_profile_verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--zh-primary);
    background: var(--zh-primary-bg);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.zh_merchant_profile_desc {
    font-size: 14px;
    color: var(--zh-text-secondary);
    line-height: 1.7;
    margin: 0 0 16px;
}

.zh_merchant_profile_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: var(--zh-text-secondary);
}

.zh_merchant_profile_meta_item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zh_merchant_profile_meta_item i {
    color: var(--zh-accent);
    font-size: 13px;
}

.zh_merchant_profile_meta_item a {
    color: var(--zh-primary);
}

.zh_merchant_profile_meta_item a:hover {
    color: var(--zh-accent);
}

/* ④ 区块标题 */
.zh_merchant_section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.zh_merchant_section_title {
    font-size: 20px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0;
    padding-left: 14px;
    position: relative;
}

.zh_merchant_section_title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: var(--zh-gradient);
    border-radius: 2px;
}

.zh_merchant_section_count {
    font-size: 14px;
    color: #A0AEC0;
}

/* ⑤ 信息卡片网格 */
.zh_merchant_info_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.zh_merchant_info_card {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    overflow: hidden;
    transition: all 0.3s;
    display: block;
    color: inherit;
}

.zh_merchant_info_card:hover {
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-4px);
    color: inherit;
}

.zh_merchant_info_card:hover .zh_merchant_info_title {
    color: var(--zh-primary);
}

.zh_merchant_info_img {
    position: relative;
    padding-top: 62%;
    background: var(--zh-primary-bg);
    overflow: hidden;
}

.zh_merchant_info_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.zh_merchant_info_card:hover .zh_merchant_info_img img {
    transform: scale(1.05);
}

.zh_merchant_info_img .zh_no_img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--zh-light-blue);
}

.zh_merchant_info_body {
    padding: 14px 16px;
}

.zh_merchant_info_title {
    font-size: 15px;
    font-weight: 500;
    color: var(--zh-text);
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.zh_merchant_info_meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #A0AEC0;
}

.zh_merchant_info_meta i {
    margin-right: 3px;
}

/* ⑥ 相关服务商推荐 */
.zh_merchant_related {
    margin-top: 48px;
}

.zh_merchant_related_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.zh_merchant_related_card {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    border: 1px solid var(--zh-border);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
    display: block;
    color: inherit;
}

.zh_merchant_related_card:hover {
    border-color: var(--zh-primary);
    box-shadow: var(--zh-shadow);
    transform: translateY(-3px);
    color: inherit;
}

.zh_merchant_related_avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 3px solid var(--zh-light-blue);
    background: var(--zh-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_merchant_related_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_merchant_related_avatar_text {
    font-size: 18px;
    font-weight: 700;
    color: var(--zh-primary);
}

.zh_merchant_related_name {
    font-size: 15px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0 0 4px;
}

.zh_merchant_related_card:hover .zh_merchant_related_name {
    color: var(--zh-primary);
}

.zh_merchant_related_verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--zh-success);
    margin-bottom: 8px;
}

.zh_merchant_related_count {
    font-size: 13px;
    color: #A0AEC0;
}

/* ⑦ 空状态 */
.zh_merchant_empty {
    text-align: center;
    padding: 60px 20px;
    color: #A0AEC0;
}

.zh_merchant_empty i {
    font-size: 48px;
    color: var(--zh-light-blue);
    display: block;
    margin-bottom: 16px;
}

/* ==============================
   C. 响应式
   ============================== */
@media (max-width: 992px) {
    .zh_merchant_info_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zh_merchant_related_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zh_merchant_profile_card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .zh_merchant_profile_name_row {
        justify-content: center;
    }
    .zh_merchant_profile_meta {
        justify-content: center;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .zh_merchants_toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .zh_merchants_search {
        max-width: 100%;
    }
    .zh_merchants_count {
        text-align: center;
    }

    /* 横向卡片改为竖向 */
    .zh_merchant_row_card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .zh_merchant_row_avatar {
        width: 60px;
        height: 60px;
    }
    .zh_merchant_row_action {
        align-self: flex-end;
    }
    .zh_merchant_row_footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .zh_merchant_info_grid {
        grid-template-columns: 1fr;
    }
    .zh_merchant_related_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zh_merchant_profile_card {
        padding: 24px 20px;
    }
    .zh_merchant_profile_name {
        font-size: 20px;
    }
    .zh_merchant_profile_stats {
        justify-content: center;
    }
}
