/* Base styles for the game library page */
.page-game-library {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  padding-bottom: 40px;
}

/* Hero Section */
.page-game-library__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-game-library__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

.page-game-library__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-game-library__hero-content {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
}

.page-game-library__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #2F6BFF; /* Main color for title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-library__description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-game-library__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-game-library__btn-primary,
.page-game-library__btn-secondary,
.page-game-library__btn-tertiary {
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-game-library__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
}

.page-game-library__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-library__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
}

.page-game-library__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

.page-game-library__btn-tertiary {
  background: #6FA3FF; /* Auxiliary color */
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
}

.page-game-library__btn-tertiary:hover {
  background: #2F6BFF;
}

/* General Section Styling */
.page-game-library__section {
  padding: 40px 0;
  margin-bottom: 30px;
}

.page-game-library__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-library__section-title {
  font-size: 2.2em;
  color: #2F6BFF; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-game-library__paragraph {
  font-size: 1.05em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-library__paragraph strong {
  color: #000000; /* Custom Color_1776249996415 */
}

.page-game-library__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Game Grid Section */
.page-game-library__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-game-library__game-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-library__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-game-library__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #D6E2FF; /* Border */
  margin-bottom: 15px;
}

.page-game-library__card-title {
  font-size: 1.5em;
  color: #2F6BFF; /* Main color */
  margin: 10px 15px;
  font-weight: bold;
}

.page-game-library__card-text {
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions List */
.page-game-library__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 25px;
  text-align: left;
}

.page-game-library__promotion-item {
  font-size: 1.05em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-game-library__promotion-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #2F6BFF;
}

/* Dark Background Section */
.page-game-library__dark-bg {
  background-color: #2F6BFF; /* Main color */
  color: #ffffff;
}

.page-game-library__dark-bg .page-game-library__section-title,
.page-game-library__dark-bg .page-game-library__paragraph,
.page-game-library__dark-bg .page-game-library__promotion-item {
  color: #ffffff;
}

.page-game-library__dark-bg .page-game-library__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border-color: #ffffff;
}

.page-game-library__dark-bg .page-game-library__btn-secondary:hover {
  background: #A5C4FF; /* Glow */
  color: #2F6BFF;
  border-color: #A5C4FF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-library__main-title {
    font-size: 2.5em;
  }

  .page-game-library__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-game-library {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-game-library__hero-section {
    padding-top: 10px; /* Small top padding */
    margin-bottom: 20px;
  }

  .page-game-library__main-title {
    font-size: 1.8em !important;
    margin-bottom: 10px;
  }

  .page-game-library__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-game-library__cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* 按钮与按钮容器 */
  .page-game-library__btn-primary,
  .page-game-library__btn-secondary,
  .page-game-library__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-game-library__section {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .page-game-library__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-library__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-library__paragraph {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  /* 通用图片与容器 */
  .page-game-library img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-game-library__hero-image,
  .page-game-library__game-card,
  .page-game-library__introduction-section,
  .page-game-library__featured-game-section,
  .page-game-library__game-genres-section,
  .page-game-library__getting-started-section,
  .page-game-library__promotions-section,
  .page-game-library__security-section,
  .page-game-library__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-game-library__game-card {
    padding-bottom: 15px;
  }

  .page-game-library__card-image {
    height: 180px;
  }

  .page-game-library__card-title {
    font-size: 1.3em;
  }

  .page-game-library__card-text {
    font-size: 0.9em;
  }

  .page-game-library__promotion-item {
    font-size: 0.95em;
    padding-left: 20px;
  }
}