* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
}

a { text-decoration: none;color: inherit; }
a:hover {
    text-decoration: none; /* 鼠标悬停时也不显示下划线 */
}
  

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航上方LOGO */
.logo {
    padding: 15px 0;
    background: white;
    background: #f5f5f5; /* 与 body 背景颜色一致 */
    display: flex; /* 添加Flexbox布局 */
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* Logo和搜索框两端对齐 */
}

.logo img {
    height: 80px;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    margin-left: 20px; /* 距离Logo的间距 */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px; /* 圆角 */
    padding: 5px 10px;
}

.search-box input[type="text"] {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
}

.search-box .search-icon {
    margin-left: 5px;
    font-size: 18px;
    color: #888;
}

/* 红色导航 */
.nav {
    background: #c7000b;
    width: 100%;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex; /* 添加Flexbox布局 */
    justify-content: space-between; /* 链接和头像两端对齐 */
    align-items: center; /* 垂直居中 */
}

.nav a {
    color: white;
    text-decoration: none;
    margin-right: 25px;
    font-size: 16px;
}

/* 新增选中状态样式 */
.nav a.active {
    color: white; /* 保持字体颜色不变 */
}

/* 新增头像样式 */
.profile {
    margin-left: auto; /* 将头像推到最右侧 */
}

.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%; /* 圆形头像 */
}

/* 主体布局 */
.container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

/* 新闻列表 */
.news-list {
    background: white;
    padding: 20px;
    border-radius: 5px;
}

/* 美化横线样式 */
.news-list h2 + hr {
    border: none;
    border-top: 2px solid #ccc;
    margin: 10px 0;
}

/* 调整标题和横线之间的间距 */
.news-list h2 {
    margin-bottom: 10px;
}

/* 调整横线和新闻卡片之间的间距 */
.news-list hr + .news-card {
    margin-top: 10px;
}

