* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

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



/* Header Styles */
.header {
  /*background-color: #4a5568;*/
  background: linear-gradient(135deg, #667eeade 0%, #764ba2e0 100%);
  color: white;
  padding: 12px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left .logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.nav-left .logo i {
  margin-right: 8px;
  font-size: 20px;
}

.nav-center {
  flex: 1;
  margin: 0 40px;
}

.main-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.nav-link {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-btn {
  background: transparent;
  border: 1px solid #cbd5e0;
  color: #cbd5e0;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.login-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.search-container {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px;
}

.search-input {
  background: transparent;
  border: none;
  color: white;
  padding: 6px 8px;
  font-size: 12px;
  width: 150px;
}

.search-input::placeholder {
  color: #cbd5e0;
}

.search-input:focus {
  outline: none;
}

.search-btn {
  background: transparent;
  border: none;
  color: #cbd5e0;
  cursor: pointer;
  padding: 6px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-link {
  font-size: 12px;
  color: #cbd5e0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background-color: #3182ce;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Main Content */
.main-content {
  padding: 20px 0;
}

.games-section {
  margin-bottom: 30px;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.games-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #2d3748;
}

.section-title i {
  margin-right: 8px;
  color: #3182ce;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.game-card {
  background: white;
  border-radius: 8px;
  padding: 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.game-image {
  width: 100%;
  height: 140px;
  /*object-fit: contain;*/
  border-radius: 8px 8px 0 0;
  margin: 0;
}

.game-title {
  font-size: 13px;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.4;
  padding: 8px;
  margin: 0;
  background: white;
}

.game-card.loading {
  position: relative;
}

.loading-spinner {
  width: 100%;
  height: 120px;
  background-color: #f7fafc;
  border-radius: 6px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.loading-spinner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #3182ce;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.load-more-btn {
  display: block;
  margin: 0 auto;
  background-color: #3182ce;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.load-more-btn:hover {
  background-color: #2c5aa0;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero-description {
  font-size: 18px;
  color: #4a5568;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* About Section */
.about-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.about-content h3 {
  color: #2d3748;
  font-size: 24px;
  margin-bottom: 15px;
  margin-top: 30px;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-content ul {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
  padding-left: 20px;
}

.about-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  /*background-color: #4a5568;*/
  background: linear-gradient(135deg, #667eeade 0%, #764ba2e0 100%);
  color: #cbd5e0;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-section p {
  color: #cbd5e0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}
.logo-img{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}
.footer-bottom p {
  font-size: 15px;
  margin: 0;
}

.footer-bottom a {
  color: #cbd5e0;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* SEO Optimized Styles */
.share-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* SEO-friendly link styles */
.game-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

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

.game-card a:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Improved accessibility for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* SEO-optimized heading hierarchy */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

/* Enhanced game card SEO */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
}

.game-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* SEO-optimized image loading */
.game-image {
  width: 100%;
  /*height: 200px;*/
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
}

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

/* Enhanced typography for SEO */
.game-title {
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  /*margin: 15px;*/
  line-height: 1.4;
}

/* SEO-friendly breadcrumb styles */
.breadcrumb-nav {
  margin-bottom: 30px;
}

.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '>';
  margin: 0 10px;
  color: #718096;
}

.breadcrumb-item a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: #764ba2;
}

.breadcrumb-item.active span {
  color: #4a5568;
  font-weight: 600;
}

/* SEO-optimized responsive design */
@media (max-width: 768px) {
  .section-title {
    font-size: 24px;
  }

  .game-title {
    font-size: 16px;
  }

  .hero-description {
    font-size: 16px;
    padding: 0 20px;
  }

  .about-content {
    padding: 20px;
  }

  .about-content h3 {
    font-size: 20px;
  }
}

/* Print styles for SEO */
@media print {
  .header,
  .footer,
  .share-button,
  .control-btn {
    display: none !important;
  }

  .game-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .hero-section {
    background: none !important;
    border: 1px solid #ccc;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 16px;
  }

  .nav-center {
    margin: 0;
    order: 3;
    width: 100%;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-right {
    order: 2;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
  }

  .search-input {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    font-size: 12px;
  }

  .nav-link {
    padding: 6px 8px;
  }
}

/* ===== 游戏详情页面样式 ===== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin: 0 12px;
  color: #cbd5e0;
  font-weight: 300;
}

.breadcrumb-item a {
  color: #3182ce;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

.breadcrumb-item.active span {
  color: #4a5568;
  font-weight: 500;
}

.breadcrumb-item i {
  font-size: 12px;
}

/* Game Header Section */
.game-header {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.game-info {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: start;
}

.game-cover {
  position: relative;
  width: 150px;
  height: 150px;
}

.game-cover-image {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
  /*background-color: #f7fafc;*/
}

.game-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-details .game-title {
  font-size: 32px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 10px;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.game-category {
  background: #3182ce;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f6ad55;
  font-weight: 500;
}

.game-plays {
  color: #718096;
  font-size: 14px;
}

.game-description {
  color: #4a5568;
  line-height: 1.7;
  font-size: 16px;
}

.game-features {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3182ce;
}
.logon-a{
  text-decoration: none;
  color: inherit;
}
.game-features h3 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 18px;
}

.game-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-features li {
  color: #4a5568;
  position: relative;
  padding-left: 20px;
}

.game-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3182ce;
  font-weight: bold;
}

/* Game Instructions Section (now inside game-details) */
.game-details .game-instructions {
  margin-top: 30px;
  background: #f7fafc;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #3182ce;
}

.game-details .game-instructions .instructions-content h2 {
  color: #2d3748;
  font-size: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.game-details .game-instructions .instruction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-details .game-instructions .instruction-list li {
  color: #4a5568;
  line-height: 1.6;
  font-size: 14px;
  padding-left: 0;
}

.game-details .game-instructions .instruction-list li strong {
  color: #2d3748;
  font-weight: 600;
}

/* Game Player Section */
.game-player {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  /*padding: 30px;*/
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.game-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.player-header h2 {
  color: white;
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-controls {
  display: flex;
  gap: 12px;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



/* 删除重复的game-wrapper定义 */

/* Game container optimized for direct loading */
.game-container {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  min-height: 600px;
}

.game-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Fullscreen styles */
.game-iframe:fullscreen {
  border-radius: 0;
  background: #000;
}

/* CSS-based fullscreen implementation */
.game-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-container.fullscreen .game-iframe {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: none;
  background: #000;
  margin: 0;
  padding: 0;
}

.game-container.fullscreen .game-wrapper {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* Ensure no other elements interfere with fullscreen */
.game-container.fullscreen * {
  box-sizing: border-box;
}

/* Hide any potential scrollbars */
.game-container.fullscreen {
  overflow: hidden;
}

/* Fullscreen exit button container */
#fullscreenContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000000;
  display: none;
  pointer-events: none;
}

#fullscreenContainer .fullscreen-exit-btn {
  pointer-events: auto;
}

.fullscreen-exit-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  pointer-events: auto;
}

.fullscreen-exit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  background: linear-gradient(45deg, #ff5252, #d63031);
}

.fullscreen-exit-btn:active {
  transform: translateY(0);
}

.fullscreen-exit-btn i {
  font-size: 12px;
}

/* Mobile responsive styles for exit button */
@media (max-width: 768px) {
  .fullscreen-exit-btn {
    top: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .fullscreen-exit-btn {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

.game-iframe:-webkit-full-screen {
  border-radius: 0;
  background: #000;
}

.game-iframe:-moz-full-screen {
  border-radius: 0;
  background: #000;
}

.game-iframe:-ms-fullscreen {
  border-radius: 0;
  background: #000;
}

/* Play Now Overlay */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.play-content {
  text-align: center;
  color: white;
  /*padding: 40px;*/
  /*max-width: 400px;*/
}

.play-game-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
  object-fit: cover;
}

.play-content h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-content p {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

.play-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
  background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

.play-now-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.play-now-btn i {
  font-size: 20px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* Loading Animation Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  z-index: 10;
  width: 100%;
  height: 100%;
}

.loading-content {
  text-align: center;
  color: white;
  /*padding: 40px;*/
  /*max-width: 400px;*/
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.loading-game-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* 5点脉冲加载动画 */
.loading-spinner-large {
  width: 100px;
  height: 20px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* 5个点 */
.loading-spinner-large .dot1,
.loading-spinner-large .dot2,
.loading-spinner-large .dot3,
.loading-spinner-large .dot4,
.loading-spinner-large .dot5 {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  animation: pulse-dots 1.4s ease-in-out infinite both;
}

.loading-spinner-large .dot1 { animation-delay: -0.56s; }
.loading-spinner-large .dot2 { animation-delay: -0.28s; }
.loading-spinner-large .dot3 { animation-delay: 0s; }
.loading-spinner-large .dot4 { animation-delay: 0.28s; }
.loading-spinner-large .dot5 { animation-delay: 0.56s; }

@keyframes pulse-dots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-content h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-content p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Game Instructions Section */
.game-instructions {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.instructions-content h2 {
  color: #2d3748;
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.instruction-item {
  text-align: center;
  padding: 25px;
  background: #f7fafc;
  border-radius: 8px;
  transition: transform 0.2s;
}

.instruction-item:hover {
  transform: translateY(-2px);
}

.instruction-icon {
  width: 60px;
  height: 60px;
  background: #3182ce;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.instruction-icon i {
  font-size: 24px;
  color: white;
}

.instruction-item h3 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 18px;
}

.instruction-item p {
  color: #4a5568;
  line-height: 1.6;
}



/* 游戏详情页面响应式设计 */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin: 0 8px;
  }

  .game-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-cover {
    width: 100%;
    height: 100px;
  }

  .game-cover-image {
    height: 110px;
  }

  .game-details .game-title {
    font-size: 24px;
  }

  .player-header {
    flex-direction: row;
    gap: 15px;
    align-items: center;
    padding: 15px;
    text-align: left;
  }

  .player-header h2 {
    font-size: 20px;
    margin-bottom: 0;
    flex: 1;
  }

  .player-controls {
    justify-content: flex-end;
    display: flex;
    gap: 12px;
  }

  .control-btn {
    max-width: 200px;
    justify-content: center;
    min-height: 48px;
    touch-action: manipulation;
  }

  .control-btn {
    font-size: 0;
  }

  .control-btn i {
    font-size: 16px;
    margin-right: 0;
  }

  .game-wrapper {
    height: 500px;
  }

  .game-container {
    min-height: 500px;
  }

  .game-player {
    padding: 15px;
  }

  .game-container {
    border-radius: 8px;
    border-width: 1px;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }


}

@media (max-width: 480px) {
  .game-header,
  .game-instructions {
    padding: 20px;
  }

  .player-header {
    padding: 12px;
    gap: 12px;
    flex-direction: row;
    align-items: center;
  }

  .player-header h2 {
    font-size: 18px;
    flex: 1;
    margin-bottom: 0;
  }

  .player-controls {
    gap: 8px;
    justify-content: flex-end;
  }

  .control-btn {
    padding: 10px 16px;
    font-size: 0;
    max-width: 150px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .control-btn i {
    font-size: 14px;
    margin-right: 0;
  }

  .game-wrapper {
    height: 400px;
  }

  .game-container {
    min-height: 400px;
  }

  .game-player {
    padding: 10px;
  }

  .game-container {
    border-radius: 6px;
    border-width: 1px;
  }

  .play-content {
    padding: 20px;
  }

  .play-game-image {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .play-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .play-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .play-now-btn {
    padding: 12px 24px;
    font-size: 16px;
  }

  .loading-content {
    padding: 20px;
    align-items: center;
  }

  .loading-game-image {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .loading-spinner-large {
    width: 80px;
    height: 16px;
    margin: 15px auto;
    gap: 6px;
  }

  .loading-spinner-large .dot1,
  .loading-spinner-large .dot2,
  .loading-spinner-large .dot3,
  .loading-spinner-large .dot4,
  .loading-spinner-large .dot5 {
    width: 10px;
    height: 10px;
  }

  .loading-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .loading-content p {
    font-size: 14px;
  }
}
