* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

a:link, a:visited, a:hover, a:active {

    text-decoration: none;

}

body {

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

    line-height: 1.6;

    padding-top: 60px; /* 为固定顶部导航留出空间 */

    display: flex;

    flex-direction: column;

    min-height: 100vh; /* 确保页面占满整个视口高度 */

}

.logo img {

    width: auto;

    height: 50px;

}

.ads img{

    width:100%;

}

@media (min-width: 1200px) {

    .logo img {

        height: 40px;

    }

}

/* 头部样式 - 固定浮动 */

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; /* 添加过渡效果 */

}



/* PC端导航栏下滑时的透明度 */

@media (min-width: 769px) {

    header.scrolled {

        opacity: 0.8;

    }

}



.header-container {

    display: flex;

    justify-content: flex-start;

    align-items: center;

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

    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;
    font-weight: bold;

}



.desktop-nav ul li a:hover {


}



/* 移动端导航 */

.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;

}



/* 主内容区域 - PC端居中显示 */

.container {

    max-width: 1200px; /* 限制最大宽度 */

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

    padding: 0 20px;

    width: 100%;

    flex: 1; /* 让内容区域自动填充剩余空间 */

}



/* 广告区域样式 */

.ads {

    margin-top:20px;

    margin-bottom: 20px;

    border-radius: 5px;

}



.ad {

    margin-bottom: 15px;

    text-align: center;

    border-radius: 4px;

}



/* 内容区域样式 - 新布局 */

main {

    padding: 10px 0;

}



.content-section {

    margin-bottom: 40px;

    border: 1px solid #eee;

    border-radius: 5px;

    overflow: hidden;

    transition: box-shadow 0.3s;

}



.content-section:hover {

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

}



/* 大标题样式 - 图片上方 */

.main-title {

    background-color: #e60012;

    color: white;

    padding: 15px 20px;

    font-size: 28px;

    position: relative;

    overflow: hidden;

}



.main-title::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 0;

    width: 60px;

    height: 4px;

    background-color: white;

}



.main-title span {

    position: relative;

    z-index: 2;

}



.main-title::before {

    content: '';

    position: absolute;

    top: 0;

    right: 0;

    width: 120px;

    height: 120px;

    background-color: rgba(255,255,255,0.1);

    transform: rotate(45deg) translate(30px, -90px);

    z-index: 1;

}



.content-wrapper {

    display: flex;

    flex-wrap: wrap; /* 确保在小屏幕上自动换行 */

}



.content-image {

    flex: 0 0 35%; /* 左侧图片占35%宽度 */

    position: relative;

}



.content-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    min-height: 250px; /* 确保图片区域有足够高度 */

}



.content-text {

    flex: 0 0 65%; /* 右侧文字占65%宽度 */

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}



.article-names {

    display: flex;

    flex-direction: column;

    gap: 20px;

}



.article-item {

    padding-bottom: 20px;

    border-bottom: 1px solid #eee;

}



.article-item:last-child {

    border-bottom: none;

}



.article-title {

    color: #e60012; /* 红色主题色 */

    font-size: 18px;

    margin-bottom: 8px;

    text-decoration: none;

    display: inline-block;

    transition: color 0.3s;

}



.article-title:hover {

    color: #b3000d;

    text-decoration: underline;

}



/* 文章元信息（发布时间） */

.article-meta {

    color: #999;

    font-size: 12px;

    margin-bottom: 5px;

    display: flex;

    align-items: center;

}



.article-meta i {

    margin-right: 5px;

    font-size: 10px;

}



/* 文章简介最多显示2行 */

.article-desc {

    color: #666;

    font-size: 14px;

    display: -webkit-box;

    -webkit-line-clamp: 2; /* 限制显示2行 */

    -webkit-box-orient: vertical;

    overflow: hidden;

    text-overflow: ellipsis;

    line-height: 1.6; /* 确保行高一致 */

}



/* 底部信息样式 */

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: 0px;
}
    .desktop-nav {

        display: none; /* 移动端隐藏桌面导航 */

    }



    .nav-toggle {

        display: block; /* 移动端显示导航按钮 */

    }



    /* 移动端内容布局改为上下排列 */

    .content-image,

    .content-text {

        flex: 0 0 100%;

    }



    .main-title {

        font-size: 24px;

    }



    .content-text {

        padding: 20px;

    }



    /* 移动端底部信息调整 */

    .footer-info {

        padding: 0 10px;

    }

}