/* ==========================================================================
   TEAM & EXHIBITIONS PAGE (list_exhibitions.html)
   依赖：style.css（变量、头部、页脚）、partner.css（page-hero / page-breadcrumb / pcontact）
   内容区最大宽度 1520px 居中，断点：1200 / 992 / 768 / 576
   结构：hero + 同级页签 + 若干图片分组（标题 + 描述 + 三列图片墙）
   ========================================================================== */

/* ---------- hero ---------- */
.exhi-hero { height: 420px; }

/* ---------- 同级页签（About Us / Certifications / Team & Exhibitions / Contact Us） ---------- */
.exhi-tabs {
    background: #F2F2F2;
    border-bottom: 1px solid #eceef1;
}
.exhi-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 45px;
}
.exhi-tab {
    display: inline-block;
    padding: 20px 0;
    font-size: var(--fs-body);
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}
.exhi-tab:hover { color: var(--red); }
.exhi-tab.is-active {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ---------- 图片分组（标题 + 说明 + 三列图片墙） ---------- */
.exhi-sec { padding: 65px 0 65px; }
.exhi-sec + .exhi-sec { padding-top: 0; }

.exhi-title {
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--ink);
}
.exhi-desc {
    margin-top: 18px;
    font-size: var(--fs-body);
    line-height: 1.75;
    color: #14191f;
    overflow-wrap: break-word;
}
/* richText1 富文本内段落去默认间距，连续块级元素统一留白 */
.exhi-desc p { margin: 0; }
.exhi-desc > * + * { margin-top: 10px; }
.exhi-desc :where(img) { max-width: 100%; height: auto; }

/* ---------- 三列图片墙 ---------- */
.exhi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 30px;
    margin-top: 40px;
    border-bottom: 1px solid #E3E5E9;
    padding-bottom: 70px;
}
.exhi-sec + .exhi-sec .exhi-grid { border-bottom: none; padding-bottom: 0; }

.exhi-card-media {
    position: relative;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    background: #f4f5f7;
}
.exhi-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.exhi-card:hover .exhi-card-media img { transform: scale(1.04); }
/* 红色角标：文章 flag 字段，左上角悬浮 */
.exhi-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 5px 12px;
    font-size: var(--fs-xxs);
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: var(--red);
    border-radius: 4px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .exhi-title { font-size: 34px; }
}

@media (max-width: 992px) {
    .exhi-hero { height: 320px; }
    .exhi-sec { padding: 52px 0 58px; }
    /* 平板：两列 */
    .exhi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; margin-top: 40px; }
}

@media (max-width: 768px) {
    .exhi-title { font-size: 28px; }
}

@media (max-width: 576px) {
    .exhi-hero { height: 240px; }
    .exhi-tab { padding: 14px 0; font-size: 15px; }
    .exhi-tab-list { gap: 0 24px; }
    .exhi-sec { padding: 40px 0 46px; }
    .exhi-title { font-size: 24px; }
    .exhi-desc { margin-top: 14px; font-size: 14px; }
    /* 手机：单列 */
    .exhi-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
}
