/* 新闻资讯模块美化样式 */

/* 整体容器样式 */
.idx_news {
  padding: 20px 0;
}

/* 标题区域样式 */
.idx_news .idx_titbox {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.idx_news .idx_titbox .cn {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.idx_news .idx_titbox .cn:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #0277bd, #2196f3);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.idx_news .idx_titbox .line {
  display: none; /* 隐藏原有的线条 */
}

/* 新闻列表容器 */
.idx_news .detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* 新闻栏目卡片样式 */
.idx_news .column {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
  width: calc(33.33% - 20px) !important;
  display: block !important; /* 确保PC端默认显示所有栏目 */
  float: left !important; /* 确保水平排列 */
  max-width: calc(33.33% - 20px) !important; /* 限制最大宽度 */
}

.idx_news .column:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 栏目标题样式 */
.idx_news .column .t_tit {
  background: linear-gradient(90deg, #0277bd, #2196f3);
  padding: 15px 20px;
  margin: 0;
  border-radius: 10px 10px 0 0;
}

.idx_news .column .t_tit a {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  position: relative;
  padding-left: 15px;
}

.idx_news .column .t_tit a:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 18px;
  background: #fff;
  border-radius: 3px;
}

.idx_news .column .line {
  display: none; /* 隐藏原有的线条 */
}

/* 新闻列表样式 */
.idx_news .column .list {
  padding: 15px 20px;
}

.idx_news .column .list li {
  border-bottom: 1px dashed #eee;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.idx_news .column .list li:last-child {
  border-bottom: none;
}

.idx_news .column .list li:hover {
  background-color: #f9f9f9;
  padding-left: 5px;
}

.idx_news .column .list li .tit {
  flex: 1;
  color: #555;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  padding-left: 15px;
  transition: all 0.3s ease;
}

.idx_news .column .list li .tit:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #2196f3;
  border-radius: 50%;
}

.idx_news .column .list li:hover .tit {
  color: #2196f3;
}

.idx_news .column .list li .date {
  color: #999;
  font-size: 13px;
  margin-left: 10px;
}

/* 选项卡导航样式 */
.news-tabs-nav {
  display: none;
  margin-bottom: 20px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-tabs-nav .tab-btn {
  background: #f5f5f5;
  border: none;
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  outline: none;
}

.news-tabs-nav .tab-btn.active {
  background: linear-gradient(90deg, #0277bd, #2196f3);
  color: #fff;
}

.news-tabs-nav .tab-btn:hover:not(.active) {
  background: #e0e0e0;
}

/* 选项卡内容样式 */
.idx_news .tab-content {
  display: flex;
  flex-direction: column;
}

/* 响应式布局 */
@media (max-width: 1200px) and (min-width: 992px) {
  .idx_news .detail {
    gap: 15px;
  }
  
  .idx_news .column {
    width: calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
  }
}

/* 平板电脑横屏 */
@media (max-width: 991px) and (min-width: 769px) {
  .idx_news .detail {
    gap: 12px;
  }
  
  .idx_news .column {
    width: calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    min-width: 280px;
  }
  
  .idx_news .column .t_tit {
    padding: 12px 15px;
  }
  
  .idx_news .column .t_tit a {
    font-size: 17px;
  }
  
  .idx_news .column .list {
    padding: 12px 15px;
  }
  
  .idx_news .column .list li .tit {
    font-size: 14px;
  }
}

/* 中等屏幕设备（平板竖屏） */
@media (max-width: 768px) and (min-width: 577px) {
  .idx_news .idx_titbox .cn {
    font-size: 24px;
  }
  
  /* 显示选项卡导航 */
  .news-tabs-nav {
    display: flex;
  }
  
  .idx_news .detail {
    flex-direction: column;
  }
  
  .idx_news .column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    float: none !important;
    display: none !important; /* 移动端默认隐藏所有栏目 */
  }
  
  /* 只在移动端应用active类显示对应栏目 */
  .idx_news .column.active {
    display: block !important; /* 只显示激活的栏目 */
  }
  
  .idx_news .column .t_tit a {
    font-size: 16px;
  }
  
  .idx_news .column .list li .tit {
    font-size: 14px;
  }
  
  .idx_news .column .list li .date {
    font-size: 12px;
  }
}

/* 小屏幕设备（手机横屏） */
@media (max-width: 576px) and (min-width: 481px) {
  .idx_news .idx_titbox .cn {
    font-size: 22px;
  }
  
  .news-tabs-nav {
    display: flex;
  }
  
  .news-tabs-nav .tab-btn {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .idx_news .detail {
    flex-direction: column;
  }
  
  .idx_news .column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px 0 !important;
    float: none !important;
    display: none !important;
    min-width: auto;
  }
  
  .idx_news .column.active {
    display: block !important;
  }
  
  .idx_news .column .t_tit {
    padding: 12px 15px;
  }
  
  .idx_news .column .t_tit a {
    font-size: 15px;
    padding-left: 12px;
  }
  
  .idx_news .column .t_tit a:before {
    height: 15px;
    width: 4px;
  }
  
  .idx_news .column .list {
    padding: 10px 15px;
  }
  
  .idx_news .column .list li {
    padding: 10px 0;
  }
  
  .idx_news .column .list li .tit {
    font-size: 13px;
  }
  
  .idx_news .column .list li .date {
    font-size: 11px;
  }
}

/* 超小屏幕设备（手机竖屏） */
@media (max-width: 480px) {
  .idx_news .idx_titbox .cn {
    font-size: 20px;
  }
  
  /* 显示选项卡导航 */
  .news-tabs-nav {
    display: flex;
  }
  
  .news-tabs-nav .tab-btn {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .idx_news .detail {
    flex-direction: column;
  }
  
  .idx_news .column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    display: none !important; /* 移动端默认隐藏所有栏目 */
    min-width: auto;
  }
  
  /* 只在移动端应用active类显示对应栏目 */
  .idx_news .column.active {
    display: block !important; /* 只显示激活的栏目 */
  }
  
  .idx_news .column .t_tit a {
    font-size: 15px;
  }
  
  .idx_news .column .list li .tit {
    font-size: 13px;
  }
  
  .idx_news .column .list li .date {
    font-size: 11px;
  }
}