/* style/about.css */

/* --- General Styles for .page-about scope --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: #FFFFFF; /* Default body background is white */
}

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

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

.page-about__section-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-about__sub-title,
.page-about__card-title,
.page-about__timeline-year {
    font-size: 1.8em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-about__text,
.page-about__card-text {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 15px;
}

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

.page-about__image--center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Approximately 10px top padding if body already has --header-offset */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #017439, #005f2f);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.page-about__hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size controlled by clamp */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    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: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
    box-shadow: 0 5px 15px rgba(195, 8, 8, 0.4);
}

.page-about__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(195, 8, 8, 0.6);
}

.page-about__btn-secondary {
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2f;
    border-color: #005f2f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Dark Section (Contrast) --- */
.page-about__dark-section {
    background: #017439;
    color: #FFFFFF;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title,
.page-about__dark-section .page-about__card-title,
.page-about__dark-section .page-about__timeline-year {
    color: #FFFFFF;
}

.page-about__dark-section .page-about__text {
    color: #f0f0f0;
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision .page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

/* --- Why Choose Section --- */
.page-about__why-choose .page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.page-about__feature-card .page-about__card-title {
    color: #017439;
}

/* --- History Section --- */
.page-about__timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: #FFFFFF;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.page-about__timeline-item {
    width: 50%;
    padding: 20px 40px;
    position: relative;
    text-align: right;
    box-sizing: border-box;
}

.page-about__timeline-item:nth-child(even) {
    text-align: left;
    margin-left: 50%;
}

.page-about__timeline-item:nth-child(odd) {
    margin-right: 50%;
}

.page-about__timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #C30808;
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
    right: -10px;
    transform: translateX(50%);
}

.page-about__timeline-item:nth-child(even)::before {
    left: -10px;
    transform: translateX(-50%);
}

/* --- Commitment Section --- */
.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: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.page-about__commitment-item .page-about__card-title {
    color: #017439;
}

/* --- CTA Section --- */
.page-about__cta-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, #017439, #005f2f);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__cta-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
}

.page-about__image--cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 1;
    border-radius: 0;
    box-shadow: none;
}

.page-about__cta-group--center {
    margin-top: 40px;
}

/* --- FAQ Section --- */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

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

.page-about__faq-item:not([open]) .page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 2000px;
    transition: max-height 0.3s ease-in;
}

/* --- Responsive Design (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .page-about__content-container {
        padding: 0 15px;
    }

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

    .page-about__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }

    .page-about__mission-vision .page-about__grid {
        grid-template-columns: 1fr;
    }

    .page-about__timeline::before {
        left: 20px;
        transform: translateX(0);
    }

    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        text-align: left;
        margin-left: 0;
        padding-right: 20px;
    }

    .page-about__timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .page-about__timeline-item:nth-child(odd)::before,
    .page-about__timeline-item:nth-child(even)::before {
        left: 10px;
        right: auto;
        transform: translateX(-50%);
    }
}


/* --- Responsive Design (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 2em !important;
        margin-bottom: 30px !important;
    }

    .page-about__sub-title,
    .page-about__card-title,
    .page-about__timeline-year {
        font-size: 1.5em !important;
        margin-bottom: 15px !important;
    }

    .page-about__text,
    .page-about__card-text {
        font-size: 1em !important;
    }

    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }

    .page-about__hero-image-wrapper {
        margin-bottom: 20px !important;
    }

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

    .page-about__hero-content {
        padding: 0 15px !important;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em) !important;
        margin-bottom: 15px !important;
    }

    .page-about__subtitle {
        font-size: 1.1em !important;
        margin-bottom: 25px !important;
    }

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

    .page-about__content-container,
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-content,
    .page-about__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 按钮与按钮容器 */
    .page-about__cta-group {
        flex-direction: column !important;
        gap: 15px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .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 !important;
        font-size: 1em !important;
    }

    /* 其他内容模块 */
    .page-about__mission-vision .page-about__grid {
        gap: 30px !important;
    }

    .page-about__why-choose .page-about__features-grid,
    .page-about__commitment-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-about__timeline::before {
        left: 15px !important;
    }

    .page-about__timeline-item {
        padding-left: 40px !important;
    }

    .page-about__timeline-item:nth-child(odd)::before,
    .page-about__timeline-item:nth-child(even)::before {
        left: 5px !important;
    }

    .page-about__faq-question {
        font-size: 1.1em !important;
        padding: 15px 20px !important;
    }

    .page-about__faq-answer {
        font-size: 0.95em !important;
        padding: 0 20px 15px 20px !important;
    }
}