/* 新闻页面增强样式 */
/* 全局动效优化 */
.news-item,
.popular-news-item,
.product-item,
.related-news-card,
.share-btn,
.category-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 卡片阴影增强 */
.sidebar-widget,
.news-list-wrapper,
.news-detail-wrapper,
.related-news-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-widget:hover,
.news-list-wrapper:hover,
.news-detail-wrapper:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 面包屑导航增强 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background-color: #f5f7f9;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.breadcrumb a,
.breadcrumb .current {
  position: relative;
  display: flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: #1565c0;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #bbb;
  font-size: 12px;
}

/* 新闻列表优化 */
.news-list1 .news-item {
  position: relative;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  border: none;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-list1 .news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-item:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.news-item.product:after {
  background-color: #1e88e5;
}

.news-item.tech:after {
  background-color: #00897b;
}

.news-item.industry:after {
  background-color: #ff9800;
}

.news-item.company:after {
  background-color: #7cb342;
}

/* 分类按钮美化 */
.news-categories {
  background-color: #f5f7f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-btn {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  padding: 8px 18px;
}

.category-btn:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
}

.category-btn.active {
  background-color: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
}

/* 标题样式增强 */
.news-item-title,
.related-news-title,
.popular-news-title {
  position: relative;
  padding-bottom: 2px;
  overflow: hidden;
}

.news-item-title:after,
.related-news-title:after,
.popular-news-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #1e88e5;
  transition: width 0.3s ease;
}

.news-item-title:hover:after,
.related-news-title:hover:after,
.popular-news-title:hover:after {
  width: 100%;
}

/* 分页美化 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 35px;
  gap: 8px;
}

.page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.page-item:hover {
  background-color: #e3f2fd;
  transform: translateY(-2px);
}

.page-item.active {
  background-color: #1e88e5;
  color: #fff;
  box-shadow: 0 3px 8px rgba(30, 136, 229, 0.3);
}

/* 详情页增强 */
.news-detail-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

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

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

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

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin: 25px 0;
  transition: transform 0.3s ease;
}

.news-detail-content img:hover {
  transform: scale(1.01);
}

.news-detail-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 35px 0 20px;
  padding-left: 15px;
  border-left: 4px solid #1e88e5;
  line-height: 1.3;
}

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

.news-detail-content ul {
  background-color: #f8f9fa;
  padding: 20px 20px 20px 40px;
  border-radius: 8px;
  margin: 20px 0;
}

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

.news-detail-content li:before {
  content: '';
  position: absolute;
  left: -20px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1e88e5;
}

/* 分享按钮增强 */
.news-detail-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 热门新闻项增强 */
.popular-news-item {
  position: relative;
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: #f5f7f9;
  border: none;
  transition: all 0.3s ease;
}

.popular-news-item:hover {
  background-color: #e3f2fd;
  transform: translateX(5px);
}

/* 相关新闻美化 */
.related-news h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  text-align: center;
}

.related-news h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #1e88e5;
  transform: translateX(-50%);
}

.related-news-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.related-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

