.footer {
    text-align: center;
    padding: 20px 16px;
    font-size: 14px;
    color: #ffffff;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-top: 2px solid #e74c3c;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 当页面内容未占满视口时，固定底部 */
.footer.fixed {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.back-to-top {
    position: fixed;
    bottom: 25px; 
    right: 25px; 
    background: #e74c3c;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    border: none;
    z-index: 1001;
    transition: all 0.2s ease;
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.back-to-top span {
    line-height: 1;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .footer {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
} 