/* ========================================
   服务商列表页样式 - 深色主题风格
   参考首页设计稿 (网站首页.jpeg)
   ======================================== */

/* === 变量定义（与主布局保持一致） === */
:root {
    --zh-primary: #e52e2e;
    --zh-primary-dark: #c92626;
    --zh-primary-light: #ff4444;
    --zh-black: #000000;
    --zh-dark: #0a0a0a;
    --zh-dark-100: #111111;
    --zh-dark-200: #1a1a1a;
    --zh-dark-300: #222222;
    --zh-dark-400: #2a2a2a;
    --zh-white: #ffffff;
    --zh-gray-100: #f5f5f5;
    --zh-gray-300: #aaaaaa;
    --zh-gray-500: #666666;
    --zh-text: #ffffff;
    --zh-text-muted: #888888;
    --zh-text-light: #cccccc;
    --zh-radius: 8px;
    --zh-radius-lg: 12px;
    --zh-radius-xl: 16px;
    --zh-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --zh-transition: all 0.3s ease;
}

/* === 页面Banner区域 === */
.zh_merchants_banner {
    background: linear-gradient(135deg, var(--zh-dark) 0%, var(--zh-black) 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--zh-dark-300);
}

.zh_merchants_banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(229, 46, 46, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.zh_banner_content {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 装饰星星 */
.zh_banner_star {
    position: absolute;
    color: var(--zh-primary);
    animation: starTwinkle 3s ease-in-out infinite;
    opacity: 0.6;
}

.zh_star_1 {
    top: 30px;
    left: 15%;
    animation-delay: 0s;
}

.zh_star_2 {
    top: 80px;
    right: 18%;
    animation-delay: 1s;
}

.zh_star_3 {
    bottom: 50px;
    left: 22%;
    animation-delay: 2s;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.3; transform: scale(0.8) rotate(15deg); }
}

/* Banner标题 */
.zh_banner_title {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: var(--zh-white);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.zh_banner_subtitle {
    font-size: 18px;
    color: var(--zh-text-muted);
    margin: 0 0 32px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* 面包屑导航 */
.zh_banner_breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--zh-dark-200);
    border: 1px solid var(--zh-dark-400);
    border-radius: var(--zh-radius-lg);
    font-size: 14px;
    font-weight: 500;
}

.zh_banner_breadcrumb a {
    color: var(--zh-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--zh-transition);
}

.zh_banner_breadcrumb a:hover {
    color: var(--zh-primary);
}

.zh_breadcrumb_sep {
    color: var(--zh-dark-400);
    font-size: 10px;
}

.zh_breadcrumb_current {
    color: var(--zh-white);
    font-weight: 600;
}

/* === 服务商列表主区域 === */
.zh_merchants_main {
    padding: 60px 0 80px;
    background: var(--zh-black);
    min-height: 60vh;
}

/* 搜索栏 */
.zh_merchants_search {
    margin-bottom: 48px;
}

.zh_search_form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.zh_search_input_wrap {
    flex: 1;
    position: relative;
}

.zh_search_input_wrap i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zh-text-muted);
    font-size: 16px;
}

.zh_search_input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid var(--zh-dark-400);
    border-radius: var(--zh-radius-lg);
    font-size: 15px;
    background: var(--zh-dark-200);
    color: var(--zh-white);
    transition: var(--zh-transition);
}

.zh_search_input:focus {
    outline: none;
    border-color: var(--zh-primary);
    box-shadow: 0 0 0 3px rgba(229, 46, 46, 0.1);
}

.zh_search_input::placeholder {
    color: var(--zh-text-muted);
}

/* 统计信息 */
.zh_merchants_stats {
    margin-bottom: 32px;
    text-align: center;
}

.zh_stats_text {
    font-size: 15px;
    color: var(--zh-text-muted);
}

.zh_stats_text strong {
    color: var(--zh-primary);
    font-weight: 700;
}

/* === 服务商卡片网格 - 参考首页"优秀设计师"区块 === */
.zh_merchants_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* 服务商卡片 */
.zh_merchant_card {
    background: var(--zh-dark-200);
    border: 1px solid var(--zh-dark-400);
    border-radius: var(--zh-radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--zh-transition);
}

.zh_merchant_card:hover {
    transform: translateY(-8px);
    border-color: var(--zh-primary);
    box-shadow: 0 20px 40px rgba(229, 46, 46, 0.15);
}

/* 认证徽章 */
.zh_merchant_verified {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--zh-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.zh_merchant_verified i {
    color: var(--zh-white);
    font-size: 12px;
}

/* 服务商头像区域 - 作为卡片顶部图片 */
.zh_merchant_header {
    position: relative;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--zh-dark-300);
}

.zh_merchant_avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--zh-dark-400);
    margin-bottom: 16px;
    transition: var(--zh-transition);
}

.zh_merchant_card:hover .zh_merchant_avatar {
    border-color: var(--zh-primary);
}

.zh_merchant_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_avatar_placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--zh-dark-300) 0%, var(--zh-dark-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_avatar_placeholder i {
    font-size: 36px;
    color: var(--zh-text-muted);
}

.zh_merchant_info {
    width: 100%;
}

.zh_merchant_name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.zh_merchant_name a {
    color: var(--zh-white);
    text-decoration: none;
    transition: var(--zh-transition);
}

.zh_merchant_name a:hover {
    color: var(--zh-primary);
}

/* 标签 */
.zh_merchant_tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.zh_tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.zh_tag_verified {
    background: rgba(229, 46, 46, 0.2);
    color: var(--zh-primary);
}

.zh_tag_info {
    background: var(--zh-dark-300);
    color: var(--zh-text-light);
}

/* 服务商简介 */
.zh_merchant_desc {
    padding: 20px 24px;
    flex: 1;
}

.zh_merchant_desc p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--zh-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* 联系信息 */
.zh_merchant_contact {
    padding: 16px 24px;
    border-top: 1px solid var(--zh-dark-300);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zh_contact_row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--zh-text-light);
}

