* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

main {
    padding: 20px;
    margin: 20px;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
}

#home {
    background: url('Background.jpg') no-repeat center center/cover;
    height: 84.7vh;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0; /* No margin for home section */
}

.profile-pic {
    height: 100px; /* Set the height to 100px */
    width: auto; /* Maintain aspect ratio */
    border-radius: 8px;
}

.Research-image {
    height: 100px; /* Set the height to 100px */
    width: auto; /* Maintain aspect ratio */
    border-radius: 8px;
}

.Publication-image {
    height: 100px; /* Set the height to 100px */
    width: auto; /* Maintain aspect ratio */
    border-radius: 8px;
}


body {
    color: #243247;
    background: #f5f7fb;
}

header,
footer {
    background: #17385f;
}

main:not(#home) {
    max-width: 1050px;
    margin: 32px auto;
    padding: 36px;
    background: #fff;
    border-radius: 12px;
}

main p {
    margin-bottom: 18px;
}

main h2 {
    margin-bottom: 22px;
    color: #17385f;
}

main h3 {
    margin-bottom: 14px;
    color: #17385f;
    font-size: 1.25rem;
}

main section {
    margin-top: 32px;
}

main ul,
main ol {
    padding-left: 24px;
}

main li {
    margin-bottom: 16px;
}

main a {
    color: #2163a6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

main a:hover {
    text-decoration: underline;
}

#home {
    min-height: 78vh;
    height: auto;
    padding: 64px 24px;
    gap: 18px;
    background:
        linear-gradient(
            rgba(12, 35, 65, 0.72),
            rgba(12, 35, 65, 0.82)
        ),
        url("Background.jpg") center / cover no-repeat;
}

#home p {
    margin-bottom: 0;
}

#home .home-position {
    font-size: 1.3rem;
}

#home .home-tagline {
    margin: 12px 0 0;
    color: #fff;
    font-size: 1.6rem;
}

.home-description {
    max-width: 760px;
    font-size: 1.1rem;
}

.home-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.home-links a {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    color: #fff;
}

.home-links a:hover {
    background: #fff;
    color: #17385f;
    text-decoration: none;
}

.profile-pic {
    display: block;
    width: 180px;
    height: auto;
    margin-bottom: 24px;
    border-radius: 10px;
}

.publication-list li {
    margin-bottom: 26px;
}

.publication-role {
    display: block;
    margin-top: 6px;
    color: #65758a;
    font-size: 0.9rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    padding: 0 16px;
}

nav ul li {
    margin: 0;
}

footer p {
    margin: 4px 0;
}

@media (max-width: 640px) {
    main:not(#home) {
        margin: 16px;
        padding: 24px 20px;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    #home .home-tagline {
        font-size: 1.25rem;
    }

    nav ul li a {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏和页脚保留自身高度 */
header,
footer {
    flex-shrink: 0;
}

/* 首页填满导航栏与页脚之间的区域 */
#home {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 40px 20px;
    border-radius: 0;

    background-image: url('Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.research-gif {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 20px auto 28px;
    border-radius: 12px;
    border: 1px solid #dce5ef;
}