/* 基础样式 */
:root {
    --primary-color: #0e60b3;
    --secondary-color: #7f8c8d;
    --divider-thick: 3px solid var(--primary-color);
    --divider-thin: 1px solid #ecf0f1;
}

section p, 
.content p, 
table th, 
table td, 
.profile-info h2, 
.profile-info h1, 
.github-link {
    line-height: 1.25;  /* 设置行距为 1.25 倍 */
}

body {
    font-family: 'Open Sans', 'Source Han Sans', sans-serif;
    margin: 0;
    background-color: #f9f9f9;
}

/* 左侧菜单 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0px;
    margin: 0;
}

.sidebar li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.sidebar li:hover {
    background-color: #f4f4f4;
}

.sidebar li.active {
    background-color: var(--primary-color);
}

.sidebar li.active a {
    color: white;
}

.sidebar a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    text-align: center;
}

/* 主内容区 */
.content {
    font-size: 16px;
    display: flex;
    justify-content: left;
    align-items: left;
    flex-direction: column;
    margin-top: 50px;
    padding: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* 个人信息部分 */
.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile {
    display: flex;
    align-items: center;
}

.profile-image {
    width: 100px;
    height: 100px;
    margin-right: 10px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    margin: 0;
    font-size: 14px;
}

.divider-thin {
    border-top: 1px solid #4986c2;
    margin: 10px 0;
}

.divider-thin2 {
    border-top: 1px solid #a8aeb5;
    margin: 10px 0;
}

.divider-thick {
    border-top: 2px solid #ddd;
    margin: 20px 0;
}

/* 基本信息部分 */
section h2 {
    font-size: 18px;
    color: #0e60b3;
    margin-top: 10px;
    text-align: left;
    margin-bottom: 10px;
}

section p {
    font-size: 14px;
    line-height: 1.5;
}

section a {
    color: #1abc9c;
    text-decoration: none;
}

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

/* 联系信息部分 */
.contact-info {
    align-items: center;
}

.contact-info a {
    color: #1abc9c;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Paper Item样式 */
.paper-item {
    margin-bottom: 20px;
}

.paper-date {
    font-size: 14px;
    color: #888;
    margin-right: 10px;
}

.paper-title {
    font-size: 14px;
    font-weight: bold;
    color: #1abc9c;
    text-decoration: none;
}

.paper-title:hover {
    text-decoration: underline;
}

.github-link {
    font-size: 14px;
    margin-left: 15px;
    color: #333;
    text-decoration: none;
}

.github-link:hover {
    color: #1abc9c;
}

/* 图片容器样式 */
.images-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.image-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* 显示按钮样式 */
.show-btn {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 13px;
    background-color: #f9f9f9;
    color: rgb(94, 94, 94);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-btn:hover {
    background-color: rgba(148, 148, 148, 0.9);
}

/* 放大显示层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(98, 98, 98, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


/* 折叠区域样式 */
details summary {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0px 0; /* 保证折叠标题上下间距适中 */
}

details {
    margin-bottom: 0px;
}

details[open] summary {
    color: #0e60b3; /* 折叠展开时标题变色 */
}

details div {
    margin-top: 0px;
    padding-left: 0px; /* 保证折叠区域内部与边缘有一定距离 */
}

details div .paper-item {
    margin-bottom: 10px; /* 项目之间的间距 */
}

details div .divider-thin {
    margin-top: 0px;
    margin-bottom: 0px;
}

.social-links {
    display: flex;                /* 横向排列 */
    gap: 40px;                    /* 设置链接之间的间距 */
    margin-top: 0px;             /* 可选：调整垂直间距 */
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* 移动设备样式调整 */
@media (max-width: 600px) {
    .sidebar ul {
        gap: 3px; /* 标签之间的间距减小 */
    }

    .sidebar a {
        font-size: 14px;  /* 缩小标签页的字体 */
    }

    .content {
        padding: 20px;
        margin-top: 50px;
        max-width: 600px;
    }

    .profile-image {
        width: 90px;
        height: 90px;
    }

    .profile-info h2 {
        font-size: 14px;
    }

    table th, table td {
        padding: 8px;
        font-size: 14px;
    }

    .sidebar li {
        padding: 3px 3px; /* 减小标签的内边距 */
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-info a {
        font-size: 14px;
    }

    .sidebar {
        height: 40px;  /* 减小标签栏高度 */
        padding: 5px 5;  /* 减少标签栏的上下内边距 */
    }

    body {
        font-size: 14px;
    }

    .profile-info h1,
    .profile-info h2 {
        font-size: 14px;
    }

    .contact-info a {
        font-size: 14px;
    }

    .content p {
        font-size: 14px;
    }

    .paper-title,
    .github-link {
        font-size: 14px;
    }

    section h2 {
        font-size: 16px;
        color: #0e60b3;
        margin-top: 10px;
        text-align: left;
        margin-bottom: 10px;
    }

    .content {
        font-size: 14px;
        display: flex;
        justify-content: left;
        align-items: left;
        flex-direction: column;
        margin-top: 50px;
        padding: 40px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    details summary {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 0px 0; /* 保证折叠标题上下间距适中 */
}
}