.zh_contact_row i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zh-dark-300);
    border-radius: var(--zh-radius);
    font-size: 12px;
    color: var(--zh-primary);
    flex-shrink: 0;
}

/* 操作按钮 */
.zh_merchant_action {
    padding: 20px 24px;
    border-top: 1px solid var(--zh-dark-300);
}

.zh_btn_card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 24px;
    background: var(--zh-primary);
    color: var(--zh-white);
    border: none;
    border-radius: var(--zh-radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--zh-transition);
}

.zh_btn_card:hover {
    background: var(--zh-primary-light);
    color: var(--zh-white);
    transform: translateY(-2px);
}

.zh_btn_card i {
    font-size: 12px;
    transition: transform 0.3s;
}

.zh_btn_card:hover i {
    transform: translateX(4px);
}

/* === 空状态 === */
.zh_empty_state {
    text-align: center;
    padding: 80px 40px;
    background: var(--zh-dark-200);
    border: 1px solid var(--zh-dark-400);
    border-radius: var(--zh-radius-xl);
}

.zh_empty_icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--zh-dark-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_empty_icon i {
    font-size: 40px;
    color: var(--zh-text-muted);
}

.zh_empty_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--zh-white);
    margin: 0 0 12px 0;
}

.zh_empty_desc {
    font-size: 16px;
    color: var(--zh-text-muted);
    margin: 0 0 24px 0;
}

/* === CTA行动召唤区 === */
.zh_merchants_cta {
    background: linear-gradient(135deg, var(--zh-primary) 0%, var(--zh-primary-dark) 100%);
    padding: 80px 0;
    border-top: 1px solid var(--zh-dark-300);
}

.zh_cta_content {
    text-align: center;
}

.zh_cta_title {
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    color: var(--zh-white);
    margin: 0 0 16px 0;
}

.zh_cta_desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px 0;
}

.zh_btn_cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--zh-white);
    color: var(--zh-primary);
    border: none;
    border-radius: var(--zh-radius);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--zh-transition);
}

.zh_btn_cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--zh-primary-dark);
}

.zh_btn_cta i {
    font-size: 14px;
    transition: transform 0.3s;
}

.zh_btn_cta:hover i {
    transform: translateX(4px);
}

/* === 按钮通用样式 === */
.zh_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--zh-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--zh-transition);
    text-decoration: none;
    border: none;
}

.zh_btn_primary {
    background: var(--zh-primary);
    color: var(--zh-white);
}

.zh_btn_primary:hover {
    background: var(--zh-primary-light);
    color: var(--zh-white);
    transform: translateY(-2px);
}

/* === 分页样式 === */
.zh_pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.zh_pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zh_pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: var(--zh-dark-200);
    border: 1px solid var(--zh-dark-400);
    border-radius: var(--zh-radius);
    color: var(--zh-text-light);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--zh-transition);
}

.zh_pagination .page-link:hover {
    background: var(--zh-dark-300);
    border-color: var(--zh-dark-300);
    color: var(--zh-white);
}

.zh_pagination .page-item.active .page-link {
    background: var(--zh-primary);
    border-color: var(--zh-primary);
    color: var(--zh-white);
}

.zh_pagination .page-item.disabled .page-link {
    background: var(--zh-dark-100);
    color: var(--zh-text-muted);
    cursor: not-allowed;
}

/* === 响应式设计 === */
@media (max-width: 1200px) {
    .zh_merchants_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .zh_merchants_banner {
        padding: 100px 0 50px;
    }

    .zh_banner_title {
        font-size: 36px;
    }

    .zh_banner_star {
        display: none;
    }

    .zh_merchants_main {
        padding: 40px 0 60px;
    }

    .zh_merchants_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zh_cta_title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .zh_merchants_banner {
        padding: 90px 0 40px;
    }

    .zh_banner_title {
        font-size: 28px;
    }

    .zh_banner_subtitle {
        font-size: 15px;
    }

    .zh_banner_breadcrumb {
        padding: 10px 18px;
        font-size: 13px;
    }

    .zh_merchants_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .zh_merchant_header {
        padding: 24px 20px 20px;
    }

    .zh_merchant_avatar {
        width: 80px;
        height: 80px;
    }

    .zh_merchant_name {
        font-size: 16px;
    }

    .zh_search_form {
        flex-direction: column;
    }

    .zh_search_input {
        padding: 12px 20px 12px 45px;
    }

    .zh_btn_primary {
        width: 100%;
    }

    .zh_cta_title {
        font-size: 26px;
    }

    .zh_cta_desc {
        font-size: 15px;
    }

    .zh_btn_cta {
        padding: 14px 28px;
        font-size: 14px;
    }

    .zh_pagination .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .zh_banner_title {
        font-size: 24px;
    }

    .zh_merchant_card {
        border-radius: var(--zh-radius-lg);
    }

    .zh_merchant_desc,
    .zh_merchant_contact,
    .zh_merchant_action {
        padding-left: 20px;
        padding-right: 20px;
    }

    .zh_tag {
        font-size: 11px;
        padding: 3px 10px;
    }

    .zh_contact_row {
        font-size: 12px;
    }

    .zh_contact_row i {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .zh_empty_state {
        padding: 60px 24px;
    }

    .zh_empty_icon {
        width: 80px;
        height: 80px;
    }

    .zh_empty_icon i {
        font-size: 32px;
    }
}