/* style/about.css */

/* Custom Properties (for colors based on provided palette) */
:root {
    --g088-primary: #11A84E; /* 主色调 */
    --g088-secondary: #22C768; /* 辅助色 */
    --g088-bg-dark: #08160F; /* 背景 */
    --g088-card-bg: #11271B; /* Card B G */
    --g088-text-main: #F2FFF6; /* Text Main */
    --g088-text-secondary: #A7D9B8; /* Text Secondary */
    --g088-border: #2E7A4E; /* 边框 */
    --g088-glow: #57E38D; /* Glow */
    --g088-gold: #F2C14E; /* Gold */
    --g088-divider: #1E3A2A; /* Divider */
    --g088-deep-green: #0A4B2C; /* Deep Green */
    --g088-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* 按钮 */
}

/* Base styles for the page-about scope */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--g088-text-main); /* Default text color for dark background */
    background-color: var(--g088-bg-dark); /* Ensure background is dark as per palette */
}

.page-about a {
    color: var(--g088-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about a:hover {
    color: var(--g088-gold);
}

/* Sections */
.page-about__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-about__dark-section {
    background-color: var(--g088-card-bg); /* Use card background for dark sections */
    color: var(--g088-text-main);
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-about__hero-content {
    position: relative; 
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(8, 22, 15, 0.85); /* Slightly transparent dark background for readability */
    border-radius: 8px;
    margin-top: -80px; 
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}


.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--g088-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 1px;
}

.page-about__description {
    font-size: 1.2rem;
    color: var(--g088-text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Section Titles */
.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--g088-gold);
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

/* Content Grid */
.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

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

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: var(--g088-text-main);
}

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

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Feature Cards */
.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-color: var(--g088-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid var(--g088-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.page-about__feature-icon {
    width: 100%; /* Ensure card images are large */
    height: auto;
    max-height: 250px; /* Limit image height within card */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-about__feature-title {
    font-size: 1.5rem;
    color: var(--g088-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-text {
    color: var(--g088-text-secondary);
}

/* Commitments Grid */
.page-about__commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__commitment-item {
    background-color: var(--g088-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    text-align: left;
    border: 1px solid var(--g088-border);
}

.page-about__commitment-title {
    font-size: 1.4rem;
    color: var(--g088-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__commitment-text {
    color: var(--g088-text-secondary);
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.page-about__cta-buttons--center {
    justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    min-width: 180px;
}

.page-about__btn-primary {
    background: var(--g088-btn-gradient);
    color: var(--g088-text-main); /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--g088-primary); /* Primary color text for secondary button */
    border: 2px solid var(--g088-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background-color: var(--g088-primary);
    color: var(--g088-text-main); /* White text on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.page-about__text-center {
    text-align: center;
    color: var(--g088-text-secondary);
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

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

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

.page-about__faq-item {
    background-color: var(--g088-card-bg);
    border: 1px solid var(--g088-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--g088-gold);
    cursor: pointer;
    background-color: var(--g088-card-bg);
    border-bottom: 1px solid var(--g088-divider);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--g088-deep-green);
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--g088-gold);
}

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

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--g088-text-secondary);
    line-height: 1.6;
}

.page-about__faq-answer p {
    margin-top: 15px;
}

/* Details element specific styles for FAQ */
.page-about__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__content-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-about__content-grid--reverse {
        flex-direction: column; /* Also column for reverse on tablet */
    }
    .page-about__image-block {
        order: -1; /* Image appears above text on tablet for both grids */
    }
}

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

    .page-about__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__commitments-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .page-about__feature-card,
    .page-about__commitment-item {
        padding: 20px;
    }

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

    .page-about__commitment-title {
        font-size: 1.2rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for mobile buttons */
        min-width: unset; /* Remove min-width for full flexibility */
    }

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

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-block,
    .page-about__text-block,
    .page-about__feature-card,
    .page-about__commitment-item,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 0;
        padding-right: 0;
    }

    .page-about__hero-image-wrapper {
        max-height: 300px; /* Adjust hero image height for mobile */
    }

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

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

    /* Video responsiveness (if any, though none currently in HTML) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

/* Ensure content area images are not smaller than 200px (already handled within .page-about__image and .page-about__feature-icon) */