/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body::-webkit-scrollbar {
    display: none;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 动画关键帧 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(196, 30, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
  }
}

@keyframes growRight {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes growDown {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

/* 滚动动画 */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 顶部导航 */
.header {
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  color: #fff;
  position: static;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: slideInDown 0.8s ease-out;
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  animation: bounceIn 0.8s ease-out;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.main-nav {
  display: flex;
  gap: 30px;
}

.nav-item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-item:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-item:nth-child(3) {
  animation-delay: 0.3s;
}
.nav-item:nth-child(4) {
  animation-delay: 0.4s;
}
.nav-item:nth-child(5) {
  animation-delay: 0.5s;
}
.nav-item:nth-child(6) {
  animation-delay: 0.6s;
}
.nav-item:nth-child(7) {
  animation-delay: 0.7s;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  /* gap: 20px; */
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 5px 5px 5px 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-box:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.search-box input {
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
  width: 150px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  width: 200px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-btn {
  background: #fff;
  color: #c41e3a;
  border: none;
  padding: 6px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.search-btn:hover::before {
  left: 100%;
}

.search-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-btn:active {
  transform: translateY(0);
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 头条新闻 */
.hero-section {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 1s ease-out;
  transition: all 0.3s ease;
}

.hero-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}

.hero-image {
  height: 400px;
  overflow: hidden;
  animation: slideInLeft 1s ease-out;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(196, 30, 58, 0.1),
    rgba(139, 0, 0, 0.05)
  );
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
}

.hero-image:hover::before {
  background: linear-gradient(
    45deg,
    rgba(196, 30, 58, 0.2),
    rgba(139, 0, 0, 0.1)
  );
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image:hover img {
  transform: scale(1.1) rotate(1deg);
}

.hero-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideInRight 1s ease-out 0.3s both;
}

.category-tag {
  display: inline-block;
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  width: fit-content;
  animation: bounceIn 0.8s ease-out 0.5s both;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
}

.category-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
}

.hero-title {
  font-size: 28px;
  line-height: 1.4;
  color: #222;
  margin-bottom: 20px;
  font-weight: 700;
  animation: fadeInUp 0.8s ease-out 0.7s both;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hero-title:hover {
  color: #c41e3a;
  text-shadow: 0 2px 4px rgba(196, 30, 58, 0.2);
}

.hero-summary {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
  animation: fadeInUp 0.8s ease-out 0.9s both;
  transition: all 0.3s ease;
      display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-summary:hover {
  color: #333;
  transform: translateX(5px);
}

.meta-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #999;
  animation: fadeIn 0.8s ease-out 1.1s both;
  transition: all 0.3s ease;
}

.meta-info:hover {
  color: #666;
  transform: translateY(2px);
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #c41e3a, transparent);
  border-radius: 1.5px;
  animation: growRight 0.8s ease-out 0.3s both;
}

.section-title:hover {
  color: #c41e3a;
  transform: translateX(5px);
  text-shadow: 0 2px 4px rgba(196, 30, 58, 0.2);
}

.title-icon {
  font-size: 24px;
  animation: bounceIn 0.8s ease-out 0.2s both;
  transition: all 0.3s ease;
}

.title-icon:hover {
  transform: scale(1.2) rotate(10deg);
}

/* 热门新闻网格 */
.hot-news {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.news-card:nth-child(1) {
  animation-delay: 0.5s;
}
.news-card:nth-child(2) {
  animation-delay: 0.6s;
}
.news-card:nth-child(3) {
  animation-delay: 0.7s;
}
.news-card:nth-child(4) {
  animation-delay: 0.8s;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c41e3a, #8b0000);
  border-radius: 12px 0 0 12px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.news-card:hover::before {
  transform: scaleY(1);
}

.news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.news-card:hover .card-image::before {
  opacity: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.news-card:hover .card-image img {
  transform: scale(1.15) rotate(2deg);
}

.card-content {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.card-category {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out;
}

.news-card:hover .card-category {
  background: #c41e3a;
  color: #fff;
  transform: scale(1.05);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.news-card:hover .card-title {
  color: #c41e3a;
  transform: translateX(5px);
}

.card-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.news-card:hover .card-desc {
  color: #666;
  transform: translateX(5px);
}

.card-meta {
  font-size: 13px;
  color: #aaa;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.news-card:hover .card-meta {
  color: #999;
  transform: translateY(2px);
}

/* 推荐区域 */
.recommend-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.recommend-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}

/* 推荐大图 */
.featured-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.8s ease-out 0.7s both;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.featured-card:hover::before {
  transform: scaleX(1);
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.featured-image {
  height: 300px;
  overflow: hidden;
  position: relative;
  animation: slideInLeft 0.8s ease-out 0.8s both;
}

.featured-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.05)
  );
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
}

.featured-card:hover .featured-image::before {
  background: linear-gradient(
    45deg,
    rgba(102, 126, 234, 0.2),
    rgba(118, 75, 162, 0.1)
  );
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.1) rotate(1deg);
}

.featured-content {
  padding: 25px;
  animation: slideInRight 0.8s ease-out 1s both;
  position: relative;
  z-index: 2;
}

.featured-category {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  animation: bounceIn 0.8s ease-out 1.1s both;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.featured-card:hover .featured-category {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.featured-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 1.2s both;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.featured-card:hover .featured-title {
  color: #667eea;
  transform: translateX(8px);
  text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.featured-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 1.3s both;
}

.featured-card:hover .featured-desc {
  color: #333;
  transform: translateX(8px);
}

.featured-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #999;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 1.4s both;
}

.featured-card:hover .featured-meta {
  color: #666;
  transform: translateY(2px);
}

/* 推荐列表 */
.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.list-item:nth-child(1) {
  animation-delay: 0.9s;
}
.list-item:nth-child(2) {
  animation-delay: 1s;
}
.list-item:nth-child(3) {
  animation-delay: 1.1s;
}
.list-item:nth-child(4) {
  animation-delay: 1.2s;
}

.list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c41e3a, #8b0000);
  border-radius: 10px 0 0 10px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.list-item:hover::before {
  transform: scaleY(1);
}

.list-item:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.list-image {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.list-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.list-item:hover .list-image::before {
  opacity: 1;
}

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

.list-item:hover .list-image img {
  transform: scale(1.15) rotate(3deg);
}

.list-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0;
  position: relative;
  z-index: 2;
}

.list-category {
  display: inline-block;
  background: #f5f5f5;
  color: #888;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  width: fit-content;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out;
}

.list-item:hover .list-category {
  background: #c41e3a;
  color: #fff;
  transform: scale(1.05);
}

.list-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.list-item:hover .list-title {
  color: #c41e3a;
  transform: translateX(5px);
}

.list-meta {
  font-size: 12px;
  color: #aaa;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.list-item:hover .list-meta {
  color: #999;
  transform: translateY(2px);
}

/* 分类内容区域 */
.category-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.8s ease-out 0.9s both;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c41e3a, #8b0000);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.category-section:hover::before {
  transform: scaleX(1);
}

.category-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  animation: fadeIn 0.8s ease-out 1s both;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 10px 25px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  animation: fadeIn 0.8s ease-out;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn:nth-child(1) {
  animation-delay: 1.1s;
}
.tab-btn:nth-child(2) {
  animation-delay: 1.2s;
}
.tab-btn:nth-child(3) {
  animation-delay: 1.3s;
}
.tab-btn:nth-child(4) {
  animation-delay: 1.4s;
}
.tab-btn:nth-child(5) {
  animation-delay: 1.5s;
}

.tab-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:hover {
  background: #f5f5f5;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  color: #fff;
  animation: pulse 1s ease-in-out;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.8s ease-out 1.6s both;
}

.content-item {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 25px;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-item:nth-child(1) {
  animation-delay: 1.7s;
}
.content-item:nth-child(2) {
  animation-delay: 1.8s;
}
.content-item:nth-child(3) {
  animation-delay: 1.9s;
}
.content-item:nth-child(4) {
  animation-delay: 2s;
}

.content-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c41e3a, #8b0000);
  border-radius: 10px 0 0 10px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.content-item:hover::before {
  transform: scaleY(1);
}

.content-item:hover {
  background: #f0f0f0;
  transform: translateX(8px) scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.item-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.item-category {
  display: inline-block;
  background: #e8e8e8;
  color: #666;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  width: fit-content;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out;
}

.content-item:hover .item-category {
  background: #c41e3a;
  color: #fff;
  transform: scale(1.05);
}

.item-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 0.2s both;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.content-item:hover .item-title {
  color: #c41e3a;
  transform: translateX(5px);
  text-shadow: 0 2px 4px rgba(196, 30, 58, 0.2);
}

.item-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.content-item:hover .item-desc {
  color: #666;
  transform: translateX(5px);
}

.item-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #aaa;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.content-item:hover .item-meta {
  color: #999;
  transform: translateY(2px);
}

.item-image {
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.item-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.content-item:hover .item-image::before {
  opacity: 1;
}

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

.content-item:hover .item-image img {
  transform: scale(1.15) rotate(2deg);
}

/* 热门标签 */
.tags-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.8s ease-out 2.1s both;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tags-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c41e3a, #8b0000);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tags-section:hover::before {
  transform: scaleX(1);
}

.tags-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeIn 0.8s ease-out 2.2s both;
}

.tag-item {
  display: inline-block;
  padding: 10px 20px;
  background: #f5f5f5;
  color: #666;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tag-item:nth-child(1) {
  animation-delay: 2.3s;
}
.tag-item:nth-child(2) {
  animation-delay: 2.4s;
}
.tag-item:nth-child(3) {
  animation-delay: 2.5s;
}
.tag-item:nth-child(4) {
  animation-delay: 2.6s;
}
.tag-item:nth-child(5) {
  animation-delay: 2.7s;
}
.tag-item:nth-child(6) {
  animation-delay: 2.8s;
}
.tag-item:nth-child(7) {
  animation-delay: 2.9s;
}
.tag-item:nth-child(8) {
  animation-delay: 3s;
}
.tag-item:nth-child(9) {
  animation-delay: 3.1s;
}
.tag-item:nth-child(10) {
  animation-delay: 3.2s;
}
.tag-item:nth-child(11) {
  animation-delay: 3.3s;
}
.tag-item:nth-child(12) {
  animation-delay: 3.4s;
}

.tag-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.tag-item:hover::before {
  left: 100%;
}

.tag-item:hover {
  background: #e8e8e8;
  color: #333;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tag-item.hot {
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.tag-item.hot:hover {
  background: linear-gradient(135deg, #d42e4a 0%, #9b1010 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(196, 30, 58, 0.4);
}

/* 底部 */
.footer {
  background: #222;
  color: #fff;
  padding: 40px 0;
  animation: fadeInUp 1s ease-out 3.5s both;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c41e3a, #8b0000);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  animation: fadeIn 1s ease-out 3.6s both;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-out 3.7s both;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links a:nth-child(1) {
  animation-delay: 3.8s;
}
.footer-links a:nth-child(2) {
  animation-delay: 3.9s;
}
.footer-links a:nth-child(3) {
  animation-delay: 4s;
}
.footer-links a:nth-child(4) {
  animation-delay: 4.1s;
}
.footer-links a:nth-child(5) {
  animation-delay: 4.2s;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeIn 1s ease-out 4.3s both;
  transition: all 0.3s ease;
}

.footer-copyright:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(2px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 300px;
  }

  .recommend-layout {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding:  15px;
  }
}

@media (max-width: 768px) {

  
  /* 头部导航优化 */
  .header-top {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 15px;
    align-items: flex-start;
  }

  .logo {
    font-size: 20px;
    margin: 0;
  }

  .header-actions {
    order: 2;
    gap: 0px;
  }

  .search-box {
    width: 200px;
  }

  .search-box input {
    width: 100px;
    font-size: 14px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 6px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    font-size: 14px;
    white-space: nowrap;
    padding: 6px 12px;
  }

  /* 头条区域优化 */
  .hero-content {
    padding: 20px;
  }

  .hero-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-image {
    height: 250px;
  }

  /* 内容布局优化 */
  .section-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .news-card {
    border-radius: 10px;
  }

  .card-content {
    padding: 16px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc {
    font-size: 13px;
  }

  /* 推荐区域优化 */
  .recommend-section {
    margin-bottom: 30px;
  }

  .featured-content {
    padding: 20px;
  }

  .featured-title {
    font-size: 18px;
  }

  .featured-desc {
    font-size: 14px;
  }

  .list-item {
    padding: 12px;
    gap: 12px;
  }

  .list-image {
    width: 100px;
    height: 75px;
  }

  .list-title {
    font-size: 14px;
  }

  /* 分类内容优化 */
  .category-section {
    padding: 20px;
    margin-bottom: 30px;
  }

  .category-tabs {
    gap: 8px;
    padding-bottom: 12px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .content-item {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 15px;
  }

  .item-image {
    height: 180px;
  }

  .item-title {
    font-size: 16px;
  }

  .item-desc {
    font-size: 13px;
  }

  .item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* 标签区域优化 */
  .tags-section {
    padding: 20px;
    margin-bottom: 30px;
  }

  .tags-cloud {
    gap: 10px;
  }

  .tag-item {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* 底部优化 */
  .footer {
    padding: 30px 0;
  }

  .footer-content {
    padding: 0 15px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-copyright {
    font-size: 12px;
  }
  
  /* 动画效果优化 */
  .news-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  .list-item:hover {
    transform: translateX(5px) scale(1.01);
  }
  
  .content-item:hover {
    transform: translateX(5px) scale(1.01);
  }
  
  .tag-item:hover {
    transform: translateY(-2px) scale(1.03);
  }
  
  .header {
    animation: slideInDown 0.6s ease-out;
  }
  
  .hero-section {
    animation: fadeInUp 0.6s ease-out;
  }
  
  .hot-news {
    animation: fadeInUp 0.6s ease-out 0.2s both;
  }
  
  .recommend-section {
    animation: fadeInUp 0.6s ease-out 0.3s both;
  }
  
  .category-section {
    animation: fadeInUp 0.6s ease-out 0.4s both;
  }
  
  .tags-section {
    animation: fadeInUp 0.6s ease-out 0.5s both;
  }
  
  .footer {
    animation: fadeInUp 0.8s ease-out 0.6s both;
  }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
  
  .header-top {
            padding: 12px 12px 0;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .search-box {
          width: 198px;
  }
  
  .search-box input {
    width: 100px;
    font-size: 13px;
  }.search-box input:focus {
 width: 100px;
}
  
  .search-btn {
    font-size: 13px;
  
  }
  
  .main-nav {
    gap: 10px;
  }
  
  .nav-item {
    font-size: 13px;
    padding: 5px 10px;
  }
  
  .hero-content {
    padding: 16px;
  }
  
  .hero-title {
    font-size: 18px;
  }
  
  .hero-image {
    height: 200px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .card-content {
    padding: 14px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .featured-content {
    padding: 16px;
  }
  
  .featured-title {
    font-size: 16px;
  }
  
  .category-section {
    padding: 16px;
  }
  
  .tab-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .content-item {
    padding: 14px;
  }
  
  .item-image {
    height: 150px;
  }
  
  .tags-section {
    padding: 16px;
  }
  
  .tag-item {
    font-size: 12px;
    padding: 6px 12px;
  }
}
