:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #EA7C07; /* 登录按钮色 */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #FFFFFF;
  --border-color: #e0e0e0;
}

/* Base styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Body background is light, so use dark text */
  line-height: 1.6;
  background-color: var(--background-color-light);
}

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

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

.page-about__section-title {
  font-size: 3em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* Fixed header spacing: body padding-top is handled by shared.css.
     This section only needs a small decorative top padding. */
  padding-top: 10px; /* 8-16px range */
  padding-bottom: 40px;
  background-color: var(--background-color-light); /* Explicitly light background */
  color: var(--text-color-dark); /* Dark text for light background */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  /* Ensure image colors are preserved */
  filter: none;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  /* H1 font-size: Use font-weight, line-height, letter-spacing for hierarchy */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 20px;
  /* If a fixed font-size is required, use clamp */
  font-size: clamp(2.5em, 5vw, 3.8em); /* Example clamp: min 2.5em, preferred 5vw, max 3.8em */
}

.page-about__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-color-dark);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Login button color */
  color: var(--text-color-light); /* White text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-about__cta-button:hover {
  background: #c26500; /* Darkened version of #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button--secondary {
  background: var(--primary-color);
  margin-left: 15px;
}

.page-about__cta-button--secondary:hover {
  background: #1e87b7; /* Darkened version of #26A9E0 */
}

/* Content Sections */
.page-about__section--mission {
  background-color: var(--background-color-light);
  color: var(--text-color-dark);
}

.page-about__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Ensure image colors are preserved */
  filter: none;
  min-width: 200px; /* Min size for card images */
  min-height: 200px; /* Min size for card images */
  object-fit: cover;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__values-list li {
  background: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.05em;
  text-align: left;
}

.page-about__values-list li strong {
  color: var(--primary-color);
}

/* Why Choose Section */
.page-about__section--why-choose {
  background-color: #f5f5f5; /* Light grey background for contrast */
  color: var(--text-color-dark);
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background: var(--background-color-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  /* Ensure image colors are preserved */
  filter: none;
  min-width: 200px; /* Min size for card images */
  min-height: 200px; /* Min size for card images */
  object-fit: cover;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__card-title a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.page-about__card-title a:hover {
  color: #1a719c; /* Darkened version of #26A9E0 */
}

.page-about__feature-card p {
  font-size: 1em;
  color: var(--text-color-dark);
}

.page-about__cta-bottom {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Games Section */
.page-about__section--games {
  background-color: var(--background-color-light);
  color: var(--text-color-dark);
}

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

.page-about__game-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-about__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  /* Ensure image colors are preserved */
  filter: none;
  min-width: 200px; /* Min size for card images */
  min-height: 200px; /* Min size for card images */
  object-fit: cover;
}

/* Commitment Section */
.page-about__section--commitment {
  background-color: #f0f8ff; /* Light blue background for this section */
  color: var(--text-color-dark);
}

/* FAQ Section */
.page-about__section--faq {
  background-color: var(--background-color-light);
  color: var(--text-color-dark);
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-color-light);
  color: var(--text-color-dark);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}
details.page-about__faq-item .page-about__faq-answer p {
  margin-bottom: 0;
}


/* Contact CTA Section */
.page-about__section--contact-cta {
  background-color: var(--primary-color); /* Brand primary color for CTA background */
  color: var(--text-color-light); /* White text for contrast */
  padding: 80px 0;
}

.page-about__section--contact-cta .page-about__section-title {
  color: var(--text-color-light);
}

.page-about__section--contact-cta .page-about__text-content {
  color: var(--text-color-light);
  opacity: 0.9;
}

.page-about__cta-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__cta-group .page-about__cta-button {
  margin-top: 0; /* Override default margin-top */
}

.page-about__cta-group .page-about__cta-button--secondary {
  background: var(--text-color-light); /* White background */
  color: var(--primary-color); /* Primary color text */
}

.page-about__cta-group .page-about__cta-button--secondary:hover {
  background: #f0f0f0; /* Slightly darker white */
  color: #1e87b7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__main-title {
    font-size: clamp(2.2em, 4.5vw, 3.2em);
  }
  .page-about__intro-text {
    font-size: 1.1em;
  }
  .page-about__content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-about__content-wrapper--reverse {
    flex-direction: column; /* Keep column for reverse on tablet */
  }
  .page-about__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__container {
    padding: 0 15px;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block; /* Ensure it's a block element */
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__features-grid,
  .page-about__games-grid,
  .page-about__faq-list,
  .page-about__cta-bottom,
  .page-about__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__content-wrapper {
    gap: 20px;
  }
  .page-about__features-grid,
  .page-about__games-grid {
    gap: 20px;
  }

  /* Buttons responsive */
  .page-about__cta-button,
  .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; /* Ensure padding is consistent */
    padding-right: 15px;
    margin-left: 0 !important; /* Remove margin-left for side-by-side buttons */
  }
  .page-about__cta-bottom,
  .page-about__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-bottom .page-about__cta-button--secondary {
    margin-left: 0 !important; /* Remove horizontal margin */
  }
}