/* style/about.css */
/* Body background color is var(--background-color) from shared.css, which is #08160F (dark). */
/* Therefore, text colors within .page-about should primarily be light (#F2FFF6, #A7D9B8) */

.page-about {
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
  background-color: var(--background-color, #08160F);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__section-title {
  font-size: 2.5rem;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 1.8rem;
  color: var(--text-main-color, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about p {
  margin-bottom: 15px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about a {
  color: var(--glow-color, #57E38D);
  text-decoration: none;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Using padding-bottom for aspect ratio if needed, but for hero img, direct img is better as per rules */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for aesthetic */
  filter: brightness(0.6); /* Darken image slightly for text contrast */
}

.page-about__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Per highest priority rule: '强制上图下文、禁止在主图上叠字', the hero content cannot overlap the image. */
/* Adjusting hero section to stack image and content vertically. */
.page-about__hero-section {
  flex-direction: column; /* Stack image and content vertically */
  padding: 60px 0; /* Adjust overall padding */
  padding-top: 10px; /* Small top padding for first section */
  background-color: var(--background-color, #08160F);
}

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* No filter as text is below */
  max-height: none; /* Allow natural height */
  border-radius: 8px;
}

.page-about__hero-content {
  position: static; /* Remove absolute positioning */
  background: none; /* Remove background gradient */
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__main-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem); /* Using clamp as requested */
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__lead-text {
  font-size: 1.1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* General Content Sections */
.page-about__introduction-section,
.page-about__entertainment-section,
.page-about__vision-future-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-about__trust-safety-section,
.page-about__team-culture-section,
.page-about__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg-color, #11271B);
}

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

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

.page-about__text-block {
  flex: 1;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

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

.page-about__card {
  background-color: var(--background-color, #08160F);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
  min-height: 200px; /* Enforce minimum size */
}

.page-about__card-title {
  font-size: 1.5rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-about__advantage-list li {
  background: var(--card-bg-color, #11271B);
  border-left: 5px solid var(--glow-color, #57E38D);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__advantage-list li strong {
  color: var(--text-main-color, #F2FFF6);
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: var(--background-color, #08160F);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--card-bg-color, #11271B);
  border-bottom: 1px solid var(--border-color, #2E7A4E);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome */
.page-about__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: none;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow-color, #57E38D);
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  line-height: 1.7;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.2rem;
  }

  .page-about__sub-title {
    font-size: 1.6rem;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
}

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

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .page-about__sub-title {
    font-size: 1.4rem;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .page-about__lead-text {
    font-size: 1rem;
  }

  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__trust-safety-section,
  .page-about__entertainment-section,
  .page-about__team-culture-section,
  .page-about__vision-future-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__content-wrapper,
  .page-about__content-wrapper--reverse {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
  }

  .page-about__text-block,
  .page-about__image-block {
    flex: none;
    width: 100%;
  }

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

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Ensure images are not too small */
  }

  .page-about__image-block,
  .page-about__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-about__btn-primary {
    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__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}