/* 资讯栏目专用样式 */
.news-container {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 导航固定容器 */
.nav-sticky-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* 顶部导航 */
.news-nav {
  background-color: white;
  padding: 0px 0 0 0;
  margin-bottom: 15px;
}

.news-nav .news-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
}

.news-logo img {
  height: 40px;
  vertical-align: middle;
}

.news-nav-links {
  width: 100%;
  background-color: #333;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.news-nav-links::-webkit-scrollbar {
  display: none;
}

.news-nav-links .news-container {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  flex-direction: row;
  white-space: nowrap;
  padding: 10px 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.news-nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.news-nav-links a:hover {
  color: #4e8cee;
}

/* 导航链接活动状态 */
.news-nav-links a.active {
  /* color: #4e8cee; */
  position: relative;
  font-weight: 600;
}

.news-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #2196f3;
  border-radius: 2px;
}

.news-search-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 24px;
  padding: 3px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  min-width: 260px;
}

.news-search-container:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: #4e8cee;
}

.news-search {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 15px;
  font-size: 14px;
  outline: none;
  color: #495057;
}

.search-btn {
  background: #4e8cee;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin-right: 3px;
}

.search-btn:hover {
  background: #3a79d4;
}

.search-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.search-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.search-btn:hover {
  color: #333;
}

/* 内容主体 */
.news-main {
  width: 100%;
  display: flex;
}

/* 左侧内容区 */
.news-left {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
}

/* 新的轮播图样式 */
.banner-carousel {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner-slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-color: #f5f5f5;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 25px;
  color: white;
}

/* 轮播图链接样式 */
.banner-slide a {
  display: block;
  position: relative;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.banner-slide a:hover {
  color: white;
}

.banner-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.banner-meta {
  display: flex;
  font-size: 13px;
  opacity: 0.9;
  gap: 15px;
}


.banner-category {
  background-color: #0069ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-nav:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.banner-prev {
  left: 15px;
}

.banner-next {
  right: 15px;
}

.banner-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  background-color: white;
  width: 24px;
  border-radius: 4px;
}

/* 新闻列表 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-item {
  display: flex;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background-color: #f9f9f9;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item-image {
  width: 160px;
  height: 100px;
  background-color: #f0f0f0;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-item-title {
  font-size: 18px;
  font-weight: normal;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.3s ease;
}

.news-item-title:hover {
  color: #4e8cee;
}

/* 新闻标题链接样式 */
.news-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item-title a:hover {
  color: #4e8cee;
}

/* 新闻图片链接样式 */
.news-item-image a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.news-item-image a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item-image a:hover img {
  transform: scale(1.05);
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #999;
}

.news-item-media {
    padding: 2px 0;
    background-color: transparent;
    color: #ff8e07;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
}

.news-item-views {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-item-time {
  color: #999;
}

/* 右侧边栏 */
.news-right {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 今日头条专用样式 */
.today-news {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* margin-bottom: 15px; */
}

/* 今日头条标题样式 */
.today-news > h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4e8cee;
  color: #333;
  height: auto;
  line-height: 1.4;
}

/* 今日头条列表样式 */
.today-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 热点新闻样式 */
.hot-news {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 热点新闻标题样式 */
.hot-news > h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 2px solid #4e8cee;
  color: #333;
  height: 34px;
  line-height: 26px;
}



/* 热点新闻列表样式 - 独立定义 */
.hot-news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* 右文左图样式 */
.news-item-horizontal {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
}

/* 今日头条中的新闻项样式 */
.today-news .news-item-horizontal {
  width: 290px;
  height: 86.98px;
  border-radius: 6px;
  column-gap: 8px;
  padding: 8px 5px;
  color: rgb(78, 140, 238);
  transition: background-color 0.2s;
}

.today-news .news-item-horizontal:hover {
  background-color: #f5f9ff;
  transform: none;
  box-shadow: none;
}

.today-news .news-item-horizontal:hover h3 {
  color: #4e8cee;
}

.news-item-horizontal:hover {
  background-color: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-item-horizontal:hover h3 {
  color: #4e8cee;
}

.news-item-horizontal:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.news-item-horizontal .news-text {
  flex: 1;
}

.news-item-horizontal h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.news-item-horizontal .news-meta {
  font-size: 12px;
  color: #999;
}

.news-item-horizontal .news-meta span:first-child {
  color: #ff8e07;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* 今日头条中的标签样式，与主列表中的财经、科技标签样式相同 */
.today-news .news-item-horizontal .news-meta span:first-child {
  padding: 2px 0;
  background-color: transparent;
  color: #ff8e07;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
}

.news-item-horizontal img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.3s, filter 0.3s;
}

/* 热点新闻两列样式已在上文定义 */

.hot-news-grid-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.hot-news-grid-item:hover {
  transform: translateY(-5px);
}

.hot-news-grid-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: filter 0.3s ease;
}

.hot-news-grid-item:hover img {
  filter: brightness(1.05);
}

.hot-news-grid-item h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 6px 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.hot-news-grid-item:hover h3 {
  color: #4e8cee;
}

/* 移除了热点新闻的元信息样式 */

.today-news-item .news-meta, .hot-news-item .news-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: #999;
}

