/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* A light background, assuming shared.css sets --secondary-color to light */
}

/* Container for content sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff; /* White text for dark background */
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
}

.page-about__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height of the hero image container */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the container */
    max-width: 100%; /* Ensure image is responsive */
    height: 675px; /* HTML width=1200 height=675 (16:9) */
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 15px;
    z-index: 1; /* Ensure content is above any background elements */
}

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

.page-about__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-about__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: #a30707;
    color: #ffffff;
}

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

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-about__btn-tertiary {
    background: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 15px;
}

.page-about__btn-tertiary:hover {
    background: #005a2e;
    border-color: #005a2e;
}

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

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

.page-about__section--introduction {
    background-color: #ffffff;
}

.page-about__section--philosophy {
    background-color: #017439;
    color: #ffffff;
}

.page-about__section--products {
    background-color: #f8f8f8;
}

.page-about__section--why-choose {
    background-color: #ffffff;
}

.page-about__section--future {
    background-color: #017439;
    color: #ffffff;
}

.page-about__section--faq {
    background-color: #f8f8f8;
}

.page-about__section--contact {
    background-color: #ffffff;
    text-align: center;
}

/* Titles and Text Blocks */
.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from section */
}

.page-about__sub-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit; /* Inherit color from section */
}

.page-about__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
    color: inherit; /* Inherit color from section */
}

/* Image styles within content */
.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section Styling (DETAILS/SUMMARY based) */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
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; /* Hide default marker */
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #333333;
}
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: #f5f5f5;
  color: #017439;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-about__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #017439; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Adjust size */
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}
.page-about__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 42px;
    }
    .page-about__description {
        font-size: 17px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__sub-title {
        font-size: 22px;
    }
    .page-about__text-block {
        font-size: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-tertiary {
        padding: 12px 24px;
        font-size: 15px;
    }
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 16px 18px;
    }
    .page-about__faq-qtext {
        font-size: 17px;
    }
    .page-about__faq-toggle {
        font-size: 26px;
        width: 30px;
    }
    .page-about__faq-answer {
        padding: 0 18px 18px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-about__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        height: auto !important; /* Adjust height automatically */
        max-height: 300px; /* Limit max height on mobile */
    }
    .page-about__main-title {
        font-size: clamp(28px, 8vw, 38px); /* Responsive font size */
        margin-bottom: 10px;
    }
    .page-about__description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    /* 通用图片与容器 */
    .page-about__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Remove min-width for mobile */
        min-height: unset; /* Remove min-height for mobile */
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-about__section-title {
        font-size: clamp(24px, 7vw, 30px); /* Responsive font size */
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-about__text-block {
        font-size: 15px;
        line-height: 1.6;
    }

    /* 按钮与按钮容器 */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-tertiary {
        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;
        font-size: 15px;
    }
    .page-about__btn-tertiary {
        margin-top: 10px;
    }

    /* FAQ Section */
    details.page-about__faq-item {
        margin-bottom: 10px;
    }
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        margin-left: 10px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }
}