/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 导航栏悬浮样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5vw;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 2vw;
}

.menu a {
    text-decoration: none;
    color: #34495e;
    font-size: 15px;
    transition: all 0.3s;
    padding: 5px 0;
    position: relative;
}

/* 菜单 hover 效果（下划线动画） */
.menu a:hover {
    color: #e74c3c;
}
.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s;
}
.menu a:hover::after {
    width: 100%;
}

/* 模块通用样式 */
.section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片样式 */
.full-img, .module-img {
    width: 100%;
    object-fit: cover; /* 保持图片比例，铺满容器 */
}

/* 首页主图单独调整 */
.hero {
    padding-top: 63px; /* 预留导航栏高度，避免图片被遮挡 */
}
.hero .full-img {
}

/* 页脚样式 */
footer {
    background-color: #0d1840;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}


@media (max-width: 768px) {
    .menu {
        display: none;
    }
    .section {
        min-height: 80vh;
    }
}