/* 科学研究页面样式 */
.science-research-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 600px;
}

/* 左侧导航栏样式 */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 1px solid #dee2e6;
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 0;
}

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

.nav-item {
    border-bottom: 1px solid #dee2e6;
    width: 160px;
}

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

.nav-item a {
    display: block;
    padding: 25px 30px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover a,
.nav-item.active a {
    background-color: #2a5298;
    color: white;
    border-left-color: #1e3c72;
    transform: translateX(5px);
}

/* 右侧内容区域样式 */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: visible;
}

.content-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #2a5298;
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 10px;
}

/* 研究方向页面样式 */
.research-intro {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2a5298;
}

.research-intro p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
}

.direction-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.direction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.direction-header h3 {
    color: #2a5298;
    margin: 0;
    font-size: 20px;
}

.direction-tag {
    background: #2a5298;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.direction-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-list h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.project-list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.project-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.project-list li:before {
    content: "▸";
    color: #2a5298;
    position: absolute;
    left: 0;
}

.direction-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    border: 1px solid #e9ecef;
}

/* 研究成果页面样式 */
.search-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: #2a5298;
}

.search-bar button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background: #1e3c72;
}

.search-filters {
    display: flex;
    gap: 15px;
}

.search-filters select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    cursor: pointer;
}

.articles-container {
    background: white;
}

/* 让文章列表成为滚动容器 */
.articles-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.article-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.article-header h3 {
    color: #2a5298;
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    flex: 1;
    margin-right: 15px;
}

.article-type {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
    height: 24px;
    line-height: 12px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-meta span {
    color: #666;
    font-size: 14px;
}

.authors {
    font-weight: 500;
}

.journal {
    font-style: italic;
}

.impact {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

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

.link-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    color: #2a5298;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: #2a5298;
    color: white;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #e9ecef;
}

.page-btn.active {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-dots {
    color: #6c757d;
    padding: 0 5px;
}

/* 科研成果总览页面样式 */
.papers-container {
    max-width: 100%;
}

.papers-intro {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2a5298;
}

.papers-intro p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.papers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.paper-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.paper-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.paper-citation {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    white-space: pre-line; /* 保留换行符 */
}

.paper-number {
    font-weight: bold;
    color: #2a5298;
    margin-right: 5px;
}

/* 研究生培养部分样式 */
.student-training {
    margin-top: 30px;
    padding: 20px 0;
}

.student-training h3 {
    font-size: 22px;
    color: #2a5298;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

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

.training-section h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #2a5298;
}

.no-papers {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 交流合作页面样式 */
.cooperation-content {
    max-width: 100%;
}

.cooperation-intro {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2a5298;
}

.cooperation-intro p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.cooperation-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cooperation-section h3 {
    color: #2a5298;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

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

.cooperation-item {
    display: flex;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    min-height: 50px;
}

.cooperation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.cooperation-logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
}

.cooperation-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.cooperation-info {
    flex: 1;
}

.cooperation-info h4 {
    color: #2a5298;
    font-size: 16px;
}

.cooperation-info p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.cooperation-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cooperation-details span {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    border: 1px solid #e9ecef;
}

/* 事件时间线样式 */
.events-timeline {
    position: relative;
    padding-left: 30px;
}

.events-timeline:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.event-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.event-item:before {
    content: '';
    position: absolute;
    left: -23px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #2a5298;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #2a5298;
}

.event-date {
    width: 80px;
    color: #2a5298;
    font-weight: 600;
    font-size: 14px;
    margin-right: 20px;
    flex-shrink: 0;
}

.event-content {
    flex: 1;
}

.event-content h4 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.event-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .science-research-container {
        flex-direction: column;
        margin: 10px;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .nav-list {
        display: flex;
        overflow-x: auto;
    }
    
    .nav-item {
        flex: 0 0 auto;
        border-bottom: none;
        border-right: 1px solid #dee2e6;
    }
    
    .nav-item:last-child {
        border-right: none;
    }
    
    .nav-item a {
        white-space: nowrap;
        padding: 15px 20px;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    
    .nav-item:hover a,
    .nav-item.active a {
        transform: translateY(-5px);
        border-bottom-color: #1e3c72;
        border-left: none;
    }
    
    .content-area {
        order: 1;
        padding: 20px;
    }
    
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .cooperation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cooperation-item {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .cooperation-logo {
        margin: 0 auto 15px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .article-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .events-timeline {
        padding-left: 20px;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        width: auto;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 15px;
    }
    
    .direction-card,
    .article-item,
    .cooperation-item {
        padding: 10px;
    }
    
    .cooperation-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .search-section {
        padding: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
.content-area::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb {
    background: #2a5298;
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #1e3c72;
}




