/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
a:hover {
    color: #cc0000;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
ul, li {
    list-style: none;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
    margin-bottom: 20px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 50px;
}
.nav ul {
    display: flex;
}
.nav li {
    margin-left: 30px;
}
.nav li a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
}
.nav li.active a {
    color: #cc0000;
    border-bottom: 2px solid #cc0000;
}

/* 幻灯 + 最新资讯 组合布局 */
.top-section {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: stretch;
}
/* 幻灯区域 - 修复样式 */
.slider-box {
    flex: 2;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 240px;
    background: #eee;
}
.slider-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}
.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
}
/* 幻灯按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover {
    background: rgba(0,0,0,0.6);
}
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* 右侧最新资讯 - 优化底部间距 */
.news-box {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 18px 18px 22px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 240px;
}
.news-title {
    font-size: 17px;
    font-weight: bold;
    color: #cc0000;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}
.news-list {
    flex: 1;
    padding-bottom: 5px;
}
.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.news-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.news-list a {
    font-size: 14px;
    display: block;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-list a:hover {
    color: #cc0000;
    padding-left: 5px;
}

/* 文章列表布局 */
.article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

/* 文章封面图 —— 统一大小（核心代码） */
.article img {
  width: 120px;      /* 统一宽度 */
  height: 80px;      /* 统一高度 */
  object-fit: cover; /* 不变形、自动裁剪、居中显示 */
  border-radius: 4px;
  flex-shrink: 0;    /* 图片不被挤压 */
}

/* 文章右侧内容 */
.article .info {
  flex: 1;
}
.article .info h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
}
.article .info p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* 田字形布局 */
.grid-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* 模块 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}
.title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
}
.title a {
    color: #222;
}

/* 文章列表 - 补满内容 */
.article {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.article img {
    width: 150px;
    height: 90px;
    object-fit: cover;
}
.article .info h3 {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.4;
}
.article .info p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 右侧卡片（田字格内使用） */
.right-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}
.right-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1677ff;
}
.right-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f2f2f2;
}
.right-list li:last-child {
    border-bottom: none;
}
.right-list a {
    font-size: 14px;
    display: block;
    line-height: 1.4;
}

/* 标签列表 */
.tag-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-list a {
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #eee;
}
.tag-list a:hover {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

/* 友情链接 */
.link-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}
.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.link-list a {
    padding: 6px 12px;
    background: #f5f7fa;
    border-radius: 6px;
    font-size: 14px;
}
.link-list a:hover {
    background: #1677ff;
    color: #fff;
}

/* 底部 */
.footer {
    background: #2a2a2a;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 14px;
}
.footer a {
    color: #aaa;
}
.footer a:hover {
    color: #fff;
}