* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: "Microsoft Yahei", sans-serif;

    line-height: 1.6;

    padding-top: 60px;

    display: flex;

    flex-direction: column;

    min-height: 100vh;

    color: #333;

}



/* 头部样式 */

header {

    background: #e6eef7d9; /* 红色主题 */

    color: white;

    padding: 10px 0;

    position: fixed; /* 固定定位使其浮动在顶部 */

    top: 0;

    left: 0;

    right: 0;

    z-index: 1000; /* 确保在其他内容之上 */

    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 增加阴影提升层次感 */

    transition: opacity 0.3s ease; /* 添加过渡效果 */

}



@media (min-width: 769px) {

    header.scrolled {

        opacity: 0.8;

    }

}



.header-container {

    display: flex;

    justify-content: flex-start;

    align-items: center;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}



.logo {

    font-size: 24px;

    font-weight: bold;

}



.nav-toggle {

    background: none;

    border: none;

    color: white;

    font-size: 24px;

    cursor: pointer;

    display: none;

}



.desktop-nav {

    display: flex;

}



.desktop-nav ul {

    display: flex;

    list-style: none;

}



.desktop-nav ul li {

    margin-left: 25px;

}



.desktop-nav ul li a {

    color: #2f5398;

    text-decoration: none;

    font-size: 16px;

    transition: opacity 0.3s;

}



.desktop-nav ul li a:hover,

.desktop-nav ul li a.active {

    opacity: 0.8;

    text-decoration: underline;

}



.mobile-nav {

    display: none;

    background-color: #cc0010;

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

}



.mobile-nav ul {

    list-style: none;

}



.mobile-nav ul li {

    padding: 12px 20px;

    border-bottom: 1px solid #ff4d5a;

}



.mobile-nav ul li a {

    color: white;

    text-decoration: none;

    display: block;

}



/* 主内容区域 */

.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 20px;

    width: 100%;

    flex: 1;

}



/* 面包屑导航 */

.breadcrumb {

    margin-bottom: 20px;

    font-size: 14px;

    color: #666;

}



.breadcrumb a {

    color: #666;

    text-decoration: none;

}



.breadcrumb a:hover {

    color: #e60012;

    text-decoration: underline;

}



.breadcrumb span {

    margin: 0 5px;

    color: #999;

}



/* 列表页标题 */

.page-title {

    font-size: 28px;

    color: #333;

    margin-bottom: 30px;

    padding-bottom: 15px;

    border-bottom: 2px solid #e60012;

    position: relative;

}



.page-title::after {

    content: '';

    position: absolute;

    width: 80px;

    height: 2px;

    background-color: #e60012;

    bottom: -2px;

    left: 0;

}



/* 筛选器 */

.filters {

    background-color: #f8f9fa;

    padding: 15px 20px;

    margin-bottom: 25px;

    border-radius: 5px;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 15px;

}



.filter-group {

    display: flex;

    align-items: center;

}



.filter-label {

    margin-right: 10px;

    color: #666;

    font-size: 14px;

}



.filter-options {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}



.filter-option {

    padding: 5px 12px;

    background-color: white;

    border: 1px solid #ddd;

    border-radius: 20px;

    font-size: 14px;

    cursor: pointer;

    transition: all 0.3s;

}



.filter-option:hover,

.filter-option.active {

    background-color: #e60012;

    color: white;

    border-color: #e60012;

}



/* 文章列表 */

.article-list {

    display: flex;

    flex-direction: column;

    gap: 25px;

}



.article-card {

    display: flex;

    flex-wrap: wrap;

    background-color: white;

    border: 1px solid #eee;

    border-radius: 5px;

    overflow: hidden;

    transition: all 0.3s;

}



.article-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 15px rgba(0,0,0,0.1);

}



.article-card-img {

    flex: 0 0 250px;

    height: 180px;

}



.article-card-img img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



.article-card-content {

    flex: 1;

    padding: 20px;

    display: flex;

    flex-direction: column;

}



.article-card-title {

    font-size: 20px;

    margin-bottom: 10px;

    transition: color 0.3s;

}



.article-card-title a {

    color: #333;

    text-decoration: none;

}



.article-card-title a:hover {

    color: #e60012;

}



.article-card-meta {

    display: flex;

    align-items: center;

    color: #999;

    font-size: 12px;

    margin-bottom: 12px;

}



.article-card-meta span {

    display: flex;

    align-items: center;

    margin-right: 15px;

}



.article-card-meta i {

    margin-right: 5px;

    font-size: 10px;

}



.article-card-desc {

    color: #666;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 15px;

    flex: 1;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.article-card-more {

    align-self: flex-start;

    color: #e60012;

    text-decoration: none;

    font-size: 14px;

    display: flex;

    align-items: center;

    transition: all 0.3s;

}



.article-card-more i {

    margin-left: 5px;

    transition: transform 0.3s;

}



.article-card-more:hover {

    text-decoration: underline;

}



.article-card-more:hover i {

    transform: translateX(5px);

}



/* 分页 */

.pagination {

    display: flex;

    justify-content: center;

    margin-top: 40px;

    margin-bottom: 20px;

}



.pagination-list {

    display: flex;

    list-style: none;

    gap: 5px;

}



.pagination-item {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #ddd;

    border-radius: 4px;

    background-color: white;

    cursor: pointer;

    transition: all 0.3s;

}



.pagination-item a {

    color: #666;

    text-decoration: none;

    display: block;

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

}



.pagination-item:hover {

    border-color: #e60012;

    color: #e60012;

}



.pagination-item:hover a {

    color: #e60012;

}



.pagination-item.active {

    background-color: #e60012;

    border-color: #e60012;

    color: white;

}



.pagination-item.active a {

    color: white;

}



/* 底部信息 */

footer {

    background-color: #333;

    color: white;

    padding: 30px 0;

    margin-top: 50px;

}



.footer-container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}



.footer-info {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

}



.copyright {

    margin-bottom: 10px;

    font-size: 14px;

}



.record-info {

    font-size: 14px;

    color: #ccc;

}



.record-info a {

    color: #ccc;

    text-decoration: none;

}



.record-info a:hover {

    text-decoration: underline;

}



/* 响应式设计 */

@media (max-width: 768px) {
.header-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    max-width: 1200px; /* PC端最大宽度 */

    margin: 0 auto; /* 居中显示 */

    padding: 0 20px;

}
.container{
    margin-top:80px;
    padding: 0 20px;
}
    .desktop-nav {

        display: none;

    }



    .nav-toggle {

        display: block;

    }



    .article-card-img {

        flex: 0 0 100%;

        height: 200px;

    }



    .article-card-content {

        padding: 15px;

    }



    .article-card-title {

        font-size: 18px;

    }



    .page-title {

        font-size: 24px;

    }



    .filter-group {

        width: 100%;

    }

}