/* 新闻卡片布局调整 */
.news-card {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.news-image {
    width: 200px; /* 固定宽度 */
    height: 150px; /* 固定高度 */
    margin-right: 15px;
    position: relative; /* 添加相对定位 */
    flex-shrink: 0; /* 防止缩小 */
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 添加方框样式 */
.overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色 */
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

.news-content {
    flex-grow: 1;
}

.news-content h3 {
    color: #333;
    margin-bottom: 8px;
}

.news-content p {
    color: #666;
    font-size: 14px;
}

/* 新闻卡片元数据样式 */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.news-tags {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色 */
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.news-meta {
    display: inline-block;
    color: #666;
    font-size: 12px;
}

.news-meta span:first-child::before {
    content: '🕒 ';
    font-size: 12px;
}

.clock-icon {
}

.news-card:hover {
    background: #fff7f7;
    transform: translateX(5px);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

/* 右侧热门推荐 */
.hot-news {
    background: white;
    padding: 20px;
    border-radius: 5px;
}
.tabs {
    display: flex;
    margin-bottom: 15px;
    position: relative; /* 添加相对定位以便伪元素定位 */
}
.tab {
    padding: 10px 20px;
    background: #eee;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
}
.tab.active {
    background: #c7000b;
    color: white;
}
.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* 调整线条位置 */
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff7d04; /* 橙色线条 */
    transition: left 0.3s; /* 添加过渡效果 */
}
.tab:hover::after {
    content: '';
    position: absolute;
    bottom: -2px; /* 调整线条位置 */
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff7d04; /* 橙色线条 */
    transition: left 0.3s; /* 添加过渡效果 */
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.hot-item-header {
    height: 50px; /* 设置默认高度 */
    display: flex; /* 使用Flexbox布局 */
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 水平两端对齐 */
    position: relative; /* 添加相对定位以便伪元素定位 */
}

.hot-item-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ccc; /* 下划线颜色 */
    border-bottom: 1px dashed #ccc; /* 虚线样式 */
}

.hot-item-header h4 {
    margin: 0;
}

.hot-item-header span {
    cursor: pointer;
    color: #c7000b;
    font-size: 12px; /* 减小字体大小，比标题小一半 */
    font-weight: normal; /* 不加粗 */
}

.hot-item {
    padding: 10px;
    margin-bottom: 10px;
    background: inherit; /* 修改为继承背景颜色 */
    border-radius: 3px;
    display: flex; /* 使日期容器和文本在同一行 */
    align-items: center; /* 垂直居中对齐 */
    border-bottom: 1px dashed #ccc; /* 添加虚线分割线 */
}

.hot-item .date-container {
    min-width: 60px; /* 设置最小宽度以防止被挤压 */
    height: 35px;
    margin-right: 10px; /* 增加右边距 */
    background: #eee; /* 默认浅灰色背景 */
    transition: background 0.3s; /* 添加过渡效果 */
    display: flex; /* 使用Flexbox布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.hot-item .date-container.first {
    background: #ff7d04; /* 第一个内容默认橘色背景 */
}

.hot-item:hover .date-container {
}

.hot-item:hover .date-container.first {
    background: #ff7d04; /* 鼠标经过时第一个内容背景颜色 */
}

.date-container {
    min-width: 60px; /* 设置最小宽度以防止被挤压 */
    margin-right: 10px; /* 增加右边距 */
}

.hot-item span {
    font-size: 12px; /* 减小字体大小 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制显示两行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超出部分用...替代 */
}

/* 分页 */
.pagination {
    text-align: center;
    padding: 20px;
}
.page-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #eee;
    border-radius: 3px;
    cursor: pointer;
}
.page-btn.active {
    background: #c7000b;
    color: white;
}

/* 新增版权区域样式 */
.copyright-container {
    width: 100%; /* 修改为铺满屏幕 */
    height: 150px; /* 设置高度为150px */
    padding: 0 15px;
    background: #252424;
}

.copyright {
    top: 20px;
    color: rgb(198, 198, 198);
    padding: 5px 15px; /* 与 nav-content 保持一致 */
    width: 100%;
    position: relative;
    bottom: 0;
    font-size: 12px;
    display: flex; /* 添加Flexbox布局 */
    justify-content: space-between; /* 修改为两端对齐 */
    align-items: center; /* 垂直居中 */
    max-width: 1200px; /* 与 nav-content 保持一致 */
    margin: 0 auto; /* 与 nav-content 保持一致 */
}

.copyright div:first-child {
    margin-right: 0; /* 删除: margin-right: 20px; */
}

.copyright .links a {
    color: white;
    text-decoration: none;
    margin: 0 10px; /* 添加间距 */
}

/* 新增备案号样式 */
.copyright .registration {
    margin-top: 10px; /* 添加间距 */
    font-size: 12px;
    color: rgb(198, 198, 198);
}

/* 新增虚线样式 */
.copyright .divider {
    margin-top: 10px; /* 添加间距 */
    border-top: 1px dashed white; /* 虚线样式改为白色 */
    width: 1200px;
}

/* 新增友情链接样式 */
.copyright .friends-links {
    margin-top: 10px; /* 添加间距 */
    font-size: 12px;
    color: white;
}

.copyright .friends-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px; /* 添加间距 */
}

/*新增选项卡*/
.tabs-container {
    border-bottom: 2px solid #e0e0e0; /* 修改底部边框样式 */
    overflow: hidden;
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.tabs-item {
    padding: 8px 16px;
    cursor: pointer;
    background: #ffffff;
    margin-right: 12px;
    font-size: 16px;
    transition: all 0.3s;
    position: relative; /* 添加相对定位 */
}

.tabs-item.active {
    color: #ff4500;
    border-bottom: 2px solid #ff4500;
}

.tabs-item::after {
    content: '';
    position: absolute;
    bottom: -2px; /* 调整线条位置 */
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff4500; /* 橙色线条 */
    transition: left 0.3s; /* 添加过渡效果 */
    transform: scaleX(0); /* 初始状态隐藏 */
}

.tabs-item.active::after,
.tabs-item:hover::after {
    transform: scaleX(1); /* 显示线条 */
}

.contents-list {
    padding: 10px;
    display: none;
    overflow-x: auto;
    gap: 15px;
    scrollbar-width: none;
}

.contents-list.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tabs-item.active {
    /* color: #c7000b; */
    border-bottom: 2px solid #c7000b;
    /* background: #fff5f5; */
}

.tabs-item {
    transition: all 0.2s ease;
}

.lists-item {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 15px; /* 添加间距 */
    position: relative; /* 添加相对定位以便伪元素定位 */
}

.lists-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ccc; /* 添加虚线 */
}

.lists-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.lists-item p {
    padding: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 返回顶部按钮样式 */
#back-to-top {
    display: none; /* 初始状态隐藏 */
    position: fixed; /* 固定定位 */
    bottom: 20px; /* 距离底部20px */
    right: 20px; /* 距离右侧20px */
    background-color: #c7000b; /* 按钮背景颜色 */
    color: white; /* 按钮文字颜色 */
    border: none; /* 无边框 */
    border-radius: 50%; /* 圆形按钮 */
    width: 40px; /* 按钮宽度 */
    height: 40px; /* 按钮高度 */
    font-size: 20px; /* 按钮字体大小 */
    cursor: pointer; /* 鼠标悬停时显示为手型 */
    z-index: 1000; /* 确保按钮在最上层 */
    transition: background-color 0.3s; /* 添加过渡效果 */
}

#back-to-top:hover {
    background-color: #ff7d04; /* 悬停时背景颜色变化 */
}

