/* body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #333;
} */

header {
    width: 100%;
    position: fixed;
    top: 0;
    background: #1666b1;
    color: #fff;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center; /* 新增：整体居中 */
}

.container {
    display: flex;
    margin-top: 60px;
    width: 100%;
    max-width: 1400px; /* 新增：限制最大宽度 */
    padding: 0 20px; /* 新增：两侧留白 */
}

aside {
    width: 250px;
    flex-shrink: 0;
    padding: 20px;
    background: #fff;
    box-shadow: 4px 0 6px rgba(0,0,0,0.1);
    align-self: flex-start; /* 新增：防止侧边栏拉伸 */
    position: sticky; /* 新增：保持侧边栏高度自适应 */
    top: 80px; /* 与header高度匹配 */
    height: fit-content; /* 新增：高度适应内容 */
}

main {
    flex-grow: 1;
    padding: 20px 40px;
    max-width: calc(100% - 250px);
}
.block {
    width: 100%;
    max-width: 960px;
    margin: 1rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

a {
    color: #1666b1;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 3px 5px;
    border-radius: 4px;
}

a.no-link {
    pointer-events: none;
    cursor: default;
}

a:hover {
    background: rgba(22,102,177,0.1);
    text-decoration: underline;
    transform: translateY(-1px);
}

a:active {
    transform: translateY(1px);
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

#publications a {
    color: #2c3e50;
    border-left: 3px solid #3498db;
    padding-left: 10px;
    display: block;
    margin: 5px 0;
}

#publications a:hover {
    background: #f8f9fa;
    border-left-color: #1666b1;
}

#research ul {
    list-style: none;
}

#publications ul {
    list-style: decimal;
    padding-left: 2em;
}

#projects ul {
    list-style: none;
    counter-reset: project-counter;
}

#projects li::before {
    content: "[" counter(project-counter) "] ";
    counter-increment: project-counter;
    color: #1666b1;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    border-radius: 10px;
    transition: background 0.3s;
}

nav ul li a.active, nav ul li a:hover {
    background: #0f4b85;
}


aside .aside-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

aside .profile {
    text-align: center;
}

aside img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 10px;
}

aside h1 {
    margin: 10px 0;
}

aside p {
    margin: 10px 0;
}

section {
    padding: 1rem;
    margin: 1rem 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h2 {
    border-bottom: 2px solid #1666b1;
    padding-bottom: 0.5rem;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 0.5rem 0;
}

footer {
    background: #1666b1;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    border-radius: 10px 10px 0 0;
    width: 100%;
    position: relative;
    bottom: 0;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 设置为5列 */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.member {
    text-align: center;
    padding: 15px;
    max-width: 150px;  /* 限制最大宽度 */
    word-wrap: break-word;  /* 允许长单词换行 */
}

.member:hover {
    transform: translateY(-5px);
}

.member p {
    background: rgba(22, 102, 177, 0.08);
    padding: 8px;
    border-radius: 6px;
}
.member p.contact-info {
    font-size: 8px;  /* 缩小字号 */
    margin: 5px 0;
    overflow-wrap: break-word;  /* 强制换行 */
    max-width: 100%;  /* 限制不超过容器宽度 */
    margin-top: 5px;   /* 可选：调整间距 */
    line-height: 1.2;  /* 可选：调整行高 */
    color: #666;       /* 可选：弱化文字颜色 */
}

.member img {
    width: 150px;
    height: 210px; 
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(20%);
}

.team-photos {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.team-photos img {
    flex: 1 0 30%;
    border-radius: 10px;
    margin: 10px;
    width: 30%;
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    aside {
        width: 100%;
        box-shadow: none;
        position: static;
    }
    
    main {
        max-width: 100%;
        padding: 20px;
    }
    
    .team-members {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
}

nav ul li a.active {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.profile {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.team-members .member img {
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.3s;
}

.team-members .member:hover img {
    transform: scale(1.05);
}
