/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation */
.navbar {
  background-color: #2b6bb034;
  padding: 0.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #e5e7eb;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* 半透明黑色遮罩 */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.5); */
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cpa-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  opacity: 0.1;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* Competition Introduction Section */
.competition-intro {
  background: url("../images/background1.png") no-repeat center center;
  background-size: cover;
  position: relative;
  padding: 4rem 5%;
  color: #333;
  overflow: hidden;
}

/* 整体遮罩 */
.competition-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(255, 255, 255, 0.4); */
  /* background: rgba(0, 0, 0, 0.4); */
  z-index: 1;
  pointer-events: none;
}

.title-wrapper {
  position: relative;
  margin-bottom: 3rem;
  background: linear-gradient(
    to right,
    rgba(45, 199, 235, 0.2) 0%,
    rgba(43, 108, 176, 0) 100%
  );
  padding: 1rem;
  z-index: 2;
}

.competition-intro h2 {
  font-size: 2.5rem;
  color: #f9fafa;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
  padding: 0.5rem 2rem;
  border: 2px solid #2b6cb0;
}

.intro-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.intro-text {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.6);
}

.intro-text p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Statistics */
.statistics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  padding-right: 2rem;
  flex: 0 0 50%;
  width: 50%;
  justify-content: space-between;
}

.statistics .stat-item:nth-child(1),
.statistics .stat-item:nth-child(2),
.statistics .stat-item:nth-child(3) {
  flex: 0 0 calc(33.333% - 1rem);
  width: calc(33.333% - 1rem);
}

.statistics .stat-item:nth-child(4),
.statistics .stat-item:nth-child(5) {
  flex: 0 0 calc(50% - 0.75rem);
  width: calc(50% - 0.75rem);
}

.stat-item {
  text-align: right;
  position: relative;
}

.stat-item .number {
  font-size: 3.5rem;
  font-weight: bold;
  color: #2b6cb0;
  display: block;
  line-height: 1;
}

.stat-item .label {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Competition Timeline Container */
.competition-timeline-container {
  position: relative;
  width: 100%;
  margin-top: 3rem;
  z-index: 3;
  height: 600px; /* 增加高度以容纳卡片 */
}

.timeline-wave-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 20px -10px 70px -10px;
}

.wave-container {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 150px;
}

.wave-path {
  stroke: rgba(43, 108, 176, 0.7);
  stroke-width: 3;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(43, 108, 176, 0.3));
}

.dots-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.timeline-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b6cb0, #1e40af);
  border: 3px solid white;
  box-shadow: 0 0 12px rgba(43, 108, 176, 0.7);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 20;
}

.timeline-dot:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 20px rgba(43, 108, 176, 0.9);
}

.timeline-dot.active {
  transform: translate(-50%, -50%) scale(1.3);
  background: linear-gradient(135deg, #06d6a0, #118ab2);
  box-shadow: 0 0 20px rgba(6, 214, 160, 0.9);
}

.timeline-dot::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(43, 108, 176, 0.7),
    rgba(43, 108, 176, 0.7) 5px,
    transparent 5px,
    transparent 10px
  );
}

.timeline-year-label {
  position: absolute;
  top: calc(100% + 100px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
}

.timeline-year-label:hover {
  color: #2b6cb0;
  text-shadow: 0 0 10px rgba(43, 108, 176, 0.8);
  transform: translateX(-50%) scale(1.1);
  background: rgba(43, 108, 176, 0.1);
  border-color: rgba(43, 108, 176, 0.3);
}

.timeline-year-label.active {
  color: white;
  background: linear-gradient(135deg, #2b6cb0, #1e40af);
  border-color: #2b6cb0;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(43, 108, 176, 0.4);
}

.timeline-year-label:active {
  transform: translateX(-50%) scale(0.95);
}

/* 时间轴卡片容器 */
.timeline-card-container {
  background: white;
  border-radius: 0; /* 去掉圆角 */
  border: 2px solid #2b6cb0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0; /* 去掉内边距，让内容填满 */
  margin: 40px auto;
  width: 600px; /* 固定宽度 */
  height: 250px; /* 固定高度 */
  position: absolute; /* 改为绝对定位 */
  top: 250px; /* 上移10px */
  left: 50%; /* 初始位置 */
  transform: translateX(-50%); /* 居中对齐 */
  overflow: hidden;
  transition: all 0.5s ease;
  display: flex; /* 使用flex布局 */
}

/* 移除装饰条 */
.timeline-card-container::before {
  display: none;
}

.timeline-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row; /* 水平布局 */
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: all 0.5s ease;
}

.timeline-card-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* 左侧图片区域 */
.timeline-card-image {
  flex: 0 0 250px; /* 固定宽度250px，正方形 */
  height: 250px;
  overflow: hidden;
}

.timeline-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧信息区域 */
.timeline-card-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.timeline-card-year {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #2b6cb0;
  font-weight: bold;
}

.timeline-card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.3;
  font-weight: 600;
}