.divider {
    margin-top: 10px; /* 添加间距 */
    border-top: 1px dashed rgb(21, 20, 20); 
    width: 800px;
}

.image-gallery {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.image-container {
    display: flex;
    flex-direction: column; /* 修改为列布局 */
    align-items: center;
    justify-content: center; /* 添加垂直居中 */
    margin: 0;
    /* border: 1px dashed #ccc; 添加虚线边框 */
}

.image-container img {
    width: 250px;
    height: 200px;
    object-fit: cover;
}

.image-container p {
    margin-top: 10px; /* 添加文字与图片之间的间距 */
    font-size: 12px; /* 设置字体大小为12px */
    max-width: 230px; /* 设置最大宽度为图片宽度 */
    word-wrap: break-word; /* 确保文字自动换行 */
}

.image-container a {
    color: black; /* 设置字体颜色为黑色 */
    text-decoration: none; /* 去掉下划线 */
}

.image-container a:hover {
    color: black; /* 悬停时字体颜色保持黑色 */
}

.image-container + .image-container {
    margin-left: 20px; /* 添加间距 */
}

.container .image-container {
    flex-direction: row; /* 使三个div在同一行 */
    align-items: center; /* 修改为垂直居中 */
    justify-content: center; /* 添加水平居中 */
    margin: 0;
}

.container .image-container img {
    margin-right: 20px; /* 添加图片之间的间距 */
}

.container .image-container:last-child img {
    margin-right: 0; /* 最后一个图片不需要右边距 */
}

.comment-section {
    text-align: right; /* 添加右对齐样式 */
}

.comment-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.comment-textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical; /* 允许垂直调整大小 */
}

.comment-btn {
    background-color: #c7000b; /* 按钮背景颜色 */
    color: white; /* 按钮文字颜色 */
    border: none; /* 无边框 */
    border-radius: 4px; /* 圆角 */
    padding: 10px 20px; /* 内边距 */
    font-size: 14px; /* 字体大小 */
    cursor: pointer; /* 鼠标悬停时显示为手型 */
    transition: background-color 0.3s; /* 添加过渡效果 */
}

.comment-btn:hover {
    background-color: #ff7d04; /* 悬停时背景颜色变化 */
}

/* 去除所有文本链接下划线（排除图片链接） */
a:not(img a) {
    text-decoration: none;
}

/* 保留悬停状态样式 */
a:not(img a):hover {
    text-decoration: underline;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
}
.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}
/* .pagination a.disabled {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
} */
.pagination a:hover:not(.active) {
    background-color: #ddd;
}
.pagination span {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
}


/* 新增样式：隐藏li产生的小点 */
ul  {
    list-style-type: none;
}


