.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
header {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
      flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #4299e1;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 14px;
}

nav ul li a:hover {
  color: #4299e1;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 10px 40px 10px 15px;
  border: none;
  border-radius: 25px;
  outline: none;
  width: 200px;
  transition: width 0.3s ease;
  font-size: 14px;
}

.search-box input:focus {
  width: 250px;
}

.search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #718096;
  font-size: 16px;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #f7fafc;
}

.search-result-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e2e8f0;
  margin-right: 12px;
  object-fit: cover;
}

.search-result-info h4 {
  font-size: 14px;
  color: #2d3748;
  margin: 0;
}

.search-result-info span {
  font-size: 12px;
  color: #718096;
}

/* 用户功能区域 */
.user-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.action-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ed8936;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* 游戏卡片收藏按钮 */
.favorite-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  border: none;
  cursor: pointer;
  color: #cbd5e0;
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  color: #ed8936;
}

/* 游戏详情弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: none;
  cursor: pointer;
  color: #2d3748;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #ed8936;
  color: white;
}

.modal-game-info {
  background: white;
  padding: 25px;
  border-radius: 16px 16px 0 0;
  margin-top: -30px;
  position: relative;
}

.modal-game-title {
  font-size: 28px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 15px;
}

.modal-game-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #718096;
}

.modal-game-description {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 25px;
}

.modal-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.modal-game-tag {
  background: #edf2f7;
  color: #4a5568;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
}

.modal-game-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.modal-screenshot {
  height: 100px;
  background: #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 12px;
}

.modal-game-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.modal-play-btn {
  background: #4299e1;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
  min-width: 200px;
  transition: all 0.3s ease;
}

.modal-play-btn:hover {
  background: #3182ce;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.modal-favorite-btn {
  background: white;
  color: #cbd5e0;
  border: 2px solid #e2e8f0;
  padding: 14px 20px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-favorite-btn:hover {
  border-color: #ed8936;
  color: #ed8936;
}

.modal-favorite-btn.active {
  background: #ed8936;
  border-color: #ed8936;
  color: white;
}

.modal-share-btn {
  background: white;
  color: #4299e1;
  border: 2px solid #4299e1;
  padding: 14px 20px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-share-btn:hover {
  background: #4299e1;
  color: white;
}

/* 加载更多按钮 */
.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  background: white;
  color: #4299e1;
  border: 2px solid #4299e1;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: #4299e1;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(66, 153, 225, 0.3);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 排序和筛选 */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  background: white;
  color: #4a5568;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.filter-select:focus {
  border-color: #4299e1;
}

.view-options {
  display: flex;
  gap: 10px;
}

.view-btn {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #718096;
  transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
  background: #4299e1;
  border-color: #4299e1;
  color: white;
}

/* 游戏数量统计 */
.games-count {
  font-size: 14px;
  color: #718096;
  margin-bottom: 20px;
}

.games-count strong {
  color: #2d3748;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 180px;
  right: 30px;
  background: #4299e1;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top:hover {
  background: #3182ce;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* 响应式设计 - 移动端返回顶部按钮 */
@media (max-width: 768px) {
  .back-to-top {
  
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
   
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* 多人游戏特殊样式 - 橙色主题 2.0 */
.multiplayer-section .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}

.multiplayer-section .game-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(237, 137, 54, 0.12);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: none;
  background: linear-gradient(135deg, #ffffff, #fffaf0);
}

.multiplayer-section .game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ed8936, #f59e0b);
  border-radius: 20px 20px 0 0;
}

.multiplayer-section .game-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 15px 30px rgba(237, 137, 54, 0.25);
}

.multiplayer-section .game-badge {
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ed8936, #f59e0b);
  font-size: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  color: white;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(237, 137, 54, 0.4);
  z-index: 2;
}

.multiplayer-section .game-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ed8936;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  margin-bottom: 8px;
}

.multiplayer-section .game-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(237, 137, 54, 0.15), rgba(245, 158, 11, 0.08));
}

.multiplayer-section .game-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}


.multiplayer-section .game-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.multiplayer-section .rating-stars {
  color: #ed8936;
  font-size: 14px;
  display: flex;
  gap: 2px;
}

