/* Footer Styles */
.footer {
    background-color: #34495e;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
    font-family: "Microsoft Yahei", sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* 让左右元素靠边，中间自动填充 */
    align-items: flex-start; /* 顶部对齐 */
    max-width: 95vw;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem; /* 各部分之间的间距 */
}

.footer-left h3,
.footer-center h3,
.footer-right h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

/* 标题下方添加装饰线 */
.footer-left h3::after,
.footer-center h3::after,
.footer-right h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.footer-center h3::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-right h3::after {
    left: auto;
    right: 0;
}

/* 布局设置 */
.footer-left {
    flex: 0 0 auto; /* 不伸缩，保持内容宽度 */
}

.footer-center {
    flex: 1; /* 中间部分填充剩余空间 */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* 确保内容水平居中 */
}

.footer-right {
    flex: 0 0 auto; /* 不伸缩，保持内容宽度 */
    text-align: right;
}

.footer-left p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.qr-code {
    width: 120px;
    height: 120px;
    background-color: white;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.copyright {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.icp-info {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {

    .footer-content {
        max-width: 90vw;
        flex-direction: column;
        gap: 2rem;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        margin-bottom: 0;
        text-align: center; /* 确保所有部分文本居中 */
        width: 100%; /* 占满容器宽度 */
    }

    .footer-right {
        text-align: center;
    }

    /* 统一所有标题装饰线居中 */
    .footer-left h3::after,
    .footer-center h3::after,
    .footer-right h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* 确保二维码容器在移动端也居中 */
    .footer-center .qr-code {
        margin-left: auto;
        margin-right: auto;
    }

    .copyright{
        font-size: 0.8rem;
    }

    .icp-info{
        font-size: 0.8rem;
    }
}
