/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

.nav-brand i {
  font-size: 2rem;
}

.search-container {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 25px;
  padding: 5px;
  max-width: 400px;
  flex: 1;
  margin: 0 2rem;
}

.search-input {
  border: none;
  background: transparent;
  padding: 10px 15px;
  flex: 1;
  outline: none;
  font-size: 1rem;
}

.search-btn {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #5a6fd8;
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

/* Game Player Section */
.game-player-section {
  margin-bottom: 3rem;
}

.game-cover {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.game-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-info {
  text-align: center;
  color: white;
}

.game-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.play-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
}

.play-btn i {
  font-size: 1.3rem;
}

/* Game Iframe Container */
.game-iframe-container {
  background: white;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.iframe-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.iframe-title {
  color: #333;
  font-size: 1.5rem;
}

.iframe-buttons {
  display: flex;
  gap: 10px;
}

.control-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
}

.iframe-wrapper.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
}

#gameIframe {
  width: 100%;
  height: 100%;
  border: none;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #667eea;
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Related Games Section */
.related-games-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.game-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.game-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

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

.game-card-description {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-btn {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.game-card-btn:hover {
  background: #0056b3;
}

/* Game Description Section */
.game-description-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-description-section .section-title {
  color: #333;
  text-shadow: none;
  text-align: left;
}

.game-details {
  display: grid;
  /* grid-template-columns: 2fr 1fr; */
  gap: 2rem;
}

.game-description h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.game-description p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.game-features {
  margin-top: 1.5rem;
}

.game-features h4 {
  margin-bottom: 1rem;
  color: #333;
}

.game-features ul {
  list-style: none;
  padding-left: 0;
}

.game-features li {
  padding: 0.3rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
}

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

.game-stats {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  height: fit-content;
}

.stat-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 10px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-item i {
  color: #667eea;
  width: 20px;
}

.stat-label {
  color: #666;
  flex: 1;
}

.stat-value {
  font-weight: bold;
  color: #333;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-main {
  max-width: none;
}

.footer-links {
  text-align: right;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #667eea;
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #667eea;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #667eea;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #ccc;
}

/* Page Styles */
.page-header {
  text-align: center;
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #333;
}

.page-header p {
  font-size: 1.2rem;
  color: #666;
}

/* Contact Page Styles */
.contact-section {
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2,
.contact-form-container h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.contact-methods {
  margin: 2rem 0;
}

.contact-method {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  background: #667eea;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-details p {
  margin-bottom: 0.3rem;
  color: #333;
  font-weight: 500;
}

.contact-details span {
  color: #666;
  font-size: 0.9rem;
}

.contact-social {
  margin-top: 2rem;
}

.contact-social h3 {
  margin-bottom: 1rem;
  color: #333;
}

/* Contact Form */
.contact-form-container {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #667eea;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.submit-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* FAQ Section */
.faq-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-item h3 {
  margin-bottom: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item h3 i {
  color: #667eea;
}

.faq-item p {
  color: #666;
  line-height: 1.6;
}

/* Legal Page Styles */
.legal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  line-height: 1.7;
}

.legal-content h1 {
  color: #333;
  margin-bottom: 1rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.legal-content h2 {
  color: #333;
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
}

.legal-content h3 {
  color: #555;
  margin: 1.5rem 0 1rem 0;
  font-size: 1.2rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: #666;
}

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1rem 2rem;
  color: #666;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: #333;
}

.legal-content .effective-date {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #667eea;
}

.legal-content .contact-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 4px solid #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    padding: 1rem;
  }

  .search-container {
    display: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    transition: transform 0.3s ease;
  }

  .mobile-menu-toggle.active {
    transform: rotate(90deg);
  }

  .game-title {
    font-size: 2rem;
  }

  .game-subtitle {
    font-size: 1rem;
  }

  .play-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .game-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .iframe-wrapper {
    height: 400px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .game-cover img {
    height: 250px;
  }

  .game-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .iframe-wrapper {
    height: 300px;
  }

  .game-description-section {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card,
.game-description-section {
  animation: fadeIn 0.6s ease-out;
}

/* Fullscreen styles */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 9998;
  display: none;
}

.fullscreen-overlay.active {
  display: block;
}

/* All Games Page Styles */
.all-games-section {
  padding: 20px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.game-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.game-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

.game-card-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.game-card-description {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
}

.game-card-btn {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.game-card-btn:hover {
  background: #0056b3;
}

.no-games {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.2em;
}

/* Active nav link */
.nav-link.active {
  color: #4a90e2;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-card-image {
    height: 200px;
  }
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: #f5f5f5;
}

.search-result-item img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.search-result-description {
  font-size: 0.85em;
  color: #666;
}

.no-results {
  padding: 16px;
  text-align: center;
  color: #666;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .search-container {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 10px 0;
  }

  .search-results {
    position: fixed;
    top: 60px; /* Adjust based on your header height */
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
  }

  .search-result-item {
    padding: 16px;
  }
}

/* Game Card Category */
.game-card-category {
  display: inline-block;
  padding: 4px 8px;
  background-color: #f0f0f0;
  color: #666;
  border-radius: 12px;
  font-size: 0.8em;
  margin-bottom: 12px;
}

.game-card-category[data-category="动作"] {
  background-color: #ffebee;
  color: #d32f2f;
}

.game-card-category[data-category="赛车"] {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.game-card-category[data-category="休闲"] {
  background-color: #e3f2fd;
  color: #1976d2;
}

.game-card-category[data-category="解谜"] {
  background-color: #fff3e0;
  color: #f57c00;
}

/* 404 Error Page Styles */
.error-container {
  text-align: center;
  padding: 50px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.error-container h1 {
  font-size: 72px;
  color: #333;
  margin-bottom: 20px;
}

.error-container p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.error-container ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.error-container ul li {
  display: inline-block;
  margin: 0 15px;
}

.error-container ul li a {
  color: #007bff;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 20px;
  border: 2px solid #007bff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.error-container ul li a:hover {
  background-color: #007bff;
  color: white;
}

.suggested-games {
  margin-top: 60px;
}

.suggested-games h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 30px;
}

.suggested-games .game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-content: center;
}

.suggested-games .game-card {
  text-align: center;
  transition: transform 0.3s ease;
}

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

.suggested-games .game-card a {
  text-decoration: none;
  color: #333;
}

.suggested-games .game-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.suggested-games .game-card h3 {
  margin-top: 10px;
  font-size: 16px;
}

/* 游戏详情页面样式 */
.game-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.game-detail header {
  text-align: center;
  margin-bottom: 40px;
}

.game-detail h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 20px;
}

.game-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #666;
}

.game-meta span {
  background: #f5f5f5;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
}

/* 面包屑导航 */
.breadcrumb {
  margin: 20px 0;
  padding: 10px 20px;
  background: #f5f5f5;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

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

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 10px;
  color: #666;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 游戏描述区域 */
.game-description {
  margin: 40px 0;
  line-height: 1.6;
}

.game-description h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 20px;
}

.game-description h3 {
  font-size: 1.5em;
  color: #444;
  margin: 30px 0 15px;
}

.game-highlights ul,
.game-progression ol {
  padding-left: 20px;
  margin: 15px 0;
}

.game-highlights li,
.game-progression li {
  margin-bottom: 15px;
}

/* 游戏控制说明 */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 20px 0;
}

.controls-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

/* 更新日志 */
.update-list {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.update-item {
  margin-bottom: 20px;
}

.update-item h3 {
  color: #007bff;
  margin-bottom: 10px;
}

/* 玩家评论 */
.reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin: 20px 0;
}

.rating-overview {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.rating {
  font-size: 3em;
  color: #007bff;
  font-weight: bold;
}

.review-highlights blockquote {
  margin: 0 0 20px;
  padding: 20px;
  background: #f8f9fa;
  border-left: 5px solid #007bff;
  border-radius: 0 10px 10px 0;
}

/* FAQ 部分 */
.game-faq {
  margin: 40px 0;
}

.faq-list details {
  margin-bottom: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: bold;
  margin: -15px;
  padding: 15px;
}

.faq-list details[open] summary {
  margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .game-detail {
    padding: 10px;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
  }

  .game-meta {
    flex-direction: column;
    align-items: center;
  }

  .game-detail h1 {
    font-size: 2em;
  }
}

/* 游戏容器 */
.game-container {
  margin: 40px 0;
  text-align: center;
}

.game-container iframe {
  max-width: 100%;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* Message Board Styles */
.message-board {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
}

.message-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.message-input,
.message-textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.message-input:focus,
.message-textarea:focus {
  border-color: #007bff;
  outline: none;
}

.message-textarea {
  height: 120px;
  resize: vertical;
}

.message-submit {
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
}

.message-submit:hover {
  background-color: #0056b3;
}

.message-list {
  padding: 0 20px 20px;
}

.message-item {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.3s ease;
}

.message-item:hover {
  background-color: #f8f9fa;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.message-username {
  font-weight: 600;
  color: #007bff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.message-time {
  color: #6c757d;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.message-content {
  color: #343a40;
  line-height: 1.6;
  font-size: 15px;
}

.no-messages {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
  .message-board {
    margin: 15px 0;
  }

  .message-form {
    padding: 15px;
  }

  .message-item {
    padding: 15px;
  }

  .message-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

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

.message-form .form-group {
  margin-bottom: 15px;
}

/* Focus styles for better accessibility */
.message-input:focus,
.message-textarea:focus,
.message-submit:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* High contrast focus indicator for better visibility */
@media (prefers-contrast: more) {
  .message-input:focus,
  .message-textarea:focus,
  .message-submit:focus {
    outline-color: #000;
  }
}

/* Back to Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}
#backToTopBtn:hover {
  opacity: 1;
  background: #007bff;
  color: #fff;
}

/* Homepage-specific: shrink game cards by ~20% */
.home-page .related-games-section .game-card-image {
  height: 144px; /* 180px * 0.8 */
}

.home-page .related-games-section .game-card-content {
  padding: 12px; /* 16px * 0.75 for tighter content */
}

.home-page .related-games-section .game-card-title {
  font-size: 1em; /* was 1.2em */
}

.home-page .related-games-section .game-card-description {
  font-size: 0.8em; /* was 0.9em */
  margin-bottom: 12px; /* was 16px */
}

.home-page .related-games-section .game-card-btn {
  padding: 8px; /* was 10px */
  font-size: 0.95em;
}