/* style/about.css */

/* Base styles for the about page */
.page-about {
  background-color: #121212; /* Dark background from body */
  color: #ffffff; /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__main-heading {
  font-size: 38px;
  color: #FFD700; /* Gold for main heading */
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__section-heading {
  font-size: 32px;
  color: #FFD700; /* Gold for section headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding-top: var(--header-offset) */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
  width: 100%;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__hero-image {
  width: 100%;
  height: 500px; /* Fixed height for hero image */
  overflow: hidden;
}

.page-about__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for this section */
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.page-about__content-card {
  background-color: #222222; /* Darker card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-about__content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
  font-size: 24px;
  color: #CC0000; /* Red for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__content-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__content-card img {
  width: 100%;
  height: 250px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #121212; /* Main dark background */
}

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

.page-about__feature-card {
  background-color: #222222;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: #ffffff;
}

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

.page-about__feature-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__feature-card img {
  width: 100%;
  height: 200px; /* Fixed height for feature card images */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
}

/* Core Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #CC0000; /* Brand red for this section */
  color: #ffffff; /* White text for contrast */
}

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

.page-about__value-item {
  background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent black on red */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-about__value-item:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

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

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

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  overflow: hidden;
  background-color: #222222; /* Darker background for FAQ item */
  color: #ffffff; /* Light text */
}

/* FAQ默认状态 - 答案隐藏 */
.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 25px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 25px !important;
  opacity: 1;
  background-color: #2c2c2c; /* Slightly different background when active */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #222222;
  border: 1px solid #333333; /* Darker border */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background-color: #2c2c2c;
  border-color: #444444;
}

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

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700; /* Gold for FAQ questions */
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #CC0000; /* Red for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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


/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-about__cta-section .page-about__container {
  text-align: center;
  background-color: #CC0000; /* Brand red for CTA container */
  border-radius: 15px;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.page-about__cta-section .page-about__section-heading {
  color: #FFD700; /* Gold heading on red background */
  margin-bottom: 20px;
}

.page-about__cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f8f8f8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #CC0000; /* Red text on gold button */
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__cta-button:hover {
  background-color: #e6c200; /* Darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-heading {
    font-size: 32px;
  }
  .page-about__section-heading {
    font-size: 28px;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  .page-about__hero-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section {
    padding-top: 0 !important; /* Ensure no double padding if shared provides it */
  }

  .page-about__hero-image {
    height: 300px;
  }

  .page-about__hero-image img,
  .page-about__content-card img,
  .page-about__feature-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-about__main-heading {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-about__intro-text {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-about__section-heading {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-about__content-grid,
  .page-about__feature-grid,
  .page-about__values-grid {
    gap: 20px;
  }
  .page-about__content-card,
  .page-about__feature-card,
  .page-about__value-item {
    padding: 20px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__feature-title {
    font-size: 18px;
  }
  .page-about__value-title {
    font-size: 19px;
  }

  /* FAQ Mobile */
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  /* CTA Mobile */
  .page-about__cta-section .page-about__container {
    padding: 40px 20px;
  }
  .page-about__cta-section p {
    font-size: 16px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* Ensure all images and their containers are responsive on mobile */
@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__introduction-section,
  .page-about__why-choose-us-section,
  .page-about__values-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* LOGO轮播项特殊要求 - 此页面没有LOGO轮播，但为了通用性，若有则应这样写 */
  /* .page-about__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  } */

  /* Ensure all buttons are responsive */
  .page-about__cta-button,
  .page-about__btn-primary, /* if used */
  .page-about__btn-secondary, /* if used */
  .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;
    padding-right: 15px;
  }
  
  .page-about__button-group, /* if used */
  .page-about__btn-container { /* if used */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}