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

/* General Styles for the About Page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body background is light, will adjust if needed */
}

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

/* Sections */
.page-about__section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

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

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

.page-about__heading {
  font-size: 36px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__dark-section .page-about__heading {
  color: #ffffff;
}

.page-about__sub-heading {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #555555;
}

.page-about__dark-section .page-about__sub-heading {
  color: #f0f0f0;
}

/* Flexbox Layouts */
.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

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

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

.page-about__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

/* Cards */
.page-about__card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

.page-about__dark-section .page-about__card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark section */
  color: #ffffff;
  box-shadow: none;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about__card-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__dark-section .page-about__card-title {
  color: #ffffff;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1e87c2; /* Slightly darker blue */
  border-color: #1e87c2;
}

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

.page-about__btn-secondary:hover {
  background-color: #f0f8ff; /* Light blue */
  color: #1e87c2;
  border-color: #1e87c2;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #26A9E0; /* Fallback background color */
}

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

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

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

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

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Feature List */
.page-about__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.page-about__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about__feature-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #f0f8ff;
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Changes '+' to 'x' or '-' */
}

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

.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-bottom: 10px;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 40px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__heading {
    font-size: 32px;
  }
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__content-flex--reverse {
    flex-direction: column; /* Keep column for reverse on smaller screens */
  }
  .page-about__image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__sub-heading {
    font-size: 16px;
  }
  .page-about__card {
    padding: 25px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__image,
  .page-about__hero-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-wrapper,
  .page-about__hero-image-wrapper,
  .page-about__content-flex,
  .page-about__content-grid,
  .page-about__feature-list,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__faq-question,
  .page-about__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure containers don't cause horizontal scroll */
  }
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 28px;
  }
  .page-about__hero-description {
    font-size: 15px;
  }
  .page-about__heading {
    font-size: 24px;
  }
  .page-about__faq-question {
    font-size: 16px;
  }
  .page-about__faq-answer p {
    font-size: 14px;
  }
}

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