/* style/about.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General page styling */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8; /* Light background for the page content */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Dark red for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px; /* Ensure hero section has a minimum height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff; /* White text on hero image */
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-about__hero-image-wrapper {
  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.7); /* Darken image for better text contrast */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-about__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold for the main title */
}

.page-about__intro-text {
  font-size: 1.3em;
  margin-bottom: 30px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
}

.page-about__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #333333; /* Dark text for gold background for contrast */
  border: 2px solid #FFD700;
  margin: 10px;
}

.page-about__btn-primary:hover {
  background-color: #e0b800;
  color: #000000;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  margin: 10px;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #333333; /* Dark text for gold background */
}

/* Mission Section */
.page-about__mission-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
}

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

.page-about__value-card {
  background-color: #f0f0f0; /* Light gray card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-10px);
}

.page-about__value-title {
  font-size: 1.5em;
  color: #8B0000; /* Dark red title */
  margin-bottom: 15px;
}

.page-about__value-text {
  font-size: 1em;
  color: #555555;
}

/* History Section */
.page-about__history-section {
  padding: 60px 0;
  background-color: #8B0000; /* Dark red background */
  color: #ffffff; /* White text */
}

.page-about__history-section .page-about__section-title {
  color: #FFD700; /* Gold title on dark red background */
}

.page-about__history-section .page-about__description {
  color: #f0f0f0;
}

.page-about__history-section a {
  color: #FFD700; /* Gold links */
  text-decoration: underline;
}

.page-about__history-section a:hover {
  color: #e0b800;
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-about__history-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background */
}

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

.page-about__commitment-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-about__commitment-icon {
  width: 250px; /* Larger icons as per requirement, min 200px */
  height: 187px; /* Maintain aspect ratio for 400x300 source */
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-about__commitment-heading {
  font-size: 1.4em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-about__commitment-text {
  font-size: 0.95em;
  color: #555555;
}

.page-about__commitment-text a {
  color: #8B0000;
  text-decoration: underline;
}

.page-about__commitment-text a:hover {
  color: #FFD700;
}

/* Team Section */
.page-about__team-section {
  padding: 60px 0;
  background-color: #FFD700; /* Gold background */
  color: #333333; /* Dark text for gold background */
}

.page-about__team-section .page-about__section-title {
  color: #8B0000; /* Dark red title on gold background */
}

.page-about__team-section .page-about__description {
  color: #333333;
}

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

.page-about__team-member {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__team-avatar {
  width: 250px; /* Large avatars */
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid #8B0000; /* Dark red border */
}

.page-about__member-name {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.95em;
  color: #666666;
}

/* Vision Section */
.page-about__vision-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-about__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: #8B0000; /* Dark red background */
  color: #ffffff; /* White text */
}

.page-about__faq-section .page-about__section-title {
  color: #FFD700; /* Gold title */
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question bar */
  transition: background-color 0.3s ease;
}

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

.page-about__faq-heading {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700; /* Gold toggle icon */
  transition: transform 0.3s ease;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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 20px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

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

.page-about__faq-answer a {
  color: #FFD700; /* Gold links in FAQ answer */
  text-decoration: underline;
}

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

/* Responsive Images, Videos, Buttons */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about video,
.page-about__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All image and video containers */
.page-about__hero-image-wrapper,
.page-about__image-wrapper,
.page-about__commitment-item,
.page-about__team-member,
.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper,
.page-about__values-grid,
.page-about__commitment-grid,
.page-about__team-grid,
.page-about__cta-wrapper,
.page-about__faq-list,
.page-about__content-flex {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* Ensure content area images are not too small */
.page-about__history-image,
.page-about__commitment-icon,
.page-about__team-avatar {
  min-width: 200px;
  min-height: 200px;
}

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

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

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

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

  .page-about__intro-text {
    font-size: 1.1em;
  }

  .page-about__hero-section {
    min-height: 400px;
  }

  .page-about__content-flex {
    flex-direction: column;
  }

  .page-about__text-block,
  .page-about__image-wrapper {
    min-width: unset;
    width: 100%;
  }

  /* Force responsive images, videos, buttons */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__commitment-item,
  .page-about__team-member,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__values-grid,
  .page-about__commitment-grid,
  .page-about__team-grid,
  .page-about__cta-wrapper,
  .page-about__faq-list,
.page-about__content-flex {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for sections */
  .page-about__mission-section,
  .page-about__history-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__vision-section,
  .page-about__faq-section {
    padding: 30px 0;
  }

  .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;
    margin: 10px 0;
  }

  .page-about__cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Ensure hero section has header offset on mobile */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}