@charset "utf-8";
/* ==========================================================================
   创业服务站点补充样式（szh-cyfw.css）
   szh-portal.css 提供通用组件，本文件补齐 cyfw 站点特有组件：
   两栏 / 三栏栅格、创业项目卡片、创业导师网格、列表页筛选条与媒体列表。
   颜色、圆角、阴影统一沿用 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-project__logo,
.szh-expert__avatar,
.szh-media__thumb {
    position: relative;
    overflow: hidden;
}

.szh-avatar img,
.szh-project__logo 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,
.szh-media__img--avatar {
    object-fit: cover;
}

/* ---------------------------------------------------------------- 头部搜索框
   子栏目页会额外加载 aui / bootstrap / portal 等旧样式，其中 input 的默认
   背景、边框与行高会与 .szh-search 冲突，表现为输入区域出现白色内框、占位
   文字上下不居中或被裁切。这里统一收敛为透明背景、无边框、文字居中。
   ------------------------------------------------------------------------ */
.szh-search {
    height: 46px;
    padding: 0 4px 0 18px;
}

.szh-search input[type="hidden"] {
    display: none;
}

.szh-search input[type="text"] {
    align-self: stretch;
    flex: 1;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    background-image: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: 14px;
    line-height: normal;
    color: var(--szh-text);
}

.szh-search input[type="text"]:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

.szh-search input[type="text"]::placeholder {
    color: #9dadc3;
    opacity: 1;
}

.szh-search button {
    flex: none;
}

/* ---------------------------------------------------------------- 创业项目 */
.szh-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.szh-project {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #eaf0f8;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.szh-project:hover {
    border-color: #cfe0f5;
    box-shadow: 0 10px 24px rgba(9, 39, 84, .08);
    transform: translateY(-2px);
}

.szh-project__logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--szh-brand);
    background: linear-gradient(140deg, #eff6ff, #dbe9fb);
}

.szh-project__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.szh-project__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 700;
    color: var(--szh-dark);
}

.szh-project:hover .szh-project__name {
    color: var(--szh-brand);
}

.szh-project__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-project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.szh-project__tags span {
    padding: 2px 9px;
    border: 1px solid #e3edfa;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.7;
    color: #3f6ea8;
    background: #f0f5fd;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- 创业导师网格 */
.szh-expert-grid {
    display: grid;
    grid-template-columns: repeat(3, 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-article__subtitle {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--szh-muted);
    text-align: center;
}

/* 上一篇 / 下一篇：单行省略，避免长标题把版面撑开 */
.szh-article__nav > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.szh-article__nav > div > span {
    flex: none;
}

.szh-article__nav a {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
    .szh-expert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .szh-two-col,
    .szh-project-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 {
        grid-template-columns: minmax(0, 1fr);
    }

    .szh-filter a {
        padding: 4px 11px;
        font-size: 12px;
    }

    .szh-project {
        padding: 12px;
    }

    .szh-project__logo {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .szh-media-list > li {
        gap: 12px;
        padding: 14px 0;
    }

    .szh-media__thumb {
        width: 72px;
        height: 60px;
        font-size: 18px;
    }

    .szh-media__thumb--avatar {
        width: 52px;
        height: 52px;
    }

    .szh-media__title {
        font-size: 15px;
    }

    .szh-article__title {
        font-size: 20px;
    }

    .szh-article__meta {
        gap: 4px 12px;
        font-size: 12px;
    }

    .szh-article__body {
        font-size: 15px;
        line-height: 1.9;
    }
}