.today-news-item .news-meta span:first-child, .hot-news-item .news-meta span:first-child {
  color: #ff4444;
  font-weight: bold;
}

/* 版权信息样式 */
.copyright-info .hot-news-list {
  grid-template-columns: 1fr; /* 单列显示 */
}

.copyright-info .hot-news-item {
  text-align: left; /* 左对齐 */
}

.copyright-info .hot-news-item p {
  margin: 5px 0;
  font-size: 12px;
  color: #666;
}

/* 自动加载样式 */
.load-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  padding: 20px 0;
  min-height: 80px;
}

/* 版权信息样式 */
.copyright {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: #666;
  background-color: #fff;
  border-top: 1px solid #e5e5e5;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.copyright a {
  font-size: 12px;
  color: #666;
}

/* 在PC端隐藏左侧的版权信息，因为右侧已经有了 */
@media (min-width: 769px) {
  .copyright {
    display: none;
  }
}

.news-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4e8cee;
  font-size: 14px;
  padding: 12px 24px;
  background-color: #f8f9fa;
  border-radius: 24px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(78, 140, 238, 0.2);
  border-top: 2px solid #4e8cee;
  border-radius: 50%;
  animation: newsSpin 1s linear infinite;
}

.news-complete-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: #f0f7ff;
  border-radius: 24px;
  border: 1px solid #d0e3ff;
  color: #4e8cee;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@keyframes newsSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  /* 移动端使用100%宽度，避免水平滚动 */
  .news-container {
    width: 100%;
    margin: 0;
    padding: 0 15px;
  }

  /* 导航链接容器保持内容宽度控制 */
  .news-nav-links {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .news-nav-links .news-container {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .news-main {
    flex-direction: column;
    padding: 0;
  }

  .news-right {
    width: 100%;
    display: none; /* 在移动端完全隐藏右侧边栏 */
  }

  /* 确保内容容器在移动端正确布局 */
  .news-container {
    flex-direction: column;
    gap: 10px;
    padding: 0 14px;
  }

  /* 在移动端隐藏头条和热点新闻 */
  .today-news,
  .hot-news {
    display: none;
  }

  .news-nav-links .news-container {
    padding: 10px 10px;
    gap: 30px;
  }

  .news-nav-links a {
    white-space: nowrap;
    padding: 5px 0;
    font-size: 16px;
  }

  .news-search-container {
    width: 216px;
    max-width: 216px;
    min-width: 216px;
  }

  .news-search {
    width: 100%;
  }
}

/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.logo {
    width: 109px;
    height: 34px !important;
    margin: 10px 10px 10px 0px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  /* 移动端使用100%宽度，避免水平滚动 */
  .news-container {
    width: 100%;
    margin: 0;
    padding: 0 15px;
  }

  /* 导航链接容器保持内容宽度控制 */
  .news-nav-links .news-container {
    padding: 10px 10px;
  }
}

@media (max-width: 768px) {
  /* 主要布局调整 */
  .news-main {
    flex-direction: column;
    padding: 0;
  }

  .news-right {
    width: 100%;
    display: none; /* 在移动端完全隐藏右侧边栏 */
  }

  /* 确保内容容器在移动端正确布局 */
  .news-container {
    flex-direction: column;
    gap: 10px;
    padding: 0 14px;
  }

  /* 在移动端隐藏头条和热点新闻 */
  .today-news,
  .hot-news {
    display: none;
  }

  /* 导航样式 */
  .news-nav-links {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .news-nav-links .news-container {
    padding: 6px 0;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .news-nav-links a {
    white-space: nowrap;
    padding: 5px 0;
    font-size: 16px;
  }

  /* 搜索框样式 */
  .news-search-container {
    min-width: 240px;
  }

  .news-search {
    width: 100%;
  }

  /* 轮播图样式 */
  .banner-carousel {
    height: 200px;
    margin-bottom: 15px;
  }

  .banner-content {
    padding: 15px;
  }

  /* 隐藏轮播图左右切换按钮 */
  .banner-nav {
    display: none;
  }

  .banner-title {
    font-size: 18px;
    line-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 新闻列表样式 */
  .news-list {
    gap: 20px;
    padding: 0;
  }

  /* 新闻项样式 */
  .news-item {
    flex-direction: row;
    gap: 10px;
    padding-bottom: 15px;
    align-items: flex-start;
  }

  .news-item-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
  }

  .news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .news-item-content {
    padding: 0;
    flex: 1;
  }

  .news-item-title {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 左侧内容区样式 */
  .news-left {
    padding: 10px 0;
    background-color: #fff;
  }
}

@media (max-width: 480px) {
  /* 导航调整 */
  .news-nav-links {
    padding: 0 12px;
    box-sizing: border-box;
  }

  body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

  .news-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2196f3;
    border-radius: 2px;
  }

  .news-nav-links .news-container {
    padding: 6px 0;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  /* 搜索框调整 */
  .news-search-container {
    width: 216px;
    max-width: 216px;
    min-width: 216px;
  }
}
