/* style/about.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark-section: #26A9E0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* General container and text styles */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

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

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

.page-about__dark-section .page-about__text-block {
    color: var(--text-light);
}

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

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-about__hero-content {
    text-align: center;
    padding: 20px 20px;
    max-width: 900px;
    margin-top: 30px;
    z-index: 1;
}

.page-about__main-title {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-about__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-about__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Image and Text Blocks */
.page-about__image-and-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-about__image-and-text-block.page-about__reverse-layout {
    flex-direction: row-reverse;
}

.page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-about__text-content {
    flex: 1;
}

.page-about__image-content {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.page-about__full-width-image {
    margin-top: 50px;
    max-height: 500px;
    overflow: hidden;
}

.page-about__full-width-image .page-about__image-content {
    border-radius: 0;
}

/* Value List */
.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-about__value-item {
    background-color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.05em;
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-about__dark-section .page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-left-color: var(--secondary-color);
}

/* Features Grid */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__feature-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-about__dark-section .page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

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

.page-about__feature-icon {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__dark-section .page-about__feature-title {
    color: var(--text-light);
}

.page-about__feature-description {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
}

.page-about__dark-section .page-about__feature-description {
    color: var(--text-light);
}

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

.page-about__faq-item {
    background-color: var(--secondary-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--text-dark);
}

.page-about__dark-section .page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
    list-style: none;
    position: relative;
}

.page-about__dark-section .page-about__faq-question {
    color: var(--text-light);
}

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

.page-about__faq-qtext {
    flex-grow: 1;
    padding-right: 10px;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.0em;
    color: var(--text-dark);
}

.page-about__dark-section .page-about__faq-answer {
    color: var(--text-light);
}

.page-about__faq-image {
    margin-top: 50px;
    text-align: center;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.page-about__contact-cta-section .page-about__section-title {
    color: var(--primary-color);
}

/* Global image responsiveness */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2em;
    }

    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__hero-content {
        padding: 20px;
    }

    .page-about__main-title {
        font-size: 2.8em;
    }

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

    .page-about__image-and-text-block {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__image-and-text-block.page-about__reverse-layout {
        flex-direction: column;
    }

    .page-about__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-about__container {
        padding: 20px 15px;
    }

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

    .page-about__hero-image-wrapper {
        max-height: 300px;
    }

    .page-about__hero-content {
        margin-top: 20px;
    }

    .page-about__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-about__sub-title {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-about__text-block {
        font-size: 1em;
        margin-bottom: 15px;
    }

    /* 通用图片与容器 */
    .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__image-wrapper {
        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 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;
        margin: 5px 0;
    }

    .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;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }

    /* 其他内容模块 */
    .page-about__feature-card {
        padding: 20px;
    }

    .page-about__feature-title {
        font-size: 1.3em;
    }

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

    .page-about__faq-answer {
        padding: 0 15px 15px;
    }

    .page-about__value-item {
        padding: 10px 15px;
        font-size: 1em;
    }
}

/* Ensure no filter is used for images */
.page-about img {
    filter: none; /* Explicitly disable any filter */
}

/* Custom darken function for hover states */
/* Note: Sass/Less darken() is not native CSS. Using a fixed darker color or rgba for simplicity. */
/* For example, for #EA7C07, a darker shade could be #D46F00 */
.page-about__btn-primary:hover {
    background-color: #D46F00;
    border-color: #D46F00;
}