.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

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

.page-about__section {
  padding: 80px 0;
  text-align: center;
}

.page-about__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-about__light-bg {
  background-color: #ffffff; /* Auxiliary color / default white */
  color: #333333; /* Dark text for light background */
}

.page-about__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding-top: 0; /* Assuming shared.css handles body padding */
  text-align: center;
}

.page-about__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-section .page-about__content-wrapper {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding-top: 60px; /* Space for content above hero image if header is transparent */
  padding-bottom: 60px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 300px; /* Limit button width */
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

.page-about__section-intro {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__text-image-block {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-bottom: 60px;
}

.page-about__text-image-block--reversed {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

.page-about__text-block ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: inherit;
}

.page-about__text-block li {
  margin-bottom: 10px;
  color: inherit;
}

.page-about__text-block a {
  color: #EA7C07; /* Highlight links */
  text-decoration: underline;
}

.page-about__text-block a:hover {
  color: #d16b06;
}

.page-about__image-container {
  flex: 1;
  min-width: 200px; /* Minimum size for content images */
  max-width: 600px; /* Example max width */
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-about__value-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

.page-about__value-item:hover {
  transform: translateY(-5px);
}

.page-about__value-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__value-item p {
  color: #555555;
}

.page-about__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-about__game-card {
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #333333;
  transition: transform 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
}

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-about__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-about__game-title a:hover {
  text-decoration: underline;
}

.page-about__game-card p {
  color: #555555;
}

.page-about__section-outro {
  margin-top: 40px;
  font-size: 1.1em;
  color: inherit;
}

/* FAQ Section */
.page-about__faq-section {
  max-width: 800px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent background for dark section */
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-about__faq-answer a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #d16b06;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-section .page-about__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-about__cta-section .page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Copyright */
.page-about__copyright {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

.page-about__copyright p {
  margin: 0;
}

/* General Image Rules */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-about__text-image-block {
    flex-direction: column;
  }

  .page-about__text-image-block--reversed {
    flex-direction: column;
  }

  .page-about__image-container {
    max-width: 100%;
    margin-top: 30px;
  }

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    min-height: 400px;
    padding-top: 0 !important; /* Ensure no double padding if shared.css adds to body */
  }

  .page-about__hero-section .page-about__content-wrapper {
    padding: 30px 15px !important;
  }

  .page-about__hero-title {
    font-size: 2.2em !important;
    margin-bottom: 15px !important;
  }

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

  /* 其他内容模块 - section */
  .page-about__section {
    padding: 40px 0 !important;
  }

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

  .page-about__section-intro {
    font-size: 1em !important;
    margin-bottom: 30px !important;
    padding: 0 15px !important;
  }

  .page-about__content-wrapper {
    padding: 0 15px !important;
  }

  /* 产品展示图区域 - game cards */
  .page-about__game-cards-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px !important;
    padding: 0 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__game-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__game-image {
    height: 180px !important; /* Adjust height for mobile */
  }

  /* 通用图片与容器 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__image-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__text-image-block {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .page-about__text-image-block--reversed {
    flex-direction: column !important;
  }

  /* 按钮与按钮容器 */
  .page-about__hero-cta-buttons,
  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .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;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* FAQ Section */
  .page-about__faq-section {
    margin-top: 30px !important;
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__faq-question {
    padding: 15px 20px !important;
    font-size: 1em !important;
  }

  .page-about__faq-answer {
    padding: 0 20px !important;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }

  .page-about__value-item {
    padding: 20px !important;
  }

  .page-about__copyright {
    padding: 15px 15px !important;
  }
}