/* 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: #2b2d42;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 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(43, 45, 66, 0.05);
}

.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;
  text-decoration: none;
  color: #ff4b2b;
  transition: opacity 0.3s ease;
}

.nav-brand:hover {
  opacity: 0.9;
}

.nav-brand i {
  font-size: 24px;
  margin-right: 10px;
  color: #ff4b2b;
}

.search-container {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 25px;
  padding: 5px;
  max-width: 400px;
  flex: 1;
  margin: 0 2rem;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-container:focus-within {
  border-color: #ff4b2b;
  box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.1);
}

.search-input {
  border: none;
  background: transparent;
  padding: 10px 15px;
  flex: 1;
  outline: none;
  font-size: 1rem;
  color: #2b2d42;
}

.search-input::placeholder {
  color: #8d99ae;
}

.search-btn {
  background: #ff4b2b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #ff416c;
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #2b2d42;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #ff4b2b;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff4b2b;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #ff4b2b;
  font-weight: bold;
}

.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2b2d42;
  transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: #ff4b2b;
}

/* 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(43, 45, 66, 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(43, 45, 66, 0.7),
    rgba(43, 45, 66, 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, #ff4b2b, #ff416c);
  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, 75, 43, 0.3);
}

.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: #ff4b2b;
  border-color: #ff4b2b;
}

.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: #ff4b2b;
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Related Games Section */
.related-games-section {
  margin-bottom: 3rem;
}

.section-title {
  color: #2b2d42;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.game-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(43, 45, 66, 0.1);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 75, 43, 0.2);
}

.game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-image {
  transform: scale(1.05);
}

.game-card-content {
  padding: 1.5rem;
  background: white;
}

.game-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-category {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
  border-color: #ff4b2b;
}

.game-card-category[data-category="Racing"] {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
}

.game-card-category[data-category="Action"] {
  background: linear-gradient(45deg, #2b2d42, #8d99ae);
  color: white;
}

.game-card-category[data-category="Casual"] {
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  color: white;
}

.game-card-category[data-category="Puzzle"] {
  background: linear-gradient(45deg, #8d99ae, #2b2d42);
  color: white;
}

.game-card-btn {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.game-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

.game-card-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.game-card-btn:hover i {
  transform: translateX(3px);
}

/* Game Description Section */
.game-description-section {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(43, 45, 66, 0.1);
}

.game-description-section .section-title {
  color: #2b2d42;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.game-description-section .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  border-radius: 2px;
}

.game-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.game-description {
  color: #2b2d42;
}

.game-description h3 {
  color: #ff4b2b;
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-description h3 i {
  font-size: 1.3rem;
}

.game-description p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #4a4b53;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(43, 45, 66, 0.05);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item i {
  font-size: 2rem;
  color: #ff4b2b;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #8d99ae;
  margin-bottom: 0.3rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2b2d42;
}

.game-categories {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
}

.game-categories h3 {
  margin-bottom: 1.5rem;
}

.game-categories ul {
  list-style: none;
}

.game-categories li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.game-categories li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff4b2b;
  font-weight: bold;
}

.game-features {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(43, 45, 66, 0.05);
}

.game-features h4 {
  color: #ff4b2b;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f8f9fa;
  position: relative;
}

.game-features h4::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #ff4b2b;
}

.game-features ul {
  list-style: none;
  margin-bottom: 2rem;
}

.game-features li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  color: #4a4b53;
}

.game-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff4b2b;
  font-weight: bold;
}

.game-features .game-controls {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f8f9fa;
}

@media (max-width: 768px) {
  .game-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .game-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-description-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .game-stats {
    grid-template-columns: 1fr;
  }

  .game-features {
    padding: 1.5rem;
  }
}

/* Footer Styles */
.footer {
  background: #2b2d42;
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h3 {
  color: #ff4b2b;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section h4 {
  color: #ff416c;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #e9ecef;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #e9ecef;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ff4b2b;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #8d99ae;
  text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }
}

/* Page Styles */
.page-header {
  text-align: center;
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
  font-size: 2.5rem;
  color: #2d3436;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-header p {
  color: #636e72;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 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: #ff4b2b;
  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 {
  border-color: #ff4b2b;
  box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.1);
}

.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;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: #ff4b2b;
  border-color: #ff4b2b;
}

