/* ============================================
   infos.css - 信息列表页 & 详情页样式
   全新布局：列表页水平卡片 + 详情页沉浸式 Hero
   ============================================ */

/* ==============================
   A. 信息列表页
   ============================== */

/* ① 分类筛选条（水平标签，替代侧边栏） */
.zh_infos_filter {
    background: var(--zh-bg);
    border-bottom: 1px solid var(--zh-border);
    padding: 14px 0;
}

.zh_infos_filter_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.zh_infos_filter_pills {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.zh_infos_filter_pills::-webkit-scrollbar {
    display: none;
}

.zh_infos_filter_pill {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--zh-text-secondary);
    background: var(--zh-bg-gray);
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.zh_infos_filter_pill:hover {
    color: var(--zh-primary);
    background: var(--zh-primary-bg);
}

.zh_infos_filter_pill.active {
    color: #fff;
    background: var(--zh-gradient-primary);
}

/* ② 搜索 + 排序工具栏 */
.zh_infos_toolbar {
    background: var(--zh-bg-light);
    padding: 20px 0;
}

.zh_infos_toolbar_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.zh_infos_search_form {
    display: flex;
    align-items: center;
    background: var(--zh-bg);
    border-radius: 24px;
    padding: 0 6px 0 18px;
    height: 44px;
    box-shadow: var(--zh-shadow);
    border: 1px solid var(--zh-border);
    flex: 1;
    max-width: 440px;
    transition: border-color 0.3s;
}

.zh_infos_search_form:focus-within {
    border-color: var(--zh-primary);
}

.zh_infos_search_form i {
    color: #A0AEC0;
    margin-right: 10px;
    font-size: 14px;
}

.zh_infos_search_form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--zh-text);
    font-family: inherit;
}

.zh_infos_search_form input::placeholder {
    color: #A0AEC0;
}

.zh_infos_search_form button {
    background: var(--zh-gradient-primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    height: 34px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
}

.zh_infos_search_form button:hover {
    box-shadow: 0 4px 12px rgba(8,145,178,0.3);
}

.zh_infos_toolbar_right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.zh_infos_count {
    font-size: 14px;
    color: var(--zh-text-secondary);
}

.zh_infos_count strong {
    color: var(--zh-primary);
    font-weight: 600;
}

.zh_infos_sort {
    display: flex;
    gap: 4px;
    background: var(--zh-bg);
    border-radius: 8px;
    padding: 4px;
    box-shadow: var(--zh-shadow-sm);
}

.zh_infos_sort a {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--zh-text-secondary);
    transition: all 0.3s;
}

.zh_infos_sort a:hover {
    color: var(--zh-primary);
}

.zh_infos_sort a.active {
    background: var(--zh-gradient-primary);
    color: #fff;
}

/* ③ 信息横向卡片列表（图左文右） */
.zh_infos_list_section {
    background: var(--zh-bg-light);
    padding: 0 0 60px;
}

.zh_infos_hlist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zh_infos_hcard {
    display: flex;
    background: var(--zh-bg);
    border-radius: var(--zh-radius-lg);
    box-shadow: var(--zh-shadow);
    overflow: hidden;
    transition: all 0.3s;
    color: inherit;
}

.zh_infos_hcard:hover {
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-3px);
    color: inherit;
}

.zh_infos_hcard_img {
    width: 240px;
    min-height: 170px;
    flex-shrink: 0;
    background: var(--zh-primary-bg);
    overflow: hidden;
    position: relative;
}

.zh_infos_hcard_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.zh_infos_hcard:hover .zh_infos_hcard_img img {
    transform: scale(1.05);
}

.zh_infos_hcard_noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--zh-primary-light);
}

.zh_infos_hcard_body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.zh_infos_hcard_cat {
    display: inline-block;
    background: var(--zh-primary-bg);
    color: var(--zh-primary);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    width: fit-content;
}

.zh_infos_hcard_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.zh_infos_hcard:hover .zh_infos_hcard_title {
    color: var(--zh-primary);
}

.zh_infos_hcard_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_infos_hcard_meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #A0AEC0;
}

.zh_infos_hcard_meta i {
    margin-right: 4px;
}

.zh_infos_hcard_merchant {
    color: var(--zh-primary);
    font-weight: 500;
}

/* ④ 热门推荐底部区域 */
.zh_infos_hot_section {
    background: var(--zh-bg);
    padding: 48px 0;
}

.zh_infos_hot_title {
    font-size: 20px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0 0 24px;
    padding-left: 14px;
    position: relative;
}

.zh_infos_hot_title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: var(--zh-gradient-primary);
    border-radius: 2px;
}

.zh_infos_hot_title i {
    color: var(--zh-accent);
    margin-right: 6px;
}

.zh_infos_hot_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.zh_infos_hot_card {
    background: var(--zh-bg-gray);
    border-radius: var(--zh-radius);
    overflow: hidden;
    transition: all 0.3s;
    display: block;
    color: inherit;
}

