/* ============================================
   infos.css - 信息列表页 & 详情页公共样式
   配色沿用蓝紫渐变主题
   ============================================ */

/* ==============================
   A. 信息列表页
   ============================== */

/* ① 页面 Banner */
.zh_list_banner {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--zh-gradient);
}

.zh_list_banner::before,
.zh_list_banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.zh_list_banner::before {
    width: 200px;
    height: 200px;
    top: -60px;
    right: 8%;
}

.zh_list_banner::after {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: 5%;
}

.zh_list_banner_inner {
    position: relative;
    z-index: 1;
}

.zh_list_banner .zh_breadcrumb {
    margin-bottom: 10px;
}

.zh_list_banner .zh_breadcrumb a,
.zh_list_banner .zh_breadcrumb span {
    color: rgba(255,255,255,0.8);
}

.zh_list_banner .zh_breadcrumb a:hover {
    color: #fff;
}

.zh_list_banner .zh_breadcrumb .zh_breadcrumb_divider {
    color: rgba(255,255,255,0.5);
}

.zh_list_banner_title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.zh_list_banner_desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* ② 主布局 */
.zh_list_main {
    background: var(--zh-bg-light);
    padding: 30px 0 60px;
}

/* ③ 搜索与工具栏 */
.zh_list_topbar {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.zh_list_search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.zh_list_search_input {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--zh-bg-light);
    border-radius: 24px;
    padding: 0 16px;
    height: 44px;
    border: 1px solid var(--zh-border);
    transition: border-color 0.3s;
}

.zh_list_search_input:focus-within {
    border-color: var(--zh-blue);
}

.zh_list_search_input i {
    color: var(--zh-text-secondary);
    margin-right: 10px;
    font-size: 14px;
}

.zh_list_search_input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--zh-text);
    font-family: inherit;
}

.zh_list_search_input input::placeholder {
    color: #A0AEC0;
}

.zh_list_search_btn {
    background: var(--zh-gradient);
    color: #fff;
    border: none;
    padding: 0 24px;
    height: 44px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
}

.zh_list_search_btn:hover {
    box-shadow: 0 4px 12px rgba(43,108,176,0.3);
}

/* 工具栏 */
.zh_list_toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--zh-border);
}

.zh_list_toolbar_count {
    font-size: 14px;
    color: var(--zh-text-secondary);
}

.zh_list_toolbar_count strong {
    color: var(--zh-blue);
    font-weight: 600;
}

.zh_list_toolbar_sort {
    display: flex;
    gap: 4px;
    background: var(--zh-bg-light);
    border-radius: 8px;
    padding: 4px;
}

.zh_list_toolbar_sort a {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--zh-text-secondary);
    transition: all 0.3s;
}

.zh_list_toolbar_sort a:hover {
    color: var(--zh-blue);
}

.zh_list_toolbar_sort a.active {
    background: var(--zh-gradient);
    color: #fff;
}

/* 热门推荐横条 */
.zh_list_hot_bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    padding: 14px 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.zh_list_hot_label {
    font-size: 13px;
    font-weight: 600;
    color: #E53E3E;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding-right: 14px;
    border-right: 1px solid var(--zh-border);
}

.zh_list_hot_scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.zh_list_hot_scroll::-webkit-scrollbar {
    display: none;
}

.zh_list_hot_tag {
    flex-shrink: 0;
    padding: 5px 14px;
    background: var(--zh-bg-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--zh-text-secondary);
    transition: all 0.3s;
    white-space: nowrap;
}

.zh_list_hot_tag:hover {
    background: #EBF8FF;
    color: var(--zh-blue);
}

/* ④ 横向列表卡片 */
.zh_info_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zh_info_row_card {
    display: flex;
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    overflow: hidden;
    transition: all 0.3s;
    color: inherit;
    text-decoration: none;
}

.zh_info_row_card:hover {
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-3px);
    color: inherit;
}

.zh_info_row_img {
    width: 260px;
    height: 180px;
    flex-shrink: 0;
    background: #EBF8FF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.zh_info_row_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.zh_info_row_card:hover .zh_info_row_img img {
    transform: scale(1.05);
}

.zh_info_row_img .zh_info_no_img {
    font-size: 40px;
    color: var(--zh-border);
}

.zh_info_row_body {
    flex: 1;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.zh_info_row_top {
    margin-bottom: 8px;
}

.zh_info_row_cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--zh-blue);
    background: #EBF8FF;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.zh_info_row_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.zh_info_row_card:hover .zh_info_row_title {
    color: var(--zh-blue);
}