/* 响应式优化 */
@media (max-width: 992px) {
  .related-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .news-detail-title {
    font-size: 24px;
  }

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

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

  .related-news-img {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .related-news-grid {
    grid-template-columns: 1fr;
  }

  .popular-news-item,
  .product-item {
    padding: 12px;
  }

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

  .news-categories {
    padding: 10px;
    gap: 8px;
  }

  .category-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* 光标悬停动画效果 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(30, 136, 229, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(30, 136, 229, 0);
  }
}

.news-item-title:hover,
.popular-news-title:hover,
.product-name:hover,
.related-news-title:hover {
  color: #1565c0;
}

/* 详情页阅读体验增强 */
.news-detail-content {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  letter-spacing: 0.3px;
}

/* 增加页面整体风格一致性 */
.news-list-section,
.news-detail-section {
  background-color: #f5f7f9;
  min-height: 80vh;
}

/* 推荐产品卡片增强 */
.recommended-products .product-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.recommended-products .product-item:hover {
  background-color: #f0f4f8;
  transform: translateX(5px);
}

.product-info {
  flex: 1;
}

.product-image {
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 新闻操作按钮 */
.news-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.like-button i {
  margin-right: 6px;
  transition: all 0.3s ease;
}

.like-button:hover {
  background-color: #e3f2fd;
  color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.like-button.liked {
  background-color: #e3f2fd;
  color: #1565c0;
}

.like-button.liked i {
  color: #1565c0;
  transform: scale(1.2);
}

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

.floating-heart {
  position: fixed;
  z-index: 9999;
  color: #f44336;
  font-size: 20px;
  animation: float-up 1s forwards ease-out;
  pointer-events: none;
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-50px) scale(1.5);
  }
}

/* 新闻标签样式 */
.news-tags {
  margin-top: 25px;
  display: flex;
  align-items: center;
}

.tag-label {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
  white-space: nowrap;
}

.tag-label i {
  color: #1e88e5;
  margin-right: 5px;
}

.tags-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 5px;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.tags-container::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.news-tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f0f4f8;
  color: #455a64;
  font-size: 13px;
  margin-right: 8px;
  flex-shrink: 0;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.news-tag:hover {
  background-color: #1e88e5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(30, 136, 229, 0.3);
}

/* 响应式调整 */
@media (max-width: 576px) {
  .news-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .tag-label {
    margin-bottom: 8px;
  }

  .tags-container {
    width: 100%;
  }
}

/* 文章导航（上一篇/下一篇）增强样式 */
.article-navigation {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.nav-link {
  display: flex;
  flex-direction: column;
  padding: 25px;
  text-decoration: none;
  flex: 1;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  z-index: 1;
}

.nav-link:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f7fa;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover:after {
  opacity: 1;
}

.nav-link.prev {
  text-align: left;
  border-right: 1px solid #eee;
  padding-left: 25px;
}

.nav-link.next {
  text-align: right;
  padding-right: 25px;
}

.nav-link.prev:before,
.nav-link.next:before {
  content: '';
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #1e88e5, #64b5f6);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link.prev:before {
  left: 0;
}

.nav-link.next:before {
  right: 0;
}

.nav-link:hover:before {
  transform: scaleY(1);
}

.nav-direction {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #1e88e5;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.nav-link.prev .nav-direction {
  justify-content: flex-start;
}

.nav-link.prev .nav-direction i {
  margin-right: 12px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.nav-link.prev:hover .nav-direction i {
  transform: translateX(-5px);
}

.nav-link.next .nav-direction {
  justify-content: flex-end;
}

.nav-link.next .nav-direction i {
  margin-left: 12px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.nav-link.next:hover .nav-direction i {
  transform: translateX(5px);
}

.nav-title {
  font-size: 16px;
  color: #455a64;
  line-height: 1.5;
  transition: color 0.3s ease;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 90%;
}

.nav-link.prev .nav-title {
  margin-left: 16px;
}

.nav-link.next .nav-title {
  margin-right: 16px;
}

.nav-link:hover .nav-title {
  color: #1565c0;
}

.nav-link:hover .nav-direction {
  color: #1565c0;
}

.nav-link.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* 添加箭头装饰 */
.nav-link.prev:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(30, 136, 229, 0.05);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.3s ease;
}

.nav-link.next:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(30, 136, 229, 0.05);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.3s ease;
}

.nav-link.prev:hover:after {
  transform: translateY(-50%) scale(1.2);
  background: rgba(30, 136, 229, 0.1);
}

.nav-link.next:hover:after {
  transform: translateY(-50%) scale(1.2);
  background: rgba(30, 136, 229, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .article-navigation {
    flex-direction: column;
    border-radius: 8px;
  }

  .nav-link.prev {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .nav-link {
    padding: 20px;
  }

  .nav-title {
    font-size: 15px;
    -webkit-line-clamp: 1;
  }
}

/* 完整分页导航 */
.pagination-container {
  margin: 40px 0;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.pagination-info {
  color: #666;
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-dots {
  margin: 0 5px;
  color: #999;
}

.page-item:hover:not(.disabled):not(.active) {
  background-color: #e3f2fd;
  color: #1565c0;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-item.active {
  background-color: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
  box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.page-item.disabled {
  color: #ccc;
  cursor: not-allowed;
  background-color: #f5f5f5;
  border-color: #eee;
  box-shadow: none;
}

.pagination-goto {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-goto span {
  color: #666;
  font-size: 14px;
}

.goto-input {
  width: 50px;
  height: 35px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 14px;
  text-align: center;
  color: #333;
  transition: all 0.3s ease;
}

.goto-input:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
  outline: none;
}

.goto-button {
  height: 35px;
  border: none;
  border-radius: 4px;
  background-color: #1e88e5;
  color: #fff;
  padding: 0 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.goto-button:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

/* 响应式样式 */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 20px;
  }

  .pagination {
    order: 1;
  }

  .pagination-info {
    order: 3;
  }

  .pagination-goto {
    order: 2;
  }

  .page-item {
    width: 35px;
    height: 35px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 5px;
  }

  .page-item {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .goto-input {
    width: 40px;
  }

  .goto-button {
    padding: 0 10px;
  }
}

/* 新增动态效果样式 - 从newshow.php移动 */
.page-loaded .news-detail-wrapper,
.page-loaded .related-news-card,
.page-loaded .sidebar-widget {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copy-tooltip {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.tooltip-fade {
  opacity: 0;
}

.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.overlay-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: scaleImage 0.3s forwards;
}

@keyframes scaleImage {
  to {
    transform: scale(1);
  }
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #1e88e5, #64b5f6);
  z-index: 1001;
  transition: width 0.2s ease-out;
}

/* 增强内容样式 */
.news-detail-content p:first-of-type {
  font-size: 18px;
  font-weight: 500;
  color: #455a64;
}

.sidebar-widget {
  transition-delay: 0.2s;
}

.related-news {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.related-news-card:nth-child(1) {
  animation-delay: 0.5s;
}

.related-news-card:nth-child(2) {
  animation-delay: 0.6s;
}

.related-news-card:nth-child(3) {
  animation-delay: 0.7s;
}

/* 上一篇/下一篇导航增强样式 */
.article-nav-inline {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.nav-prev,
.nav-next {
  position: relative;
  z-index: 2;
}

.nav-prev:hover {
  background: linear-gradient(to right, rgba(30, 136, 229, 0.1), transparent);
}

.nav-next:hover {
  background: linear-gradient(to left, rgba(30, 136, 229, 0.1), transparent);
}

/* 添加键盘快捷键提示 */
.article-nav-inline:after {
  content: "使用 ← → 键盘方向键快速浏览文章";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-nav-inline:hover:after {
  opacity: 1;
}

/* 标签容器样式增强 */
.tags-container {
  padding: 5px;
  background-color: #f9f9f9;
  border-radius: 4px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: grab;
  flex: 1;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  margin-right: 10px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-tag:hover {
  background-color: #2e7d32;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.2);
}

.news-tag:nth-child(2n) {
  background-color: #e3f2fd;
  color: #1565c0;
}

.news-tag:nth-child(2n):hover {
  background-color: #1565c0;
  color: white;
  box-shadow: 0 4px 8px rgba(21, 101, 192, 0.2);
}

.news-tag:nth-child(3n) {
  background-color: #fff8e1;
  color: #ff8f00;
}

.news-tag:nth-child(3n):hover {
  background-color: #ff8f00;
  color: white;
  box-shadow: 0 4px 8px rgba(255, 143, 0, 0.2);
}

.news-tag:nth-child(4n) {
  background-color: #f3e5f5;
  color: #8e24aa;
}

.news-tag:nth-child(4n):hover {
  background-color: #8e24aa;
  color: white;
  box-shadow: 0 4px 8px rgba(142, 36, 170, 0.2);
}

.news-tag:nth-child(5n) {
  background-color: #e0f7fa;
  color: #00838f;
}

.news-tag:nth-child(5n):hover {
  background-color: #00838f;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 131, 143, 0.2);
}

/* 从new.php移动的内联样式 */
.page-loaded .news-item,
.page-loaded .sidebar-widget,
.page-loaded .news-list-wrapper {
  animation: fadeInUp 0.6s ease-out forwards;
}

.news-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-item.animated {
  animation: fadeInRight 0.5s ease-out forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0.5;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-widget:nth-child(1) {
  animation-delay: 0.1s;
}

.sidebar-widget:nth-child(2) {
  animation-delay: 0.3s;
}

.news-item:nth-child(1) {
  animation-delay: 0.1s;
}

.news-item:nth-child(2) {
  animation-delay: 0.2s;
}

.news-item:nth-child(3) {
  animation-delay: 0.3s;
}

.news-item:nth-child(4) {
  animation-delay: 0.4s;
}

.news-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* 移动端固定导航栏样式 */
.fixed-tabs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  padding: 10px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* 新闻分类样式 */
.news-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

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

.category-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-link:hover {
  background-color: #f8f9fa;
  color: #1e88e5;
  padding-left: 20px;
}

.category-link i {
  margin-right: 10px;
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #666;
}

.category-link:hover i {
  color: #1e88e5;
}

.category-count {
  margin-left: auto;
  font-size: 13px;
  color: #999;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 12px;
}

/* 分类图标颜色 */
.category-link i.fa-microchip {
  color: #28a745;
}

.category-link i.fa-industry {
  color: #17a2b8;
}

.category-link i.fa-building {
  color: #6c757d;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .category-link {
    padding: 10px 12px;
  }

  .category-count {
    font-size: 12px;
    padding: 1px 6px;
  }
}

/* 产品卡片样式 */
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 16px 12px 12px 12px;
  margin-bottom: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-card-header {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-badge.hot {
  background: #27ae60;
  color: #fff;
  font-size: 13px;
  border-radius: 12px;
  padding: 2px 12px;
  margin-left: 10px;
  font-weight: 500;
}

.product-card-price {
  color: #27ae60;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.product-card-price .unit {
  font-size: 16px;
  color: #888;
  font-weight: 400;
}

.product-card-params {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  width: 100%;
}

.product-card-params li {
  font-size: 15px;
  color: #444;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card-params i {
  color: #27ae60;
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 0 !important;
}

.btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 1px 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: normal;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 0;
  min-height: 20px;
  box-sizing: border-box;
  line-height: 1;
}

.btn-test {
  background: #27ae60;
  color: #fff;
  line-height: 2rem;
  width: 48%;
  font-size: 12px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-test:hover {
  background: #219150;
}

.btn-detail {
  background: #f5f5f5;
  color: #27ae60;
  border: 1px solid #27ae60;
  padding: 1px 10px;
  font-size: 12px;
  min-height: 20px;
  border-radius: 2px;
  width: 48%;
  flex: none;
  box-sizing: border-box;
  line-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-detail i {
  font-size: 12px;
}

.btn i {
  font-size: 12px;
}

.btn-detail:hover {
  background: #e8f5e9;
}

@media (max-width: 600px) {
  .product-card {
    padding: 16px 8px 12px 8px;
  }

  .product-card-header {
    font-size: 17px;
  }

  .product-card-price {
    font-size: 22px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 0;
  }
}
