/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

@media (max-width: 768px) {
  #research {
    width: 100%;
  }
}

img {
  max-inline-size: 100%;
  block-size: auto;
}

/* 背景区域 */
.header-background {
    height: 120px; /* 根据需要调整高度 */
    /*background-image: url('headerbackground.jpeg'); /* 设置背景图片 */
    background-color: #fff;
    background-size: cover; /* 背景图片自动覆盖区域 */
    background-position: center; /* 背景居中显示 */
    position: relative;
    width: 100%;
    box-shadow: 0 2px 3px rgba(8, 103, 205, 0.2);
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 两端对齐 */
    background-color: #1E5087;
    color: #fff;
    padding: 10px 20px;
}
/* Header内容 */
.header-content {
    display: flex;
    justify-content: space-between; /* 左右两侧对齐 */
    align-items: center; /* 垂直居中 */
    padding: 1px;
    color: #1E5087;
}

/* 左侧插图 */
.header-left .illustration {
    width: auto; /* 设置插图的宽度 */
    height: 120px;
}

/* 中间：logo标题*/
.header-center {
    display: flex;
    align-items: center;
    justify-content: center; /* 确保Logo和标题水平居中 */
}
.logo {
    width: auto; /* 设置Logo的宽度 */
    height: 60px;
    margin-right: 20px; /* Logo和标题之间的间距 */
}

h1 {
    font-size: 24px;
    margin: 0;
}

/* 右侧插图 */
.header-right .illustration {
    width: auto; /* 设置插图的宽度 */
    height: 120px;
}


/* Navbar */
.navbar {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #1E5087; /* 设置主题颜色 */
    position: relative;
    width: 100%;
    z-index: 10; /* 确保导航栏在其他内容之上 */
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.1);
    /*margin-top: 129px; /* 导航栏下移，避免覆盖背景区域 */
}
.navbar li {
    padding: 10px 20px;
    color: white;
    cursor: pointer;
}

.container {
    padding: 20px;
    display: flex;
    flex-wrap: wrap; /* 允许子元素换行 */
    gap: 20px; /* 子元素间距 */
}
.section {
    flex: 1 1 300px; /* 每个模块占据最小300px的空间 */
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.nav-item {
    padding: 20px;
    color: #fff; /* 导航项文字颜色为白色 */
    text-align: center;
    flex: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-item:hover {
    background-color: #043796; /* 设置鼠标悬停时的颜色 */
}

/* Layout */
.container {
    display: flex;
    padding: 10px;
    margin-top: 10px; /* 留出空间放置导航栏 */
}

/* Left Sidebar */
.sidebar {
    width: 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}

/* 隐藏按钮样式 */
.toggle-sidebar {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000; /* 确保按钮显示在最上层 */
    /*background-color: #1E5087;*/
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
}

/* 在小屏幕上调整样式 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%); /* 默认隐藏 */
    }

    .toggle-sidebar {
        display: block; /* 显示按钮 */
    }
}

/* 显示侧边栏时的样式 */
.sidebar.active {
    transform: translateX(0); /* 滑出侧边栏 */
}
.avatar {
    width: 80%;
    border-radius: 3%;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: auto;
}

.profile-info p {
    font-size: 14px;
    color: #555;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.module {
    display: none;
}

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline .year {
    margin-bottom: 15px;
}

.timeline .year span {
    font-weight: bold;
}

.timeline .year p {
    margin-left: 20px;
}

/* Active Module */
.module.active {
    display: block;
}
.hidden-content {
    display:none; 
}


/* 学术成果 */
#publications {
    padding: 20px;
}

.papers-list {
    list-style-type: none; /* 移除默认的列表样式 */
    padding: 0;
}

.paper-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px; /* 每篇论文之间的间距 */
}

.paper-title {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.paper-title em {
    font-style: italic; /* 将文章名用斜体显示 */
}

/* 页脚样式 */
.footer {
    background-color: #2B4F87; /* 页脚背景设置为主题颜色 */
    color: #fff; /* 文本颜色设置为白色 */
    text-align: center; /* 文本居中对齐 */
    padding: 10px 0; /* 上下内边距 */
    font-size: 14px; /* 设置字体大小 */
    position: relative; /* 保证页脚固定在内容后面 */
    width: 100%; /* 页脚占满宽度 */
}


/* 响应式设计 */
@media (max-width: 968px) {
    .header {
        flex-direction: column; /* 垂直排列 */
        text-align: center;
    }

    .navbar ul {
        flex-direction: column; /* 导航栏改为垂直排列 */
        text-align: center;
    }

    .section {
        flex: 1 1 100%; /* 每个模块占满整行 */
    }

    .logo {
        height: 40px; /* 缩小LOGO大小 */
    }
}

@media (max-width: 980px) {
    body {
        font-size: 14px; /* 调整文字大小 */
    }
    h1 {
        font-size: 0px;
    }

    .navbar li {
        padding: 10px; /* 减小导航项的内边距 */
    }
}
