/* ============================================================
   听心树 — 信息列表页 / 分类页 / 搜索页  v4.0
   ============================================================ */

/* ===== 筛选条（吸附在 header 下方） ===== */
.zh_filter_bar {
    background: #fff;
    border-bottom: 1px solid var(--zh-border);
    padding: 16px 0;
}
.zh_filter_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.zh_cat_chips { display: flex; flex-wrap: wrap; gap: 9px; }
.zh_cat_chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--zh-text-body);
    background: var(--zh-bg-tint);
    border: 1px solid transparent;
    border-radius: var(--zh-radius-pill);
    transition: all .25s ease;
    white-space: nowrap;
}
.zh_cat_chip i { font-size: 12px; }
.zh_cat_chip em {
    font-style: normal;
    font-size: 11.5px;
    background: #fff;
    color: var(--zh-text-muted);
    padding: 1px 8px;
    border-radius: var(--zh-radius-pill);
}
.zh_cat_chip:hover { color: var(--zh-primary); background: var(--zh-primary-soft); }
.zh_cat_chip.zh_active {
    color: #fff;
    background: var(--zh-grad-primary);
    box-shadow: 0 6px 16px rgba(45, 110, 100, .24);
}
.zh_cat_chip.zh_active em { background: rgba(255, 255, 255, .22); color: #fff; }

.zh_filter_search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--zh-bg-tint);
    border: 1.5px solid transparent;
    border-radius: var(--zh-radius-pill);
    padding: 4px 4px 4px 18px;
    min-width: 280px;
    transition: all .25s ease;
}
.zh_filter_search:focus-within { background: #fff; border-color: var(--zh-primary-mid); }
.zh_filter_search i { color: var(--zh-primary-mid); font-size: 13px; }
.zh_filter_search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--zh-text-primary);
    padding: 8px 0;
}
.zh_filter_search input::placeholder { color: var(--zh-text-muted); }
.zh_filter_search button {
    flex-shrink: 0;
    border: none;
    border-radius: var(--zh-radius-pill);
    background: var(--zh-grad-coral);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 20px;
    cursor: pointer;
    transition: transform .2s ease;
}
.zh_filter_search button:hover { transform: translateY(-1px); }

/* ===== 结果统计 + 排序 ===== */
.zh_result_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.zh_result_count { font-size: 14px; color: var(--zh-text-body); }
.zh_result_count strong { color: var(--zh-primary); font-size: 17px; font-weight: 700; margin: 0 3px; }
.zh_sort_tabs {
    display: inline-flex;
    background: var(--zh-bg-tint);
    border-radius: var(--zh-radius-pill);
    padding: 4px;
    gap: 3px;
}
.zh_sort_tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--zh-text-body);
    border-radius: var(--zh-radius-pill);
    transition: all .22s ease;
}
.zh_sort_tab i { font-size: 11.5px; }
.zh_sort_tab:hover { color: var(--zh-primary); }
.zh_sort_tab.zh_active {
    background: #fff;
    color: var(--zh-primary);
    font-weight: 600;
    box-shadow: var(--zh-shadow-sm);
}

/* ===== 列表：横向长条卡 ===== */
.zh_list_rows { display: flex; flex-direction: column; gap: 18px; }
.zh_list_row {
    display: flex;
    gap: 22px;
    background: #fff;
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-lg);
    padding: 18px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.zh_list_row::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--zh-grad-coral);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .3s ease;
}
.zh_list_row:hover {
    border-color: transparent;
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-3px);
}
.zh_list_row:hover::before { transform: scaleY(1); }

.zh_list_cover {
    flex: 0 0 232px;
    aspect-ratio: 4 / 3;
    border-radius: var(--zh-radius-md);
    overflow: hidden;
    background: var(--zh-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zh-primary-mid);
    font-size: 26px;
    position: relative;
}
.zh_list_cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.zh_list_row:hover .zh_list_cover img { transform: scale(1.04); }
.zh_list_hot {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--zh-grad-coral);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: var(--zh-radius-pill);
    box-shadow: 0 5px 14px rgba(226, 122, 96, .32);
}

.zh_list_body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 6px 4px 0;
}
.zh_list_top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zh_list_title {
    font-size: 17px;
    font-weight: 700;
    color: var(--zh-text-primary);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .22s ease;
}
.zh_list_row:hover .zh_list_title { color: var(--zh-primary); }
.zh_list_desc {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--zh-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh_list_meta {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px dashed var(--zh-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.zh_list_author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--zh-text-primary);
    font-weight: 500;
}
.zh_list_author .zh_avatar_text { width: 30px; height: 30px; font-size: 13px; }
.zh_list_author small {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--zh-text-muted);
    line-height: 1.4;
}
.zh_list_stats {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--zh-text-muted);
}
.zh_list_stats span { display: inline-flex; align-items: center; gap: 5px; }
.zh_list_stats i { font-size: 11.5px; color: var(--zh-primary-mid); }
.zh_list_go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zh-primary);
}
.zh_list_go i { font-size: 11px; transition: transform .22s ease; }
.zh_list_row:hover .zh_list_go i { transform: translateX(4px); }

/* ===== 右侧栏 ===== */
.zh_side_col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.zh_side_card { padding: 20px 22px; }
.zh_side_card .zh_card_head { padding-bottom: 13px; margin-bottom: 14px; }

