/* 全局重置 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    overflow-x: hidden;
    overflow-y: auto; /* 确保垂直滚动可用 */
    width: 100%;
    height: 100%;
}

body { 
    font-family: "微软雅黑", "Microsoft YaHei", "黑体", "SimHei", Arial, sans-serif; 
    background: #FFF8F0; 
    line-height: 1.8;
    color: #2c2c2c;
    overflow-x: hidden;
    overflow-y: auto; /* 确保垂直滚动可用 */
    width: 100%;
    max-width: 100vw;
    min-height: 100%;
}
a { text-decoration: none; color: inherit; }
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    width: 100%;
}

/* --- 导航栏 (Flex布局 + 固定定位) --- */
.navbar {
    background: linear-gradient(180deg, #C8102E 0%, #8B0000 100%);
    color: white;
    position: fixed; /* 固定定位，始终固定在顶部 */
    top: 0; /* 固定在顶部 */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(200,16,46,0.3);
    transition: all 0.3s ease; /* CSS3 过渡效果 */
    border-bottom: 3px solid #D4AF37;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: visible;
    display: flex; /* Flex布局 */
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.nav-container {
    display: flex; /* Flex布局 */
    justify-content: space-between;
    align-items: center;
    padding: 12px 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1001;
    overflow: visible;
}

    /* 桌面端导航栏布局 - 居中显示 */
    @media screen and (min-width: 769px) {
        .navbar {
            flex-direction: row;
            justify-content: center;
            align-items: center;
            position: fixed; /* 固定定位 */
            top: 0; /* 固定在顶部 */
        }
    
    .nav-container {
        position: absolute;
        left: 50px;
        flex: 0 0 auto;
    }
    
    .nav-links {
        display: flex !important;
        position: relative;
        margin: 0 auto;
        flex: 0 0 auto;
        width: auto;
        justify-content: center;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.logo img {
    width: 45px;
    height: 45px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    padding: 2px;
    background: white;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FFD700;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 8px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1001;
    overflow: visible;
}

.nav-links li { 
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}
.nav-links a { 
    color: white; 
    text-decoration: none; 
    padding: 12px 18px; 
    display: block;
    transition: all 0.3s ease; /* CSS3 过渡效果 */
    border-radius: 4px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    word-wrap: normal;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #FFD700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links a:hover, .nav-links a.active { 
    background-color: rgba(255,255,255,0.15); 
    transform: translateY(-2px); /* 动画效果 */
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

/* 下拉菜单 (绝对定位) */
.dropdown { 
    position: relative;
    z-index: 1001;
}
/* 在下拉菜单上方添加透明连接区域，消除间隙 */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    z-index: 1001;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 20px rgba(200,16,46,0.3);
    border-radius: 4px;
    overflow: hidden;
    animation: slideDown 0.3s ease; /* CSS3 动画 */
    border: 2px solid #C8102E;
    border-top: 3px solid #D4AF37;
    z-index: 1002;
    margin-top: 5px;
    padding-top: 3px;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dropdown-content a { 
    color: #2c2c2c; 
    display: block; 
    padding: 12px 18px;
    transition: all 0.3s ease; /* CSS3 过渡 */
    border-left: 3px solid transparent;
    white-space: nowrap;
}
.dropdown-content a:hover {
    background-color: #FFF5F5;
    border-left-color: #C8102E;
    color: #C8102E;
    font-weight: bold;
}
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content { 
    display: block; 
}

/* --- 轮播图 (相对+绝对定位) --- */
.banner { 
    position: relative; 
    width: 100%;
    max-width: 100vw;
    height: 450px; 
    margin-top: 50px; /* 为固定导航栏留出空间 */
    overflow: hidden; 
    border-bottom: 4px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(200,16,46,0.2);
    box-sizing: border-box;
}
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.slide { 
    position: absolute; 
    width: 100%; 
    max-width: 100%;
    height: 100%; 
    opacity: 0; 
    transition: opacity 1s ease-in-out; /* 过渡效果 */
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF8F0 100%);
    top: 0;
    left: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.slide.active { opacity: 1; }
.slide img { 
    width: 100%; 
    max-width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: center;
    background: #FFF8F0;
    display: block;
    box-sizing: border-box;
}

/* 轮播按钮 */
.prev-btn, .next-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(200,16,46,0.8); 
    color: #FFD700; 
    border: 2px solid #FFD700;
    padding: 15px 20px; 
    cursor: pointer;
    font-size: 24px;
    border-radius: 0;
    transition: all 0.3s ease; /* CSS3 过渡效果 */
    z-index: 10;
    font-weight: bold;
}
.prev-btn:hover, .next-btn:hover {
    background: #C8102E;
    transform: translateY(-50%) scale(1.15); /* 动画效果 */
    box-shadow: 0 0 15px rgba(212,175,55,0.6);
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* --- 版块布局 --- */
main { 
    padding: 20px; 
    max-width: 1200px; 
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.page-main {
    padding: 40px 20px;
    padding-top: 110px; /* 为固定导航栏留出空间 */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
section { 
    margin-bottom: 40px; 
    background: white; 
    padding: 35px; 
    border-radius: 0;
    box-shadow: 0 3px 15px rgba(200,16,46,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* CSS3 过渡 */
    border: 1px solid #E8E8E8;
    border-top: 4px solid #C8102E;
    position: relative;
}
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #D4AF37;
}
section:hover {
    transform: translateY(-3px); /* 悬停动画 */
    box-shadow: 0 6px 25px rgba(200,16,46,0.25);
    border-top-color: #8B0000;
}

/* 首页介绍版块 */
.section-intro {
    text-align: center;
    background: linear-gradient(135deg, #C8102E 0%, #8B0000 100%);
    color: white;
    padding: 60px 40px;
    border-top: 6px solid #D4AF37;
    position: relative;
    overflow: hidden;
}
.section-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.section-intro h2 {
    font-size: 42px;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease; /* CSS3 动画 */
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    color: #FFD700;
    font-weight: bold;
    position: relative;
    z-index: 1;
}
.section-intro p {
    font-size: 19px;
    line-height: 2;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* 图文结合版块 (Flex) */
.section-split { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}
.text-box { 
    flex: 1; 
}
.text-box h3 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #C8102E;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 3px solid #D4AF37;
    position: relative;
}
.text-box h3::before {
    content: '◆';
    color: #C8102E;
    margin-right: 10px;
    font-size: 20px;
}
.text-box p {
    margin-bottom: 18px;
    line-height: 2;
    color: #444;
    text-align: justify;
    font-size: 16px;
}
.img-box { 
    flex: 1; 
    position: relative; /* 相对定位 */
}
.img-box img { 
    width: 100%; 
    border-radius: 8px;
    transition: transform 0.3s ease; /* CSS3 过渡 */
}
.img-box img:hover {
    transform: scale(1.05); /* 悬停动画 */
}

/* 卡片版块 (Flex + 动画) */
.card-container { 
    display: flex; 
    justify-content: space-around; 
    margin-top: 20px;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}
.card {
    flex: 1;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    padding: 35px 25px; 
    text-align: center;
    border: 2px solid #C8102E;
    border-top: 5px solid #D4AF37;
    border-radius: 0;
    transition: all 0.3s ease; /* CSS3 过渡 */
    cursor: pointer;
    position: relative;
    box-shadow: 0 3px 10px rgba(200,16,46,0.15);
}
.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 5px;
    background: linear-gradient(90deg, #C8102E 0%, #D4AF37 50%, #C8102E 100%);
}
.card:hover {
    transform: translateY(-8px); /* 悬停动画 */
    box-shadow: 0 8px 25px rgba(200,16,46,0.3);
    border-color: #8B0000;
}
.card h4 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #C8102E;
    font-weight: bold;
}
.card p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

/* 网格版块 (Flex布局) */
.section-grid {
    background: white;
}
.section-grid h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 35px;
    color: #C8102E;
    font-weight: bold;
    position: relative;
    padding-bottom: 20px;
}
.section-grid h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}
.grid-item {
    flex: 1 1 calc(50% - 10px);
    background: #FFF8F0;
    padding: 28px;
    border-radius: 0;
    border-left: 5px solid #C8102E;
    border-top: 2px solid #D4AF37;
    transition: all 0.3s ease; /* CSS3 过渡 */
    box-shadow: 0 2px 8px rgba(200,16,46,0.1);
}
.grid-item:hover {
    background: #FFF5F5;
    transform: translateX(8px); /* 悬停动画 */
    border-left-color: #8B0000;
    box-shadow: 0 4px 15px rgba(200,16,46,0.2);
}
.grid-item h4 {
    color: #C8102E;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: bold;
}
.grid-item p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

/* 引用版块 */
.section-quote {
    background: linear-gradient(135deg, #8B0000 0%, #C8102E 100%);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-top: 6px solid #D4AF37;
    position: relative;
}
.section-quote::before,
.section-quote::after {
    content: '"';
    font-size: 80px;
    color: rgba(212,175,55,0.3);
    position: absolute;
    font-family: serif;
}
.section-quote::before {
    top: 20px;
    left: 30px;
}
.section-quote::after {
    bottom: 20px;
    right: 30px;
}
.section-quote blockquote {
    font-size: 32px;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 2;
    color: #FFD700;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.quote-author {
    font-size: 18px;
    opacity: 0.95;
    color: #FFD700;
    font-weight: bold;
}

/* CSS3 关键帧动画 */
@keyframes floatUp {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 表单样式 --- */
.form-wrapper { 
    width: 100%;
    max-width: 700px; 
    margin: 50px auto; 
    background: #fff; 
    padding: 40px; 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.form-wrapper h2 {
    text-align: center;
    color: #C8102E;
    margin-bottom: 35px;
    font-size: 32px;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 4px solid #D4AF37;
    position: relative;
}
.form-wrapper h2::before,
.form-wrapper h2::after {
    content: '◆';
    color: #D4AF37;
    margin: 0 15px;
    font-size: 20px;
}
.form-group { 
    margin-bottom: 20px; 
}
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: bold; 
    color: #333;
}
.form-group input[type="text"], 
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select, 
.form-group textarea {
    width: 100%; 
    padding: 12px; 
    border: 2px solid #ddd; 
    border-radius: 0;
    font-size: 16px;
    transition: all 0.3s ease; /* CSS3 过渡 */
    font-family: inherit;
    background: #FFF8F0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C8102E;
    box-shadow: 0 0 8px rgba(200,16,46,0.3);
    border-width: 2px;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
/* 单选和复选框样式 */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-left: 5px;
    cursor: pointer;
    transform: scale(1.2); /* 放大效果 */
    transition: transform 0.2s ease; /* CSS3 过渡 */
}
.form-group input[type="radio"]:hover,
.form-group input[type="checkbox"]:hover {
    transform: scale(1.3);
}
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}
.radio-group label,
.checkbox-group label {
    display: inline;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}
.submit-btn {
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(135deg, #C8102E 0%, #8B0000 100%);
    color: #FFD700; 
    border: 2px solid #D4AF37;
    border-radius: 0;
    cursor: pointer; 
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease; /* CSS3 过渡 */
    margin-top: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 10px rgba(200,16,46,0.3);
}
.submit-btn:hover { 
    background: linear-gradient(135deg, #8B0000 0%, #C8102E 100%);
    transform: translateY(-3px); /* 动画效果 */
    box-shadow: 0 6px 20px rgba(200,16,46,0.5);
    border-color: #FFD700;
}
.submit-btn:active {
    transform: translateY(0);
}

/* --- 子页面样式 --- */
.page-header {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #C8102E 0%, #8B0000 100%);
    color: white;
    margin-bottom: 40px;
    border-radius: 0;
    border-top: 6px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(200,16,46,0.3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease; /* CSS3 动画 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.page-subtitle {
    font-size: 20px;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-section {
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.content-section h2 {
    color: #C8102E;
    font-size: 34px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid #D4AF37;
    font-weight: bold;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.content-section h2::before {
    content: '■';
    color: #C8102E;
    margin-right: 10px;
    font-size: 20px;
}
.content-section h3 {
    color: #8B0000;
    font-size: 26px;
    margin-bottom: 18px;
    margin-top: 25px;
    font-weight: bold;
    padding-left: 15px;
    border-left: 4px solid #C8102E;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.content-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 浮动布局 (Float) */
.float-layout {
    overflow: hidden; /* 清除浮动 */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.float-left {
    float: left; /* 浮动布局 */
    width: 48%;
    max-width: 48%;
    margin-right: 4%;
    box-sizing: border-box;
}
.float-right {
    float: right; /* 浮动布局 */
    width: 48%;
    max-width: 48%;
    box-sizing: border-box;
}
.content-img {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(200,16,46,0.25);
    transition: transform 0.3s ease; /* CSS3 过渡 */
    border: 3px solid #C8102E;
    border-top: 4px solid #D4AF37;
    box-sizing: border-box;
    display: block;
}
.content-img:hover {
    transform: scale(1.03); /* 悬停动画 */
    box-shadow: 0 8px 30px rgba(200,16,46,0.4);
    border-color: #8B0000;
}

/* Flex布局 */
.flex-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}
.flex-item {
    flex: 1;
    min-width: 0;
    background: #FFF8F0;
    padding: 28px;
    border-radius: 0;
    border-top: 5px solid #C8102E;
    border-left: 3px solid #D4AF37;
    transition: all 0.3s ease; /* CSS3 过渡 */
    box-shadow: 0 2px 8px rgba(200,16,46,0.1);
    box-sizing: border-box;
}
.flex-item:hover {
    background: #FFF5F5;
    transform: translateY(-5px); /* 悬停动画 */
    box-shadow: 0 6px 20px rgba(200,16,46,0.25);
    border-top-color: #8B0000;
}

/* 成就列表 */
.achievement-list {
    list-style: none;
    padding-left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.achievement-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative; /* 相对定位 */
    color: #555;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}
.achievement-list li:before {
    content: "◆";
    position: absolute; /* 绝对定位 */
    left: 0;
    color: #C8102E;
    font-weight: bold;
    font-size: 18px;
}

/* 技术卡片网格 */
.tech-grid,
.bio-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.tech-card,
.bio-card {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 0;
    background: #FFF8F0;
    padding: 28px;
    border-radius: 0;
    border-left: 5px solid #C8102E;
    border-top: 2px solid #D4AF37;
    transition: all 0.3s ease; /* CSS3 过渡 */
    box-shadow: 0 2px 8px rgba(200,16,46,0.1);
    box-sizing: border-box;
}
.tech-card:hover,
.bio-card:hover {
    background: #FFF5F5;
    transform: translateY(-5px); /* 悬停动画 */
    box-shadow: 0 5px 18px rgba(200,16,46,0.25);
    border-left-color: #8B0000;
}
.tech-card h4,
.bio-card h4 {
    color: #C8102E;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: bold;
}

/* 高亮版块 */
.highlight-section {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF8F0 100%);
    border-left: 6px solid #C8102E;
    border-top: 3px solid #D4AF37;
}

/* 成就容器 */
.achievement-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.achievement-item {
    background: #FFF8F0;
    padding: 28px;
    border-radius: 0;
    border-left: 5px solid #C8102E;
    border-top: 2px solid #D4AF37;
    transition: all 0.3s ease; /* CSS3 过渡 */
    box-shadow: 0 2px 8px rgba(200,16,46,0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.achievement-item:hover {
    background: #FFF5F5;
    transform: translateX(8px); /* 悬停动画 */
    border-left-color: #8B0000;
    box-shadow: 0 4px 15px rgba(200,16,46,0.2);
}
.achievement-item h3,
.achievement-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 科学家卡片 */
.scientist-section {
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.scientist-card {
    display: flex;
    gap: 30px;
    background: #FFF8F0;
    padding: 35px;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(200,16,46,0.15);
    transition: all 0.3s ease; /* CSS3 过渡 */
    border: 2px solid #E8E8E8;
    border-top: 5px solid #C8102E;
    border-left: 4px solid #D4AF37;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.scientist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: #D4AF37;
}
.scientist-card:hover {
    transform: translateY(-5px); /* 悬停动画 */
    box-shadow: 0 10px 35px rgba(200,16,46,0.3);
    border-top-color: #8B0000;
}
.scientist-card.reverse {
    flex-direction: row-reverse;
}
.scientist-img-wrapper {
    flex: 0 0 300px;
    min-width: 0;
    position: relative; /* 相对定位 */
    box-sizing: border-box;
}
.scientist-img {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease; /* CSS3 过渡 */
    border: 3px solid #C8102E;
    border-top: 4px solid #D4AF37;
    box-shadow: 0 5px 15px rgba(200,16,46,0.2);
    box-sizing: border-box;
    display: block;
}
.scientist-img:hover {
    transform: scale(1.03); /* 悬停动画 */
    border-color: #8B0000;
    box-shadow: 0 8px 25px rgba(200,16,46,0.35);
}
.scientist-info {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}
.scientist-info h2 {
    color: #C8102E;
    font-size: 34px;
    margin-bottom: 12px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 3px solid #D4AF37;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.scientist-title {
    color: #8B0000;
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 22px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.scientist-info p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.quote {
    font-style: italic;
    color: #C8102E;
    font-size: 19px;
    padding: 20px;
    background: #FFF8F0;
    border-left: 5px solid #C8102E;
    border-top: 2px solid #D4AF37;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(200,16,46,0.1);
}

/* 团队版块 */
.team-section {
    margin-top: 50px;
}
.team-section h2 {
    text-align: center;
    color: #C8102E;
    font-size: 38px;
    margin-bottom: 35px;
    font-weight: bold;
    padding-bottom: 20px;
    border-bottom: 4px solid #D4AF37;
    position: relative;
}
.team-section h2::before,
.team-section h2::after {
    content: '◆';
    color: #D4AF37;
    margin: 0 20px;
    font-size: 24px;
}
.team-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.team-item {
    flex: 1 1 calc(33.333% - 14px);
    background: #FFF8F0;
    padding: 28px;
    border-radius: 0;
    border-top: 5px solid #C8102E;
    border-left: 3px solid #D4AF37;
    transition: all 0.3s ease; /* CSS3 过渡 */
    box-shadow: 0 2px 8px rgba(200,16,46,0.1);
}
.team-item:hover {
    background: #FFF5F5;
    transform: translateY(-5px); /* 悬停动画 */
    box-shadow: 0 6px 20px rgba(200,16,46,0.25);
    border-top-color: #8B0000;
}
.team-item h3 {
    color: #C8102E;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: bold;
}
.team-item p {
    color: #666;
    line-height: 1.6;
}

/* 表单必填标记 */
.required {
    color: #e74c3c;
    margin-left: 3px;
}

/* 表单错误样式 */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: #ffeaea;
}
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 表单消息提示 */
.form-message {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.form-message.success {
    background: #27ae60;
}
.form-message.error {
    background: #e74c3c;
}

/* 返回顶部按钮悬停效果 */
.back-to-top:hover {
    background: #C8102E !important;
    border-color: #FFD700 !important;
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 0 20px rgba(212,175,55,0.6) !important;
}

/* 页脚 */
footer {
    background: linear-gradient(180deg, #8B0000 0%, #C8102E 100%);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    border-top: 4px solid #D4AF37;
    box-shadow: 0 -4px 15px rgba(200,16,46,0.3);
}
footer p {
    margin: 0;
    color: #FFD700;
    font-weight: 500;
}

/* ============================================
   响应式设计 - 手机端适配 (小于768px)
   ============================================ */
@media screen and (max-width: 768px) {
    /* 全局调整 */
    html, body {
        overflow-x: hidden;
        overflow-y: auto; /* 确保垂直滚动可用 */
        width: 100%;
        max-width: 100vw;
    }
    
    body {
        font-size: 15px;
        line-height: 1.7;
    }
    
    /* 导航栏 - 手机端 */
    .navbar {
        padding: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        position: fixed; /* 手机端也保持固定定位 */
        top: 0;
    }
    
    .banner {
        margin-top: 30px; /* 手机端导航栏高度较小 */
    }
    
    .page-main {
        padding-top: 30px; /* 手机端为固定导航栏留出空间 */
    }
    
    .nav-container {
        padding: 12px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle span {
        width: 28px;
        height: 3px;
        background: #FFD700;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .nav-container {
        position: relative;
        left: auto;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
        background: rgba(139,0,0,0.95);
        border-top: 2px solid #D4AF37;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: static;
    }
    
    .nav-links.active {
        display: flex;
        max-height: 500px;
        padding: 10px 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        padding: 15px 25px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255,255,255,0.1);
        padding-left: 30px;
        transform: none;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* 下拉菜单 - 手机端 */
    .dropdown {
        width: 100%;
        position: relative;
    }
    
    .dropdown-content {
        position: static !important;
        display: none !important;
        width: 100% !important;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.15);
        background: rgba(200,16,46,0.6) !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        border-radius: 0;
        animation: none;
        z-index: auto;
        top: auto !important;
        left: auto !important;
        min-width: auto !important;
    }
    
    .dropdown-content a {
        color: white !important;
        padding: 12px 40px !important;
        font-size: 15px;
        border-left: none !important;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1) !important;
        padding-left: 45px !important;
        color: white !important;
        font-weight: normal;
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
    }
    
    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 12px;
        margin-left: 5px;
        transition: transform 0.3s ease;
        display: inline-block;
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    /* 轮播图 - 手机端 */
    .banner {
        height: 220px;
        margin-top: 60px; /* 手机端导航栏高度较小 */
    }
    
    .prev-btn, .next-btn {
        padding: 8px 12px;
        font-size: 16px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    /* 主内容区 - 手机端 */
    main, .page-main {
        padding: 20px 15px;
        padding-top: 80px; /* 手机端为固定导航栏留出空间 */
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    section {
        padding: 25px 18px;
        margin-bottom: 20px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    section::before {
        width: 40px;
    }
    
    /* 首页介绍版块 - 手机端 */
    .section-intro {
        padding: 35px 20px;
        margin-bottom: 20px;
    }
    
    .section-intro h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .section-intro p {
        font-size: 15px;
        line-height: 1.8;
    }
    
    /* 图文结合版块 - 手机端 */
    .section-split {
        flex-direction: column;
        gap: 20px;
        padding: 25px 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .text-box {
        order: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .img-box {
        order: 2;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .text-box h3 {
        font-size: 22px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .text-box p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 12px;
    }
    
    .img-box img {
        border-radius: 8px;
        width: 100%;
    }
    
    /* 卡片版块 - 手机端 */
    .section-cards h3 {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .card-container {
        flex-direction: column;
        gap: 18px;
        margin-top: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 8px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .card h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .card p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* 网格版块 - 手机端 */
    .section-grid {
        padding: 25px 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-grid h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .section-grid h3::after {
        width: 60px;
    }
    
    .grid-container {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .grid-item {
        flex: 1 1 100%;
        padding: 20px 18px;
        border-radius: 6px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .grid-item h4 {
        font-size: 19px;
        margin-bottom: 10px;
    }
    
    .grid-item p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* 引用版块 - 手机端 */
    .section-quote {
        padding: 35px 20px;
        margin-bottom: 20px;
    }
    
    .section-quote blockquote {
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .quote-author {
        font-size: 15px;
    }
    
    .section-quote::before,
    .section-quote::after {
        font-size: 40px;
    }
    
    .section-quote::before {
        top: 15px;
        left: 15px;
    }
    
    .section-quote::after {
        bottom: 15px;
        right: 15px;
    }
    
    /* 表单 - 手机端 */
    .form-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 25px 18px;
        margin: 20px auto;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .form-wrapper h2 {
        font-size: 22px;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .form-group input[type="text"], 
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select, 
    .form-group textarea {
        padding: 12px;
        font-size: 15px;
        border-radius: 6px;
    }
    
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 12px;
        margin-top: 8px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 17px;
        margin-top: 15px;
    }
    
    /* 子页面头部 - 手机端 */
    .page-header {
        padding: 35px 20px;
        margin-bottom: 25px;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-header h1 {
        font-size: 26px;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .page-subtitle {
        font-size: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 内容区域 - 手机端 */
    .content-section {
        padding: 25px 18px;
        margin-bottom: 20px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .content-section h2 {
        font-size: 22px;
        margin-bottom: 18px;
        padding-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .content-section h3 {
        font-size: 19px;
        margin-bottom: 12px;
        padding-left: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .content-section p {
        font-size: 15px;
        line-height: 1.8;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 浮动布局 - 手机端 */
    .float-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .float-left,
    .float-right {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .content-img {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    /* Flex布局 - 手机端 */
    .flex-layout {
        flex-direction: column;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .flex-item {
        padding: 22px 18px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 技术卡片网格 - 手机端 */
    .tech-grid,
    .bio-grid {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .tech-card,
    .bio-card {
        flex: 1 1 100%;
        padding: 22px 18px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .tech-card h4,
    .bio-card h4 {
        font-size: 19px;
    }
    
    /* 成就容器 - 手机端 */
    .achievement-container {
        gap: 18px;
    }
    
    .achievement-item {
        padding: 22px 18px;
        border-radius: 8px;
    }
    
    /* 科学家卡片 - 手机端 */
    .scientist-section {
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .scientist-card {
        flex-direction: column;
        padding: 25px 18px;
        gap: 20px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .scientist-card.reverse {
        flex-direction: column;
    }
    
    .scientist-img-wrapper {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .scientist-img {
        height: 280px;
        border-radius: 8px;
    }
    
    .scientist-info h2 {
        font-size: 24px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .scientist-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .scientist-info p {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .quote {
        font-size: 16px;
        padding: 18px;
        border-radius: 6px;
        margin-top: 20px;
    }
    
    /* 团队版块 - 手机端 */
    .team-section {
        margin-top: 30px;
    }
    
    .team-section h2 {
        font-size: 24px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .team-grid {
        flex-direction: column;
        gap: 18px;
    }
    
    .team-item {
        flex: 1 1 100%;
        padding: 22px 18px;
        border-radius: 8px;
    }
    
    .team-item h3 {
        font-size: 19px;
        margin-bottom: 10px;
    }
    
    .team-item p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* 返回顶部按钮 - 手机端 */
    .back-to-top {
        width: 48px !important;
        height: 48px !important;
        bottom: 25px !important;
        right: 20px !important;
        font-size: 22px !important;
        border-radius: 50% !important;
    }
    
    /* 页脚 - 手机端 */
    footer {
        padding: 25px 18px;
        margin-top: 40px;
    }
    
    footer p {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* ============================================
   响应式设计 - 小屏手机端适配 (小于480px)
   ============================================ */
@media screen and (max-width: 480px) {
    /* 更小的字体和间距 */
    html, body {
        overflow-x: hidden;
        overflow-y: auto; /* 确保垂直滚动可用 */
        width: 100%;
        max-width: 100vw;
    }
    
    body {
        font-size: 14px;
    }
    
    .navbar {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        position: fixed; /* 小屏手机端也保持固定定位 */
        top: 0;
    }
    
    .banner {
        margin-top: 55px; /* 小屏手机端导航栏高度更小 */
    }
    
    .page-main {
        padding-top: 75px; /* 小屏手机端为固定导航栏留出空间 */
    }
    
    .nav-container {
        padding: 10px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }
    
    .banner {
        height: 200px;
        margin-top: 55px; /* 小屏手机端导航栏高度更小 */
    }
    
    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .section-intro {
        padding: 30px 18px;
    }
    
    .section-intro h2 {
        font-size: 24px;
    }
    
    .section-intro p {
        font-size: 14px;
    }
    
    main, .page-main {
        padding: 15px 12px;
        padding-top: 75px; /* 小屏手机端为固定导航栏留出空间 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    section {
        padding: 20px 15px;
        margin-bottom: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .text-box h3 {
        font-size: 20px;
    }
    
    .text-box p {
        font-size: 14px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card h4 {
        font-size: 19px;
    }
    
    .card p {
        font-size: 13px;
    }
    
    .section-grid h3 {
        font-size: 22px;
    }
    
    .grid-item {
        padding: 18px 15px;
    }
    
    .grid-item h4 {
        font-size: 18px;
    }
    
    .grid-item p {
        font-size: 13px;
    }
    
    .section-quote {
        padding: 30px 18px;
    }
    
    .section-quote blockquote {
        font-size: 18px;
    }
    
    .page-header {
        padding: 30px 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-header h1 {
        font-size: 24px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .page-subtitle {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .content-section {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .content-section h2 {
        font-size: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .content-section h3 {
        font-size: 18px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .content-section p {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .scientist-card {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .scientist-img {
        height: 240px;
        width: 100%;
        max-width: 100%;
    }
    
    .scientist-info h2 {
        font-size: 22px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .scientist-info p {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .team-section h2 {
        font-size: 22px;
    }
    
    .team-item {
        padding: 20px 15px;
    }
    
    .form-wrapper {
        padding: 22px 15px;
    }
    
    .form-wrapper h2 {
        font-size: 20px;
    }
    
    .form-group input[type="text"], 
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select, 
    .form-group textarea {
        padding: 11px;
        font-size: 14px;
    }
    
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 20px !important;
        right: 15px !important;
        font-size: 20px !important;
    }
    
    footer {
        padding: 22px 15px;
    }
    
    footer p {
        font-size: 12px;
    }
}