.multiplayer-section .game-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #718096;
  position: relative;
  z-index: 1;
}

.multiplayer-section .game-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.multiplayer-section .game-stats span::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ed8936;
  border-radius: 50%;
  opacity: 0.6;
}

.multiplayer-section .game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.multiplayer-section .game-tag {
  background: linear-gradient(135deg, #fffaf0, #fef3c7);
  color: #dd6b20;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #fed7aa;
  transition: all 0.2s ease;
}

.multiplayer-section .game-tag:hover {
  background: #ed8936;
  color: white;
  border-color: #ed8936;
}

.multiplayer-section .game-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.multiplayer-section .play-btn {
  background: linear-gradient(135deg, #ed8936, #f59e0b);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.multiplayer-section .play-btn::before {
  content: '▶';
  font-size: 10px;
}

.multiplayer-section .play-btn:hover {
  background: linear-gradient(135deg, #dd6b20, #d97706);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(221, 107, 32, 0.5);
}

.multiplayer-section .game-price {
  font-size: 16px;
  font-weight: bold;
  color: #2d3748;
  position: relative;
  z-index: 1;
}

.multiplayer-section .game-price.free {
  color: #38a169;
  display: flex;
  align-items: center;
  gap: 4px;
}

.multiplayer-section .game-price.free::before {
  content: '🆓';
  font-size: 14px;
}

/* 卡片背景装饰 */
.multiplayer-section .game-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(237, 137, 54, 0.1), rgba(245, 158, 11, 0.05));
  border-radius: 50%;
  z-index: 0;
}

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 50px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  background: white;
  color: #4299e1;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #f7fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 游戏分类导航 */
.categories-section {
  margin-bottom: 50px;
}

.categories-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.category-btn {
  background: white;
  color: #2d3748;
  border: 2px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #4299e1;
  color: white;
  border-color: #4299e1;
}

/* 主体内容样式 */
main {
  padding-bottom: 40px;
}

.section {
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
  main {
    padding-bottom: 30px;
  }

  .section {
    margin-bottom: 30px;
  }

  .section-header {
    margin-bottom: 15px;
  }

  .hero-content {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .categories-nav {
    gap: 8px;
    padding: 20px;
  }

  .category-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .featured-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 10px 10px;
  }

  .featured-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .featured-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .featured-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .trending-section .games-grid {
    gap: 16px;
    padding: 15px 0;
  }

  .trending-section .game-card {
    flex: 0 0 240px;
  }

  .trending-section .game-info {
    padding: 16px;
  }

  .latest-section .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }

  .latest-section .game-info {
    padding: 14px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-section {
    flex: 1;
  }
}

/* 响应式设计 - 小屏幕移动端 */
@media (max-width: 480px) {
  main {
    padding-bottom: 25px;
  }

  .section {
    margin-bottom: 25px;
  }

  .section-header {
    margin-bottom: 12px;
  }

  .container {
    padding: 0 15px;
  }

  .hero-content {
    padding: 50px 15px;
  }

  .hero-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .categories-nav {
    gap: 6px;
    padding: 15px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .category-btn {
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-title {
    font-size: 20px;
  }

  .trending-section .game-card {
    flex: 0 0 220px;
  }

  .trending-section .game-info {
    padding: 14px;
  }

  .trending-section .game-title {
    font-size: 16px;
  }

  .latest-section .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .latest-section .game-info {
    padding: 12px;
  }

  .latest-section .game-title {
    font-size: 14px;
  }

  .featured-section {
    padding: 20px 15px;
  }

  .featured-image {
    height: 200px;
  }

  .featured-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .featured-description {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }

  .footer-content {
    gap: 20px;
  }

  .footer-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-section p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .footer-section ul li {
    margin-bottom: 8px;
  }

  .footer-section ul li a {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px 15px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #2d3748;
}

.section-link {
  color: #4299e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.section-link:hover {
  color: #3182ce;
}

/* 游戏卡片样式 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.game-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #4299e1;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #718096;
  position: relative;
  overflow: hidden;
}

.game-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(49, 130, 206, 0.05));
}

.game-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}



.game-rating {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #ed8936;
  margin-bottom: 12px;
}

.rating-stars {
  margin-right: 6px;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #718096;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.game-tag {
  background: #edf2f7;
  color: #4a5568;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
}

.game-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.play-btn {
  background: #4299e1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.play-btn:hover {
  background: #3182ce;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(66, 153, 225, 0.4);
}

.game-price {
  font-size: 14px;
  font-weight: bold;
  color: #2d3748;
}

.game-price.free {
  color: #38a169;
}

/* 热门游戏特殊样式 - 横向滚动布局 */
.trending-section .games-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.trending-section .games-grid::-webkit-scrollbar {
  height: 6px;
}

.trending-section .games-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.trending-section .games-grid::-webkit-scrollbar-thumb {
  background: #4299e1;
  border-radius: 10px;
}

.trending-section .game-card {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
}

.trending-section .game-img {
  width: 100%;
  height: 180px;
  font-size: 16px;
}

.trending-section .game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.trending-section .game-title {
  font-size: 18px;
  margin-bottom: 4px;
  white-space: normal;
  height: auto;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-section .game-rating {
  margin-bottom: 4px;
}

.trending-section .game-stats {
  margin-bottom: 10px;
}

.trending-section .game-tags {
  margin-bottom: 16px;
}

.trending-section .game-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trending-section .play-btn {
  padding: 10px 24px;
  font-size: 13px;
}

.trending-section .game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.trending-section .game-badge {
  top: 16px;
  right: 16px;
  left: auto;
  background: #ed8936;
}

/* 最新发布特殊样式 - 网格布局增强版 */
.latest-section .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.latest-section .game-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}

.latest-section .game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: #4299e1;
}

.latest-section .game-badge {
  top: 12px;
  left: 12px;
  right: auto;
  background: #38a169;
  font-size: 9px;
  padding: 4px 10px;
  border-radius: 16px;
}

.latest-section .game-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #e6ffed, #b2f5ea);
  position: relative;
  overflow: hidden;
}

.latest-section .game-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(56, 161, 105, 0.1), rgba(42, 157, 94, 0.05));
}

