﻿/* ===== 导航栏样式 ===== */
.navbar-container {
    background-color: #8B4513;
    color: white;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: 55px;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 25px;
}

    .navbar-links a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: opacity 0.3s;
        padding: 5px 0;
        position: relative;
    }

        .navbar-links a:hover {
            opacity: 0.8;
        }

        .navbar-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: white;
            transition: width 0.3s;
        }

        .navbar-links a:hover::after {
            width: 100%;
        }

.navbar-mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* ===== 页脚样式 ===== */
.footer {
    background-color: #8B4513;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

    .footer a {
        color: #fff;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #8B4513;
        flex-direction: column;
        gap: 0;
        padding: 15px 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

        .navbar-links.active {
            display: flex;
        }

        .navbar-links a {
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

            .navbar-links a:last-child {
                border-bottom: none;
            }

    .navbar-mobile-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
        height: 50px;
    }

    .navbar-brand {
        font-size: 20px;
    }
}