.zh_infos_hot_card:hover {
    box-shadow: var(--zh-shadow-md);
    transform: translateY(-3px);
    color: inherit;
}

.zh_infos_hot_card_img {
    position: relative;
    padding-top: 62%;
    background: var(--zh-primary-bg);
    overflow: hidden;
}

.zh_infos_hot_card_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.zh_infos_hot_card:hover .zh_infos_hot_card_img img {
    transform: scale(1.05);
}

.zh_infos_hot_card_img .zh_no_img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--zh-primary-light);
}

.zh_infos_hot_card_body {
    padding: 12px 14px;
}

.zh_infos_hot_card_title {
    font-size: 14px;
    font-weight: 500;
    color: var(--zh-text);
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.zh_infos_hot_card:hover .zh_infos_hot_card_title {
    color: var(--zh-primary);
}

.zh_infos_hot_card_views {
    font-size: 12px;
    color: #A0AEC0;
}

.zh_infos_hot_card_views i {
    margin-right: 3px;
}

/* ⑤ 分页 */
.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-bg);
    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-primary);
    color: #fff;
}

/* ⑥ 空状态 */
.zh_infos_empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--zh-bg);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
}

.zh_infos_empty i {
    font-size: 56px;
    color: var(--zh-primary-light);
    display: block;
    margin-bottom: 20px;
}

.zh_infos_empty h3 {
    font-size: 18px;
    color: var(--zh-text);
    margin: 0 0 8px;
}

.zh_infos_empty p {
    color: #A0AEC0;
    font-size: 14px;
    margin: 0 0 24px;
}


/* ==============================
   B. 信息详情页（沉浸式 Hero + 单栏）
   ============================== */

/* ① 沉浸式 Hero */
.zh_info_hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.zh_info_hero_bg {
    position: absolute;
    inset: 0;
    background: var(--zh-dark);
}

.zh_info_hero_bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.zh_info_hero_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,43,60,0.95) 0%, rgba(15,43,60,0.6) 40%, rgba(15,43,60,0.3) 100%);
    z-index: 1;
}

.zh_info_hero_content {
    position: relative;
    z-index: 2;
    padding: 100px 0 40px;
    color: #fff;
}

/* 面包屑亮色版 */
.zh_breadcrumb_light {
    margin-bottom: 20px;
}

.zh_breadcrumb_light a {
    color: rgba(255,255,255,0.6) !important;
}

.zh_breadcrumb_light a:hover {
    color: #fff !important;
}

.zh_breadcrumb_light span {
    color: rgba(255,255,255,0.8);
}

.zh_breadcrumb_light .zh_breadcrumb_divider {
    color: rgba(255,255,255,0.3) !important;
}

.zh_info_hero_tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.zh_info_hero_title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.35;
    max-width: 800px;
}

.zh_info_hero_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

.zh_info_hero_meta i {
    margin-right: 5px;
}

.zh_info_hero_meta a {
    color: var(--zh-primary-light) !important;
}

.zh_info_hero_meta a:hover {
    color: #fff !important;
}

/* ② 联系 + 服务商信息条 */
.zh_info_bar {
    background: var(--zh-bg);
    box-shadow: var(--zh-shadow-md);
    position: relative;
    z-index: 3;
    border-bottom: 1px solid var(--zh-border);
}

.zh_info_bar_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.zh_info_bar_contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.zh_info_bar_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--zh-text-secondary);
}

.zh_info_bar_item i {
    color: var(--zh-primary);
    font-size: 14px;
}

.zh_info_bar_item a {
    color: var(--zh-primary);
    font-weight: 500;
}

.zh_info_bar_merchant {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--zh-bg-gray);
    border-radius: var(--zh-radius);
    transition: all 0.3s;
    color: inherit;
    flex-shrink: 0;
}

.zh_info_bar_merchant:hover {
    background: var(--zh-primary-bg);
    color: inherit;
}

.zh_info_bar_merchant_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--zh-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--zh-primary);
    flex-shrink: 0;
}

.zh_info_bar_merchant_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_info_bar_merchant_avatar span {
    font-size: 16px;
    font-weight: 700;
    color: var(--zh-primary);
}

.zh_info_bar_merchant_info {
    display: flex;
    flex-direction: column;
}

.zh_info_bar_merchant_name {
    font-size: 14px;
    font-weight: 600;
    color: var(--zh-text);
}

.zh_info_bar_merchant_badge {
    font-size: 11px;
    color: var(--zh-success);
}

.zh_info_bar_merchant > i {
    color: #A0AEC0;
    font-size: 12px;
    margin-left: 4px;
}

/* ③ 主内容区（单栏居中） */
.zh_info_content_section {
    background: var(--zh-bg-light);
    padding: 36px 0 20px;
}

.zh_info_content_wrap {
    max-width: 860px;
    margin: 0 auto;
}

/* 区块标题 */
.zh_info_section_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_info_section_title i {
    color: var(--zh-primary);
    font-size: 16px;
}