.submit-btn {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

/* 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: #ff4b2b;
}

.faq-item p {
  color: #666;
  line-height: 1.6;
}

/* Legal Pages Styles (Privacy Policy & Terms of Service) */
.legal-page {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  max-width: 900px;
}

.legal-page h1 {
  color: #2d3436;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.legal-page h2 {
  color: #2b2d42;
  font-size: 2rem;
  margin: 2rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ff4b2b;
  position: relative;
}

.legal-page h2 i {
  color: #ff4b2b;
}

.legal-page h3 {
  color: #2d3436;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-page p {
  color: #636e72;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.legal-page ul,
.legal-page ol {
  color: #636e72;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-page li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.legal-page .highlight-box {
  padding: 2rem;
  border-radius: 15px;
  background: rgba(255, 75, 43, 0.1);
  margin: 2rem 0;
  border-left: 4px solid #ff4b2b;
}

.legal-page .highlight-box h4 {
  color: #ff4b2b;
  margin-bottom: 1rem;
}

.legal-page .highlight-box p {
  margin-bottom: 0;
}

.legal-page .info-box {
  background: rgba(255, 75, 43, 0.05);
  border-left: 4px solid #ff4b2b;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 15px 15px 0;
}

.legal-page .info-box h4 {
  color: #ff4b2b;
  margin-bottom: 1rem;
}

.legal-page .last-updated {
  background: #e3f8f4;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid #ff4b2b;
  color: #2d3436;
  font-size: 0.95rem;
}

.legal-page .last-updated strong {
  color: #ff4b2b;
  font-weight: 600;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 2rem;
    margin: 1rem;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  .legal-page h2 {
    font-size: 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    padding: 1rem;
  }

  .search-container {
    display: none;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    background: #f8f9fa;
  }

  .nav-link:hover {
    background: #e9ecef;
  }

  .nav-link.active {
    background: #ff4b2b;
    color: white;
  }

  .nav-link.active::after {
    display: none;
  }

  .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;
  }

  .page-header {
    padding: 3rem 1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .game-details {
    grid-template-columns: 1fr;
  }

  .game-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto;
}

.game-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

.no-games {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.2em;
}

/* Active nav link */
.nav-link.active {
  color: #ff4b2b;
  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="Action"] {
  background-color: #ffebee;
  color: #d32f2f;
}

.game-card-category[data-category="Racing"] {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
}

.game-card-category[data-category="Casual"] {
  background-color: #e8f5e9;
  color: #00b894;
}

.game-card-category[data-category="Puzzle"] {
  background-color: #fff3e0;
  color: #f57c00;
}

/* 404 Page Styles */
.error-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.error-container h1 {
  font-size: 3rem;
  color: #2d3436;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-container p {
  font-size: 1.2rem;
  color: #636e72;
  margin-bottom: 1.5rem;
}

.error-container ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.error-container ul li {
  margin: 1rem 0;
}

.error-container ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: #ff4b2b;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #ff4b2b;
}

.error-container ul li a:hover {
  background-color: #ff4b2b;
  transform: translateY(-2px);
}

.recommended-games {
  margin-top: 4rem;
}

.recommended-games h2 {
  font-size: 2rem;
  color: #2d3436;
  margin-bottom: 2rem;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.game-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.game-card-link {
  text-decoration: none;
  color: inherit;
}

.game-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-content {
  padding: 1.5rem;
}

.game-card-title {
  font-size: 1.2rem;
  color: #2d3436;
  margin-bottom: 0.5rem;
}

.game-card-description {
  font-size: 0.9rem;
  color: #636e72;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .error-container {
    margin: 2rem auto;
    padding: 1rem;
  }

  .error-container h1 {
    font-size: 2rem;
  }

  .game-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .game-card-image {
    height: 150px;
  }
}

/* 留言板样式 */
.comment-board {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comment-form {
  margin-bottom: 2rem;
}

.comment-input,
.comment-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.comment-input:focus,
.comment-textarea:focus {
  border-color: #ff4b2b;
  box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.1);
  outline: none;
}

.comment-textarea {
  min-height: 100px;
  resize: vertical;
}

.comment-submit-btn {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

.comment-submit-btn i {
  font-size: 1.1rem;
}

.comments-list {
  margin-top: 2rem;
}

.comment-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  color: #2b2d42;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author i {
  color: #ff4b2b;
}

.comment-date {
  color: #8d99ae;
  font-size: 0.9rem;
}

.comment-content {
  color: #2b2d42;
  line-height: 1.6;
  margin-bottom: 1rem;
  word-break: break-word;
}

.comment-footer {
  display: flex;
  justify-content: flex-end;
}

.like-btn {
  background: none;
  border: none;
  color: #ff4b2b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.like-btn:hover {
  background: rgba(255, 75, 43, 0.1);
}

.like-btn i {
  font-size: 1rem;
}

.like-count {
  color: #2b2d42;
}

@media (max-width: 768px) {
  .comment-board {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .comment-item {
    padding: 1rem;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .comment-date {
    font-size: 0.8rem;
  }
}

/* Comment Section Styles */
.comment-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.no-comments {
  text-align: center;
  color: #8d99ae;
  padding: 2rem;
  font-style: italic;
}

/* Back to Top Button Styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 75, 43, 0.3);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 75, 43, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* Mobile responsive for back to top button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}


