/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #0066cc;
}

.container {
    width: 1000px;
    margin: 0 auto;
}

.container-wide {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部栏 */
.top-bar {
    background: linear-gradient(to bottom, #4a90e2, #357abd);
    color: white;
    padding: 25px 0;
}

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

.logo-section-new {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.university-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 8px;
}

.university-name {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-left: 20px;
    letter-spacing: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.title-section {
    flex: 1;
    text-align: center;
}

.title-section h1 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.title-en {
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
}

.language {
    flex-shrink: 0;
}

.language a {
    color: white;
    font-size: 13px;
    padding: 6px 15px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    transition: all 0.3s;
}

.language a:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.8);
}

/* 主导航 */
.main-nav {
    background: #2c5f8d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-nav li {
    flex: 0 0 auto;
    text-align: center;
}

.main-nav a {
    display: block;
    padding: 12px 30px;
    color: white;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.main-nav li:last-child a {
    border-right: none;
}

.main-nav a:hover,
.main-nav li.active a {
    background: #1a4d7a;
    color: #ffd700;
}

/* 轮播图 */
.banner-slider {
    background: #fff;
    margin-bottom: 20px;
    position: relative;
}

.slider-container {
    width: 1000px;
    margin: 0 auto;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.slider-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 30px;
    height: 25px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.3s;
}

.dot:hover,
.dot.active {
    background: rgba(255,255,255,0.9);
    font-weight: bold;
}

/* 主体内容 */
.main-content {
    padding: 20px 0;
}

.content-layout {
    display: flex;
    gap: 20px;
}

.left-column {
    flex: 2;
}

.right-column {
    flex: 1;
}

/* 通用区块样式 */
.section-box {
    background: white;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.section-title {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border-bottom: 2px solid #0066cc;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 研究方向 */
.research-list {
    padding: 15px;
}

.research-item {
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    line-height: 1.8;
}

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

.research-item::before {
    content: "■ ";
    color: #0066cc;
    margin-right: 5px;
}

/* 最新成果 */
.achievements-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.achievement-item {
    aspect-ratio: 16/10;
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: 1px solid #e0e0e0;
}

/* 实验室简介 */
.intro-content {
    padding: 15px;
    text-align: justify;
    line-height: 2;
}

.intro-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

/* 更多链接 */
.more-link {
    text-align: right;
    padding: 0 15px 10px;
}

.more-link a {
    color: #0066cc;
    font-size: 12px;
}

.more-link a:hover {
    text-decoration: underline;
}

/* 新闻区块 */
.news-box {
    background: white;
    border: 1px solid #e0e0e0;
}

.news-tabs {
    display: flex;
    background: #f0f0f0;
    border-bottom: 2px solid #0066cc;
}

.tab {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    background: #e8e8e8;
    border-right: 1px solid #d0d0d0;
    transition: all 0.3s;
}

.tab:last-child {
    border-right: none;
}

.tab:hover {
    background: #d8d8d8;
}

.tab.active {
    background: white;
    color: #0066cc;
    font-weight: bold;
    border-bottom: 2px solid white;
    margin-bottom: -2px;
}

.tab-content {
    display: none;
    padding: 15px;
}

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

.news-list {
    list-style: none;
}

.news-list li {
    border-bottom: 1px dashed #e0e0e0;
    padding: 10px 0;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    display: block;
    color: #333;
    line-height: 1.8;
}

.news-list a:hover {
    color: #0066cc;
}

.news-list a:hover .title {
    text-decoration: underline;
}

.news-list .date {
    color: #999;
    font-size: 12px;
    margin-right: 8px;
}

.news-list .title {
    font-size: 14px;
}

.news-list .title::before {
    content: "· ";
    color: #0066cc;
    margin-right: 3px;
}

/* 合作机构 */
.partners-section {
    background: white;
    border-top: 3px solid #0066cc;
    padding: 20px 0;
    margin-top: 20px;
}

.partners-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.partner-links {
    line-height: 2;
    color: #666;
}

.partner-links a {
    color: #0066cc;
    padding: 0 8px;
}

.partner-links a:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background: #2c5f8d;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer p {
    margin: 5px 0;
    font-size: 12px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 1240px) {
    .container-wide {
        width: 95%;
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
        max-width: 1000px;
    }
    
    .container-wide {
        width: 95%;
    }
    
    .slider-container {
        width: 100%;
    }
    
    .content-layout {
        flex-direction: column;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        min-width: 25%;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .university-logo {
        width: 80px;
        height: 80px;
    }
    
    .university-name {
        font-size: 28px;
        letter-spacing: 6px;
    }
    
    .title-section h1 {
        font-size: 24px;
    }
    
    .title-en {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-section-new {
        flex-direction: column;
        gap: 10px;
    }
    
    .university-logo {
        width: 70px;
        height: 70px;
    }
    
    .university-name {
        font-size: 22px;
        letter-spacing: 4px;
        margin-left: 0;
    }
    
    .title-section h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .title-en {
        font-size: 11px;
    }
    
    .main-nav li {
        min-width: 50%;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .placeholder-image {
        font-size: 24px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .news-tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        min-width: 50%;
    }
}

@media (max-width: 480px) {
    .logo-title h1 {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .slider-container {
        height: 200px;
    }
    
    .placeholder-image {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 14px;
    }
}