/* 基础样式 */
:root {
    --primary-color: #1E5FA8;
    --secondary-color: #0A3B6C;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --accent-color: #4A90E2;
    --border-color: #EEEEEE;
    --footer-bg: #333333;
    --footer-text: #FFFFFF;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "SimHei", "STHeiti", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.more-link {
    text-align: center;
    margin-top: 30px;
}

/* 页面将在后续任务中实现具体样式 *//*
 页面头部样式 */
.header {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: auto;
    margin-right: 15px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
}/* 导航
菜单样式 */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 20px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* 导航菜单交互效果 */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}/*
 响应式导航菜单 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-list.active {
        transform: translateY(0);
    }
    
    .nav-list li {
        margin: 10px 0;
    }
    
    .header .container {
        position: relative;
    }
}/*
 实验室简介区域样式 */
.lab-intro {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    text-align: left;
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plaque-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
    }
    
    .intro-text {
        order: 2;
    }
    
    .intro-image {
        order: 1;
        margin-bottom: 30px;
    }
}/* 科学研
究及成果区域样式 */
.research {
    padding: 80px 0;
    background-color: #ffffff;
}

.research-diagram {
    margin-top: 40px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.research-category {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.research-category h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.research-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.research-topic {
    background-color: #f0f8ff;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-topic:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.research-connections {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.research-connection {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .research-topics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-topics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .research-topics {
        grid-template-columns: 1fr;
    }
}/*
 新闻动态区域样式 */
.news {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.news-excerpt {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
}

.news-link:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}/* 人才展示区
域样式 */
.talents {
    padding: 80px 0;
    background-color: #ffffff;
}

.talents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.talent-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.talent-card:hover {
    transform: translateY(-10px);
}

.talent-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #f0f8ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.talent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talent-name {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.talent-position {
    color: #777;
    margin-bottom: 15px;
}

.talent-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.talent-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.talent-social a {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .talents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .talents-grid {
        grid-template-columns: 1fr;
    }
}/* 合作交流
区域样式 */
.cooperation {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-date {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-title {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-description {
    color: #555;
    line-height: 1.6;
}

/* 响应式时间轴 */
@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 28px;
    }
}/* 页脚样式 *
/
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
}

.copyright p {
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .copyright {
        grid-column: span 2;
        order: 3;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .copyright {
        grid-column: span 1;
    }
}/* 优化图片加载
 */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* 优化页面性能 */
html {
    scroll-behavior: smooth;
}

/* 优化打印样式 */
@media print {
    .header, .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}/* 浏览
器兼容性优化 */

/* 为旧版IE添加Flexbox回退 */
.header .container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
}

/* 为旧版浏览器添加Grid回退 */
@supports not (display: grid) {
    .news-grid, .talents-grid, .research-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .news-grid > *, .talents-grid > *, .research-grid > * {
        flex: 0 0 calc(33.333% - 20px);
        margin: 10px;
    }
    
    @media (max-width: 992px) {
        .news-grid > *, .talents-grid > *, .research-grid > * {
            flex: 0 0 calc(50% - 20px);
        }
    }
    
    @media (max-width: 768px) {
        .news-grid > *, .talents-grid > *, .research-grid > * {
            flex: 0 0 calc(100% - 20px);
        }
    }
}

/* 为不支持CSS变量的浏览器添加回退 */
.header {
    background-color: #FFFFFF;
    background-color: var(--background-color);
}

.site-title {
    color: #0A3B6C;
    color: var(--secondary-color);
}

.btn {
    background-color: #1E5FA8;
    background-color: var(--primary-color);
}

.btn:hover {
    background-color: #0A3B6C;
    background-color: var(--secondary-color);
}

/* 为不支持平滑滚动的浏览器添加回退 */
@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}/* 响
应式设计优化 */

/* 确保所有文本在小屏幕上可读 */
@media (max-width: 576px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* 确保表格在小屏幕上可滚动 */
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* 确保图片在小屏幕上正确缩放 */
img {
    max-width: 100%;
    height: auto;
}

/* 确保表单元素在小屏幕上可用 */
input, select, textarea, button {
    max-width: 100%;
}

/* 确保导航在超小屏幕上正确显示 */
@media (max-width: 360px) {
    .site-title {
        font-size: 1rem;
    }
    
    .logo {
        width: 40px;
    }
    
    .nav-list li {
        margin: 5px 0;
    }
}

/* 确保在大屏幕上内容不会过宽 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 确保在打印时内容正确显示 */
@media print {
    @page {
        margin: 2cm;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    
    .no-print {
        display: none !important;
    }
}