/* style/about.css */

/* General styles for the about page content */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Assuming body is white from shared.css */
}

.page-about__section-spacing {
    padding: 60px 0;
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    background-color: #26A9E0; /* Fallback background for hero */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-about__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive H1 font size */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

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

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1a7fb8;
    border-color: #1a7fb8;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7fb8;
    border-color: #1a7fb8;
}

/* Dark Section Styling */
.page-about__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

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

/* Vision and Mission Grid */
.page-about__vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.page-about__card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    color: #333333;
    transition: transform 0.3s ease;
}

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

.page-about__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card-text {
    font-size: 1.05em;
    line-height: 1.6;
}

/* Core Values Grid (5 vertical cards) */
.page-about__values-grid {
    display: flex; /* Using flex for desktop to achieve the specific spacing/alignment */
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Adjust gap as needed */
    margin-top: 40px;
}

.page-about__value-card {
    flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
    max-width: calc(20% - 16px);
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    position: relative; /* For image overlay */
}

.page-about__value-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-about__value-card img {
    width: 100%;
    height: 350px; /* Fixed height for vertical image */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.page-about__value-card:hover img {
    transform: scale(1.05);
}

/* Product List */
.page-about__product-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.page-about__product-item {
    font-size: 1.1em;
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.page-about__product-item a {
    color: #26A9E0;
    font-weight: 600;
    text-decoration: none;
    margin-right: 10px;
}

.page-about__product-item a:hover {
    text-decoration: underline;
}

/* Support CTA */
.page-about__support-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* News Section */
.page-about__news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-about__news-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-about__news-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-about__news-image {
    width: 100%;
    height: 200px; /* Fixed height for news card images */
    object-fit: cover;
    display: block;
}

.page-about__news-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin: 15px 15px 10px;
    font-weight: 600;
}

.page-about__news-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin: 0 15px 15px;
    flex-grow: 1; /* Pushes date to bottom */
}

.page-about__news-date {
    font-size: 0.85em;
    color: #888888;
    margin: 0 15px 15px;
    display: block;
}

.page-about__view-all-button-container {
    text-align: center;
    margin-top: 40px;
}

/* Final CTA Buttons */
.page-about__final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__hero-content {
        padding: 30px 15px;
    }
    .page-about__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__vision-mission-grid {
        grid-template-columns: 1fr;
    }
    .page-about__values-grid {
        gap: 15px;
    }
    .page-about__value-card {
        flex: 0 0 calc(33.33% - 10px); /* 3 cards per row */
        max-width: calc(33.33% - 10px);
    }
    .page-about__product-list {
        grid-template-columns: 1fr;
    }
    .page-about__news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .page-about__news-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* General responsive for images and buttons */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section-spacing {
        padding: 40px 0;
    }
    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 1em;
    }

    /* Hero Section */
    .page-about__hero-section {
        min-height: 350px;
        padding-top: 10px !important; /* Keep small padding */
    }
    .page-about__hero-content {
        padding: 20px 10px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .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-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Core Values Grid (5 vertical cards) - adapting for mobile as required by the prompt "上二下三" */
    .page-about__values-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* Temporary grid for span */
        gap: 10px;
    }
    .page-about__value-card {
        padding-top: 0 !important; /* Reset any desktop specific padding-top */
        max-width: 100%;
    }
    /* Specific mobile layout: 2 cards on top (span 3 each), then 3 cards below (span 2 each) */
    .page-about__value-card:nth-child(1),
    .page-about__value-card:nth-child(2) {
        grid-column: span 3;
    }
    .page-about__value-card:nth-child(3),
    .page-about__value-card:nth-child(4),
    .page-about__value-card:nth-child(5) {
        grid-column: span 2;
    }
    .page-about__value-card img {
        height: 200px; /* Adjust height for mobile */
    }

    /* News Grid (4->2->1 columns) */
    .page-about__news-grid {
        grid-template-columns: 1fr; /* Single column for news cards */
        gap: 15px;
    }
    .page-about__news-image {
        height: 150px;
    }
    .page-about__news-title {
        font-size: 1.1em;
    }
    .page-about__news-excerpt {
        font-size: 0.9em;
    }
    .page-about__product-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .page-about__product-item {
        font-size: 1em;
        padding: 10px 15px;
    }
    .page-about__support-cta,
    .page-about__final-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}