* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

a {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

button {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

/* 导航栏样式 */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 汉堡菜单按钮（默认隐藏） */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
    position: relative;
    margin-left: auto;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    -webkit-transition: 0.3s;
}

/* 菜单打开时的动画 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    -webkit-transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    -webkit-transform: rotate(45deg) translate(-5px, -6px);
}

.logo h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* 下拉菜单样式 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #34495e;
}

/* 主要内容样式 */
main {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px - 60px); /* 减去导航栏和页脚的高度 */
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.intro-section {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* 研究页面样式 */
.research-areas {
    margin-bottom: 4rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-item {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.research-item h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.research-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* 人员页面样式 */
.team-member {
    margin-bottom: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.team-member h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.member-info {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.member-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.member-details {
    flex: 1;
}

.member-details .title {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-details .bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.contact-info {
    font-size: 1rem;
    color: #666;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.team-section {
    margin-top: 3rem;
}

.team-section h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.member-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.member-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.member-card h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-card .title {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.member-card .research {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.alumni-list {
    margin-top: 2rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 出版物页面样式 */
.publications-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.publications-section h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.publications-section hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1rem 0;
}

.publications-section ol {
    list-style-position: inside;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.publications-section li {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.05rem;
    color: #444;
}

.publications-section em {
    font-style: italic;
    color: #666;
}

.publications-section .pdf-link,
.publications-section .doi-link {
    display: inline-block;
    margin-left: 1rem;
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.publications-section .pdf-link:hover,
.publications-section .doi-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.publication-image-container {
    text-align: center;
    margin: 2rem 0;
}

.publication-image-container {
    text-align: center;
    margin: 2rem 0;
}

.publication-image-container img {
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
    border-radius: 4px;
}

.publication-image-container img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.95;
    transition: all 0.3s ease;
}

/* 新闻页面样式 */
.news-section {
    margin-bottom: 4rem;
}

.news-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.news-date {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.news-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* 联系页面样式 */
.contact-info {
    margin-bottom: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item h4 {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.visitor-map-section {
    margin-top: 4rem;
}

/* 回到顶部按钮样式 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#backToTop.show {
    display: flex;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏 */
    .navbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 1rem 1.5rem !important;
        flex-wrap: nowrap !important;
    }

    .logo {
        flex: 1;
    }

    .logo h1 {
        font-size: 0.9rem !important;
        text-align: left !important;
        margin-bottom: 0 !important;
    }

    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
    }

    /* 隐藏导航链接，直到被打开 */
    .nav-links {
        position: fixed !important;
        left: -100% !important;
        top: 60px !important;
        flex-direction: column !important;
        background-color: #2c3e50 !important;
        width: 100vw !important;
        text-align: center !important;
        transition: left 0.3s ease-in-out !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
        padding: 1rem 0 !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        margin: 0 !important;
        z-index: 999 !important;
        right: 0 !important;
    }

    /* 菜单打开状态 */
    .nav-links.active {
        left: 0 !important;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 1rem;
        display: block;
    }

    /* 移动端隐藏下拉菜单，直接跳转到主页面 */
    .dropdown-content {
        display: none !important;
    }

    .dropdown > a::after {
        display: none !important;
    }

    /* 主要内容区域 */
    main {
        margin-top: 70px; /* 大大减少顶部空间 */
        padding: 1rem;
    }

    /* Hero区域 */
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* 内容区域 */
    .content {
        padding: 1.5rem 0.5rem;
    }

    .content h3 {
        font-size: 1.5rem;
    }

    /* 轮播图适配 */
    .carousel-container {
        padding: 0;
        margin: 0 auto;
        overflow: hidden !important;
        width: 100% !important;
    }

    .carousel-wrapper {
        width: 100% !important;
    }

    .carousel-slide {
        min-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .carousel-slide img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .carousel-slide h4 {
        font-size: 1.3rem;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .carousel-slide p {
        font-size: 0.95rem;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .carousel-btn {
        font-size: 1.2rem;
        padding: 0.5rem 0.7rem;
        z-index: 10;
    }

    .carousel-btn.prev {
        left: 0.3rem;
    }

    .carousel-btn.next {
        right: 0.3rem;
    }

    .intro-section {
        overflow: hidden;
        padding: 1rem !important;
    }

    /* 研究页面 */
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .research-item {
        padding: 1.2rem;
    }

    .research-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .research-item h4 {
        font-size: 1.3rem;
        margin-top: 0.5rem;
    }

    .research-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* 团队成员 */
    .member-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .member-photo {
        width: 200px;
        height: 200px;
        max-width: 90%;
    }

    .member-details {
        width: 100%;
    }

    .member-details .title {
        font-size: 1.1rem;
    }

    .member-details p {
        font-size: 0.95rem;
    }

    .member-details h4 {
        font-size: 1.2rem;
    }

    .members-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .member-card {
        padding: 1.5rem;
        text-align: center;
    }

    .member-card img {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem;
    }

    .member-card h4 {
        font-size: 1.2rem;
        text-align: center;
    }

    .member-card .title {
        text-align: center;
    }

    .member-card p {
        font-size: 0.9rem;
        text-align: center !important;
    }

    .member-card p strong {
        display: inline-block;
        min-width: 120px;
    }

    /* 出版物页面 */
    .publications-section {
        padding: 0 1rem;
    }

    .publications-section h3 {
        font-size: 1.5rem;
    }

    .publications-section ol,
    .publications-section li {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .publication-image-container img {
        max-width: 100%;
        height: auto;
    }

    /* 新闻页面 */
    .news-section {
        padding: 0 0.5rem;
    }

    .news-item {
        padding: 1.5rem;
    }

    .news-item h3 {
        font-size: 1.3rem;
    }

    .news-content {
        font-size: 0.95rem;
    }

    /* 联系页面 */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-item {
        padding: 1.5rem;
    }

    .info-item h4 {
        font-size: 1.2rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    /* 地图容器 */
    .map-container iframe {
        height: 300px;
    }

    /* 访客统计 */
    .visitor-map-section {
        margin-top: 2rem;
    }

    .visitor-map-section h3 {
        font-size: 1.8rem;
    }

    /* 回到顶部按钮 */
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }

    /* 通用图片适配 */
    img {
        max-width: 100%;
        width: auto;
        height: auto;
    }

    /* 内容区域图片 */
    .content img,
    .research-item img,
    .news-item img,
    .publication-image-container img {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Group picture特别处理 */
    .group-picture-section img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* 表格适配 */
    .table-responsive {
        margin: 0 -0.5rem;
    }

    table {
        font-size: 0.8rem;
        min-width: 100%;
    }

    table th,
    table td {
        padding: 0.5rem !important;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    table th:last-child,
    table td:last-child {
        white-space: normal;
        min-width: 150px;
    }

    /* 标题适配 */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
}

/* 超小屏幕额外适配 */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .nav-links {
        top: 55px !important;
        width: 100vw !important;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.9rem;
    }

    main {
        margin-top: 65px;
        padding: 0.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .carousel-slide h4 {
        font-size: 1.1rem;
    }

    .carousel-slide p {
        font-size: 0.85rem;
    }

    .content {
        padding: 1rem 0.5rem;
    }

    .content h3 {
        font-size: 1.3rem;
    }

    .member-photo {
        width: 160px;
        height: 160px;
    }

    .member-card {
        padding: 1rem;
    }

    .member-card img {
        width: 120px;
        height: 120px;
    }

    .research-item {
        padding: 1rem;
    }

    .publications-section {
        padding: 0 0.5rem;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
    }
} 