/* 整体布局 */
a {
  text-decoration: none;
  color: #333;
}

.news-list-section {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.news-container {
  display: flex;
  gap: 30px;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #1e88e5;
}

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

.breadcrumb .current {
  color: #1e88e5;
}

/* 左侧边栏 */
.news-sidebar {
  flex: 0 0 300px;
}

.sidebar-widget {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 30px;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.widget-title i {
  color: #1e88e5;
  margin-right: 8px;
}

/* 热门新闻 */
.popular-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-news-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.popular-news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-news-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 1.4;
}

.popular-news-title:hover {
  color: #1e88e5;
}

.popular-news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

/* 推荐产品 */
.recommended-products {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.product-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.product-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.product-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  text-decoration: none;
  line-height: 1.3;
}

.product-name:hover {
  color: #1e88e5;
}

.product-price {
  font-size: 13px;
  color: #f44336;
  font-weight: 500;
  margin-bottom: 5px;
}

.product-tag {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.product-tag.hot {
  background-color: #f44336;
}

.product-tag.special {
  background-color: #ff9800;
}

.product-tag.new {
  background-color: #4caf50;
}

.product-tag.recommend {
  background-color: #2196f3;
}

.view-all-link {
  display: block;
  text-align: center;
  color: #1e88e5;
  font-size: 14px;
  text-decoration: none;
  margin-top: 15px;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* 主内容区 */
.news-main-content {
  flex: 1;
}

.news-list-wrapper {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
}

/* 分类按钮组 */
.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.category-btn {
  background-color: #f5f5f5;
  border: none;
  border-radius: 20px;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background-color: #e0e0e0;
}

.category-btn.active {
  background-color: #1e88e5;
  color: #fff;
}

.category-btn i {
  margin-right: 6px;
}

/* 新闻列表 */
.news-list1 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.news-item-top {
  display: flex;
  flex-direction: column;
}

.news-item-header {
  margin-bottom: 10px;
}

.news-item-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 10px;
}

.news-item-title:hover {
  color: #1e88e5;
}

.news-item-meta-group {
  font-size: 13px;
  color: #888;
}

.news-item-meta-group span {
  margin-right: 15px;
}

.news-item-meta-group i {
  margin-right: 5px;
  color: #999;
}

.news-item-date {
  font-weight: 500;
}

.news-item-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 5px;
  border-radius: 4px;
  background-color: #fff;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-item:hover {
  background-color: #f5f5f5;
}

.page-item.active {
  background-color: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
}

.page-item.disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* 新闻详情页样式 */
.news-detail-section {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.news-detail-wrapper {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.news-detail-header {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.news-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.news-detail-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.news-detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.news-detail-category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.news-detail-category.product {
  background-color: #1e88e5;
}

.news-detail-category.company {
  background-color: #7cb342;
}

.news-detail-category.industry {
  background-color: #ff9800;
}

.news-detail-date,
.news-detail-stats {
  font-size: 14px;
  color: #777;
}

.news-detail-stats i {
  margin-right: 5px;
  color: #999;
}

.news-detail-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-detail-share span {
  font-size: 14px;
  color: #666;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.share-btn.weixin {
  background-color: #09bb07;
}

.share-btn.weibo {
  background-color: #e6162d;
}

.share-btn.qq {
  background-color: #1e88e5;
}

.share-btn.link {
  background-color: #8e44ad;
}

.share-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.news-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

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

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.news-detail-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 30px 0 15px;
  border-left: 4px solid #1e88e5;
  padding-left: 15px;
}

.news-detail-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 25px 0 15px;
}

.news-detail-content ul,
.news-detail-content ol {
  margin: 15px 0;
  padding-left: 20px;
}

.news-detail-content li {
  margin-bottom: 10px;
}

.news-detail-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.news-detail-tags {
  margin-bottom: 15px;
}

.news-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 3px;
  background-color: #f0f2f5;
  color: #666;
  font-size: 13px;
  margin-right: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-tag:hover {
  background-color: #1e88e5;
  color: #fff;
}

.news-detail-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 4px;
  background-color: #f0f2f5;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-btn:hover,
.action-btn.liked {
  background-color: #1e88e5;
  color: #fff;
}

/* 相关新闻 */
.related-news {
  margin-top: 30px;
}

.related-news h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.related-news h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #1e88e5;
}

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

.related-news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.related-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-news-img {
  height: 180px;
  overflow: hidden;
}

.related-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-news-card:hover .related-news-img img {
  transform: scale(1.05);
}

.related-news-content {
  padding: 15px;
}

.related-news-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  text-decoration: none;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-news-title:hover {
  color: #1e88e5;
}

.related-news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
}