/* 文字容器，支持滚动 */
.timeline-card-text-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  position: relative;
}

/* 自定义滚动条样式 */
.timeline-card-text-container::-webkit-scrollbar {
  width: 8px;
}

.timeline-card-text-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.timeline-card-text-container::-webkit-scrollbar-thumb {
  background: #2b6cb0;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.timeline-card-text-container::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

.timeline-card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
  padding-right: 5px;
}

/* 时间轴导航按钮 */
.timeline-card-navigation {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.timeline-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(43, 108, 176, 0.9);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(43, 108, 176, 0.3);
}

.timeline-nav-btn:hover:not(:disabled) {
  background: #2b6cb0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(43, 108, 176, 0.4);
}

.timeline-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.timeline-nav-btn i {
  font-size: 0.8rem;
}

@keyframes fadeInTimeline {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 - 时间轴 */
@media (max-width: 768px) {
  .timeline-wave-container {
    height: 250px;
    margin-bottom: 60px;
  }

  .timeline-dot {
    width: 20px;
    height: 20px;
  }

  .timeline-year-label {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .timeline-card-container {
    padding: 20px;
  }

  .timeline-card-year {
    font-size: 1.8rem;
  }

  .timeline-card-title {
    font-size: 1.5rem;
  }

  .timeline-card-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .timeline-wave-container {
    height: 220px;
  }

  .timeline-dot {
    width: 18px;
    height: 18px;
  }

  .timeline-year-label {
    font-size: 0.85rem;
    padding: 5px 8px;
  }

  .timeline-card-container {
    padding: 15px;
  }

  .timeline-card-year {
    font-size: 1.5rem;
  }

  .timeline-card-title {
    font-size: 1.3rem;
  }

  .timeline-card-text {
    font-size: 0.95rem;
  }

  .timeline-card-navigation {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .timeline-nav-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* Search Section */
.search-section {
  padding: 4rem 5%;
  background: #f9fafb;
}

.search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.search-box input {
  flex: 1;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.search-box button {
  padding: 1rem 2rem;
  background: #2b6cb0;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.search-tags {
  margin-top: 2rem;
  text-align: center;
}

.tags {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: #e5e7eb;
  border-radius: 2rem;
  font-size: 0.9rem;
}

/* Achievements Section */
.achievements {
  padding: 4rem 5%;
  background: white;
  overflow: hidden;
}

.achievement-carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 3rem 0;
}

.achievement-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.achievement-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
}

.achievement-card {
  flex: 0 0 280px;
  height: 320px;
  margin: 0 15px;
  background: white;
  /* border-radius: 15px; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
}

.achievement-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f0f0f0;
}

.achievement-card h3 {
  padding: 15px 20px 10px;
  font-size: 1.2rem;
  color: #2b6cb0;
}

.achievement-card p {
  padding: 0 20px;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* 放大镜区域 */
.magnifier-area {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px; /* 放大后的卡片宽度 */
  height: 480px; /* 放大后的卡片高度 */
  background: transparent;
  border: 4px solid rgba(43, 108, 176, 0.8);
  pointer-events: none;
  z-index: 15;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3),
    inset 0 0 30px rgba(43, 108, 176, 0.1);
  overflow: hidden;
}

/* 放大镜装饰效果 */
.magnifier-area::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  z-index: 2;
}

/* 放大镜光晕效果 */
.magnifier-area::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 25px;
  background: linear-gradient(
    45deg,
    rgba(43, 108, 176, 0.3) 0%,
    transparent 40%,
    transparent 60%,
    rgba(43, 108, 176, 0.3) 100%
  );
  animation: magnifierGlow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes magnifierGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* 放大镜内容轨道 */
.magnifier-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
}

/* 放大镜内的卡片 */
.magnifier-card {
  flex: 0 0 420px;
  height: 480px;
  background: white;
  border-radius: 25px;
  overflow: hidden;
  transform: scale(1);
}

.magnifier-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  background: #f0f0f0;
}

