@charset "utf-8";
/* ==========================================================================
   管理咨询站点补充样式（szh-glzx.css）
   szh-portal.css 提供通用组件（头部 / 导航 / 卡片 / 列表 / 分页 / 详情），
   本文件补齐 glzx 站点特有组件：两栏三栏栅格、列表页筛选条、咨询项目与专家/机构卡片。
   颜色、圆角、阴影统一沿用 szh-portal.css 中的 --szh-* 变量。
   ========================================================================== */

/* ---------------------------------------------------------------- 栅格布局 */
.szh-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.szh-three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.szh-two-col > .szh-card,
.szh-three-col > .szh-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.szh-card .szh-panel-title {
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------- 列表页侧栏 */
.szh-side-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.szh-side-more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #eef2f8;
    font-size: 13px;
    color: var(--szh-brand);
}

.szh-side-more:hover {
    color: var(--szh-brand-light);
}

/* ---------------------------------------------------------------- 列表页筛选条 */
.szh-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px dashed #eef2f8;
}

.szh-filter__label {
    font-size: 13px;
    color: var(--szh-muted);
}

.szh-filter a {
    padding: 5px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    color: var(--szh-text-2);
    background: #f5f8fd;
}

.szh-filter a:hover {
    border-color: #d6e2f2;
    color: var(--szh-brand);
    background: #eef5ff;
}

.szh-filter a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #0a4ea6, #1c76e0);
}

.szh-filter input[type="text"] {
    flex: 1 1 240px;
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #dbe5f2;
    border-radius: 999px;
    font-size: 14px;
    color: var(--szh-text);
}

.szh-filter button[type="submit"] {
    height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0a4ea6, #1c76e0);
}

/* ---------------------------------------------------------------- 头像 / LOGO 兜底
   模板结构：<span class="...">首字<img src="..."></span>
   图片加载成功后绝对定位覆盖在首字之上，失败时 onerror 移除，仅剩首字。
   ------------------------------------------------------------------------ */
.szh-avatar,
.szh-expert__avatar,
.szh-media__thumb {
    position: relative;
    overflow: hidden;
}

.szh-avatar img,
.szh-expert__avatar img,
.szh-media__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.szh-expert__avatar img {
    object-fit: cover;
}

/* ---------------------------------------------------------------- 咨询项目卡片 */
.szh-consult-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.szh-consult {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid #eaf0f8;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.szh-consult:hover {
    border-color: #cfe0f5;
    box-shadow: 0 10px 24px rgba(9, 39, 84, .08);
    transform: translateY(-2px);
}

.szh-consult__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--szh-dark);
}

.szh-consult__title span:first-child {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--szh-brand);
    background: linear-gradient(140deg, #eff6ff, #dbe9fb);
}

.szh-consult__title a {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.szh-consult:hover .szh-consult__title a {
    color: var(--szh-brand);
}

.szh-consult__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--szh-muted);
}

.szh-consult__meta em {
    font-style: normal;
    color: var(--szh-text-2);
}

.szh-consult__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.7;
    color: var(--szh-muted);
}

.szh-consult__actions {
    margin-top: auto;
}

/* ---------------------------------------------------------------- 专家网格 */
.szh-expert-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.szh-expert {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 8px;
    border: 1px solid #eaf0f8;
    border-radius: 12px;
    text-align: center;
    background: #fbfdff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.szh-expert:hover {
    border-color: #cfe0f5;
    box-shadow: 0 8px 20px rgba(9, 39, 84, .08);
    transform: translateY(-2px);
}

.szh-expert__avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: var(--szh-brand);
    background: linear-gradient(140deg, #eff6ff, #dbe9fb);
}

.szh-expert__name {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    color: var(--szh-dark);
}

.szh-expert__meta {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    color: var(--szh-muted);
}

/* ---------------------------------------------------------------- 媒体列表（列表页） */
.szh-media-list {
    display: flex;
    flex-direction: column;
}

.szh-media-list > li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px dashed #eef2f8;
}

.szh-media-list > li:last-child {
    border-bottom: 0;
}

.szh-media-list > li > a {
    display: block;
    flex: none;
}

.szh-media__thumb {
    display: grid;
    place-items: center;
    flex: none;
    width: 96px;
    height: 72px;
    border: 1px solid #eaf0f8;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--szh-brand);
    background: linear-gradient(140deg, #eff6ff, #dbe9fb);
}

.szh-media__thumb--avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 18px;
}

.szh-media__body {
    flex: 1;
    min-width: 0;
}

.szh-media__title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--szh-dark);
}

.szh-media__title:hover {
    color: var(--szh-brand);
}

.szh-media__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--szh-muted);
}

.szh-media__meta em {
    font-style: normal;
    color: var(--szh-text-2);
}

.szh-media__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--szh-muted);
}

.szh-media__actions {
    margin-top: 10px;
}

.szh-btn--sm {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
}

/* ---------------------------------------------------------------- 首页滚动条（咨询项目） */
.szh-scroll-list {
    max-height: 372px;
    overflow-y: auto;
}

.szh-scroll-list::-webkit-scrollbar {
    width: 6px;
}

.szh-scroll-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #dfe8f4;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
    .szh-expert-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .szh-two-col,
    .szh-consult-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .szh-three-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .szh-three-col,
    .szh-expert-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .szh-filter a {
        padding: 4px 11px;
        font-size: 12px;
    }

    .szh-consult {
        padding: 14px;
    }

    .szh-media-list > li {
        gap: 12px;
        padding: 14px 0;
    }

    .szh-media__thumb {
        width: 72px;
        height: 60px;
        font-size: 18px;
    }

    .szh-media__title {
        font-size: 15px;
    }
}
