/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Assuming body handles the actual background */
}

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

.page-about__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure no horizontal overflow */
}

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

.page-about__section-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping on desktop */
    box-sizing: border-box;
}

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

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

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

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

.page-about__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-about a {
    color: #26A9E0;
    text-decoration: none;
}

.page-about a:hover {
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 0;
    background-color: transparent; /* No specific background here */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for aesthetic reasons */
    min-width: 200px;
    min-height: 200px;
}

.page-about__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background for text contrast */
    border-radius: 8px;
    margin-top: -80px; /* Overlap image slightly for design */
    z-index: 1; /* Ensure content is above image if any overlap */
}

.page-about__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-about__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- General Introduction Section --- */
.page-about__general-introduction {
    background-color: rgba(255, 255, 255, 0.05); /* Light transparent background for contrast */
    padding-top: 80px;
    padding-bottom: 80px;
}

/* --- Mission & Values Section --- */
.page-about__mission-values {
    background-color: transparent;
}

.page-about__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__container--reverse {
    flex-direction: row-reverse;
}

.page-about__content-block,
.page-about__image-block {
    flex: 1;
}

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

.page-about__values-list,
.page-about__advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__value-item,
.page-about__advantage-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #26A9E0;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #f0f0f0;
}

.page-about__value-item strong,
.page-about__advantage-item strong {
    color: #26A9E0;
}

/* --- Why Choose Section --- */
.page-about__why-choose {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* --- Our Commitment Section --- */
.page-about__our-commitment {
    background-color: transparent;
}

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

.page-about__commitment-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f0f0f0;
}

.page-about__commitment-card .page-about__image {
    width: 100%;
    max-width: 400px; /* Limit image width in card */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__card-description {
    font-size: 1em;
    text-align: justify;
}

/* --- Our Team Section --- */
.page-about__our-team {
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- FAQ Section --- */
.page-about__faq-section {
    background-color: transparent;
    padding-bottom: 80px;
}

.page-about__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #f0f0f0;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> */
}

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

.page-about__faq-item summary::marker {
    display: none;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−";
}

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: #cccccc;
}

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

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

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

    .page-about__hero-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }

    .page-about__container--flex {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__container--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }

    .page-about__commitment-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }
    .page-about__hero-image {
        max-height: 300px;
    }
    .page-about__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
    }
    .page-about__hero-title {
        font-size: clamp(1.5em, 6vw, 2.5em) !important;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin: 0 auto;
    }

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-block,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__container {
        padding: 0; /* Remove horizontal padding here as it's added to sub-elements */
    }

    /* 按钮与按钮容器 */
    .page-about__btn,
    .page-about__btn--primary,
    .page-about__btn--secondary,
    .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-buttons,
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* 其他内容模块 */
    .page-about__value-item,
    .page-about__advantage-item {
        padding: 12px 15px;
        margin-bottom: 10px;
    }

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

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