.magnifier-card h3 {
  padding: 25px 30px 15px;
  font-size: 1.8rem;
  color: #2b6cb0;
}

.magnifier-card p {
  padding: 0 30px;
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
}

/* 卡片经过放大镜时的效果 - 保持原始大小 */
.achievement-card.magnified {
  /* 移除原来的放大效果 */
  z-index: 5;
}

/* 为放大镜区域的卡片创建特殊样式 */
.achievement-carousel-container {
  position: relative;
}

/* 放大镜遮罩效果 */
.magnifier-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 14;
}

/* 轮播按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(43, 108, 176, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-btn:hover {
  background: #2b6cb0;
  transform: translateY(-50%) scale(1.1);
}

.more-link {
  text-align: right;
  margin-top: 2rem;
}

.more-link a {
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.more-link a:hover {
  text-decoration: underline;
}

/* 祝福弹幕区 */
.blessings-barrage {
  padding: 4rem 5%;
  background: #f9fafb;
  overflow: hidden;
  position: relative;
}

.blessings-barrage h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.barrage-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* 弹幕行 */
.barrage-row {
  position: absolute;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.barrage-row-1 {
  top: 20px;
}

.barrage-row-2 {
  top: 175px;
}

.barrage-row-3 {
  top: 330px;
}

/* 弹幕轨道 */
.barrage-track {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  /* 移除padding-left，让动画从屏幕外开始 */
  animation-fill-mode: both;
}

/* 确保轨道内容足够长 */
.barrage-track::after {
  content: "";
  flex: 0 0 100vw;
}

/* 弹幕动画 - 不同速度和延迟 */
.barrage-row-1 .barrage-track {
  animation: scrollBarrage1 30s linear infinite;
}

.barrage-row-2 .barrage-track {
  animation: scrollBarrage2 35s linear infinite;
  animation-delay: -12s;
}

.barrage-row-3 .barrage-track {
  animation: scrollBarrage3 40s linear infinite;
  animation-delay: -24s;
}

/* 统一的滚动动画 - 改进版无限循环 */
@keyframes scrollBarrage {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 为每行单独定义动画以便更好控制 */
@keyframes scrollBarrage1 {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollBarrage2 {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollBarrage3 {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 弹幕卡片基础样式 */
.barrage-card {
  flex: 0 0 auto;
  height: 120px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 15px;
}

.barrage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 祝福卡片样式 */
.blessing-card {
  width: 350px;
}

.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  flex: 1;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-left {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.card-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-right {
  flex: 1;
}

.card-content h4 {
  font-size: 1rem;
  color: #2b6cb0;
  margin-bottom: 8px;
  font-weight: 600;
}

.card-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* 视频卡片样式 */
.video-card {
  width: 280px;
  background: rgb(54, 115, 180);
  color: white;
}

.video-thumbnail {
  width: 100px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
}

.video-thumbnail img,
.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail video {
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover .play-icon {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card .card-content h4 {
  color: white;
}

.video-card .card-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

/* 移除鼠标悬停暂停动画 */
/* .barrage-container:hover .barrage-track {
  animation-play-state: paused;
} */

/* 响应式调整 */
@media (max-width: 768px) {
  .barrage-container {
    height: 400px;
  }

  .barrage-row {
    height: 120px;
  }

  .barrage-row-1 {
    top: 10px;
  }
  .barrage-row-2 {
    top: 140px;
  }
  .barrage-row-3 {
    top: 270px;
  }

  .barrage-card {
    height: 100px;
    padding: 15px;
  }

  .blessing-card {
    width: 300px;
  }

  .video-card {
    width: 240px;
  }

  .card-avatar {
    width: 50px;
    height: 50px;
  }

  .video-thumbnail {
    width: 80px;
    height: 60px;
  }
}

/* Partners Section */
.partners {
  padding: 4rem 5%;
  background: white;
  overflow: hidden;
}

.partner-logos {
  position: relative;
  overflow: hidden;
}

.logo-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  width: max-content; /* 确保容器宽度等于内容宽度 */
}

.logo-row-1 {
  animation: scrollRight 131s linear infinite; /* 增加动画时间 */
}

.logo-row-2 {
  animation: scrollLeft 90s linear infinite; /* 增加动画时间 */
}

.logo-item {
  flex: 0 0 150px;
  aspect-ratio: 1;
  /* background: #f3f4f6; */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

@keyframes scrollRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-150px * 131 - 2rem * 79)
    ); /* 计算所有logo和间隙的总宽度 */
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(
      calc(-150px * 90 - 2rem * 79)
    ); /* 计算所有logo和间隙的总宽度 */
  }
  100% {
    transform: translateX(0);
  }
} /* Final Stats Section */
.final-stats {
  padding: 4rem 5%;
  background: #2b6cb0;
  color: white;
  text-align: center;
}

.stat-numbers {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-number {
  text-align: center;
}

.stat-number span:first-child {
  font-size: 3rem;
  font-weight: bold;
  display: block;
}

.stat-number span:last-child {
  font-size: 1rem;
  opacity: 0.8;
}

/* Footer */
footer {
  background: #1a365d;
  color: white;
  padding: 2rem 5%;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 2rem;
  }

  .nav-menu {
    display: none;
  }

  .intro-content-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .statistics {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-right: 0;
  }

  .statistics .stat-item:nth-child(1),
  .statistics .stat-item:nth-child(2),
  .statistics .stat-item:nth-child(3),
  .statistics .stat-item:nth-child(4),
  .statistics .stat-item:nth-child(5) {
    flex: 0 0 calc(50% - 0.75rem);
    width: calc(50% - 0.75rem);
  }

  .stat-numbers {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-number {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 80px;
  }
}

/* Section Headers */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a365d;
}

/* Common Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Anniversary Events Section */
.anniversary-events {
  position: relative;
  background: white;
  overflow: hidden;
}

.events-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to right, #2b6cb0, transparent);
  padding: 1rem 5%;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.events-header h2 {
  color: white;
  margin: 0;
  font-size: 2rem;
}

.en-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.events-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.event-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

/* 为每个event-item设置不同的背景图 */
.event-item:nth-child(1) {
  background: url("../images/2022.png") no-repeat center center;
  background-size: cover;
}

.event-item:nth-child(2) {
  background: url("../images/2025.jpg") no-repeat center center;
  background-size: cover;
}

.event-item:nth-child(3) {
  background: url("../images/2010.jpg") no-repeat center center;
  background-size: cover;
}

.event-item:nth-child(4) {
  background: url("../images/2015.jpg") no-repeat center center;
  background-size: cover;
}

.event-item.active {
  visibility: visible;
  opacity: 1;
  z-index: 2;
}

.event-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
}

.event-content {
  position: absolute;
  bottom: 15%;
  left: 5%;
  right: 5%;
  color: white;
  z-index: 2;
  max-width: 800px;
}

.event-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.event-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.8;
  font-size: 1.1rem;
}

.details-btn {
  background: #2b6cb0;
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.details-btn:hover {
  background: #1a4971;
}

/* 确保导航按钮在最上层 */
.events-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-prev,
.nav-next {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 1.5rem;
  z-index: 10;
}

.nav-prev:hover,
.nav-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Progress indicator */
.slide-progress {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.progress-dot.active {
  background: white;
  transform: scale(1.2);
}

/* 视频模态框样式 */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal.show .modal-content {
  transform: scale(1);
}

.modal-video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: rotate(90deg);
}

.modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 30px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.video-modal.show .modal-info {
  transform: translateY(0);
}

.modal-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: white;
}

.modal-info p {
  font-size: 1rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

/* 视频卡片悬停效果增强 */
.video-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* 响应式视频模态框 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: none;
  }

  .modal-info {
    padding: 20px;
  }

  .modal-info h3 {
    font-size: 1.2rem;
  }

  .modal-info p {
    font-size: 0.9rem;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}
