/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transform: scale(1);
    transform-origin: 0 0;
    /* 新增：隐藏body滚动条（若页面整体需滚动） */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
/* 新增：WebKit内核隐藏body滚动条 */
body::-webkit-scrollbar {
    display: none;
}

/* 新增logo样式 */
.logo-container1 {
    position: absolute;
    top: 38px;
    left: 20px;
    z-index: 100; /* 确保logo在其他元素上方 */
}
.logo-container2 {
    position: absolute;
    top: 38px;
    right: 20px;
    z-index: 100; /* 确保logo在其他元素上方 */
}
.gallery-nav-item a {
    color: #e67e22 !important;
}
.lab-logo {
    height: 50px; /* 根据需要调整logo高度 */
    width: auto; /* 保持宽高比 */
}

/* 顶部导航及search栏容器样式，减小高度 + 固定整体位置 */
.top-header {
    background-color: #003366;
    color: white;
    padding: 10px 20px; /* 固定内边距，避免整体偏移 */
    display: flex;
    justify-content: space-between; /* 固定容器内元素分布逻辑 */
    align-items: center; /* 垂直居中对齐，防止元素上下偏移 */
    position: fixed; /* 容器整体固定在顶部，不随滚动移动 */
    top: 0; /* 固定顶部距离为0，位置不偏移 */
    left: 0; /* 固定左侧距离为0，位置不偏移 */
    width: 100%; /* 固定宽度为100%，铺满屏幕 */
    z-index: 999; /* 固定层级，防止被其他元素遮挡 */
    height: 100px; /* 固定容器高度，避免内容撑开导致位置变化 */
    transform: scale(1);
    transform-origin: top left;
    box-sizing: border-box; /* 关键：让padding不影响宽高，保证容器尺寸稳定 */
}

/* 顶部导航文字样式，增大字体 + 固定文字尺寸约束 */
.top-nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 30px; /* 固定字体大小，避免语言切换时字体变化 */
    transition: color 0.3s ease;
    display: inline-block; /* 让文字区域形成独立块，避免换行导致位置偏移 */
    min-width: 80px; /* 关键：给导航文字设置最小宽度，解决中英文长度差异（如Home/Join vs 切换按钮） */
    text-align: center; /* 文字居中对齐，进一步保证位置统一 */
}

/* 顶部导航样式，固定导航区域布局 */
.top-nav {
    flex: 1; /* 固定导航区域占容器剩余空间，不随内容拉伸 */
    display: flex;
    justify-content: center; /* 导航整体居中，不偏移 */
    margin-left: 0; /* 固定左侧间距为0 */
    padding: 0; /* 清除默认内边距 */
}

.top-nav ul {
    list-style: none;
    display: flex;
    padding: 0; /* 清除列表默认内边距 */
    margin: 0; /* 清除列表默认外边距 */
}

.top-nav ul li {
    margin: 0 40px; /* 固定列表项水平间距，不随文字变化 */
    padding: 10px 0; /* 固定列表项垂直内边距，保证点击区域稳定 */
}

/* 导航文字 hover 效果使用图片中的黄色 #FFD700 */
.top-nav ul li a:hover {
    color: #FFD700;
}

/* 中英切换按钮样式（延续之前逻辑，与导航文字对齐） */
.lang-switch {
    margin-left: 20px; /* 固定与前一个导航项的间距 */
}

.lang-switch button {
    padding: 6px 12px;
    border: 1px solid #e67e22;
    background-color: transparent;
    color: #e67e22;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px; /* 固定按钮字体大小 */
    transition: all 0.3s ease;
    min-width: 120px; /* 固定按钮最小宽度，避免英文按钮（Switch to English）换行 */
}

.lang-switch button:hover {
    background-color: #e67e22;
    color: #fff;
}

/* search栏样式（与导航栏对齐，位置固定） */
.search-bar {
    display: flex;
    align-items: center;
    position: absolute;
    right: 20px; /* 固定搜索栏右侧间距，不随导航变化 */
    z-index: 10; /* 保证搜索栏在容器内层级正常 */
}

