/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
}

/* 头图区域 */

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* 研究列表样式 */
.latest-research h2,
.hot-topics h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.research-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.research-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.research-item:hover {
    transform: translateY(-2px);
}

.date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.date .day {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
}

.date .month {
    font-size: 0.9rem;
    color: #666;
}

.content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.content p {
    color: #666;
    font-size: 0.95rem;
}

/* 热门话题侧边栏 */
.hot-topics {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hot-topics ul {
    list-style: none;
}

.hot-topics li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.hot-topics li:last-child {
    border-bottom: none;
}

.hot-topics a {
    text-decoration: none;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.3rem;
}

.hot-topics .date {
    font-size: 0.85rem;
    color: #666;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero {
        height: 300px;
    }

    .research-item {
        flex-direction: column;
    }

    .date {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
    }
} 

/* 轮播图容器样式 */
.carousel-container {
    max-width: 100%;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

/* 图片列表样式 */
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 单个图片样式 */
.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 800px;
    display: block;
}

/* 导航按钮样式 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* 指示器样式 */
.indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: white;
}

.el-header {
    padding: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.el-menu {
    flex: 1;
    border-bottom: none;
}

.el-timeline {
    margin-top: 20px;
}

.topic-tag {
    margin: 5px;
    cursor: pointer;
}

.el-card {
    margin-bottom: 20px;
}

.el-timeline-item__timestamp {
    color: #666;
    font-size: 0.9rem;
}

.main-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.side-window {
    width: 400px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.side-window.active {
    transform: translateY(-5px);
}

.news-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.news-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.chart-container {
    height: 200px;
    margin-top: 20px;
}
