/* style/about.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --btn-login-color: #EA7C07;
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Default background for body is white */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-align: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-about__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* General Section Styles */
.page-about__mission-section,
.page-about__why-choose-section,
.page-about__responsibility-section,
.page-about__cta-section {
    padding: 60px 0;
    box-sizing: border-box;
}

.page-about__mission-section,
.page-about__responsibility-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-about__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-about__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-about__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherits from section, ensures contrast */
}

.page-about__mission-section .page-about__container,
.page-about__responsibility-section .page-about__container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-about__why-choose-section .page-about__container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    flex-direction: row-reverse; /* Image on left for this section */
}

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

.page-about__content-block p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Why Choose Section Specific */
.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-about__feature-item h3 {
    color: var(--text-light);
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-about__feature-item p {
    font-size: 0.95em;
    line-height: 1.6;
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-about__cta-container {
    padding: 40px 20px;
}

.page-about__cta-section .page-about__section-title {
    color: var(--text-light);
}

.page-about__cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

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

.page-about__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
    background-color: #1e87c2; /* Slightly darker primary */
    border-color: #1e87c2;
}

.page-about__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background-color: #e0e0e0; /* Light gray hover for secondary */
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-about__mission-section .page-about__container,
    .page-about__why-choose-section .page-about__container,
    .page-about__responsibility-section .page-about__container {
        flex-direction: column;
        text-align: center;
    }

    .page-about__content-block,
    .page-about__image-block {
        min-width: unset;
        width: 100%;
    }

    .page-about__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__hero-image-wrapper,
    .page-about__container,
    .page-about__content-block,
    .page-about__image-block,
    .page-about__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important;
    }

    .page-about__section-title {
        font-size: 1.6em;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        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 {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-about__feature-item {
        padding: 15px;
    }
}