/* 底部样式 */
.site-footer {
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.copyright {
    color: #666;
    font-size: 14px;
    margin: 0;
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 15px 0;
        margin-top: 30px;
        margin-bottom: 0; /* 移除底部外边距 */
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .copyright {
        font-size: 12px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .footer-links a {
        font-size: 12px;
    }
    
    /* 确保页面结构正确，避免底部空白 */
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* 使main-wrapper至少占满屏幕高度 */
    .main-wrapper {
        min-height: calc(100vh - 80px); /* 减去header高度 */
        flex-direction: column;
    }
    
    /* footer始终在底部 */
    .site-footer {
        margin-top: auto;
    }
}

/* 平板端适配 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
} 