/* ========== 列表页样式 - 软件开发信息平台 ========== */

/* ========== 页面顶栏（面包屑导航条） ========== */
.zh_page_topbar {
    background: var(--bg-white, #fff);
    border-bottom: 1px solid var(--border, #D8E0EA);
    padding: 20px 0;
    margin-top: 0;
}

.zh_topbar_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zh_topbar_left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zh_topbar_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading, #0F1E33);
    margin: 0;
    white-space: nowrap;
}

.zh_topbar_breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light, #7A8FA5);
}

.zh_topbar_breadcrumb a {
    color: var(--text-light, #7A8FA5);
    text-decoration: none;
    transition: color 0.2s;
}

.zh_topbar_breadcrumb a:hover {
    color: var(--gold, #F5A623);
}

.zh_topbar_sep {
    color: var(--border, #D8E0EA);
}

.zh_topbar_current {
    color: var(--text, #3D4E63);
    font-weight: 500;
}

.zh_topbar_right {
    font-size: 14px;
    color: var(--text-light, #7A8FA5);
}

.zh_topbar_count strong {
    color: var(--gold, #F5A623);
    font-weight: 700;
}

/* ========== 分类标签栏 + 搜索 ========== */
.zh_filter_bar {
    background: var(--bg-white, #fff);
    border-bottom: 1px solid var(--border, #D8E0EA);
    padding: 16px 0;
}

.zh_filter_bar_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.zh_category_tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.zh_category_tabs::-webkit-scrollbar {
    display: none;
}

.zh_cat_pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text, #3D4E63);
    background: var(--bg-light, #F5F7FA);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.zh_cat_pill:hover {
    color: var(--gold-dark, #D88E1A);
    background: var(--gold-bg, #FFF8EC);
    border-color: var(--gold, #F5A623);
}

.zh_cat_pill.active {
    background: var(--gold, #F5A623);
    color: #fff;
    border-color: var(--gold, #F5A623);
}

.zh_inline_search {
    display: flex;
    align-items: center;
    background: var(--bg-light, #F5F7FA);
    border-radius: 8px;
    border: 1px solid var(--border, #D8E0EA);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.zh_inline_search:focus-within {
    border-color: var(--gold, #F5A623);
}

.zh_inline_search input {
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text, #3D4E63);
    outline: none;
    width: 200px;
}

.zh_inline_search input::placeholder {
    color: var(--text-light, #7A8FA5);
}

.zh_inline_search button {
    border: none;
    background: var(--gold, #F5A623);
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.zh_inline_search button:hover {
    background: var(--gold-dark, #D88E1A);
}

/* ========== 排序栏 ========== */
.zh_sort_strip {
    background: var(--bg-light, #F5F7FA);
    padding: 12px 0;
    border-bottom: 1px solid var(--border, #D8E0EA);
}

.zh_sort_inner {
    display: flex;
    align-items: center;
}

.zh_sort_tabs {
    display: flex;
    gap: 6px;
}

.zh_sort_tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-light, #7A8FA5);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.zh_sort_tab:hover {
    color: var(--text, #3D4E63);
    background: var(--bg-white, #fff);
}

.zh_sort_tab.active {
    color: var(--gold-dark, #D88E1A);
    background: var(--bg-white, #fff);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ========== 主内容区 ========== */
.zh_list_main {
    padding: 40px 0 60px;
    background: var(--bg-light, #F5F7FA);
    min-height: 400px;
}

/* ========== 2列横向卡片列表 ========== */
.zh_card_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.zh_hcard {
    display: flex;
    background: var(--bg-white, #fff);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border, #D8E0EA);
    transition: all 0.3s ease;
}

.zh_hcard:hover {
    border-color: var(--gold, #F5A623);
    box-shadow: 0 8px 30px rgba(15, 30, 51, 0.08);
    transform: translateY(-3px);
}

.zh_hcard_img {
    position: relative;
    width: 240px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-light, #F5F7FA);
}

.zh_hcard_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.zh_hcard:hover .zh_hcard_img img {
    transform: scale(1.05);
}

.zh_hcard_hot {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--gold, #F5A623);
    color: #fff;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.zh_hcard_body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zh_hcard_cat {
    display: inline-block;
    padding: 3px 10px;
    background: var(--tech-blue-bg, #EDF6FC);
    color: var(--tech-blue, #2B8FC4);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.zh_hcard_title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading, #0F1E33);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_hcard:hover .zh_hcard_title {
    color: var(--gold-dark, #D88E1A);
}

.zh_hcard_desc {
    font-size: 14px;
    color: var(--text-light, #7A8FA5);
    line-height: 1.7;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_hcard_foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border, #D8E0EA);
}

.zh_hcard_meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light, #7A8FA5);
}

.zh_hcard_meta i {
    margin-right: 4px;
    font-size: 12px;
}

.zh_hcard_more {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold, #F5A623);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.zh_hcard:hover .zh_hcard_more i {
    transform: translateX(4px);
    transition: transform 0.2s;
}

/* ========== 分页 ========== */
.zh_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.zh_pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zh_pagination .page-item {
    list-style: none;
}

.zh_pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-white, #fff);
    color: var(--text, #3D4E63);
    border: 1px solid var(--border, #D8E0EA);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.zh_pagination .page-link:hover {
    border-color: var(--gold, #F5A623);
    color: var(--gold, #F5A623);
}

.zh_pagination .page-item.active .page-link {
    background: var(--gold, #F5A623);
    color: #fff;
    border-color: var(--gold, #F5A623);
}

.zh_pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 空状态 ========== */
.zh_empty_state {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-white, #fff);
    border-radius: 12px;
    border: 1px solid var(--border, #D8E0EA);
}

.zh_empty_icon {
    font-size: 72px;
    color: var(--border, #D8E0EA);
    margin-bottom: 20px;
}

.zh_empty_title {
    font-size: 22px;
    font-weight: 600;
    color: var(--heading, #0F1E33);
    margin-bottom: 12px;
}

.zh_empty_desc {
    font-size: 15px;
    color: var(--text-light, #7A8FA5);
    max-width: 400px;
    margin: 0 auto;
}

/* ========== 底部热门推荐横向区 ========== */
.zh_hot_section {
    padding: 50px 0;
    background: var(--bg-white, #fff);
    border-top: 1px solid var(--border, #D8E0EA);
}

.zh_hot_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.zh_hot_title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading, #0F1E33);
}

.zh_hot_title i {
    color: var(--gold, #F5A623);
    margin-right: 8px;
}

.zh_hot_more {
    font-size: 14px;
    color: var(--gold, #F5A623);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.zh_hot_more:hover {
    color: var(--gold-dark, #D88E1A);
}

.zh_hot_scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border, #D8E0EA) transparent;
}

.zh_hot_scroll::-webkit-scrollbar {
    height: 4px;
}

.zh_hot_scroll::-webkit-scrollbar-thumb {
    background: var(--border, #D8E0EA);
    border-radius: 4px;
}

.zh_hot_card {
    flex: 0 0 220px;
    background: var(--bg-white, #fff);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border, #D8E0EA);
    text-decoration: none;
    transition: all 0.2s;
}

.zh_hot_card:hover {
    border-color: var(--gold, #F5A623);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.zh_hot_card_img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--bg-light, #F5F7FA);
}

.zh_hot_card_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.zh_hot_card:hover .zh_hot_card_img img {
    transform: scale(1.05);
}

.zh_hot_card_body {
    padding: 14px 16px;
}

.zh_hot_card_body h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading, #0F1E33);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_hot_card:hover .zh_hot_card_body h4 {
    color: var(--gold-dark, #D88E1A);
}

.zh_hot_card_views {
    font-size: 12px;
    color: var(--text-light, #7A8FA5);
}

.zh_hot_card_views i {
    margin-right: 4px;
}

/* ========== 底部 CTA ========== */
.zh_list_cta {
    padding: 50px 0;
    background: var(--primary, #0F1E33);
}

.zh_list_cta_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.zh_list_cta_text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.zh_list_cta_text p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.zh_list_cta_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gold, #F5A623);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.2s;
}

.zh_list_cta_btn:hover {
    background: var(--gold-light, #FFBA42);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .zh_card_list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .zh_topbar_inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .zh_topbar_left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .zh_topbar_title {
        font-size: 20px;
    }

    .zh_filter_bar_inner {
        flex-direction: column;
        align-items: stretch;
    }

    .zh_inline_search {
        width: 100%;
    }

    .zh_inline_search input {
        width: 100%;
    }

    .zh_hcard {
        flex-direction: column;
    }

    .zh_hcard_img {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }

    .zh_list_main {
        padding: 30px 0 40px;
    }

    .zh_hot_card {
        flex: 0 0 180px;
    }

    .zh_list_cta_inner {
        flex-direction: column;
        text-align: center;
    }

    .zh_list_cta_text h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .zh_page_topbar {
        padding: 16px 0;
    }

    .zh_topbar_title {
        font-size: 18px;
    }

    .zh_hcard_body {
        padding: 18px;
    }

    .zh_hcard_title {
        font-size: 16px;
    }
}