.search-bar input {
    padding: 6px;
    margin-right: 6px;
    font-size: 15px; /* 固定输入框字体大小 */
    width: 200px; /* 固定输入框宽度，避免内容拉伸 */
}

.search-bar button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px; /* 固定按钮字体大小 */
}

/* search栏样式（已调整right值实现右移） */
.search-bar {
    display: flex;
    align-items: center;
    position: absolute;
    /* 关键修改：减小right值（原值50px），数值越小越靠右，可根据需求微调 */
    right: 20px;
    /* 可选：若父容器无定位，需添加z-index确保搜索栏不被遮挡 */
    z-index: 10;
}

.search-bar input {
    padding: 6px;
    margin-right: 6px;
    font-size: 15px;
}

.search-bar button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

.search-bar button:hover {
    background-color: #e6e6e6;
}

/* 轮播图样式 */
.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px; /* 轮播图高度 */
    margin-top: 120px; /* 避开顶部导航 */
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -20px; /* 图片上移距离 */
}

.carousel-item img {
    max-width: 50%;
    height: auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 底部条带样式（修复并减小高度） */
.footer {
    background-color: #003366;
    color: white;
    padding: 8px 0; /* 减小内边距 */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    height: 120px; /* 固定较小的高度 */
    transform: scale(1);
    transform-origin: bottom left;
}

.footer-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-address,
.footer-copyright {
    margin: 1px 0; /* 减小间距 */
    text-align: center;
}


.footer-copyright p{
    margin: 1px 0;
    font-size: 12px; /* 原字体大小 14px，调整为 16px，可根据需要修改 */
}

/* 底部条带整体样式 */
.footer {
    background-color: #003366; /* 深蓝色背景（示例），可替换为你的蓝色 */
    color: white; /* 文字白色，确保与背景对比 */
    padding: 0; /* 上下内边距，增加高度 */
}

.footer-inner {
    max-width: 1200px; /* 限制内容宽度，避免过宽 */
    margin: 0 auto; /* 居中显示 */
    padding: 0 20px; /* 左右内边距，适配小屏幕 */
}

/* 地址文字样式统一 */
.footer-address p {
    margin: 8px 0; /* 段落间距 */
    font-size: 12px; /* 统一文字大小 */
    font-weight: 400; /* 统一字重（正常粗细，避免因大写显得更粗） */
    text-transform: none; /* 不强制转换大小写（保留原始内容） */
    letter-spacing: 0.1px; /* 微调字间距，增强可读性 */
}

/* 可给首行标题单独加样式（如ADDRESS） */
.footer-address p:first-child {
    font-weight: 600; /* 标题稍粗 */
    font-size: 12px; /* 标题稍大 */
    margin-bottom: 0; /* 与下方内容间距加大 */
    color: #e67e22
}

/* 核心滚动区域：隐藏滚动条但保留滚动（关键修改） */
.main-content {
    padding: 20px;
    overflow-y: auto; /* 保留滚动功能 */
    max-height: calc(100vh - 220px);
    /* 隐藏滚动条 - 适配全浏览器 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
/* WebKit内核（Chrome/Safari/Edge）隐藏.main-content滚动条 */
.main-content::-webkit-scrollbar {
    display: none;
}

.member-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 40px;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.member-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.member-card {
    width: 300px;
    height: auto;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-photo {
    width:  300px;
    height: auto;
    object-fit: cover;
    /* 图片加载占位 */
    background-color: #f5f5f5;
    min-height: 200px;
}

.member-info {
    padding: 10px;
    text-align: center;
}

.member-name {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 25px;
}

.member-title {
    font-size: 20px;
    color: #666;
}

/* 搜索相关样式 */
.search-result {
    margin: 20px auto;
    text-align: center;
    color: #666;
    font-size: 18px;
}