/* ============================================
   home.css - 首页专属样式
   配色: 青蓝 + 琥珀金（Logo + Banner）
   ============================================ */

/* --- ① Hero 视觉区（左右分栏） --- */
.zh_hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--zh-gradient-hero);
}
.zh_hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}
.zh_hero_inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 40px;
    padding: 80px 0 60px;
}

/* 左侧文案区 */
.zh_hero_left {
    color: #fff;
}
.zh_hero_label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--zh-primary-light);
    border-radius: 0 var(--zh-radius-sm) var(--zh-radius-sm) 0;
    font-size: 14px;
    color: var(--zh-primary-light);
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.zh_hero_title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.3;
}
.zh_hero_desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 460px;
}
.zh_hero_search {
    display: flex;
    max-width: 480px;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    margin-bottom: 16px;
}
.zh_hero_search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 24px;
    font-size: 15px;
    height: 50px;
    color: var(--zh-text);
}
.zh_hero_search input::placeholder {
    color: var(--zh-text-muted);
}
.zh_hero_search button {
    background: var(--zh-gradient-primary);
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.zh_hero_search button:hover {
    opacity: 0.9;
}
.zh_hero_tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.zh_hero_tags a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}
.zh_hero_tags a:hover {
    color: #fff;
}

/* 右侧图片区 */
.zh_hero_right {
    display: flex;
    align-items: center;
    justify-content: center;
}
.zh_hero_img_wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
}
.zh_hero_img_wrap img {
    width: 100%;
    border-radius: var(--zh-radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.zh_hero_img_glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(8,145,178,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* --- ② 信任指标条 --- */
.zh_trust {
    background: var(--zh-bg);
    border-bottom: 1px solid var(--zh-border);
    padding: 20px 0;
}
.zh_trust_grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}
.zh_trust_item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--zh-text);
    font-weight: 500;
}
.zh_trust_icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--zh-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zh-primary);
    font-size: 15px;
    flex-shrink: 0;
}
.zh_trust_num {
    font-weight: 700;
    color: var(--zh-primary);
}

/* --- ③ 服务分类区 --- */
.zh_categories {
    padding: 60px 0;
    background: var(--zh-bg);
}
.zh_category_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.zh_category_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    padding: 28px 16px;
    border-radius: var(--zh-radius-lg);
    text-decoration: none;
    color: var(--zh-text);
    background: var(--zh-bg);
    border: 1px solid var(--zh-border);
    transition: all 0.3s;
}
.zh_category_card:hover {
    color: var(--zh-primary);
    transform: translateY(-4px);
    box-shadow: var(--zh-shadow-md);
    border-color: var(--zh-primary);
}
.zh_category_icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--zh-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--zh-primary);
    transition: all 0.3s;
}
.zh_category_card:hover .zh_category_icon {
    background: var(--zh-gradient-primary);
    color: #fff;
}
.zh_category_name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.zh_category_count {
    font-size: 12px;
    color: var(--zh-text-muted);
}

/* --- ④ 最新信息区 --- */
.zh_latest {
    padding: 60px 0;
    background: var(--zh-bg-light);
}

/* Tab 切换栏 */
.zh_tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}
.zh_tab {
    display: inline-block;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--zh-text-secondary);
    background: var(--zh-bg);
    border: 1px solid var(--zh-border);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}