.zh_info_row_desc {
    font-size: 14px;
    color: var(--zh-text-secondary);
    margin: 0 0 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_info_row_footer {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #A0AEC0;
    margin-top: auto;
}

.zh_info_row_footer i {
    margin-right: 4px;
}

.zh_info_row_merchant {
    color: var(--zh-blue);
    font-weight: 500;
}

.zh_info_row_arrow {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: var(--zh-border);
    font-size: 16px;
    transition: color 0.3s;
}

.zh_info_row_card:hover .zh_info_row_arrow {
    color: var(--zh-blue);
}

/* ⑤ 分页 */
.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-white);
    box-shadow: var(--zh-shadow);
    transition: all 0.3s;
}

.zh_pagination .page-item .page-link:hover {
    color: var(--zh-blue);
    background: #EBF8FF;
}

.zh_pagination .page-item.active .page-link {
    background: var(--zh-gradient);
    color: #fff;
}

/* 空状态 */
.zh_list_empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
}

.zh_list_empty i {
    font-size: 56px;
    color: var(--zh-light-blue);
    display: block;
    margin-bottom: 20px;
}

.zh_list_empty h3 {
    font-size: 18px;
    color: var(--zh-text);
    margin: 0 0 8px;
}

.zh_list_empty p {
    color: #A0AEC0;
    font-size: 14px;
    margin: 0 0 24px;
}

/* ==============================
   B. 信息详情页
   ============================== */

/* ① 面包屑导航 */
.zh_detail_breadcrumb {
    background: #EBF8FF;
    padding: 14px 0;
    position: relative;
    overflow: hidden;
}

.zh_detail_breadcrumb::after {
    content: '';
    position: absolute;
    top: -30px;
    right: 5%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--zh-gradient);
    opacity: 0.04;
}

.zh_detail_breadcrumb .zh_breadcrumb a {
    color: var(--zh-text-secondary);
}

.zh_detail_breadcrumb .zh_breadcrumb a:hover {
    color: var(--zh-blue);
}

.zh_detail_breadcrumb .zh_breadcrumb span {
    color: var(--zh-text);
}

.zh_detail_breadcrumb .zh_breadcrumb .zh_breadcrumb_divider {
    color: #A0AEC0;
}

/* ② 主布局 */
.zh_detail_main {
    background: var(--zh-bg-light);
    padding: 24px 0 60px;
}

.zh_detail_layout {
    display: flex;
    gap: 24px;
}

.zh_detail_content {
    flex: 1;
    min-width: 0;
}

/* ③ 信息头部卡片 */
.zh_detail_header {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.zh_detail_header_inner {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.zh_detail_thumb {
    width: 240px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #EBF8FF;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_detail_thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zh_detail_thumb i {
    font-size: 48px;
    color: var(--zh-light-blue);
}

.zh_detail_info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zh_detail_cat_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #EBF8FF;
    color: var(--zh-blue);
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
    font-weight: 500;
}

.zh_detail_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--zh-text);
    margin: 0 0 16px;
    line-height: 1.4;
}

.zh_detail_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #A0AEC0;
}

.zh_detail_meta_item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zh_detail_meta_item i {
    color: var(--zh-light-blue);
    font-size: 13px;
}

.zh_detail_meta_item a {
    color: var(--zh-blue);
    font-weight: 500;
}

.zh_detail_meta_item a:hover {
    color: var(--zh-purple);
}

/* 联系信息条 */
.zh_detail_contact_bar {
    background: #EBF8FF;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    color: var(--zh-text-secondary);
    border-top: 1px solid var(--zh-border);
}

.zh_detail_contact_item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_detail_contact_item i {
    color: var(--zh-blue);
    font-size: 14px;
}

.zh_detail_contact_item a {
    color: var(--zh-blue);
    font-weight: 500;
}

.zh_detail_contact_item a:hover {
    color: var(--zh-purple);
}

/* ④ 自定义字段区 */
.zh_detail_fields {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.zh_detail_section_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 0 0 20px;
    padding-left: 14px;
    position: relative;
}

.zh_detail_section_title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: var(--zh-gradient);
    border-radius: 2px;
}

.zh_detail_field_table {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--zh-border);
}

.zh_detail_field_row {
    display: flex;
    font-size: 14px;
    border-bottom: 1px solid var(--zh-border);
}

.zh_detail_field_row:last-child {
    border-bottom: none;
}

.zh_detail_field_row:nth-child(odd) {
    background: var(--zh-bg-light);
}

.zh_detail_field_label {
    width: 140px;
    padding: 12px 16px;
    color: #A0AEC0;
    flex-shrink: 0;
    font-weight: 500;
}

.zh_detail_field_value {
    flex: 1;
    padding: 12px 16px;
    color: var(--zh-text);
}

