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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    /* 为固定导航栏留出空间 */
    padding-top: 100px; /* 根据导航栏实际高度调整 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 主要内容区域 */
.main-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.image-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 图片项样式 */
.image-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 确保所有内容图片宽度相同，高度自适应 */
.content-img {
    width: 100%;
    height: auto;
    display: block;
}
.first-item{
    margin-top: 19%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* 移动设备上导航栏高度较小 */
    }
    
    .main-content {
        padding: 10px;
    }
    
    .image-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 40px;
    }
    
    .main-content {
        padding: 5px;
    }
    
    .image-item {
        margin-bottom: 10px;
    }
}