@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0A2A33; /* 更柔和的深青色背景 */
    color: #EAF4F8; /* 更柔和的浅色字体 */
    text-align: center;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 15px; /* 控制导航间距，变紧凑 */
}

.navbar a {
    color: #EAF4F8;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px; /* 缩小内边距使导航紧凑 */
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.navbar a.active,
.navbar a:hover {
    color: #FFD700;
    background-color: #0F3B44;
}

/* Mainframe Sections */
.mainframe {
    background-color: #112D37; /* 更加舒适的深绿色背景 */
    border-radius: 10px;
    padding: 30px;
    margin: 100px auto 20px;
    width: 90%;
    max-width: 800px;
    text-align: left;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Image */
img.responsive-img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer */
footer {
    margin-top: 20px;
    padding: 15px 0;
    background-color: #0F3B44; /* 与导航条保持一致的颜色 */
    color: #EAF4F8;
    text-align: center;
    font-size: 14px;
}

/* Contact Section */
address a {
    color: #FFD700;
    text-decoration: none;
}

address a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        padding: 10px 0;
        gap: 10px; /* 移动端保持合适间距 */
    }

    .navbar li {
        margin: 0;
    }

    .mainframe {
        width: 95%;
        padding: 20px;
    }
}

@media (min-width: 1200px) {
    .mainframe {
        width: 65%;
        padding: 40px;
    }
}
