/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css defines body background */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand color for titles */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__section-title--light {
    color: #FFFFFF;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Ensure content block is below image block */
    align-items: center;
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 40px;
    background-color: #f0f8ff; /* Light background for hero */
    overflow: hidden;
}

.page-about__hero-content {
    max-width: 900px;
    padding: 20px;
    text-align: center;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-about__main-title {
    font-weight: bold;
    color: #26A9E0;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 60ch; /* Restrict width to avoid overly long lines */
    margin: 0 auto 20px auto;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 70ch; /* Restrict width for readability */
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit overall width for aesthetics */
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-about__btn-primary:hover {
    background-color: #1a7fb4;
    border-color: #1a7fb4;
}

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

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-top: 40px;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.page-about__mission-vision {
    background-color: #FFFFFF;
}

.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

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

.page-about__text-block {
    flex: 1;
    padding: 20px;
}

.page-about__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Core Values Section */
.page-about__core-values {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
}

.page-about__value-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-weight: bold;
}

/* Why Choose Section */
.page-about__why-choose {
    background-color: #F8F8F8;
}

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

.page-about__feature-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
}

.page-about__feature-icon {
    width: 100%;
    max-width: 250px; /* Feature icons can be smaller than main content images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

/* Commitment Section */
.page-about__commitment {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-about__commitment-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-about__commitment-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-weight: bold;
}

/* Team Section */
.page-about__team {
    background-color: #FFFFFF;
}

/* Contact CTA Section */
.page-about__contact-cta {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 80px 0;
}

.page-about__contact-content {
    max-width: 800px;
}

.page-about__contact-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f8ff;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #F8F8F8;
}

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

.page-about__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-about__faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-about__faq-item summary::marker {
    display: none;
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #555555;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X */
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1em;
    color: #555555;
    line-height: 1.6;
}

.page-about__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__hero-content {
        max-width: 800px;
    }
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__content-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-about__content-grid--reverse {
        flex-direction: column;
    }
    .page-about__text-block {
        padding: 0;
    }
    .page-about__image-wrapper {
        margin-top: 30px;
    }
    .page-about__values-grid,
    .page-about__features-grid,
    .page-about__commitment-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-about__contact-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body padding-top from shared.css */
        padding-bottom: 30px;
        flex-direction: column;
    }
    .page-about__hero-content {
        padding: 15px;
    }
    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 15px;
        padding: 0 15px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    .page-about__hero-image-wrapper {
        margin-top: 30px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-about__section,
    .page-about__container,
    .page-about__content-grid,
    .page-about__image-wrapper,
    .page-about__values-grid,
    .page-about__features-grid,
    .page-about__commitment-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.4em;
    }
    .page-about p {
        font-size: 1em;
    }

    /* 按钮与按钮容器 */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    .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: 12px 20px;
        font-size: 1em;
    }

    /* Other content modules */
    .page-about__content-grid {
        gap: 30px;
        margin-bottom: 40px;
    }
    .page-about__values-grid,
    .page-about__features-grid,
    .page-about__commitment-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 25px;
    }
    .page-about__value-card,
    .page-about__feature-item,
    .page-about__commitment-item {
        padding: 25px;
    }
    .page-about__feature-icon {
        max-width: 200px;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        font-size: 1em;
        padding: 0 15px 15px 15px;
    }
    .page-about__contact-cta {
        padding: 60px 0;
    }
    .page-about__contact-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
}