.zh_detail_field_value a {
    color: var(--zh-blue);
}

.zh_detail_field_value a:hover {
    color: var(--zh-purple);
}

/* ⑤ 详情内容区 */
.zh_detail_body_card {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    padding: 28px;
    margin-bottom: 20px;
}

.zh_detail_body {
    line-height: 1.9;
    font-size: 15px;
    color: var(--zh-text);
}

.zh_detail_body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}

.zh_detail_body p {
    margin-bottom: 16px;
}

.zh_detail_body h2,
.zh_detail_body h3 {
    color: var(--zh-text);
    margin: 24px 0 12px;
    font-weight: 600;
}

/* 文章底部标签 */
.zh_detail_footer_tags {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--zh-border);
    margin-top: 28px;
}

.zh_detail_footer_tags_label {
    font-size: 14px;
    color: #A0AEC0;
    flex-shrink: 0;
}

.zh_detail_tag {
    display: inline-block;
    padding: 4px 12px;
    background: #EBF8FF;
    color: var(--zh-blue);
    font-size: 12px;
    border-radius: 20px;
    transition: all 0.3s;
}

.zh_detail_tag:hover {
    background: var(--zh-blue);
    color: #fff;
}

/* ⑥ 详情页侧边栏 */
.zh_detail_sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 服务商信息盒 */
.zh_merchant_box {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.zh_merchant_box_top {
    background: var(--zh-gradient);
    padding: 24px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zh_merchant_box_top::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.zh_merchant_logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
}

.zh_merchant_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_merchant_logo i {
    font-size: 24px;
    color: #fff;
}

.zh_merchant_box_name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    position: relative;
    z-index: 1;
}

.zh_merchant_box_verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    position: relative;
    z-index: 1;
}

.zh_merchant_box_body {
    padding: 20px;
}

.zh_merchant_contact {
    margin-bottom: 16px;
}

.zh_merchant_contact_row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--zh-text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--zh-bg-light);
}

.zh_merchant_contact_row:last-child {
    border-bottom: none;
}

.zh_merchant_contact_row i {
    color: var(--zh-blue);
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.zh_merchant_contact_row a {
    color: var(--zh-text-secondary);
}

.zh_merchant_contact_row a:hover {
    color: var(--zh-blue);
}

.zh_merchant_btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #EBF8FF;
    color: var(--zh-blue);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.zh_merchant_btn:hover {
    background: var(--zh-blue);
    color: #fff;
}

/* 侧边栏列表 */
.zh_sidebar_list {
    padding: 8px 16px;
}

.zh_sidebar_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--zh-text-secondary);
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 1px solid var(--zh-bg-light);
}

.zh_sidebar_item:last-child {
    border-bottom: none;
}

.zh_sidebar_item:hover {
    color: var(--zh-blue);
}

.zh_sidebar_item_thumb {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    background: #EBF8FF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_sidebar_item_thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zh_sidebar_item_thumb i {
    font-size: 16px;
    color: var(--zh-light-blue);
}

.zh_sidebar_item_text {
    flex: 1;
    min-width: 0;
}

.zh_sidebar_item_text h4 {
    font-size: 14px;
    font-weight: 400;
    color: inherit;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zh_sidebar_item_text span {
    font-size: 12px;
    color: #A0AEC0;
}

/* ==============================
   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: 768px) {
    .zh_list_banner {
        height: auto;
        padding: 28px 0;
    }

    .zh_list_banner_title {
        font-size: 22px;
    }

    .zh_list_topbar {
        padding: 16px;
    }

    .zh_list_search {
        flex-direction: column;
    }

    .zh_list_search_input {
        width: 100%;
    }

    .zh_list_search_btn {
        width: 100%;
    }

    .zh_list_toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .zh_info_row_card {
        flex-direction: column;
    }

    .zh_info_row_img {
        width: 100%;
        height: 200px;
    }

    .zh_info_row_body {
        padding: 16px;
    }

    .zh_info_row_title {
        font-size: 16px;
    }

    .zh_info_row_arrow {
        display: none;
    }

    .zh_info_row_footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .zh_list_hot_bar {
        padding: 12px 16px;
    }
}

/* 详情页响应式 */
@media (max-width: 992px) {
    .zh_detail_sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .zh_detail_header_inner {
        flex-direction: column;
    }

    .zh_detail_thumb {
        width: 100%;
    }

    .zh_detail_meta {
        gap: 12px;
    }

    .zh_detail_contact_bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .zh_detail_title {
        font-size: 20px;
    }

    .zh_detail_body_card {
        padding: 20px;
    }

    .zh_detail_field_label {
        width: 100px;
    }
}
