/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 悬停动画效果 */
.news-itemmm,
.news-item,
.dl {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.news-itemmm:hover,
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.news-image img,
.news-imageee img {
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.news-itemmm:hover .news-image img,
.news-item:hover .news-imageee img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 导航栏动画 */
.nav-bar ul li a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-bar ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-bar ul li a:hover {
  color: white;
}

.nav-bar ul li a:hover::after {
  width: 100%;
}

/* 搜索框动画 */
.search-box {
  transition: all 0.3s ease;
}

.search-box:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #ad2626;
}

.search-box input:focus {
  outline: none;
}

/* Logo动画 */
.logo a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo a:hover {
  transform: scale(1.05);
}

/* 抽屉动画增强 */
.drawer {
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay {
  transition: opacity 0.3s ease;
}

/* 分类标签动画 */
.news-category {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.news-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -90%;
  width: 90%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
  z-index: -1;
}

.news-itemmm:hover .news-category,
.news-item:hover .news-category {
  color: #ad2626;
  padding-left: 20px;
  
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(173, 38, 38, 0.2);
  background: linear-gradient(
    135deg,
    rgba(173, 38, 38, 0.15) 10%,
    rgba(173, 38, 38, 0.08) 90%
  );
}

.news-itemmm:hover .news-category::before,
.news-item:hover .news-category::before {
  left: 90%;
}

/* 标题动画 */
.news-title,
.news-titleee {
  transition: color 0.3s ease;
}

.news-itemmm:hover .news-title,
.news-item:hover .news-titleee {
  color: #ad2626;
}

/* 返回顶部按钮动画 */
.back-to-top {
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 760px) {
  .back-to-top {
    right: 20px !important;
    bottom: 100px !important;
  }

  .icon-back:before {
    font-size: 28px !important;
  }
}

/* 分区标题动画 */
.section-title {
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #ad2626, transparent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.section-title:hover::after {
  transform: translateX(0);
}

/* 图片加载动画 */
.news-image,
.news-imageee {
  overflow: hidden;
}

.news-image img,
.news-imageee img {
  animation: scaleIn 0.5s ease-out;
}

/* 链接悬停效果 */
a {
  transition: color 0.3s ease;
}

/* 页面整体加载动画 */
body {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 卡片悬停效果 */
.news-itemmm,
.news-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 滚动显示动画 */
.animate-on-scroll {

  transition: all 0.6s ease-out;
      margin-bottom: 12px;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 渐变背景动画 */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 脉冲动画 */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* 旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 20s linear infinite;
}

/* 弹跳动画 */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* 闪烁动画 */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.blink {
  animation: blink 1.5s ease-in-out infinite;
}

/* 卡片3D悬停效果 */
.news-itemmm,
.news-item {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.news-itemmm:hover,
.news-item:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 图片悬停效果增强 */
.news-image,
.news-imageee {
  position: relative;
  overflow: hidden;
}

.news-image::before,
.news-imageee::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(173, 38, 38, 0.05) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.news-itemmm:hover .news-image::before,
.news-item:hover .news-imageee::before {
  opacity: 1;
}

/* 卡片内容悬停效果 */
.news-content,
.news-contenttt {
  transition: transform 0.3s ease;
}

.news-itemmm:hover .news-content,
.news-item:hover .news-contenttt {
  transform: translateX(5px);
}

/* 按钮点击效果 */
.news-itemmm:active,
.news-item:active {
  transform: scale(0.98);
}

/* 波纹效果 */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(173, 38, 38, 0.3);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* 卡片渐变边框效果 */
.news-itemmm,
.news-item {
  position: relative;
}

.news-itemmm::after,
.news-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-itemmm:hover::after,
.news-item:hover::after {
  opacity: 1;
}

/* 卡片圆角优化 */
.news-itemmm,
.news-item {
  border-radius: 12px;
  overflow: hidden;
}

.news-image,
.news-imageee {
  border-radius: 12px;
}

/* 卡片背景渐变 */
.news-itemmm,
.news-item {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  transition: all 0.3s ease;
}

/* 标签动画效果 */
.news-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 90%;
  height: 3px;
  background: #ad2626;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.news-itemmm:hover .news-category::after,
.news-item:hover .news-category::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 卡片阴影动画 */
.news-itemmm,
.news-item {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 链接下划线动画 */
a {
  position: relative;
}

a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* 卡片加载动画优化 */
@keyframes cardLoad {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.news-itemmm,
.news-item {
  animation: cardLoad 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 文字悬停效果 */
.news-title,
.news-titleee {
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.news-itemmm:hover .news-title,
.news-item:hover .news-titleee {
  transform: translateX(5px);
  color: #ad2626;
}

/* 图片缩放效果优化 */
.news-image img,
.news-imageee img {
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.5s ease;
}

.news-itemmm:hover .news-image img,
.news-item:hover .news-imageee img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.05);
}

/* 卡片内边距优化 */
.news-itemmm,
.news-item {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}



/* 推荐网格卡片优化 */
.recommended-grid .news-item {
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recommended-grid .news-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* 新闻网格卡片优化 */
.news-grid .news-item {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-grid .news-item:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* 大卡片特殊样式 */
.news-itemmm {
  background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.news-itemmm:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* 日期标签动画 */
.news-date {
  transition: all 0.3s ease;
  position: relative;
}

.news-itemmm:hover .news-date,
.news-item:hover .news-date {
  color: #ad2626;
  transform: translateX(5px);
}

/* 描述文字动画 */
.news-texttt,
.news-contenttt {
  transition: all 0.3s ease;
  position: relative;
}

.news-itemmm:hover .news-texttt,
.news-item:hover .news-contenttt {
  color: #666;
  transform: translateX(3px);
}


