/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Main text color from custom palette */
  background-color: #140C0C; /* Background color from custom palette */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F3C54D; /* Gold color for section titles */
  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, #FFB04A 0%, #D86A14 100%);
  border-radius: 2px;
}

.page-about__section-description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #FFF1E8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__card {
  background: #2A1212; /* Card BG from custom palette */
  color: #FFF1E8; /* Text Main from custom palette */
  border: 1px solid #6A1E1E; /* Border from custom palette */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-about__dark-section {
  background-color: #140C0C; /* Explicitly use dark background for contrast */
  color: #FFF1E8;
  padding: 60px 0;
}

.page-about__text-link {
  color: #FFB04A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: #F3C54D;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #140C0C;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  position: relative; /* Ensure content is above any background effects */
  z-index: 2; /* Ensure content is above image if any overlap */
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
  font-weight: 900;
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 18px;
  color: #FFF1E8;
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #140C0C; /* Dark text for gradient button */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.page-about__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold text for secondary button */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-about__btn-secondary:hover {
  background: rgba(243, 197, 77, 0.1);
  color: #FFB04A;
  border-color: #FFB04A;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
}

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

.page-about__mission-card, .page-about__vision-card {
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-about__mission-card p, .page-about__vision-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 80px 0;
  background-color: #140C0C;
}

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

.page-about__advantage-item {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__advantage-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-about__advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-about__advantage-item ul {
  list-style: disc inside;
  margin-top: 15px;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-about__advantage-item li {
  margin-bottom: 5px;
  color: #FFF1E8;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
}

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

.page-about__history-item {
  padding: 30px;
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-about__history-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-about__history-item ul {
  list-style: disc inside;
  margin-top: 15px;
  padding-left: 20px;
}

.page-about__history-item li {
  margin-bottom: 8px;
  color: #FFF1E8;
}

.page-about__history-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #140C0C;
}

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

.page-about__team-member {
  padding: 25px;
}

.page-about__team-image {
  width: 100%;
  height: auto;
  max-width: 200px; /* Smaller for team members */
  max-height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #FFB04A;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__member-name {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 16px;
  color: #FFF1E8;
}

/* Responsibility Section */
.page-about__responsibility-section {
  padding: 80px 0;
}

.page-about__responsibility-content p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__responsibility-cta {
  display: block;
  margin: 0 auto;
  max-width: 300px;
  text-align: center;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border from custom palette */
  overflow: hidden;
  background: #2A1212; /* Card BG from custom palette */
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3C54D; /* Gold color for questions */
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #3A1A1A; /* Slightly lighter card background on hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D;
}
.page-about__faq-toggle {
  font-size: 28px; /* Slightly larger toggle */
  font-weight: bold;
  color: #FFB04A; /* Gold color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #1F0F0F; /* Slightly darker background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px for general adjustments) */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 15px;
  }

  .page-about__section-title {
    font-size: 32px;
  }

  .page-about__section-description {
    font-size: 16px;
  }

  .page-about__card-title {
    font-size: 22px;
  }

  .page-about__advantage-title {
    font-size: 20px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 6vw, 42px);
  }

  .page-about__intro-text {
    font-size: 17px;
  }

  .page-about__btn-primary, .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-about__hero-image-wrapper {
    max-height: 50vh;
  }

  .page-about__team-image {
    max-width: 150px;
    max-height: 150px;
  }
}

/* Mobile (max-width: 768px) - Must contain all required sections */
@media (max-width: 768px) {
  .page-about__container,
  .page-about__hero-content,
  .page-about__mission-vision-section .page-about__container,
  .page-about__advantages-section .page-about__container,
  .page-about__history-section .page-about__container,
  .page-about__team-section .page-about__container,
  .page-about__responsibility-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__contact-cta-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px; /* Rely on body for header offset */
    min-height: auto;
  }
  .page-about__hero-image-wrapper {
    max-height: 40vh;
  }
  .page-about__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio or flex to dictate */
    width: 100% !important;
    height: auto !important;
  }
  .page-about__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust clamp for smaller screens */
    margin-bottom: 15px;
  }
  .page-about__intro-text {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-about__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  /* 按钮与按钮容器 */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-group,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important; /* Ensure buttons wrap */
    gap: 10px;
  }

  /* 通用图片与容器 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__content-grid,
  .page-about__advantages-grid,
  .page-about__history-content,
  .page-about__team-grid,
  .page-about__responsibility-grid {
    grid-template-columns: 1fr; /* Single column layout for grids */
    gap: 20px;
  }

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

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

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__advantage-title,
  .page-about__history-title,
  .page-about__member-name {
    font-size: 20px;
  }

  .page-about__faq-qtext {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  /* No specific product grid for About Us, but ensure general grid behavior */
  /* No decoration main title + long text SEO area for About Us explicitly, but general text blocks are covered */
  .page-about__content-area p, .page-about__text-block p, .page-about__mission-card p, .page-about__vision-card p, .page-about__advantage-item p, .page-about__history-item p {
    font-size: 15px;
  }
}