:root {
    --primary-red: #c60c30;
    --dark-red: #9e0c13;
    --accent-gray: #f4f6f9;
    --text-main: #2d3748;
    --text-light: #718096;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --header-height: 80px;
}


.first-load-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.first-load-animation.hide {
    opacity: 0;
    pointer-events: none;
}

.letters-container {
    display: flex;
    gap: 5px;
}

.nical-letter {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px #2d3748;
    overflow: hidden;
}

.nical-letter::before {
    content: attr(data-letter);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-red);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nical-letter.fill::before {
    transform: translateY(0);
}









.main-wrapper {
    padding-top: calc(var(--header-height) + 60px);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 80px;
}


.image-slider {
    margin: 40px auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    height: 500px;
    background-color: #f8f9fa;
    opacity: 0;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--primary-red);
    color: white;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.3);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.about-text a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(198, 12, 48, 0.2);
    transition: border-color 0.2s;
}

.about-text a:hover {
    border-bottom-color: var(--primary-red);
}

.lab-image-container {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lab-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lab-image-container:hover img {
    transform: scale(1.05);
}

.badge-lu {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 600px) {
    .page-title {
        font-size: 1.8rem;
    }

    .image-slider {
        height: 300px;
    }

    .about-card {
        padding: 25px;
    }

    .lab-image-container {
        height: 250px;
    }
}








.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px) translateX(4px);
    box-shadow: var(--shadow-md);
}

.news-card:hover::before {
    opacity: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date i {
    color: var(--primary-red);
    margin-right: 5px;
}

.news-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
    line-height: 1.4;
    transition: color 0.2s;
}

.news-card:hover .news-title {
    color: var(--primary-red);
}

.read-more-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.news-card:hover .read-more-hint {
    opacity: 1;
    transform: translateX(0);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 30px 30px 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--primary-red);
    color: white;
    transform: rotate(90deg);
}

.modal-date {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--text-main);
}

.modal-body {
    padding: 30px;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.modal-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.modal-text a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(198, 12, 48, 0.3);
    transition: border-bottom-color 0.2s;
}

.modal-text a:hover {
    border-bottom-color: var(--primary-red);
}

footer {
    background: var(--primary-red);
    /* 页脚背景改为红色 */
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    header {
        height: auto;
        padding: 20px;
    }

    .content {
        padding-top: 40px;
    }

    nav {
        width: 100%;
        overflow-x: auto;
    }

    .page-title {
        font-size: 2rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .news-card {
        padding: 20px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 0 40px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: var(--primary-red);
    /* 导航栏背景改为红色 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

header.hide {
    transform: translateY(-100%);
}






nav {
    display: flex;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: white;
    /* 导航链接颜色改为白色 */
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    /* 悬停时使用半透明白色背景 */
}

nav a.current {
    color: white;
    background: rgba(255, 255, 255, 0.3);
    /* 当前页面链接使用更明显的白色背景 */
    font-weight: 600;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 60px) 20px 80px;
}



.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html {
    scroll-behavior: smooth;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.site-subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.layout-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    position: relative;
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    background: white;
    border-left: 1px solid #e2e8f0;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    right: 0;
    left: auto;
    overflow-y: auto;
    z-index: 1000;
    padding: 30px 20px;
    box-shadow: var(--shadow-drawer);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-wrapper.active {
    transform: translateX(0);
}

.sidebar-wrapper::-webkit-scrollbar {
    width: 5px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
}

.sidebar-header:hover {
    background: #f7fafc;
}

.sidebar-header i {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.3s;
}

.sidebar-header.active i {
    transform: rotate(180deg);
}

.sidebar-header.active {
    color: var(--primary-red);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.sidebar-list.open {
    max-height: 1000px;
    transition: max-height 0.6s ease-in-out;
}

.sidebar-list li a {
    display: block;
    padding: 8px 12px 8px 24px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.sidebar-list li a:hover {
    color: var(--primary-red);
    background: rgba(198, 12, 48, 0.03);
    border-left-color: rgba(198, 12, 48, 0.3);
}

.sidebar-list li a.active {
    color: var(--primary-red);
    background: rgba(198, 12, 48, 0.08);
    border-left-color: var(--primary-red);
    font-weight: 600;
}

.main-content {
    flex: 1;
    margin-left: 0;
    margin-right: 0;
    padding: 40px 60px 60px;
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

.intro-banner {
    background: none;
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 50px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.intro-banner p {
    color: #2d3748;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0;
    text-indent: 2em;
    line-height: 1.8;
    text-align: left;
}

.collapsible-section {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.collapsible-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.section-header {
    background: var(--primary-red);
    color: white;
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.section-header:hover {
    background: var(--dark-red);
}

.section-header h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header i {
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}

.section-header.collapsed i {
    transform: rotate(180deg);
}

.section-content {
    padding: 0;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.collapsed {
    max-height: 0;
}

.research-cards-container {
    border-left: 4px solid var(--primary-red);
    border-radius: 0 16px 16px 0;
    padding: 25px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px -8px rgba(198, 12, 48, 0.15);
    position: relative;
}

.research-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    scroll-margin-top: 100px;
    transition: box-shadow 0.3s ease;
}

.research-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.research-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--text-main);
    margin-top: 0;
}

.ref-box {
    background: #f8fafc;
    border-left: 3px solid #cbd5e0;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.ref-box h4 {
    margin: 0 0 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.ref-box ul {
    margin: 0;
    padding-left: 20px;
}

.ref-box li {
    margin-bottom: 6px;
}

.menu-toggle {
    display: flex;
    position: fixed;
    bottom: 30px;
    right: 390px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(198, 12, 48, 0.4);
    z-index: 200;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.menu-toggle:hover {
    transform: scale(1.05);
    background: var(--dark-red);
}

.back-to-top {
    display: flex;
    position: fixed;
    bottom: 95px;
    right: 80px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(198, 12, 48, 0.4);
    z-index: 190;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--dark-red);
    box-shadow: 0 6px 16px rgba(198, 12, 48, 0.5);
}

.footer-offset {
    background: var(--primary-red);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-left: 0;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.sidebar-backdrop {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .sidebar-wrapper {
        width: 280px;
    }

    .main-content {
        padding: 30px 20px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    header {
        height: auto;
        padding: 20px;
    }

    .layout-container {
        margin-top: 140px;
    }

    .sidebar-wrapper {
        top: 140px;
    }

    .sidebar-backdrop {
        top: 140px;
    }

    .page-title {
        font-size: 2rem;
    }

    .intro-banner {
        padding: 30px 20px;
    }

    .intro-banner p {
        text-indent: 1.5em;
        font-size: 1rem;
    }

    .research-cards-container {
        padding: 20px;
    }

    .section-header {
        padding: 18px 20px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .menu-toggle,
    .back-to-top {
        right: 30px;
    }

    .menu-toggle {
        bottom: 30px;
    }

    .back-to-top {
        bottom: 95px;
    }
}