/* 栏目导航 */
.zh_side_cats { list-style: none; margin: 0; padding: 0; }
.zh_side_cats li { margin-bottom: 8px; }
.zh_side_cats li:last-child { margin-bottom: 0; }
.zh_side_cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--zh-radius-sm);
    background: var(--zh-bg-tint);
    font-size: 13.5px;
    color: var(--zh-text-primary);
    transition: all .22s ease;
}
.zh_side_cats a span { display: inline-flex; align-items: center; gap: 9px; }
.zh_side_cats a i { color: var(--zh-primary); font-size: 12.5px; width: 14px; }
.zh_side_cats a em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--zh-text-muted);
    background: #fff;
    padding: 1px 9px;
    border-radius: var(--zh-radius-pill);
}
.zh_side_cats a:hover, .zh_side_cats a.zh_active { background: var(--zh-primary); color: #fff; }
.zh_side_cats a:hover i, .zh_side_cats a.zh_active i { color: #fff; }
.zh_side_cats a:hover em, .zh_side_cats a.zh_active em { background: rgba(255,255,255,.2); color: #fff; }

/* 热门排行 */
.zh_hot_list { list-style: none; margin: 0; padding: 0; }
.zh_hot_list li { border-bottom: 1px dashed var(--zh-border); }
.zh_hot_list li:last-child { border-bottom: none; }
.zh_hot_list a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
}
.zh_hot_num {
    width: 24px; height: 24px;
    flex-shrink: 0;
    border-radius: 7px;
    background: var(--zh-primary-soft);
    color: var(--zh-primary);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.zh_hot_num_top { background: var(--zh-grad-coral); color: #fff; }
.zh_hot_title {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    color: var(--zh-text-primary);
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zh_hot_list a:hover .zh_hot_title { color: var(--zh-primary); }
.zh_hot_view { font-size: 11.5px; color: var(--zh-text-muted); white-space: nowrap; }
.zh_hot_view i { font-size: 10.5px; margin-right: 3px; }

/* 最新发布 */
.zh_latest_list { list-style: none; margin: 0; padding: 0; }
.zh_latest_list li { border-bottom: 1px dashed var(--zh-border); }
.zh_latest_list li:last-child { border-bottom: none; }
.zh_latest_list a { display: flex; gap: 11px; padding: 12px 0; align-items: center; }
.zh_latest_cover {
    width: 66px; height: 50px;
    flex-shrink: 0;
    border-radius: var(--zh-radius-sm);
    overflow: hidden;
    background: var(--zh-primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--zh-primary-mid);
    font-size: 14px;
}
.zh_latest_cover img { width: 100%; height: 100%; object-fit: contain; }
.zh_latest_info { min-width: 0; }
.zh_latest_info h4 {
    margin: 0 0 3px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--zh-text-primary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zh_latest_list a:hover h4 { color: var(--zh-primary); }
.zh_latest_info span { font-size: 11.5px; color: var(--zh-text-muted); }

/* 侧栏设计师 */
.zh_side_merchants { list-style: none; margin: 0; padding: 0; }
.zh_side_merchants li { border-bottom: 1px dashed var(--zh-border); }
.zh_side_merchants li:last-child { border-bottom: none; }
.zh_side_merchants a { display: flex; gap: 11px; align-items: center; padding: 11px 0; }
.zh_side_merchants .zh_avatar_text { width: 38px; height: 38px; font-size: 15px; }
.zh_side_merchants h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--zh-text-primary);
}
.zh_side_merchants a:hover h4 { color: var(--zh-primary); }
.zh_side_merchants span { font-size: 11.5px; color: var(--zh-text-muted); }

/* 侧栏 CTA */
.zh_side_cta {
    background: var(--zh-grad-deep);
    border-radius: var(--zh-radius-leaf);
    padding: 26px 24px;
    text-align: center;
    color: rgba(234, 244, 241, .72);
    position: relative;
    overflow: hidden;
}
.zh_side_cta::after {
    content: "";
    position: absolute;
    right: -40px; top: -40px;
    width: 150px; height: 150px;
    border-radius: 62% 38% 55% 45%;
    background: rgba(155, 201, 138, .1);
}
.zh_side_cta_icon {
    width: 50px; height: 50px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    color: var(--zh-leaf);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    z-index: 2;
}
.zh_side_cta h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}
.zh_side_cta p {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}
.zh_side_cta .zh_btn { position: relative; z-index: 2; }

/* 服务承诺 */
.zh_promise_list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zh_promise_list li { display: flex; gap: 11px; align-items: flex-start; }
.zh_promise_list li > i {
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--zh-primary-soft);
    color: var(--zh-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.zh_promise_list strong { display: block; font-size: 13.5px; color: var(--zh-text-primary); font-weight: 600; line-height: 1.5; }
.zh_promise_list span { display: block; font-size: 12px; color: var(--zh-text-muted); line-height: 1.5; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .zh_side_col { position: static; }
}
@media (max-width: 860px) {
    .zh_filter_inner { flex-direction: column; align-items: stretch; }
    .zh_filter_search { min-width: 0; }
}
@media (max-width: 768px) {
    .zh_list_row { flex-direction: column; gap: 14px; padding: 14px; }
    .zh_list_cover { flex: none; width: 100%; aspect-ratio: 16 / 10; }
    .zh_list_title { font-size: 15.5px; }
    .zh_list_body { padding: 0; }
    .zh_list_meta { padding-top: 11px; }
    .zh_sort_tab { padding: 6px 14px; font-size: 13px; }
    .zh_cat_chip { padding: 7px 15px; font-size: 13px; }
}
