﻿footer {
    background: #030303;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

    footer nav ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

        footer nav ul li a {
            color: #fff;
            text-decoration: none;
            cursor:pointer;
        }

/* 返回顶部按钮样式 */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #ccc; /* 默认灰色背景 */
    color: white;
    border-radius: 4px; /* 圆角 */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; /* 箭头大小 */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

    /* 鼠标悬停样式 */
    #back-to-top:hover {
        background-color: #28a745; /* 鼠标悬停时变为绿色 */
        transform: scale(1.1); /* 悬停时放大 */
    }

    /* 滚动时显示按钮 */
    #back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

/* Media Queries for Mobile */
@media screen and (max-width: 768px) {
    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer nav ul {
        flex-direction: column; /* Stack navigation items vertically */
        align-items: center; /* Center items horizontally */
        margin-top: 5px;
    }

        footer nav ul li {
            margin-bottom: 5px; /* Add space between stacked items */
        }

    footer p {
        margin-top: 15px; /* Add some space between the text and nav */
        margin-bottom: 15px; /* Add some space between the text and nav */
    }
}
