/* 现代化游戏列表页面样式 */
:root {
  --list-bg: #0f0c29;
  --card-bg: rgba(30, 30, 60, 0.8);
  --card-border: rgba(255, 0, 204, 0.3);
  --card-hover-border: rgba(0, 204, 255, 0.5);
  --filter-bg: rgba(20, 20, 50, 0.9);
  --pagination-bg: rgba(30, 30, 60, 0.8);
  --pagination-hover: rgba(0, 204, 255, 0.3);
  --pagination-active: rgba(255, 0, 204, 0.5);
}

.modern-list-container {
  padding: 20px 0;
  min-height: calc(100vh - 120px);
}

/* 分类标题 */
.modern-category-header {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.8), rgba(48, 43, 99, 0.6));
  margin-bottom: 30px;
  border-radius: 0 0 30px 30px;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ff00cc, #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 0, 204, 0.2);
}

.category-description {
  font-size: 1.1rem;
  color: #e0e0ff;
  opacity: 0.8;
}

/* 分类导航 */
.modern-category-nav {
  margin-bottom: 40px;
}

.category-filter-container {
  position: relative;
}

.mobile-filters-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card-bg);
  color: white;
  border: 1px solid var(--card-border);
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 20px;
}

.mobile-filters-btn:hover {
  background: rgba(255, 0, 204, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 204, 0.3);
}

.category-filter-wrapper {
  background: var(--filter-bg);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.category-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  justify-content: center;
}

.category-filter-item {
  margin: 0;
}

.category-filter-item a {
  display: block;
  padding: 10px 20px;
  border-radius: 30px;
  color: #e0e0ff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.category-filter-item a:hover {
  background: rgba(255, 0, 204, 0.2);
  border-color: var(--card-border);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 204, 0.2);
}

.category-filter-item.active a {
  background: linear-gradient(135deg, #ff00cc, #00ccff);
  color: white;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(255, 0, 204, 0.4);
}

/* 游戏网格 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff00cc, #00ccff);
  transform: scaleX(0);
  transition: all 0.4s ease;
  transform-origin: left;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 204, 255, 0.4);
  border-color: var(--card-hover-border);
}

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

.game-card-media {
  position: relative;
  overflow: hidden;
}

.game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.4s ease;
}

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

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 12, 41, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.game-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.game-button.info {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.game-button.play {
  background: linear-gradient(135deg, #ff00cc, #00ccff);
}

.game-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.game-card-content {
  padding: 20px;
}

.game-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-card-category {
  background: rgba(255, 0, 204, 0.2);
  color: #ff66cc;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 分页 */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-arrow,
.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #e0e0ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: var(--pagination-bg);
  border: 1px solid var(--card-border);
}

.pagination-arrow:hover,
.pagination-number:hover {
  background: var(--pagination-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 204, 255, 0.3);
}

.pagination-number.active {
  background: var(--pagination-active);
  color: white;
  border-color: #ff00cc;
  box-shadow: 0 5px 15px rgba(255, 0, 204, 0.4);
}

.pagination-ellipsis {
  color: #e0e0ff;
  padding: 0 5px;
}

/* 无游戏提示 */
.no-games-message {
  text-align: center;
  padding: 60px 20px;
  color: #e0e0ff;
}

.no-games-message i {
  margin-bottom: 20px;
  color: #ff00cc;
  opacity: 0.7;
}

.no-games-message h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.no-games-message p {
  opacity: 0.7;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .modern-list-container {
    padding: 10px 0;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .modern-category-header {
    padding: 30px 0;
    margin-bottom: 20px;
  }
  
  /* .category-filter-wrapper {
    display: none;
  } */
  
  .mobile-filters-btn {
    display: flex;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .game-card-content {
    padding: 15px;
  }
  
  .game-card-title {
    font-size: 1rem;
  }
  
  .game-card-image {
    height: 150px;
  }
  
  .game-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .pagination-arrow,
  .pagination-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-title {
    font-size: 1.8rem;
  }
  
  .game-card-image {
    height: 130px;
  }
}