/* ============================================
   home.css - 首页专属样式
   ============================================ */

/* --- ① Hero Banner --- */
.zh_hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--zh-dark-blue);
}
.zh_hero_bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}
.zh_hero_overlay {
    position: absolute;
    inset: 0;
    /* 左侧较深（文案区），右侧较浅（露出图片） */
    background: linear-gradient(to right, rgba(15,35,64,0.88) 0%, rgba(15,35,64,0.75) 40%, rgba(26,54,93,0.45) 100%);
}
/* 几何网格装饰 */
.zh_hero_pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    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_content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}
.zh_hero_title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    max-width: 500px;
}
.zh_hero_desc {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 460px;
}
.zh_hero_search {
    display: flex;
    max-width: 480px;
    margin: 0 0 35px;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.zh_hero_search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 24px;
    font-size: 15px;
    height: 48px;
    color: var(--zh-text);
}
.zh_hero_search input::placeholder {
    color: #A0AEC0;
}
.zh_hero_search button {
    background: var(--zh-gradient);
    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_stats {
    display: flex;
    justify-content: flex-start;
    gap: 50px;
}
.zh_hero_stat_num {
    font-size: 32px;
    font-weight: 700;
    color: var(--zh-cyan);
    line-height: 1.2;
}
.zh_hero_stat_label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* --- ② 推荐信息 --- */
.zh_featured {
    padding: 70px 0;
    background: var(--zh-bg-light);
}

/* 顶部横向大卡片 */
.zh_featured_hero {
    display: flex;
    background: #fff;
    border-radius: var(--zh-radius-lg);
    overflow: hidden;
    box-shadow: var(--zh-shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    margin-bottom: 24px;
}
.zh_featured_hero:hover {
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-4px);
    color: inherit;
}
.zh_featured_hero_img {
    width: 420px;
    height: 240px;
    flex-shrink: 0;
    background: #F0F4F8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zh_featured_hero_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.zh_featured_hero_body {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.zh_featured_hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
}
.zh_featured_hero_title {
    font-size: 22px;
    font-weight: 700;
    color: var(--zh-dark-blue);
    margin: 8px 0 12px;
    line-height: 1.4;
}
.zh_featured_hero_desc {
    font-size: 14px;
    color: var(--zh-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh_featured_hero_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--zh-blue);
    margin-top: auto;
}
.zh_featured_hero_link i {
    transition: transform 0.3s;
}
.zh_featured_hero:hover .zh_featured_hero_link i {
    transform: translateX(4px);
}

/* 下方三列卡片 */
.zh_featured_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.zh_featured_card {
    position: relative;
    background: #fff;
    border-radius: var(--zh-radius-lg);
    overflow: hidden;
    box-shadow: var(--zh-shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.zh_featured_card:hover {
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-4px);
    color: inherit;
}
.zh_featured_card_rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: var(--zh-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(43,108,176,0.3);
}
.zh_featured_card_img {
    width: 100%;
    height: 180px;
    background: #F0F4F8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zh_featured_card_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.zh_featured_card_body {
    padding: 18px 20px;
}
.zh_featured_card_body .zh_info_title {
    font-size: 15px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- ③ 平台介绍 --- */
.zh_about {
    padding: 70px 0;
    background: #fff;
}
.zh_about_row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}
.zh_about_row:last-child {
    margin-bottom: 0;
}
.zh_about_row.zh_reverse {
    flex-direction: row-reverse;
}
.zh_about_img {
    flex: 1;
    min-height: 260px;
    border-radius: var(--zh-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.zh_about_img_blue {
    background: linear-gradient(135deg, #EBF8FF, #BEE3F8);
}
.zh_about_img_purple {
    background: linear-gradient(135deg, #FAF5FF, #E9D8FD);
}
.zh_about_img i {
    font-size: 80px;
    opacity: 0.3;
}
.zh_about_img_icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px;
}
.zh_about_img_icons i {
    font-size: 36px;
    opacity: 0.5;
}
.zh_about_text {
    flex: 1;
}
.zh_about_text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--zh-dark-blue);
    margin-bottom: 15px;
}
.zh_about_text p {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 20px;
}
.zh_about_checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.zh_about_check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--zh-text);
}
.zh_about_check i {
    color: var(--zh-success);
    font-size: 16px;
}

/* --- ④ 最新发布 --- */
.zh_latest {
    padding: 70px 0;
    background: var(--zh-bg-light);
}
.zh_latest_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* --- ⑤ 使用流程 --- */
.zh_process {
    padding: 70px 0;
    background: #fff;
}
.zh_process_steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}
.zh_process_step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 15px;
}
.zh_process_step_num {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--zh-cyan);
    margin-bottom: 12px;
}
.zh_process_step_icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--zh-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(43,108,176,0.3);
}
.zh_process_step_title {
    font-size: 17px;
    font-weight: 600;
    color: var(--zh-dark-blue);
    margin-bottom: 6px;
}
.zh_process_step_desc {
    font-size: 13px;
    color: var(--zh-text-secondary);
    line-height: 1.5;
}
/* 步骤之间连接线 */
.zh_process_step::after {
    content: '';
    position: absolute;
    top: 60px;
    left: calc(50% + 50px);
    width: calc(100% - 100px);
    height: 2px;
    border-top: 2px dashed #CBD5E0;
}
.zh_process_step:last-child::after {
    display: none;
}

