* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

a:link, a:visited {
    text-decoration: none;
}


/* 导航栏样式 */
.navbar {
    background-color: #333;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo_img {
    height: 2rem;
    margin: 10px;
    fill: white;
}

.logo_bar {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: right;
    align-items: center;
    flex: 1;
    max-width: 1000px;
    margin: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #4CAF50;
    background-color: rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

@media (max-width: 1048px) {
    .nav-container {
        flex-direction: column;
        position: relative;
    }

    .logo {
        margin-bottom: 10px;
    }

    .logo_img {
        margin-bottom: 10px;
    }

    .logo_bar {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #333;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s;
        max-width: 100%;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .user-profile {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    .members-section {
        margin-top: 120px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* 悬浮窗口样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
    animation: modalAppear 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-message {
    font-size: 18px;
    color: #333333;
    margin-bottom: 20px;
}

.modal-button {
    width: 100px;
    height: 35px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-button:hover {
    background-color: #218838;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.show {
    display: flex;
}