.zh_tab:hover {
    color: var(--zh-primary);
    border-color: var(--zh-primary);
}
.zh_tab.active {
    background: var(--zh-gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* Tab 内容 */
.zh_tab_content {
    display: none;
}
.zh_tab_content.active {
    display: block;
}

/* 横向信息卡片网格 */
.zh_info_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.zh_info_hcard {
    display: flex;
    background: var(--zh-bg);
    border-radius: var(--zh-radius);
    border: 1px solid var(--zh-border);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.zh_info_hcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--zh-shadow-hover);
    color: inherit;
}
.zh_info_hcard_thumb {
    flex-shrink: 0;
    width: 140px;
    min-height: 130px;
    background: #F0F4F8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.zh_info_hcard_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.zh_info_hcard_body {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.zh_info_hcard_tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--zh-primary-bg);
    color: var(--zh-primary);
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 6px;
    width: fit-content;
}
.zh_info_hcard_title {
    font-size: 15px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh_info_hcard:hover .zh_info_hcard_title {
    color: var(--zh-primary);
}
.zh_info_hcard_desc {
    font-size: 13px;
    color: var(--zh-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: 8px;
}
.zh_info_hcard_meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--zh-text-muted);
}
.zh_info_hcard_meta i {
    margin-right: 3px;
}

/* 查看全部 */
.zh_view_all {
    text-align: center;
    margin-top: 35px;
}
.zh_view_all a {
    color: var(--zh-primary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}
.zh_view_all a i {
    margin-left: 4px;
    transition: transform 0.3s;
}
.zh_view_all a:hover {
    color: var(--zh-primary-dark);
}
.zh_view_all a:hover i {
    transform: translateX(4px);
}

/* --- ⑤ 平台介绍区 --- */
.zh_about {
    padding: 70px 0;
    background: var(--zh-bg);
}
.zh_about_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.zh_about_label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--zh-primary);
    background: var(--zh-primary-bg);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.zh_about_title {
    font-size: 26px;
    font-weight: 700;
    color: var(--zh-dark);
    margin: 0 0 16px;
    line-height: 1.4;
}
.zh_about_text {
    font-size: 15px;
    color: var(--zh-text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}
.zh_about_features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.zh_about_features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--zh-text);
}
.zh_about_features li i {
    color: var(--zh-primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 右侧数据卡片 */
.zh_about_stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.zh_about_stat_card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--zh-bg);
    border-radius: var(--zh-radius-lg);
    border: 1px solid var(--zh-border);
    box-shadow: var(--zh-shadow);
    border-left: 4px solid var(--zh-primary);
    transition: all 0.3s;
}
.zh_about_stat_card:hover {
    transform: translateX(4px);
    box-shadow: var(--zh-shadow-md);
}
.zh_about_stat_icon {
    width: 50px;
    height: 50px;
    border-radius: var(--zh-radius);
    background: var(--zh-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zh-primary);
    font-size: 22px;
    flex-shrink: 0;
}
.zh_about_stat_num {
    font-size: 32px;
    font-weight: 700;
    color: var(--zh-dark);
    line-height: 1.2;
}
.zh_about_stat_label {
    font-size: 14px;
    color: var(--zh-text-secondary);
    margin-top: 2px;
}

/* --- ⑥ 入驻流程区（时间轴） --- */
.zh_process {
    padding: 60px 0;
    background: var(--zh-bg-gray);
}
.zh_process_timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
/* 连接线 */
.zh_process_timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 2px;
    background: var(--zh-border);
    z-index: 0;
}
.zh_process_step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}
.zh_process_num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--zh-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(8,145,178,0.3);
    transition: all 0.3s;
}
.zh_process_step:hover .zh_process_num {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(8,145,178,0.4);
}
.zh_process_icon {
    font-size: 24px;
    color: var(--zh-primary);
    margin-bottom: 10px;
}
.zh_process_title {
    font-size: 16px;
    font-weight: 600;
    color: var(--zh-dark);
    margin-bottom: 6px;
}
.zh_process_desc {
    font-size: 13px;
    color: var(--zh-text-secondary);
    line-height: 1.5;
}

