/* ✅ 让 body 成为 flex 容器，占满整个视口 */
html {
    height: 100%;
}


/* ✅ 让页面内容区域自动扩展，把 footer 推到最下面 */
.page-content {
    flex: 1;
    /* 关键！占满剩余空间 */
    padding-top: 120px;
    /* 如果你的导航栏是 80px 高，这里要匹配 */
}

footer {
    box-shadow:
        0 -1px 4px rgba(0, 0, 0, 0.1),
        0 -6px 16px rgba(0, 0, 0, 0.08);
    background-color: #ffffff !important;
    z-index: 997;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
    background-color: #ffffff !important;

}

.sponsor-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    /* 所有图片容器高度一致 */
    flex-shrink: 0;
}

.sponsor-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* 关键：保持比例，不拉伸 */
    transition: opacity 0.2s;
    /* 可选：鼠标悬停效果 */
}

/* ✅ 单独调整每张图片的尺寸（根据实际视觉效果微调） */
.sponsor-img.genscript {
    height: 80px;
    width: auto;
}

.sponsor-img.vazyme {
    height: 100px;
    width: auto;
}

.sponsor-img.general {
    height: 60px;
    width: auto;
}

.sponsor-img.prism {
    height: 50px;
    width: auto;
}

.sponsor-img.snapgene {
    height: 80px;
    width: auto;
}

.sponsor-img.pycharm {
    height: 80px;
    width: auto;
}

.sponsor-img.bioqing {
    height: 50px;
    width: auto;
}

.sponsor-img.life-science {
    height: 70px;
    width: auto;
}

.sponsor-img.nau {
    height: 76px;
    width: auto;
}

.sponsor-img.orlab {
    height: 74px;
    width: auto;
}

.sponsor-img.gromacs {
    height: 72px;
    width: auto;
    margin-top: -10px;
}

/* 第一行只有3个，自动居中在中间 */
.sponsor-row:first-child .sponsor-item {
    /* 无需额外样式，flex: center 已经居中 */
}

/* 可选：为第一行加一点左侧/右侧 padding 使其更“居中感”更强 */
.sponsor-row:first-child {
    justify-content: center;
}

.footer-divider {
    height: 1px;
    background-color: #343333;
    margin: 30px 0 0;
}

.footer-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #fefefe;
    padding: 30px 0;
    background-color: #1A3670;
    font-weight: 500;
}

.footer-text a {
    color: #ffff44;
    text-decoration: underline;
}

.footer-text a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .sponsor-row {
        flex-direction: column;
        align-items: center;
    }

    .sponsor-item {
        width: 80%;
        margin-bottom: 20px;
    }
}