/* style/about.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styling for page-about scope */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Ensure consistency with shared body background */
}

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

.page-about__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-about__grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

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

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

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.7;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden; /* Prevent image overflow */
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-about__hero-image-main {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__hero-title {
    font-size: 48px;
    color: #FFFFFF; /* White text for dark hero background */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.page-about__hero-description {
    font-size: 20px;
    color: #f0f0f0; /* Slightly off-white for contrast */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button adapts to width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-about__btn-primary {
    background: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: #d86c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
    background: #1e8abf;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-link {
    display: inline-block;
    padding: 10px 25px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-link:hover {
    background: #1e8abf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section specific styling */
.page-about__introduction-section,
.page-about__history-section,
.page-about__expertise-section,
.page-about__security-section,
.page-about__customer-service-section,
.page-about__vision-section,
.page-about__faq-section {
    padding: 80px 0;
    overflow: hidden; /* Prevent any internal overflow */
}

.page-about__dark-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title::after {
    background-color: #ffffff;
}

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

.page-about__light-bg {
    background-color: #f9f9f9; /* Light background for contrast */
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px; /* Adjusted padding for desktop */
    opacity: 0;
    background: #fdfdfd;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important ensure priority, value large enough for content */
    padding: 20px !important; /* Adjusted padding for desktop */
    opacity: 1;
    background: #fdfdfd;
    border-radius: 0 0 8px 8px;
}

/* Question style */
.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px; /* Adjusted padding for desktop */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
    background-color: #eaf7ff; /* Light blue when active */
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-item.active .page-about__faq-question h3 {
    color: #26A9E0;
}

/* Toggle icon */
.page-about__faq-toggle {
    font-size: 28px; /* Larger icon */
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px; /* Increased margin */
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Larger hit area */
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #26A9E0;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-about__grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__grid--reverse {
        flex-direction: column;
    }

    .page-about__image-block {
        order: -1; /* Image appears above text on smaller screens for default grid */
    }

    .page-about__grid--reverse .page-about__image-block {
        order: 0; /* Image appears below text on smaller screens for reverse grid */
    }

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

    .page-about__text-block p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__hero-image-main {
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .page-about__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-about__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"],
    .page-about__btn-link {
        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: 16px;
    }

    .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__container {
        padding: 30px 15px;
    }

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

    /* Mobile image adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile Adaptation */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 28px;
    }
}