/* style/about.css */

/* General page styling */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #ffffff; /* Explicitly set for clarity */
}

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

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

.page-about__section-title {
    font-size: 36px;
    color: #017439; /* Brand primary color for titles */
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-about__text-block a {
    color: #017439;
    text-decoration: underline;
}

.page-about__text-block a:hover {
    color: #005f2c;
}

/* 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 offset */
    background: linear-gradient(135deg, #e0ffe0, #ffffff); /* Light gradient background */
}

.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 {
    width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__hero-content h1 {
    font-size: 48px;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.page-about__hero-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.page-about__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

.page-about__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

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

/* Mission & Vision Section */
.page-about__mission-vision {
    background-color: #f9f9f9;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

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

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

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

.page-about__image-box--full-width {
    flex: none; /* Override flex: 1 for full width image */
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* History and Development Section */
.page-about__history-development {
    background-color: #017439; /* Brand primary color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-about__history-development .page-about__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-about__history-development .page-about__text-block {
    color: #f0f0f0;
}

.page-about__history-development .page-about__text-block a {
    color: #FFFF00; /* Yellow for links on dark background */
}

.page-about__history-development .page-about__text-block a:hover {
    color: #ffffff;
}

/* Core Values Section */
.page-about__core-values {
    background-color: #ffffff;
}

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

.page-about__value-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #017439;
}

.page-about__value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__value-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-description {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

/* Why Choose Section */
.page-about__why-choose {
    background-color: #f0f8f0; /* Light green background */
}

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

.page-about__advantage-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__advantage-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Commitment CSR Section */
.page-about__commitment-csr {
    background-color: #017439;
    color: #ffffff;
}

.page-about__commitment-csr .page-about__section-title {
    color: #ffffff;
}

.page-about__commitment-csr .page-about__text-block {
    color: #f0f0f0;
}

.page-about__commitment-csr .page-about__text-block a {
    color: #FFFF00; /* Yellow for links on dark background */
}

.page-about__commitment-csr .page-about__text-block a:hover {
    color: #ffffff;
}

/* Technology Platform Section */
.page-about__technology-platform {
    background-color: #ffffff;
}

/* Contact & Support Section */
.page-about__contact-support {
    background-color: #017439;
    color: #ffffff;
}

.page-about__contact-support .page-about__section-title {
    color: #ffffff;
}

.page-about__contact-support .page-about__text-block {
    color: #f0f0f0;
}

.page-about__contact-support .page-about__text-block a {
    color: #FFFF00; /* Yellow for links on dark background */
}

.page-about__contact-support .page-about__text-block a:hover {
    color: #ffffff;
}

.page-about__contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f9f9f9;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* FAQ容器样式 */
.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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 15px;
    opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px 15px !important;
    opacity: 1;
    background: #fdfdfd;
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #e0e0e0;
}

/* 问题样式 */
.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

/* 问题标题样式 */
.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: #333333;
}

/* 切换图标 */
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #017439;
    transform: rotate(45deg); /* Change to 'x' or rotate for 'minus' */
}

/* Call to Action Section */
.page-about__call-to-action {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 20px;
}

.page-about__cta-content .page-about__section-title {
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 25px;
}

.page-about__cta-content .page-about__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-about__cta-content .page-about__text-block a {
    color: #FFFF00; /* Yellow for links on dark background */
}

.page-about__cta-content .page-about__text-block a:hover {
    color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-content h1 {
        font-size: 40px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep consistent for smaller screens */
    }
    .page-about__text-content, .page-about__image-box {
        width: 100%;
    }
    .page-about__image-box img {
        margin-top: 30px;
    }
    .page-about__values-grid, .page-about__advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-content h1 {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        min-width: unset;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__hero-cta-buttons,
    .page-about__contact-buttons,
    .page-about__cta-content .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__image-box img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
    .page-about__call-to-action {
        padding: 50px 15px;
    }
    .page-about__cta-content .page-about__section-title {
        font-size: 30px;
    }
}