/* Base styles for .page-about */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #1F2D3D);
  background-color: var(--page-bg, #F4F7FB);
}

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

.page-about__section-spacing {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main, #1F2D3D);
}

.page-about__text-block--light {
  color: #f0f0f0;
}

.page-about__card {
  background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  color: var(--text-main, #1F2D3D);
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--custom-color-1776249996415, #000000);
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  min-height: 200px;
  min-width: 200px;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 200px;
  min-width: 200px;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  margin-top: 20px;
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  z-index: 10;
  position: relative;
}

.page-about__main-title {
  color: var(--custom-color-1776249996415, #000000);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-main, #1F2D3D);
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: var(--main-color, #2F6BFF);
  text-decoration: none;
  border: 2px solid var(--main-color, #2F6BFF);
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-secondary:hover {
  background: var(--main-color, #2F6BFF);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-about__cta-buttons--centered {
  text-align: center;
}

/* Dark sections */
.page-about__dark-section {
  background-color: var(--main-color, #2F6BFF);
  color: #ffffff;
}

/* Vision Mission Section */
.page-about__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-about__value-item .page-about__card-title {
  color: var(--main-color, #2F6BFF);
}

.page-about__main-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

.page-about__image-spacing {
  margin-top: 50px;
}

/* Game List Section */
.page-about__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  text-align: center;
}

.page-about__game-card .page-about__card-image {
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-about__game-card .page-about__card-title {
  color: var(--main-color, #2F6BFF);
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* Security Features */
.page-about__security-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-about__security-item {
  background: var(--card-bg, #FFFFFF);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: var(--text-main, #1F2D3D);
}

.page-about__security-item strong {
  color: var(--custom-color-1776249996415, #000000);
}

/* Support Section */
.page-about__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__support-item {
  text-align: center;
}

.page-about__support-item .page-about__card-image {
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Responsibility Section */
.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__responsibility-item {
  background: var(--card-bg, #FFFFFF);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 1.05em;
  color: var(--text-main, #1F2D3D);
}

.page-about__responsibility-item strong {
  color: var(--custom-color-1776249996415, #000000);
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: none;
  background: var(--card-bg, #FFFFFF);
  color: var(--text-main, #1F2D3D);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color, #D6E2FF);
  list-style: none; /* For details/summary native marker */
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: #e0e7ff; /* Lighter background when open */
  color: var(--main-color, #2F6BFF);
}

.page-about__faq-item[open] > .page-about__faq-question .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-qtext {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--custom-color-1776249996415, #000000);
}

.page-about__faq-item[open] .page-about__faq-qtext {
  color: var(--main-color, #2F6BFF);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--main-color, #2F6BFF);
  transition: transform 0.3s ease;
}

.page-about__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  border-top: 1px solid #eee;
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-main, #1F2D3D);
}

.page-about__faq-answer p {
  margin-bottom: 0;
}

/* Ensure details summary marker is hidden */
.page-about__faq-item summary::-webkit-details-marker, 
.page-about__faq-item summary::marker {
  display: none;
  content: "";
}

/* CTA Section */
.page-about__cta-content {
  text-align: center;
}

.page-about__cta-content .page-about__section-title {
  margin-bottom: 20px;
}

.page-about__cta-content .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Global image responsiveness */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__hero-content {
    padding: 30px 20px;
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

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

  .page-about__game-list,
  .page-about__support-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-about__container {
    padding: 0 15px;
  }

  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-content {
    padding: 25px 15px;
    margin-top: 15px;
  }

  .page-about__main-title {
    font-size: 1.8em; /* Adjusted for mobile readability */
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-about__section-spacing {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__text-block {
    font-size: 1em;
  }

  /* 长文金框区 (Not explicitly in this page, but as per checklist) */
  /* This page does not have a 'long golden frame' section, so applying general text block styles. */
  .page-about__text-block {
    max-height: none !important; /* Ensure content is fully visible */
    overflow-y: visible !important;
  }

  /* 游戏轮播 (Not explicitly in this page, but as per checklist) */
  /* This page uses a game grid, not a slider, so applying grid adjustments. */
  .page-about__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 合作品牌六宫格 (Not explicitly in this page, but as per checklist) */
  /* This page does not have a 'coop banners' section. */

  /* 博客卡片区 (Not explicitly in this page, but as per checklist) */
  /* This page does not have a blog masonry or slider. */

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

  .page-about__card-image {
    min-height: 150px !important;
    min-width: 150px !important;
  }

  .page-about__container,
  .page-about__card-grid,
  .page-about__values-grid,
  .page-about__game-list,
  .page-about__security-features,
  .page-about__support-grid,
  .page-about__responsibility-list,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px; /* Adjust gap for stacked buttons */
  }

  .page-about__card-grid,
  .page-about__values-grid,
  .page-about__game-list,
  .page-about__security-features,
  .page-about__support-grid {
    grid-template-columns: 1fr; /* Single column layout for grids */
    gap: 20px;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding: 15px 20px;
  }

  .page-about__faq-qtext {
    font-size: 1em;
  }
}