/* 服务参数 */
.zh_info_params_card {
    background: var(--zh-bg);
    border-radius: var(--zh-radius-lg);
    box-shadow: var(--zh-shadow);
    padding: 24px 28px;
    margin-bottom: 24px;
}

.zh_info_params_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--zh-border);
    border: 1px solid var(--zh-border);
    border-radius: 8px;
    overflow: hidden;
}

.zh_info_param_cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--zh-bg);
}

.zh_info_param_cell:nth-child(odd) {
    background: var(--zh-bg-gray);
}

.zh_info_param_label {
    font-size: 12px;
    color: #A0AEC0;
    font-weight: 500;
}

.zh_info_param_value {
    font-size: 14px;
    color: var(--zh-text);
    font-weight: 500;
}

.zh_info_param_value a {
    color: var(--zh-primary);
}

.zh_info_param_value a:hover {
    color: var(--zh-primary-dark);
}

/* 详细内容卡片 */
.zh_info_article_card {
    background: var(--zh-bg);
    border-radius: var(--zh-radius-lg);
    box-shadow: var(--zh-shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.zh_info_article_body {
    line-height: 1.9;
    font-size: 15px;
    color: var(--zh-text);
}

.zh_info_article_body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}

.zh_info_article_body p {
    margin-bottom: 16px;
}

.zh_info_article_body h2,
.zh_info_article_body h3 {
    color: var(--zh-text);
    margin: 24px 0 12px;
    font-weight: 600;
}

/* 标签行 */
.zh_info_tags_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--zh-border);
    margin-top: 28px;
    font-size: 14px;
    color: #A0AEC0;
}

.zh_info_tags_row a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--zh-primary-bg);
    color: var(--zh-primary);
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s;
}

.zh_info_tags_row a:hover {
    background: var(--zh-primary);
    color: #fff;
}

/* ④ 推荐区域（底部全宽） */
.zh_info_recommend {
    background: var(--zh-bg);
    padding: 48px 0 60px;
}

.zh_info_recommend_block {
    margin-bottom: 40px;
}

.zh_info_recommend_block:last-child {
    margin-bottom: 0;
}

.zh_info_recommend_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.zh_info_recommend_card {
    background: var(--zh-bg-gray);
    border-radius: var(--zh-radius);
    overflow: hidden;
    transition: all 0.3s;
    display: block;
    color: inherit;
}

.zh_info_recommend_card:hover {
    box-shadow: var(--zh-shadow-md);
    transform: translateY(-3px);
    color: inherit;
}

.zh_info_recommend_img {
    position: relative;
    padding-top: 62%;
    background: var(--zh-primary-bg);
    overflow: hidden;
}

.zh_info_recommend_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.zh_info_recommend_card:hover .zh_info_recommend_img img {
    transform: scale(1.05);
}

.zh_info_recommend_noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--zh-primary-light);
}

.zh_info_recommend_body {
    padding: 12px 14px;
}

.zh_info_recommend_body h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--zh-text);
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.zh_info_recommend_card:hover .zh_info_recommend_body h4 {
    color: var(--zh-primary);
}

.zh_info_recommend_body span {
    font-size: 12px;
    color: #A0AEC0;
}

.zh_info_recommend_body span i {
    margin-right: 3px;
}


/* ==============================
   C. 公共面包屑
   ============================== */
.zh_breadcrumb {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.zh_breadcrumb a {
    transition: color 0.3s;
}

.zh_breadcrumb_divider {
    color: var(--zh-border);
    font-size: 12px;
}


/* ==============================
   D. 响应式
   ============================== */

/* --- 列表页 --- */
@media (max-width: 992px) {
    .zh_infos_hcard_img {
        width: 200px;
    }
    .zh_infos_hot_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .zh_infos_filter_inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .zh_infos_toolbar_inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .zh_infos_search_form {
        max-width: 100%;
    }
    .zh_infos_toolbar_right {
        justify-content: space-between;
    }
    .zh_infos_hcard {
        flex-direction: column;
    }
    .zh_infos_hcard_img {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }
    .zh_infos_hcard_body {
        padding: 16px;
    }
    .zh_infos_hcard_title {
        font-size: 16px;
    }
    .zh_infos_hcard_meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    .zh_infos_hot_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 详情页 --- */
@media (max-width: 768px) {
    .zh_info_hero {
        min-height: 320px;
    }
    .zh_info_hero_content {
        padding: 80px 0 30px;
    }
    .zh_info_hero_title {
        font-size: 22px;
    }
    .zh_info_hero_meta {
        gap: 14px;
    }
    .zh_info_bar_inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .zh_info_bar_contact {
        flex-wrap: wrap;
        gap: 14px;
    }
    .zh_info_bar_merchant {
        width: 100%;
    }
    .zh_info_params_grid {
        grid-template-columns: 1fr;
    }
    .zh_info_params_card {
        padding: 20px;
    }
    .zh_info_article_card {
        padding: 20px;
    }
    .zh_info_recommend_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