.latest-section .game-info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.latest-section .game-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0px;
  color: #2d3748;
  line-height: 1.4;
  height: 22px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.latest-section .game-rating {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #ed8936;
  margin-bottom: 10px;
}

.latest-section .game-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #718096;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #edf2f7;
}

.latest-section .game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.latest-section .game-tag {
  background: #f0fff4;
  color: #2f855a;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 10px;
  border: 1px solid #c6f6d5;
}

.latest-section .game-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.latest-section .play-btn {
  background: #38a169;
  color: white;
  border: none;
  padding: 7px 18px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(56, 161, 105, 0.3);
}

.latest-section .play-btn:hover {
  background: #2f855a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(56, 161, 105, 0.4);
}

.latest-section .game-price {
  font-size: 13px;
  font-weight: bold;
  color: #2d3748;
}

.latest-section .game-price.free {
  color: #38a169;
}

/* 特色游戏区域 */
.featured-section {
  background: #f7fafc;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 60px;
}

.featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.featured-image {
  flex: 1;
  height: 300px;
  background: #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #718096;
}

.featured-info {
  flex: 1;
}

.featured-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #2d3748;
}

.featured-description {
  font-size: 16px;
  margin-bottom: 30px;
  color: #4a5568;
  line-height: 1.6;
}

.featured-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: #4299e1;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #3182ce;
}

.btn-secondary {
  background: white;
  color: #4299e1;
  border: 2px solid #4299e1;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #4299e1;
  color: white;
}

/* 页脚样式 */
footer {
  background: #2d3748;
  color: white;
  padding: 50px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #4299e1;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #4299e1;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #4299e1;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-title {
    font-size: 36px;
  }

  .featured-content {
    flex-direction: column;
    text-align: center;
  }

  .featured-image {
    width: 100%;
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
  }
  header {
    padding: 4px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px;
  }

  .hero-section {
    margin-bottom: 20px;
    padding: 30px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }

  .categories-nav {
    gap: 10px;
  }

  .category-btn {
    padding: 8px 16px;
    font-size: 13px;
    margin-bottom: 30px;
  }

  .featured-section {
    padding: 30px 20px;
  }

  .featured-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}