/* --- ⑥ 优质服务商 --- */
.zh_merchants_section {
    padding: 70px 0;
    background: var(--zh-bg-light);
}
.zh_merchant_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.zh_merchant_card {
    background: #fff;
    border-radius: var(--zh-radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--zh-shadow);
    transition: all 0.3s;
}
.zh_merchant_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zh-shadow-hover);
}
.zh_merchant_avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.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);
}
.zh_merchant_name {
    font-size: 16px;
    font-weight: 600;
    color: var(--zh-text);
    margin-bottom: 8px;
}
.zh_merchant_name a {
    color: inherit;
}
.zh_merchant_name a:hover {
    color: var(--zh-blue);
}
.zh_merchant_verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--zh-success);
    margin-bottom: 8px;
}
.zh_merchant_count {
    font-size: 13px;
    color: var(--zh-text-secondary);
    margin-bottom: 12px;
}
.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;
}

/* --- ⑦ 平台优势 --- */
.zh_advantages {
    padding: 70px 0;
    background: #fff;
}
.zh_advantage_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.zh_advantage_card {
    text-align: center;
    padding: 35px 20px;
    border-radius: var(--zh-radius-lg);
    background: #EBF8FF;
    transition: all 0.3s;
}
.zh_advantage_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zh-shadow-hover);
}
.zh_advantage_icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--zh-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s;
}
.zh_advantage_card:hover .zh_advantage_icon {
    transform: scale(1.1);
}
.zh_advantage_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--zh-dark-blue);
    margin-bottom: 10px;
}
.zh_advantage_desc {
    font-size: 14px;
    color: var(--zh-text-secondary);
    line-height: 1.7;
}

/* --- ⑧ CTA --- */
.zh_cta {
    position: relative;
    padding: 70px 0;
    background: var(--zh-gradient);
    overflow: hidden;
    text-align: center;
}
.zh_cta_pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    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.85);
    margin-bottom: 30px;
}
.zh_cta_btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.zh_cta_btn_white {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: var(--zh-blue);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}
.zh_cta_btn_white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: var(--zh-blue);
}

/* 查看全部链接 */
.zh_view_all {
    text-align: center;
    margin-top: 35px;
}
.zh_view_all a {
    color: var(--zh-blue);
    font-size: 15px;
    font-weight: 500;
}
.zh_view_all a i {
    margin-left: 4px;
    transition: transform 0.3s;
}
.zh_view_all a:hover i {
    transform: translateX(4px);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 991px) {
    .zh_hero { height: 450px; }
    .zh_hero_title { font-size: 28px; max-width: none; }
    .zh_hero_desc { font-size: 16px; max-width: none; }
    .zh_hero_content { text-align: center; }
    .zh_hero_search { margin: 0 auto 30px; }
    .zh_hero_stats { justify-content: center; gap: 30px; }
    .zh_hero_stat_num { font-size: 26px; }
    .zh_hero_overlay { background: linear-gradient(135deg, rgba(15,35,64,0.82), rgba(26,54,93,0.82)); }
    .zh_featured_hero { flex-direction: column; }
    .zh_featured_hero_img { width: 100%; height: 220px; }
    .zh_featured_hero_body { padding: 24px; }
    .zh_featured_cards { grid-template-columns: repeat(3, 1fr); }
    .zh_latest_grid { grid-template-columns: repeat(3, 1fr); }
    .zh_about_row, .zh_about_row.zh_reverse { flex-direction: column; }
    .zh_about_img { min-height: 200px; width: 100%; }
    .zh_process_steps { flex-wrap: wrap; gap: 30px; }
    .zh_process_step::after { display: none; }
    .zh_process_step { flex: 0 0 calc(50% - 15px); }
    .zh_merchant_grid { grid-template-columns: repeat(2, 1fr); }
    .zh_advantage_grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .zh_hero { height: 420px; }
    .zh_hero_title { font-size: 24px; }
    .zh_hero_desc { font-size: 15px; margin-bottom: 20px; }
    .zh_hero_search { border-radius: 8px; }
    .zh_hero_search input { padding: 0 15px; font-size: 14px; }
    .zh_hero_search button { padding: 0 18px; font-size: 14px; }
    .zh_hero_stats { gap: 20px; }
    .zh_hero_stat_num { font-size: 22px; }
    .zh_hero_stat_label { font-size: 12px; }
    .zh_featured, .zh_about, .zh_latest, .zh_process,
    .zh_merchants_section, .zh_advantages, .zh_cta {
        padding: 50px 0;
    }
    .zh_latest_grid { grid-template-columns: repeat(2, 1fr); }
    .zh_featured_cards { grid-template-columns: repeat(2, 1fr); }
    .zh_process_step { flex: 0 0 100%; }
    .zh_merchant_grid { grid-template-columns: 1fr; }
    .zh_advantage_grid { grid-template-columns: 1fr; }
    .zh_cta_title { font-size: 22px; }
    .zh_cta_btns { flex-direction: column; align-items: center; }
}