/* --- ⑦ 优质程序员 --- */
.zh_merchants {
    padding: 60px 0;
    background: var(--zh-bg);
}
.zh_merchant_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.zh_merchant_card {
    background: var(--zh-bg);
    border-radius: var(--zh-radius-lg);
    overflow: hidden;
    box-shadow: var(--zh-shadow);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--zh-border);
}
.zh_merchant_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zh-shadow-hover);
}
.zh_merchant_card_top {
    height: 4px;
    background: var(--zh-gradient-primary);
    transition: height 0.3s;
}
.zh_merchant_card:hover .zh_merchant_card_top {
    height: 6px;
}
.zh_merchant_card_body {
    padding: 28px 20px;
}
.zh_merchant_avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--zh-bg);
    box-shadow: var(--zh-shadow-sm);
    background: var(--zh-primary-bg);
}
.zh_merchant_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.zh_merchant_avatar_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zh-gradient-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.zh_merchant_name {
    font-size: 16px;
    font-weight: 600;
    color: var(--zh-text);
    margin-bottom: 6px;
}
.zh_merchant_name a {
    color: inherit;
}
.zh_merchant_name a:hover {
    color: var(--zh-primary);
}
.zh_merchant_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;
    margin-bottom: 8px;
}
.zh_merchant_count {
    font-size: 13px;
    color: var(--zh-text-secondary);
    margin-bottom: 10px;
}
.zh_merchant_desc {
    font-size: 13px;
    color: var(--zh-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}
.zh_merchant_card .zh_btn_outline {
    font-size: 13px;
    padding: 8px 20px;
}

/* --- ⑧ CTA 行动号召 --- */
.zh_cta {
    position: relative;
    padding: 70px 0;
    background: var(--zh-gradient-hero);
    overflow: hidden;
    text-align: center;
}
.zh_cta::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 50px 50px;
}
.zh_cta_content {
    position: relative;
    z-index: 2;
}
.zh_cta_title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.zh_cta_desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}
.zh_cta_btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 991px) {
    .zh_hero {
        min-height: auto;
    }
    .zh_hero_inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 0 50px;
    }
    .zh_hero_desc {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    .zh_hero_search {
        margin: 0 auto 16px;
        max-width: 480px;
    }
    .zh_hero_tags {
        justify-content: center;
    }
    .zh_hero_right {
        display: none;
    }
    .zh_trust_grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    .zh_trust_item {
        flex: 0 0 calc(50% - 10px);
        justify-content: center;
    }
    .zh_info_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zh_about_grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .zh_process_timeline {
        flex-wrap: wrap;
        gap: 30px;
    }
    .zh_process_timeline::before {
        display: none;
    }
    .zh_process_step {
        flex: 0 0 calc(50% - 15px);
    }
    .zh_merchant_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .zh_hero_inner {
        padding: 80px 0 40px;
    }
    .zh_hero_title {
        font-size: 26px;
    }
    .zh_hero_desc {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .zh_hero_search {
        border-radius: var(--zh-radius);
    }
    .zh_hero_search input {
        padding: 0 15px;
        font-size: 14px;
        height: 46px;
    }
    .zh_hero_search button {
        padding: 0 18px;
        font-size: 14px;
    }
    .zh_trust_item {
        flex: 0 0 100%;
    }
    .zh_categories,
    .zh_latest,
    .zh_about,
    .zh_process,
    .zh_merchants,
    .zh_cta {
        padding: 40px 0;
    }
    .zh_category_card {
        width: calc(50% - 10px);
    }
    .zh_info_grid {
        grid-template-columns: 1fr;
    }
    .zh_info_hcard {
        flex-direction: column;
    }
    .zh_info_hcard_thumb {
        width: 100%;
        height: 160px;
    }
    .zh_about_stats {
        gap: 15px;
    }
    .zh_about_stat_card {
        padding: 18px 20px;
    }
    .zh_about_stat_num {
        font-size: 26px;
    }
    .zh_process_step {
        flex: 0 0 100%;
    }
    .zh_merchant_grid {
        grid-template-columns: 1fr;
    }
    .zh_cta_title {
        font-size: 22px;
    }
    .zh_cta_btns {
        flex-direction: column;
        align-items: center;
    }
}
