.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 新的宫格布局样式 */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.grid-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  height: 200px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 左上角特色轮播图，跨2行2列 */
.featured-banner {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  height: auto;
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 游戏卡片样式 */
.game-card {
  background: var(--white);
}

.game-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 轮播图样式 */
.featured-slider {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.slide.active .slide-info {
  transform: translateY(0);
}

.slide-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.slide-actions {
  display: flex;
  gap: 1rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 0.25rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
  background: white;
}

/* 游戏卡片原有样式 */
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--dark-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-game-icons {
  position: relative;
  width: 300px;
  height: 300px;
}

.floating-icon {
  position: absolute;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
  color: var(--primary-color);
}

.floating-icon:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 0.5s;
  color: var(--secondary-color);
}

.floating-icon:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation-delay: 1s;
  color: var(--accent-color);
}

.floating-icon:nth-child(4) {
  bottom: 30%;
  right: 30%;
  animation-delay: 1.5s;
  color: var(--success-color);
}

.floating-icon:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 2s;
  color: var(--warning-color);
  transform: translate(-50%, -50%);
}

/* Categories Grid */
.categories-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.75rem;
  box-shadow: var(--shadow);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-900);
  margin-bottom: 0.5rem;
}

.category-count {
  font-size: 0.875rem;
  color: var(--dark-500);
}

/* Games Grid */
.games-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.game-card {
  transition: var(--transition-slow);
}

.game-image {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-content {
  padding: 0 1.25rem;
}

.game-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-900);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
}

.game-type {
  font-size: 0.875rem;
  color: #fff;
  background: #5f47ec;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.filled {
  color: var(--warning-color);
}

.section-footer {
  text-align: center;
  margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .grid-layout {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .featured-banner {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 992px) {
  .grid-layout {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  
  .featured-banner {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
  
}

@media (max-width: 768px) {
   .grid-layout {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  
  .featured-banner {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
}