/* ============================================
   merchants.css - 服务商列表页 & 详情页样式
   配色沿用蓝紫渐变主题
   ============================================ */

/* ==============================
   A. 服务商列表页
   ============================== */

/* ① Banner */
.zh_merchants_banner {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--zh-gradient);
}

.zh_merchants_banner::before,
.zh_merchants_banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.zh_merchants_banner::before {
    width: 200px;
    height: 200px;
    top: -60px;
    right: 8%;
}

.zh_merchants_banner::after {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: 5%;
}

.zh_merchants_banner_inner {
    position: relative;
    z-index: 1;
}

.zh_merchants_banner .zh_breadcrumb a,
.zh_merchants_banner .zh_breadcrumb span {
    color: rgba(255,255,255,0.8);
}

.zh_merchants_banner .zh_breadcrumb a:hover {
    color: #fff;
}

.zh_merchants_banner .zh_breadcrumb .zh_breadcrumb_divider {
    color: rgba(255,255,255,0.4);
}

.zh_merchants_banner_title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.zh_merchants_banner_desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* ② 主区域 */
.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-blue);
}

.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(43,108,176,0.3);
}

.zh_merchants_count {
    font-size: 14px;
    color: #A0AEC0;
    flex-shrink: 0;
}

.zh_merchants_count strong {
    color: var(--zh-blue);
    font-weight: 600;
}

/* ④ 服务商卡片网格 */
.zh_merchants_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.zh_merchant_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_card:hover {
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-6px);
    color: inherit;
}

/* 卡片顶部渐变区 */
.zh_merchant_card_top {
    background: var(--zh-gradient);
    padding: 28px 20px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zh_merchant_card_top::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.zh_merchant_avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
}

.zh_merchant_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_merchant_avatar_text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.zh_merchant_card_name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}

.zh_merchant_card_verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

/* 卡片底部信息区 */
.zh_merchant_card_body {
    padding: 20px;
}

.zh_merchant_card_desc {
    font-size: 13px;
    color: var(--zh-text-secondary);
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.zh_merchant_card_stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--zh-border);
}

.zh_merchant_card_info_count {
    font-size: 13px;
    color: #A0AEC0;
}

.zh_merchant_card_info_count strong {
    color: var(--zh-blue);
    font-weight: 600;
    font-size: 16px;
}

.zh_merchant_card_btn {
    padding: 6px 16px;
    border-radius: 20px;
    background: #EBF8FF;
    color: var(--zh-blue);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.zh_merchant_card_btn:hover {
    background: var(--zh-blue);
    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. 服务商详情页
   ============================== */

/* ① Profile 头部 */
.zh_merchant_profile {
    background: var(--zh-gradient);
    position: relative;
    overflow: hidden;
    padding: 40px 0 48px;
}

.zh_merchant_profile::before,
.zh_merchant_profile::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.zh_merchant_profile::before {
    width: 250px;
    height: 250px;
    top: -80px;
    right: 5%;
}

.zh_merchant_profile::after {
    width: 160px;
    height: 160px;
    bottom: -60px;
    left: 8%;
}

.zh_merchant_profile_inner {
    position: relative;
    z-index: 1;
}

.zh_merchant_profile .zh_breadcrumb {
    margin-bottom: 24px;
}

.zh_merchant_profile .zh_breadcrumb a,
.zh_merchant_profile .zh_breadcrumb span {
    color: rgba(255,255,255,0.7);
}

.zh_merchant_profile .zh_breadcrumb a:hover {
    color: #fff;
}

.zh_merchant_profile .zh_breadcrumb .zh_breadcrumb_divider {
    color: rgba(255,255,255,0.35);
}

/* Profile 卡片 */
.zh_merchant_profile_card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.zh_merchant_profile_avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.zh_merchant_profile_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_merchant_profile_avatar_text {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.zh_merchant_profile_info {
    flex: 1;
    min-width: 0;
}

.zh_merchant_profile_name_row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.zh_merchant_profile_name {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.zh_merchant_profile_verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    padding: 3px 12px;
    border-radius: 20px;
}

.zh_merchant_profile_desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 600px;
}

.zh_merchant_profile_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.zh_merchant_profile_meta_item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zh_merchant_profile_meta_item i {
    color: var(--zh-light-blue);
    font-size: 13px;
}

.zh_merchant_profile_meta_item a {
    color: rgba(255,255,255,0.85);
}

.zh_merchant_profile_meta_item a:hover {
    color: #fff;
}

/* 统计数字 */
.zh_merchant_stats_bar {
    margin-top: 28px;
    display: flex;
    gap: 16px;
}

.zh_merchant_stat_item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--zh-radius);
    padding: 16px 28px;
    text-align: center;
}

.zh_merchant_stat_num {
    font-size: 28px;
    font-weight: 700;
    color: var(--zh-light-blue);
    line-height: 1.2;
}

.zh_merchant_stat_num em {
    font-style: normal;
    font-size: 14px;
}

.zh_merchant_stat_label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* ② 主内容区 */
.zh_merchant_main {
    background: var(--zh-bg-light);
    padding: 30px 0 60px;
}

/* 区块标题 */
.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-blue);
}

.zh_merchant_info_img {
    position: relative;
    padding-top: 62%;
    background: #EBF8FF;
    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-blue);
    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: #EBF8FF;
    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-blue);
}

.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-blue);
}

.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_merchants_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zh_merchant_info_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zh_merchant_related_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zh_merchant_stats_bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .zh_merchants_banner {
        height: auto;
        padding: 28px 0;
    }
    .zh_merchants_banner_title {
        font-size: 22px;
    }
    .zh_merchants_grid {
        grid-template-columns: 1fr;
    }
    .zh_merchants_toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .zh_merchants_search {
        max-width: 100%;
    }
    .zh_merchants_count {
        text-align: center;
    }
    .zh_merchant_profile {
        padding: 28px 0 36px;
    }
    .zh_merchant_profile_card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .zh_merchant_profile_name_row {
        justify-content: center;
    }
    .zh_merchant_profile_desc {
        max-width: 100%;
    }
    .zh_merchant_profile_meta {
        justify-content: center;
        gap: 14px;
    }
    .zh_merchant_stats_bar {
        justify-content: center;
    }
    .zh_merchant_profile_name {
        font-size: 22px;
    }
    .zh_merchant_info_grid {
        grid-template-columns: 1fr;
    }
    .zh_merchant_related_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
