/* Footer 样式 */
.pagefooter{
    height: auto;
    padding: 30px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.simple-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-circles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite alternate;
}

.circle:hover {
    transform: scale(1.2);
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.circle.red {
    background-color: #ed3a3a;
    box-shadow: 0 0 8px rgba(237, 58, 58, 0.6);
    animation-delay: 0s;
}

.circle.orange {
    background-color: #ff8300;
    box-shadow: 0 0 8px rgba(255, 131, 0, 0.6);
    animation-delay: 0.3s;
}

.circle.yellow {
    background-color: #fbda07;
    box-shadow: 0 0 8px rgba(251, 218, 7, 0.6);
    animation-delay: 0.6s;
}

.circle.green {
    background-color: #0ecc00;
    box-shadow: 0 0 8px rgba(14, 204, 0, 0.6);
    animation-delay: 0.9s;
}

.circle.blue {
    background-color: #009aff;
    box-shadow: 0 0 8px rgba(0, 154, 255, 0.6);
    animation-delay: 1.2s;
}

.circle.purple {
    background-color: #a454d8;
    box-shadow: 0 0 8px rgba(164, 84, 216, 0.6);
    animation-delay: 1.5s;
}

.footer-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.footer-text a {
    color: #666;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #333;
}

.footer-boxes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.footer-box {
    background-color: #f0f0f0;
    /* border: 1px solid #ddd; */
    /* border-radius: 8px; */
    padding: 15px 25px;
    text-align: center;
    /* width: 45%; */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */
}

.footer-box img {
    max-width: 90%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

/* 设置特定图片的最大宽度和位置 */
img[src="https://static.igem.wiki/teams/5588/footer/toumingdi.webp"] {
    max-width: 100%;
    margin-top: 10px; /* 原来是30px，减少20px使图片向上移动 */
}

.footer-box a:hover img {
    transform: scale(1.05);
}

.footer-box h4 {
    margin-top: 16px;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
}

.footer-sponsors {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 0;
    margin-left: 20px;
}

.sponsor-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-left: 10px;
}

.sponsor-list a {
    color: #555;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.sponsor-list a:hover {
    /* color: #3c9df9; */
    text-decoration: none;
    transform: scale(1.1);
    color: #555;
}

.sponsor-list li {
    margin: 10px 88px 10px 0px;
    color: #555;
    font-size: 20px;
    text-align: left;
}

.footer-box p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.school-box {
    background-color: #f8f8f8;
    width: 32%;
    /* border-left: 4px solid #f93c3c; */
}

.team-box {
    background-color: #f8f8f8;
    width: 28%;
    position: relative;
    /* 移除原有的边框 */
    /* border-left: 2px solid #555;
    border-right: 2px solid #555; */
    /* border-left: 4px solid #f93c3c; */
}

/* 添加左边框，只显示中间60% */
.team-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 0.5px;
    background-color: #55555574;
}

/* 添加右边框，只显示中间60% */
.team-box::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 0.5px;
    background-color: #55555574;
}

.sponsor-box {
    background-color: #f8f8f8;
    width: 40%;
    /* border-left: 4px solid #3c9df9; */
}

.footer-image {
    width: 50%;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

/* 响应式设计 - Footer部分 */
@media (max-width: 1000px) {
    .footer-boxes {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0px;
        align-items: center;
    }
    
    .team-box, .school-box, .sponsor-box {
        width: 100%;
        margin-bottom: 0px;
    }
    
    /* 隐藏team-box的左右边框，因为已经换行 */
    .team-box::after, .team-box::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-boxes {
        flex-direction: column;
        align-items: center;
        /* gap: 20px; */
    }
    
    .footer-box {
        width: 90%;
        max-width: 400px;
    }
}

/* style.css中的footer样式 */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }