/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    width: 100vw;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: url('Images/grey.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --- HEADER & NAVIGATION 优化 --- */
header {
    background: #f8fafd;
    height: 110px;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,85,164,0.08);
    display: flex;
    align-items: center;
    padding: 0 0 0 0;
}

header img {
    height: 60px;
    width: auto;
    margin-left: 36px;
    margin-right: 36px;
    border-radius: 10px;
    background: #f8fafd;
    object-fit: contain;
    display: block;
}

header h1 {
    font-size: 2.3rem;
    color: #0055A4; /* 统一为西湖大学蓝 */
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 0 0;
    padding: 0;
    background: none;
    flex: 1;
    text-shadow: 0 2px 8px rgba(0,85,164,0.06);
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.1;
    /* 增加左侧间距，减少右侧间距 */
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
}

header nav {
    margin-right: 48px;
}

header ul {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

header li {
    background: none;
    border: none;
    padding: 0;
}

header a {
    color: #0055A4; /* 统一为西湖大学蓝 */
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 22px;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.5px;
    display: inline-block;
}

header a:hover,
header a:focus,
header li.active a {
    background: #e6f0ff;
    color: #ff8c00;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,85,164,0.07);
}

/* ---------------- MAIN LAYOUT ---------------- */
main {
    margin-top: 110px;
    margin-bottom: 60px;
    min-height: calc(100vh - 170px);
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    flex: 1 0 auto;
}

/* ---------------- HOME PAGE ---------------- */
.home-hero {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 13vh;
    margin-bottom: 2vh;
}
.slider-flex {
    display: flex;
    gap: 3vw;
    width: 90vw;
    max-width: 1200px;
    justify-content: center;
    align-items: flex-start;
}
.slider-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.slider-container.large-slider {
    width: 620px;
    height: 420px;
    min-width: 340px;
    max-width: 800px;
}
.slider-container.cover-slider {
    width: 340px;
    height: 420px;
    min-width: 200px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    height: 100%;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cover-slider .slide img {
    object-fit: contain;
    background: #f5f5f5;
}
.large-slider .slide img {
    object-fit: cover;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}
.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}
.slider-dot.active {
    background: white;
}

/* News Section */
.news-section {
    width: 90vw;
    max-width: 900px;
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    margin: 36px auto 0 auto;
    padding: 32px 36px 24px 36px;
}
.news-section h2 {
    color: #0055A4; /* 西湖大学蓝 */
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.news-list {
    list-style: none;
    padding-left: 0;
}
.news-list li {
    font-size: 1.08rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #222;
}
.news-icon {
    font-size: 1.2em;
    margin-right: 6px;
    flex-shrink: 0;
}
.news-list a {
    color: #0055A4; /* 西湖大学蓝 */
    text-decoration: underline;
}
.news-list a:hover {
    color: #ff8c00;
}

/* Welcome Section */
.welcome-section {
    width: 90vw;
    max-width: 900px;
    margin: 48px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 36px 36px 32px 36px;
    gap: 24px;
}
.welcome-left h2 {
    color: #0055A4; /* 西湖大学蓝 */
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.welcome-left h1 {
    color: #0055A4; /* 西湖大学蓝 */
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0;
}
.welcome-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f5faff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 1px 6px rgba(27,67,177,0.07);
}
.contact-icon img {
    width: 38px;
    height: 38px;
    display: block;
}
.contact-link {
    color: #0055A4; /* 西湖大学蓝 */
    font-size: 1.08rem;
    text-decoration: underline;
    font-weight: 500;
}
.contact-link:hover {
    color: #ff8c00;
}

/* ---------------- RESEARCH PAGE ---------------- */
.research-section {
    width: 90vw;
    max-width: 1100px;
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 40px 30px 30px 30px;
    margin: 40px 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    align-items: flex-start;
    justify-content: space-between;
}
.research-content {
    flex: 1 1 320px;
    min-width: 320px;
    max-width: 480px;
}
.research-section h2 {
    color: #0055A4; /* 西湖大学蓝 */
    font-size: 2rem;
    margin-bottom: 18px;
}
.research-lead {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 18px;
    color: #222;
}
.research-list {
    font-size: 1.1rem;
    margin-left: 18px;
    margin-bottom: 0;
    color: #0055A4; /* 西湖大学蓝 */
}
.research-list li {
    margin-bottom: 10px;
}
.research-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 420px;
    align-items: center;
    justify-items: center;
}
.research-img {
    width: 100%;
    max-width: 190px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #eaeaea;
    object-fit: cover;
}

/* ---------------- GROUP PAGE ---------------- */
.group-members {
    width: 90vw;
    max-width: 1100px;
    background: rgba(255,255,255,0.85);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 40px 30px 30px 30px;
    margin: 40px 0 30px 0;
}
.group-members h2 {
    color: #0055A4; /* 西湖大学蓝 */
    margin-top: 32px;
    margin-bottom: 18px;
    font-size: 2rem;
    border-bottom: 2px solid #0055A4; /* 西湖大学蓝 */
    padding-bottom: 4px;
}
.member {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(27,67,177,0.08);
    padding: 24px 32px;
    transition: box-shadow 0.2s, background 0.2s;
    min-height: 180px;
    border-left: 4px solid #0055A4; /* 西湖大学蓝 */
    gap: 36px;
}
.member-photo {
    width: 200px;
    height: 270px;
    object-fit: cover;
    border-radius: 14px;
    background: #eaeaea;
    border: 2px solid #0055A4; /* 西湖大学蓝 */
    box-shadow: 0 1px 6px rgba(27,67,177,0.09);
    flex-shrink: 0;
    display: block;
    transition: width 0.2s, height 0.2s;
}
.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.member-info h3 {
    margin: 0 0 6px 0;
    color: #0055A4; /* 西湖大学蓝 */
    font-size: 1.13rem;
    font-weight: 700;
}
.member-info ul {
    margin: 4px 0 4px 18px;
    padding-left: 0;
    font-size: 0.98rem;
}
.member-info p {
    font-size: 1rem;
    margin: 4px 0 0 0;
    color: #222;
}
.member-info blockquote {
    font-style: italic;
    color: #555;
    margin: 8px 0 8px 0;
    border-left: 3px solid #0055A4; /* 西湖大学蓝 */
    padding-left: 12px;
}
.member:last-child {
    margin-bottom: 0;
}

/* ---------------- PUBLICATIONS PAGE ---------------- */
.publications-list {
    width: 90vw;
    max-width: 1100px;
    background: rgba(255,255,255,0.85);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 40px 30px 30px 30px;
    margin: 40px 0 30px 0;
}
.publication-item {
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.publication-item:hover, .publication-item:focus {
    background: #e6f0ff;
    box-shadow: 0 4px 16px rgba(27,67,177,0.10);
}
.publication-title {
    color: #0055A4; /* 西湖大学蓝 */
    font-weight: bold;
    font-size: 1.1rem;
}
.publication-authors, .publication-journal {
    color: #333;
    font-size: 1rem;
}

/* ---------------- OPENINGS PAGE ---------------- */
.openings-section {
    width: 90vw;
    max-width: 800px;
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 40px 30px 30px 30px;
    margin: 40px 0 30px 0;
    position: relative;
}
.openings-section h2 {
    color: #0055A4; /* 西湖大学蓝 */
    font-size: 2rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.join-us {
    color: #ff8c00;
    font-size: 2rem;
    font-weight: bold;
    margin-left: 10px;
    font-family: 'Segoe UI', Arial, sans-serif;
    transform: rotate(-10deg);
    display: inline-block;
}
.opening-block {
    margin-bottom: 32px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px;
}
.opening-block h3 {
    color: #0055A4; /* 西湖大学蓝 */
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.opening-link {
    color: #0055A4; /* 西湖大学蓝 */
    text-decoration: underline;
}
.opening-link:hover {
    color: #ff8c00;
}
.opening-contact {
    font-size: 1.1rem;
    margin-top: 18px;
    color: #0055A4; /* 西湖大学蓝 */
}
.opening-contact a {
    color: #0055A4; /* 西湖大学蓝 */
    text-decoration: underline;
}

/* ---------------- FOOTER ---------------- */
footer {
    background: linear-gradient(90deg, #0055A4 0%, #2196f3 100%);
    height: 60px;
    width: 100vw;
    position: relative;
    bottom: 0;
    left: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    z-index: 1;
    box-shadow: 0 -2px 8px rgba(27,67,177,0.08);
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Arial, sans-serif;
    flex-shrink: 0;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
    .slider-flex {
        flex-direction: column;
        align-items: center;
        gap: 2vw;
    }
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px 8vw;
    }
    .welcome-right {
        align-items: flex-start;
    }
}
@media (max-width: 800px) {
    .group-members, .contact-info, .publications-list, .openings-section, .research-section {
        width: 98vw;
        padding: 12px 4vw;
    }
    .member {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 8px;
        gap: 10px;
        min-height: 0;
    }
    .member-photo {
        margin-bottom: 8px;
        width: 150px;
        height: 200px;
    }
}
@media (max-width: 700px) {
    .slider-container.large-slider,
    .slider-container.cover-slider {
        width: 96vw;
        min-width: 0;
        max-width: 100vw;
        height: 220px;
    }
    .slider-flex {
        width: 100vw;
        gap: 12px;
    }
    .news-section, .welcome-section {
        width: 98vw;
        padding: 16px 2vw;
    }
    .welcome-left h2 {
        font-size: 1.3rem;
    }
    .welcome-left h1 {
        font-size: 1.7rem;
    }
}
@media (max-width: 1280px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 12px 0 12px 0;
        align-items: flex-start;
    }
    header img {
        margin: 0 0 8px 24px;
        height: 48px;
    }
    header h1 {
        font-size: 1.5rem;
        margin-left: 24px;
        margin-bottom: 8px;
    }
    header nav {
        margin: 0 0 0 24px;
    }
    main {
        margin-top: 120px;
    }
}
@media (max-width: 750px) {
    header {
        padding: 6px 0 0 0;
    }
    header img {
        height: 36px;
        margin-left: 10px;
        margin-right: 10px;
    }
    header h1 {
        font-size: 1.1rem;
        margin-left: 10px;
    }
    header nav {
        padding-right: 10px;
    }
    header ul {
        gap: 1%;
    }
    header a {
        font-size: 0.98rem;
        padding: 6px 10px;
    }
    main {
        margin-top: 90px;
    }
    footer {
        font-size: 0.92rem;
        height: 44px;
    }
}
@media (max-width: 480px) {
    header ul {
        display: block;
    }
    header nav {
        margin: 0 0 12px 0;
    }
    main {
        margin-top: 240px;
    }
}
.member-list-no-photo {
    background: rgba(255,255,255,0.7);
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(27,67,177,0.07);
    padding: 24px 32px;
    margin-top: 36px;
    margin-bottom: 0;
}
.member-list-no-photo h2 {
    color: #0055A4; /* 西湖大学蓝 */
    font-size: 1.2rem;
    margin-top: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}
.member-list-no-photo ul {
    list-style: disc inside;
    margin-bottom: 10px;
    padding-left: 0;
}
.member-list-no-photo li {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #222;
}