* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: auto;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container_list {
    display: flex;
    /* max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px; */
    overflow: hidden;
}

/* 左侧目录样式 */
.news-sidebar {
    width: 300px;
    background-color: #f8f9fa;
    border-right: 1px solid #eaeaea;
    overflow-y: auto;
    height: 100vh;
}

.news-category {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
}

.news-category h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.news-list {
    list-style: none;
}

.news-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
    transition: all 0.3s;
}

.news-list li:hover {
    background-color: #e9ecef;
}

.news-list li.active {
    background-color: #55acee;
    color: white;
}

.news-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.news-date {
    font-size: 12px;
    color: #7f8c8d;
}
.news-list li.active .news-date {
    color: #f3f3f3;
}
/* 右侧内容样式 */
.news-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    height: 100vh;
}

.news-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.news-header h1 {
    font-size: 28px;
    font-weight: 500;
    line-height: 35px;
    color: #2c3e50;
    margin-bottom: 10px;
    /* text-align: center; */
}

.news-meta {
    display: flex;
    color: #7f8c8d;
    font-size: 14px;
}

.news-meta span {
    margin-right: 15px;
}

.news-body {
    font-size: 16px;
    line-height: 1.8;
}

.news-body p {
    margin-bottom: 15px;
    text-align: justify;
}
.news-body p.tac {
    text-align: center;
}

.news-body img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container_list {
        flex-direction: column;
    }
    
    .news-sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .news-content {
        height: auto;
        padding: 30px 0;
    }
}
@media (max-width: 479px) {
  .news-header h1 {
    font-size: 24px;
    margin-bottom: 0;
  }
}