* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #141a2c;
  color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  padding: 20px;
  margin: 0 auto;
}

#robot-section {
  background-color: #141a2c;
  padding: 60px 0 20px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.robot-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  position: relative;
  perspective: 1000px;
  gap: 20px;
  width: 100%;
}

/* 添加动画关键帧 */
@keyframes cardHover {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

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

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  }
}

/* 波纹动画效果 */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.3);
  width: 100px;
  height: 100px;
  pointer-events: none;
}

/* 修改卡片基本样式 */
.robot-card {
  position: relative;
  margin: 10px 0;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  width: 100%;
  height: 300px;
}

/* 宽屏设备卡片布局 - 一行两个 */
@media (min-width: 769px) {
  .robot-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
  }

  .robot-card {
    margin: 0;
    height: 350px;
  }
}

.robot-card:hover {
  animation: cardHover 1s ease infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.robot-image {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 15px;
  background-size: cover;
  background-position: bottom;
  overflow: hidden;
}

/* 修改各个卡片的背景 */
.robot-img-20252 {
  background-image: linear-gradient(
      to bottom,
      rgba(220, 20, 60, 0.3),
      rgba(20, 26, 44, 0.5)
    ),
    url("../images/robot-img-20252.jpg");
  background-size: cover;
  background-position: bottom;
}

.robot-img-2025 {
  background-image: linear-gradient(
      to bottom,
      rgba(139, 0, 0, 0.2),
      rgba(20, 26, 44, 0.4)
    ),
    url("../images/robot-img-2025.jpg");
  background-size: cover;
  background-position: bottom;
}

.robot-img-2024 {
  background-image: linear-gradient(
      to bottom,
      rgba(165, 0, 0, 0.2),
      rgba(20, 26, 44, 0.4)
    ),
    url("../images/robot-img-2024.jpg");
  background-size: cover;
  background-position: bottom;
}

.robot-img-2023 {
  background-image: linear-gradient(
      to bottom,
      rgba(148, 0, 0, 0.2),
      rgba(20, 26, 44, 0.4)
    ),
    url("../images/robot-img-2023.jpg");
  background-size: cover;
  background-position: bottom;
}

.robot-img-2022 {
  background-image: linear-gradient(
      to bottom,
      rgba(176, 0, 0, 0.2),
      rgba(20, 26, 44, 0.4)
    ),
    url("../images/robot-img-2022.jpg");
  background-size: cover;
  background-position: bottom;
}

.robot-img-2021 {
  background-image: linear-gradient(
      to bottom,
      rgba(201, 1, 1, 0.2),
      rgba(20, 26, 44, 0.4)
    ),
    url("../images/robot-img-2021.jpg");
  background-size: cover;
  background-position: bottom;
}

.robot-img-2020 {
  background-image: linear-gradient(
      to bottom,
      rgba(128, 0, 0, 0.2),
      rgba(20, 26, 44, 0.4)
    ),
    url("../images/robot-img-2020.jpg");
  background-size: cover;
  background-position: bottom;
}

/* 卡片底部背景渐变始终显示 */
.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0;
  z-index: 10;
}

.season {
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.robot-name {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.1;
  position: relative;
  z-index: 2;
  opacity: 1;
}

/* More按钮样式 */
.more-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 1;
}

/* 移动设备响应式布局 - 现在所有设备都垂直排列 */
@media (max-width: 768px) {
  .robot-card {
    height: 300px;
  }
}

/* 非常小的屏幕适配 */
@media (max-width: 480px) {
  .robot-card {
    height: 250px;
  }

  .robot-name {
    font-size: 1.5rem;
  }
}
