/* style/about.css */
/* 
  CSS样式隔离要求：
  - 所有CSS类名必须使用BEM命名规则：.page-about__element-name
  - 禁止使用后代选择器（如 .page-about .hero-section），必须使用BEM风格（如 .page-about__hero-section）
  - 禁止使用全局选择器（如 body, html, *）
  - 禁止修改共享组件样式（.shared-header, .shared-footer）
  - 样式作用域限制在 .page-about 内
  - 避免使用!important (除非在FAQ展开或移动端响应式强制覆盖时)
  - 避免使用全局重置样式
  - 图片颜色：禁止使用CSS filter改变图片颜色
*/

/* --- General Page Styles --- */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background #f4f4f4 */
  line-height: 1.6;
  background-color: #f4f4f4; /* Ensure consistency, though body background is from shared */
}

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

.page-about__section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__section-title {
  font-size: 36px;
  color: #000000; /* Black for titles on light background */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px 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;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #FFD700, #000000); /* Brand colors for background */
  color: #ffffff; /* White text on dark/gold 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;
  overflow: hidden; /* Ensure image doesn't overflow */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Inner border-radius for image itself */
}

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

.page-about__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__intro-paragraph {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons have a minimum width */
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background: #FFD700; /* Gold */
  color: #000000; /* Black text on gold for contrast */
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background: #e6c200; /* Darker gold */
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background: #FFD700;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision {
  background-color: #fcfcfc;
  padding: 80px 0;
}

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

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

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

.page-about__grid-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min- /* Ensure aspect ratio is not too wide/thin for content */
}

.page-about__grid-title {
  font-size: 24px;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__grid-item p {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us {
  background: #000000; /* Black background */
  color: #ffffff; /* White text on black */
  padding: 80px 0;
}

.page-about__why-choose-us .page-about__section-title {
  color: #FFD700; /* Gold title on black background */
}

.page-about__why-choose-us .page-about__section-description {
  color: #f0f0f0;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on black */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__feature-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-about__feature-title {
  font-size: 22px;
  color: #FFD700; /* Gold for feature titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-card p {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

/* --- Commitment Section --- */
.page-about__commitment {
  background-color: #fcfcfc;
  padding: 80px 0;
}

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

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

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

.page-about__commitment-title {
  font-size: 24px;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__commitment-item p {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

/* --- FAQ Section --- */
.page-about__faq {
  background-color: #f4f4f4;
  padding: 80px 0;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important as required, large enough value */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff; /* White background for answer */
  border-radius: 0 0 5px 5px;
  color: #333333; /* Dark text for answer */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #000000; /* Black background for question */
  border: 1px solid #000000;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* White text on black question background */
}

.page-about__faq-question:hover {
  background: #333333; /* Darker grey on hover */
  border-color: #333333;
}

.page-about__faq-question:active {
  background: #555555;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #FFD700; /* Gold for FAQ question titles */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #FFD700; /* Gold when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* --- Bottom CTA Section --- */
.page-about__cta-bottom {
  background: #000000; /* Black background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-bottom .page-about__section-title {
  color: #FFD700; /* Gold title */
}

.page-about__cta-bottom .page-about__section-description {
  color: #f0f0f0;
}

.page-about__cta-bottom .page-about__cta-group {
  margin-top: 40px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 42px;
  }
  .page-about__intro-paragraph {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__section-description {
    font-size: 17px;
  }
  .page-about__grid-title,
  .page-about__feature-title,
  .page-about__commitment-title {
    font-size: 22px;
  }
}

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

  /* --- Fixed header offset for mobile --- */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__intro-paragraph {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__cta-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%;
  }

  .page-about__cta-button {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  /* All images must be responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All image containers must be responsive */
  .page-about__hero-image,
  .page-about__grid-item,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-about__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-about__grid-item,
  .page-about__feature-card,
  .page-about__commitment-item {
    padding: 25px;
  }

  .page-about__grid-title,
  .page-about__feature-title,
  .page-about__commitment-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  /* FAQ mobile styles */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__intro-paragraph {
    font-size: 15px;
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none;
}