/* ===========================================================
   专家团队频道
   前缀约定：.ex-*，与现有类名零重叠
   颜色只取 style.css 现有变量，主题切换不受影响
   =========================================================== */

/* 页面 Banner 主标题：与微视频频道页同一套排版口径 */
.page-banner__in .section-title__head h1.ex-h1 {
    font-family: var(--font-display);
    font-size: var(--h2-size);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    font-weight: 700;
    margin: 0 0 12px;
}
@media (max-width: 1366px) {
    .page-banner__in .section-title__head h1.ex-h1 { font-size: clamp(28px, 2.6vw, 38px); }
}

/* 列表头部 */
.ex-head { margin-bottom: 40px; }
.ex-head__lead {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

/* 卡片网格：minmax(0,1fr) 防止英文长单词把列撑宽导致横向溢出 */
.ex-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.ex-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.ex-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

/* 照片区：4:5 竖版肖像，统一裁切比例 */
.ex-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(160deg, #E8EDF3 0%, #D6DEE7 100%);
}
.ex-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.ex-card:hover .ex-card__img { transform: scale(1.04); }

/* 无照片时的稳重占位：金属灰 → 铜金渐变 + 姓氏首字 */
.ex-card__mono {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: rgba(255,255,255,.92);
    background: linear-gradient(150deg, #2A3440 0%, #4C5B6D 58%, #B28A4A 100%);
    letter-spacing: .02em;
    user-select: none;
}

/* 序号角标 */
.ex-card__idx {
    position: absolute;
    left: 14px;
    top: 12px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.92);
    background: rgba(10,15,20,.32);
    border: 1px solid rgba(255,255,255,.18);
    font-variant-numeric: tabular-nums;
}

.ex-card__body {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 22px 20px 24px;
    border-top: 2px solid var(--accent);
}

.ex-card__name {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -.01em;
    word-break: break-word;
}

.ex-card__role {
    margin: 7px 0 0;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.55;
    letter-spacing: .04em;
    word-break: break-word;
}

.ex-card__intro {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.78;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 空状态 */
.ex-empty {
    text-align: center;
    padding: 84px 20px;
    border: 1px dashed var(--line-strong);
    background: var(--surface);
}
.ex-empty h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--ink);
    margin: 0 0 10px;
}
.ex-empty p {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 28px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1200px) {
    .ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 992px) {
    .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .ex-card__name { font-size: 20px; }
}
@media (max-width: 640px) {
    .ex-head { margin-bottom: 28px; }
    .ex-head__lead { font-size: 14px; line-height: 1.8; }
    .ex-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }

    /* 单列时改为横版：左侧照片 132px，右侧文字，避免整屏超高 */
    .ex-card { flex-direction: row; align-items: stretch; }
    .ex-card__media {
        flex: 0 0 132px;
        width: 132px;
        aspect-ratio: auto;
        min-height: 172px;
    }
    .ex-card__mono { font-size: 44px; }
    .ex-card__idx { left: 10px; top: 8px; }
    .ex-card__body {
        padding: 16px 16px 16px 18px;
        border-top: 0;
        border-left: 2px solid var(--accent);
    }
    .ex-card__name { font-size: 19px; }
    .ex-card__role { font-size: 12.5px; }
    .ex-card__intro {
        font-size: 13.5px;
        line-height: 1.7;
        -webkit-line-clamp: 3;
    }
    .ex-empty { padding: 60px 18px; }
}
