/* Base styles for the About Us page, ensuring dark background and light text for contrast */
.page-about {
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FF8C1A 0%, #D96800 100%);
}

.page-about__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

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

.page-about__hero-content {
  padding: 40px 15px;
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF3E6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF3E6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFB04D; /* Glow */
}

.page-about__subtitle {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FF8C1A;
}

.page-about__content-wrapper {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
}

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

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

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

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__grid {
  display: grid;
  gap: 30px;
}

.page-about__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-about__card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-about__card p {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__advantage-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
}

.page-about__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}

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;
}

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: rgba(255, 140, 26, 0.1);
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C1A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* Media Queries for Responsiveness */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 30px 15px;
  }

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

  .page-about__description {
    font-size: 17px;
  }

  .page-about__section-title {
    font-size: clamp(22px, 3.2vw, 36px);
  }

  .page-about__subtitle {
    font-size: clamp(18px, 2.3vw, 26px);
  }

  .page-about__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-about__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .page-about__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
  }

  .page-about__hero-image img {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-content {
    padding: 20px 15px;
  }

  .page-about__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust for smaller screens */
    margin-bottom: 15px;
    text-align: center;
  }

  .page-about__description {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
  }

  .page-about__section-title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 30px;
  }

  .page-about__subtitle {
    font-size: clamp(18px, 5vw, 24px);
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-about__content-wrapper {
    flex-direction: column; /* Stack content vertically */
    gap: 20px;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column; /* Maintain column stack */
  }

  .page-about__text-block, .page-about__image-block {
    flex: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 产品展示图区域 - 通用图片与容器 */
  .page-about__grid--3-cols,
  .page-about__grid--2-cols {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card img,
  .page-about__image-block img,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

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

  .page-about__card p {
    font-size: 15px;
  }

  .page-about__advantage-item {
    padding: 20px;
  }

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

  /* 按钮与按钮容器 */
  .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__hero-content .page-about__btn-primary {
    margin: 0 auto;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }

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

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

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  .page-about__faq-answer p {
    font-size: 14px;
  }
}