/* 资讯详情页专用样式 */
.news-container {
  width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

/* 导航固定容器 */
.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;
  padding: 10px 0;
}

.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;
}

.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;
}

/* 版权信息样式 */
.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;
}

.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:hover {
  color: #333;
}

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

.news-container {
  display: flex;
  gap: 20px;
  width: 1100px;
  box-sizing: border-box;
}

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

/* 面包屑导航样式 */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #4e8cee;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #3a79d4;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* 文章详情样式 */
.article-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.article-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.article-category {
  padding: 3px 8px;
  background-color: #4e8cee;
  color: white;
  border-radius: 4px;
  font-size: 12px;
}

.article-source {
  font-weight: 500;
}

.article-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.article-content h2 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 25px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.article-content h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 20px 0 10px 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.article-tag {
  padding: 5px 12px;
  background-color: #f0f2f5;
  color: #4e8cee;
  border-radius: 15px;
  font-size: 14px;
  cursor: pointer;
}

.article-actions {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid #eee;
  margin-top: 30px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.like-btn {
  background-color: #f0f2f5;
  color: #e74c3c;
}

.share-btn {
  background-color: #f0f2f5;
  color: #4e8cee;
}

.comment-btn {
  background-color: #f0f2f5;
  color: #f39c12;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.related-news {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.related-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4e8cee;
}

.related-news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.related-news-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

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

.related-news-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

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

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

.related-news-item .news-meta {
  font-size: 12px;
  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);
}

/* 今日头条标题样式 */
.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;
}

/* 版权信息样式 */
.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;
}

/* Logo样式 */
.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 {
    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 {
    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%;
  }

  /* 面包屑导航样式 */
  .breadcrumb {
    font-size: 13px;
  }

  /* 文章标题样式 */
  .article-title {
    font-size: 24px;
    line-height: 1.3;
  }

  /* 文章内容样式 */
  .article-content {
    font-size: 15px;
    line-height: 1.7;
  }

  /* 相关新闻样式 */
  .related-news-list {
    grid-template-columns: 1fr;
  }

  /* 移动端显示版权信息 */
  .copyright {
    display: block;
  }
}

@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-left {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 4px;
  }
  .article-content h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
  }
  .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;
  }

  /* 文章标题调整 */
  .article-title {
    font-size: 20px;
  }

  /* 文章内容样式 */
  .article-content {
    font-size: 16px;
  }

  /* 相关新闻样式 */
  .related-news-item {
    gap: 12px;
  }

  .related-news-item img {
    width: 100px;
    height: 70px;
  }
}