/* ==========================================
页脚样式：上下结构
上半部分：三行赞助商图片（白底、顶部带阴影）
下半部分：#0070C0 蓝底文字区（白色文字）
========================================== */
footer {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ---- 上半部分：三行图片，白色背景，顶部阴影 ---- */
.footer-top {
    background-color: #FFFFFF;
    padding: 35px 5%;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
}

.top_firstline,
.top_secondline,
.top_thirdline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 60px;
}

.top_firstline img,
.top_secondline img,
.top_thirdline img {
    height: 110px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

/* ---- 下半部分：#0070C0 背景、白色文字 ---- */
.footer-bottom {
    background-color: #0070C0;
    color: #FFFFFF;
    padding: 30px 5%;
    text-align: center;
}

.footer-bottom p {
    margin: 8px 0;
    font-size: 20px;
}

.footer-bottom a {
    color: #f7d77f;
    text-decoration: none; 
    transition: color 0.3s ease;
}
.top_thirdline img:first-child{
    height: 80px;
    width: auto;
    max-width: none;  
}
.top_thirdline img:nth-child(2) {
    height: 80px;
    width: auto;
    max-width: none;  
}
.footer-bottom a:hover {
    color: #FFD700;
}

/* ---- 页脚移动端适配 ---- */
@media (max-width: 768px) {
    .footer-top {
        padding: 25px 4%;
    }

    .top_firstline,
    .top_secondline,
    .top_thirdline {
        gap: 20px 30px;
    }

    .top_firstline img,
    .top_secondline img,
    .top_thirdline img {
        height: 40px;
        max-width: 130px;
    }
}
@media (max-width: 768px) {
    .top_thirdline img:nth-child(2) {
        height: 55px;
        max-width: none;
    }
}