/* style/about.css */

/* Variables from global config */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --bg-dark: #0A0A0A; /* Assuming this comes from shared.css or is the body background */
}

.page-about {
    color: var(--text-main); /* Default text color for the page, considering dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if main has its own background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* HERO Section */
.page-about__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    background-color: var(--card-bg); /* Use card background for hero section */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__cta-buttons--center {
    margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    min-width: 180px;
}

.page-about__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff; /* White text on gold gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.3);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--card-bg); /* Dark text on secondary color hover */
}

/* General Section Styling */
.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    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: var(--primary-color);
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Use card background for this section */
}

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

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

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

.page-about__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Core Values Section */
.page-about__core-values-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for better icon display */
    gap: 30px;
}

.page-about__value-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__value-icon {
    width: 200px; /* Enforce min 200px display size */
    height: 200px; /* Enforce min 200px display size */
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

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

.page-about__feature-card {
    background-color: var(--bg-dark); /* Darker background for feature cards */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.page-about__feature-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency, matching HTML attr */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-about__feature-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Commitment Section */
.page-about__commitment-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.page-about__commitment-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

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

.page-about__faq-item {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--card-bg);
    list-style: none; /* For details/summary */
    position: relative;
    transition: background-color 0.3s ease;
}

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

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

.page-about__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1); /* Subtle hover effect */
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to become an 'x' or similar */
}

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

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

.page-about__contact-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* General image styling for content areas to prevent overflow */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for responsiveness */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 0 25px;
    }

    .page-about__hero-content {
        padding: 0 25px;
    }

    .page-about__content-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

    .page-about__image-wrapper {
        order: -1; /* Image always on top in column layout */
    }

    .page-about__values-grid,
    .page-about__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .page-about__feature-image {
        height: 250px; /* Adjust height for tablet */
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

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

    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-about__container,
    .page-about__hero-content,
    .page-about__text-block,
    .page-about__image-wrapper,
    .page-about__value-card,
.page-about__features-grid, /* Added for product display area */
    .page-about__feature-card,
    .page-about__commitment-content,
    .page-about__faq-list,
    .page-about__contact-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding: 0 15px; /* Add padding to button container */
    }

    .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 button padding */
        min-width: unset; /* Remove min-width constraint */
    }

    /* 其他内容模块 */
    .page-about__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    .page-about__section-title::after {
        width: 60px;
        height: 3px;
    }

    .page-about__sub-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .page-about__mission-vision-section,
    .page-about__core-values-section,
    .page-about__why-choose-us-section,
    .page-about__commitment-section,
    .page-about__faq-section,
    .page-about__contact-section {
        padding: 40px 0; /* Adjust section padding */
    }

    .page-about__content-grid {
        margin-bottom: 40px;
    }

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

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

    .page-about__feature-image {
        height: 200px; /* Further adjust height for mobile */
    }

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

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

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