/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #7f8c8d;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --font-main: 'Segoe UI', 'Arial', 'Helvetica', sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 18px;
}

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

a {
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    background-color: #2980b9;
    color: white;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #f9f9f9;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 400;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    font-size: 0.9rem;
}

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

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

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* 语言切换按钮样式 */
.language-switcher {
    margin-left: 20px;
}

.language-switcher button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    background-color: #1a252f;
}

/* 英雄区域样式 */
.hero {
    background-color: #f9f9f9;
    color: var(--dark-color);
    text-align: center;
    padding: 60px 0 10px;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* 章节样式 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 40px;
    color: var(--dark-color);
    position: relative;
    font-weight: 400;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 研究方向样式 */
.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.research-item {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease;
    background-color: white;
}

.research-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.research-item h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.research-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.research-link {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    display: inline-block;
    margin-top: 5px;
}

.research-link:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980b9;
    border-color: rgba(52, 152, 219, 0.5);
    text-decoration: none;
}

/* 发表论文样式 */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.publication {
    background-color: white;
    padding: 20px;
    border-left: 3px solid var(--primary-color);
}

.publication h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 1.3rem;
}

.authors {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.journal {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.publication-links {
    display: flex;
    gap: 10px;
}

.publication-links a {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 3px;
    background-color: rgba(52, 152, 219, 0.1);
}

.publication-links a:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

/* 论文详情页样式 */
.publication-page {
    padding-top: 100px;
}

.publication-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--secondary-color);
    padding: 5px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.year-section {
    margin-bottom: 40px;
}

.year-section h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.publication-items {
    list-style: none;
}

.publication-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.publication-item:last-child {
    border-bottom: none;
}

.pub-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.citations {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

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

/* 论文评论样式 */
.publication-comment {
    margin-top: 15px;
    padding: 15px;
    background-color: #f0f7ff;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.publication-comment h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2980b9;
    font-size: 0.95rem;
    font-weight: 500;
}

.publication-comment p {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* 论文链接部分样式 */
.publications-links-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.publications-links-section p {
    margin-bottom: 15px;
}

.publications-links-section .btn {
    margin-top: 10px;
}

/* 研究页面样式 */
.research-page {
    padding-top: 100px;
}

.research-direction {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.research-direction:last-child {
    border-bottom: none;
}

.research-direction h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.research-description {
    margin-bottom: 30px;
}

.research-description p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.research-direction h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 400;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.research-publications {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.research-publication {
    background-color: white;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.research-publication h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 400;
}

.research-publication .authors {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.research-publication .journal {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-style: italic;
}

.research-publication .abstract-short {
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* 团队成员样式 */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    overflow: hidden;
    text-align: center;
}

.member-photo {
    height: 200px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.member-photo i {
    font-size: 4rem;
    color: var(--secondary-color);
}

.team-member h3 {
    padding: 20px 20px 5px;
    color: var(--dark-color);
    font-weight: 400;
    font-size: 1.4rem;
}

.member-title {
    padding: 0 20px;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 1rem;
}

.member-bio {
    padding: 0 20px 20px;
    color: var(--secondary-color);
    font-size: 1rem;
}

.member-links {
    display: flex;
    justify-content: center;
    padding: 0 20px 20px;
    gap: 15px;
}

.member-links a {
    color: var(--secondary-color);
    font-size: 1rem;
}

.member-links a:hover {
    color: var(--primary-color);
}

/* 新闻动态样式 */
.news-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background-color: white;
    padding: 20px;
    border-left: 3px solid var(--primary-color);
}

.news-date {
    color: var(--secondary-color);
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.news-item h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 1.5rem;
}

.news-item p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.read-more {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 3px;
    background-color: rgba(52, 152, 219, 0.1);
}

.read-more:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

/* 联系我们样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background-color: white;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 400;
    font-size: 1.4rem;
}

.contact-item p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.contact-item a {
    color: #3498db;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 3px;
    background-color: rgba(52, 152, 219, 0.1);
}

.contact-item a:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980b9;
    text-decoration: none;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 1.5rem;
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links h3,
.footer-social h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    font-weight: 400;
    font-size: 1.2rem;
}

.footer-links h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background-color: #aaa;
    bottom: -10px;
    left: 0;
}

.footer-links ul,
.footer-social ul {
    list-style: none;
}

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

.footer-links ul li a,
.footer-social ul li a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 20px;
}


/* 幻灯片样式 */
.slideshow-container {
    width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 30px 0;
}

.mySlides {
    display: none;
    text-align: center;
    padding: 0 20px;
}

.mySlides img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    /* 图片比例范围为1.1-1.3（宽:高），不强制固定比例，使用object-fit确保适应 */
}

.mySlides img:hover {
    transform: scale(1.02);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0,0,0,0.2);
    z-index: 10;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.5);
}

.text {
    color: var(--dark-color);
    font-size: 16px;
    padding: 15px 15px 5px;
    width: 100%;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

.slide-description {
    padding: 0 15px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.slide-description p {
    color: var(--secondary-color);
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.dots-container {
    text-align: center;
    padding: 15px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.active-dot, .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    #clustrmaps-container {
        max-width: 100%;
        order: 2;
    }
    
    .footer-bottom p {
        order: 1;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .research-areas,
    .team-members,
    .contact-info {
        grid-template-columns: 1fr;
    }
}