/*news.css*/
/* 新闻标题样式 - 毛玻璃效果 + 字体改为黑色 */
.news-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #000000; /* 字体改为黑色 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* 增强边框透明度适配毛玻璃 */
  padding-bottom: 0.5rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  /* 毛玻璃核心属性 */

}

/* 新闻板块与按钮容器 */
.news-board-and-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* 新闻板块容器样式 */
.news-board-container {
  flex: 1;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  padding: 0 28px;
}

/* 滚动箭头按钮样式 - 已包含毛玻璃，保留 + 字体改为黑色 */
.news-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 12px;
  color: #000000; /* 字体改为黑色 */
  transition: all 0.2s ease-in-out;
  padding: 0;
}

/* 向左箭头 */
.news-scroll-left {
  left: 2px;
}

/* 向右箭头 */
.news-scroll-right {
  right: 2px;
}

/* 箭头悬停效果 */
.news-scroll-btn:hover {
  background-color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

/* 箭头禁用状态 */
.news-scroll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

/* 新闻板块列表样式 */
.news-board-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 完全隐藏滚动条 */
.news-board-list::-webkit-scrollbar {
  display: none;
}

/* 新闻板块项样式 - 重构为毛玻璃效果 + 字体改为黑色 */
.news-board-item {
  /* 毛玻璃核心属性 */
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4); /* 增强边框透明度 */
  border-radius: 8px;
  padding: 6px 12px;
  color: #000000; /* 字体改为黑色 */
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.news-board-item:hover {
  /* 悬停时增强毛玻璃效果，字体保持黑色 */
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  color: #000000;
}

/* 新闻板块项激活状态样式 - 毛玻璃适配 + 字体改为白色 */
.news-board-item.active {
  background-color: rgba(66, 133, 244, 0.3) ; /* 降低不透明度适配毛玻璃 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff; /* 字体改为白色 */
  border-color: rgba(66, 133, 244, 0.6);
}

.news-board-item.active:hover {
  background-color: rgba(66, 133, 244, 0.4);
  border-color: rgba(66, 133, 244, 0.8);
  color: #ffffff; /* 保持白色 */
}

/* 查看所有新闻按钮样式 - 毛玻璃适配 + 字体改为白色 */
.btn-primary {
  background-color: rgba(66, 133, 244, 0.3); /* 毛玻璃化 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(66, 133, 244, 0.6);
  color: #ffffff; /* 字体改为白色 */
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
  line-height: 1.2;
}

.btn-primary:hover {
  background-color: rgba(66, 133, 244, 0.4);
  border-color: rgba(66, 133, 244, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
  color: #ffffff; /* 保持白色 */
}

/* 新闻列表样式 */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

/* 新闻列表项样式 - 毛玻璃 hover 效果（保留基础样式，移除位移） */
.news-list>li {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0.25rem 0;
  transition: all 0.2s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* .news-list>li:hover {
  /* 列表项 hover 时添加毛玻璃背景，移除translateY位移 */
  /*background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(0); /* 取消悬浮上移 */
  /*border-radius: 6px; /* 增加圆角 */
  /*padding: 0.25rem 0.5rem; /* 增加内边距 */
/*} */

/* 新闻标题样式 */
.news-info {
  flex: 1;
  min-width: 0;
}

/* 移除新闻链接的默认样式 */
.news-info a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* 确保所有状态下的链接都没有样式 */
.news-info a:link,
.news-info a:visited,
.news-info a:hover,
.news-info a:active {
  color: inherit;
  text-decoration: none;
}

/* 新闻标题链接特殊样式 */
.news-title-link {
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* 确保新闻标题链接在所有状态下都没有样式 */
.news-title-link:link,
.news-title-link:visited,
.news-title-link:hover,
.news-title-link:active {
  color: inherit;
  text-decoration: none;
}

/* 新闻标题内容样式 - 突出显示 + 字体改为黑色 */
.news-info .news-info-content {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000; /* 字体改为黑色 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease-in-out;
  margin: 0;
}

/* 新闻标题悬停效果 - 保持黑色，取消变色 */
.news-list>li:hover .news-info .news-info-content {
  color: #000000; /* 保持黑色，取消原蓝色 */
}

/* 新闻时间样式 */
.news-info-time {
  white-space: nowrap;
}

/* 新闻时间内容样式 - 次要信息 + 字体改为深灰色（接近黑色） */
.news-info-time .news-info-content {
  font-size: 0.75rem;
  color: #333333; /* 改为深灰色，接近黑色 */
  margin: 0;
}

/* 响应式适配：窄屏缩减字号 */
@media (max-width: 1200px) {
  .news-title {
    font-size: 1.3rem; /* 缩减标题字号 */
    margin-bottom: 1.2rem;
  }
  .news-info .news-info-content {
    font-size: 0.9rem;
  }
  .news-info-time .news-info-content {
    font-size: 0.7rem;
  }
  .news-board-item {
    font-size: 12px; /* 缩减板块字号 */
    padding: 5px 10px;
  }
  .btn-primary {
    font-size: 11px;
    padding: 3px 8px;
  }
}

@media (max-width: 768px) {
  .news-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
  }
  .news-info .news-info-content {
    font-size: 0.85rem;
  }
  .news-info-time .news-info-content {
    font-size: 0.65rem;
  }
  .news-board-container {
    padding: 0 15px; /* 缩减容器内边距 */
  }
  .news-board-list {
    gap: 0.5rem; /* 缩小板块间距 */
  }
  .news-board-item {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px; /* 缩小圆角 */
  }
  .news-scroll-btn {
    width: 20px; /* 缩小箭头尺寸 */
    height: 20px;
    font-size: 10px;
  }
  .btn-primary {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
  }
  .news-list>li {
    padding: 0.2rem 0; /* 缩小列表项内边距 */
  }
  .news-list>li:hover {
    padding: 0.2rem 0.3rem;
  }
}

@media (max-width: 480px) {
  .news-title {
    font-size: 1rem;
  }
  .news-info .news-info-content {
    font-size: 0.8rem;
  }
  .news-board-and-button {
    gap: 0.5rem; /* 缩小容器间距 */
  }
}