.related-news-meta i {
  margin-right: 5px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .news-container {
    flex-direction: column;
  }

  .news-sidebar {
    flex: none;
    width: 100%;
    order: 2;
  }

  .news-main-content {
    order: 1;
    margin-bottom: 30px;
  }

  .news-detail-meta {
    flex-direction: column;
    gap: 15px;
  }

  .related-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-categories {
    justify-content: center;
  }

  .news-item-title,
  .news-detail-title {
    font-size: 22px;
  }

  .news-detail-content {
    font-size: 15px;
  }

  .news-detail-content h2 {
    font-size: 20px;
  }

  .news-detail-content h3 {
    font-size: 17px;
  }
}

@media (max-width: 576px) {

  .news-detail-wrapper,
  .news-list-wrapper {
    padding: 20px;
  }

  .related-news-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-share {
    margin-top: 10px;
  }
}

/* 大数据标签 */
.news-detail-content .big-data-tag {
  display: inline-block;
  position: relative;
  float: right;
  margin: 5px 0 15px 15px;
  padding: 8px 15px;
  background-color: #4CAF50;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 大数据相关段落样式 */
.data-highlight {
  background-color: #f2f9f2;
  border-left: 4px solid #4CAF50;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

/* 详情页大数据图表容器 */
.data-chart-container {
  margin: 30px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* 数据展示标签 */
.data-label {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 5px 10px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}

/* 技术数据表格 */
.tech-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.tech-data-table thead tr {
  background-color: #4CAF50;
  color: white;
  text-align: left;
}

.tech-data-table th,
.tech-data-table td {
  padding: 12px 15px;
}

.tech-data-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.tech-data-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.tech-data-table tbody tr:last-of-type {
  border-bottom: 2px solid #4CAF50;
}

/* 详情页数据展示卡片 */
.data-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px 0;
  border-top: 3px solid #4CAF50;
}

.data-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.data-card-content {
  font-size: 15px;
  line-height: 1.6;
}

.data-card-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  text-align: right;
  font-size: 13px;
  color: #777;
}

/* 文章标签行样式 */
.news-tags-line {
  margin-top: 15px;
  display: flex;
  align-items: center;
}

.tags-label {
  font-size: 14px;
  margin-right: 10px;
  color: #333;
}

.tags-label i {
  margin-right: 4px;
  color: #555;
}

.tags-inline-container {
  display: flex;
  flex-wrap: wrap;
}

.tag-link {
  color: #333;
  margin-right: 15px;
  text-decoration: none;
}

.tag-link:last-child {
  margin-right: 0;
}

.tag-link:hover {
  color: #1e88e5;
  text-decoration: underline;
}

/* 上一篇/下一篇水平导航 */
.article-nav-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-prev,
.nav-next {
  display: inline-flex;
  align-items: center;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
  color: #1e88e5;
  background-color: #f5f7fa;
}

.nav-prev i {
  margin-right: 8px;
}

.nav-next i {
  margin-left: 8px;
}

/* 分类导航样式优化 */
.news-category-tabs {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 25px;
  gap: 15px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.news-category-tabs button {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-category-tabs button:hover {
  color: #2c3e50;
  background-color: #fff;
  border-color: #27ae60;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-category-tabs button.active {
  background-color: #27ae60;
  color: #fff;
  border-color: #27ae60;
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

.news-category-tabs button .mobile-text {
  display: none;
}

@media (max-width: 768px) {
  .news-category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 15px;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
  }

  .news-category-tabs button {
    padding: 10px 15px;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .news-category-tabs button span:not(.mobile-text) {
    display: none;
  }

  .news-category-tabs button .mobile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .news-category-tabs button .mobile-text span {
    display: block;
    text-align: center;
  }
}
