/* style/about.css */

/* Custom Color Variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* General styles for page-about */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default light text for dark background */
    background-color: var(--bg-color); /* This will be #08160F from shared */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    margin-bottom: 40px;
    overflow: hidden;
    background-color: var(--card-bg); /* Dark green background */
}

.page-about__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for desktop hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-about__hero-content {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 0 15px;
}

.page-about__main-title {
    font-size: 3.5em; /* Using em as per prompt, but will clamp in media query if needed */
    color: var(--glow); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-about__intro-text {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* For button container responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-green) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary:hover {
    background: var(--glow);
    color: var(--card-bg); /* Dark text on glow background */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-about__btn-link {
    background: transparent;
    color: var(--glow);
    border: 1px solid var(--glow);
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-about__btn-link:hover {
    background: var(--glow);
    color: var(--card-bg);
    transform: translateY(-1px);
}

/* Dark Section styling */
.page-about__dark-section {
    background-color: var(--card-bg); /* #11271B */
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
    color: var(--text-main);
}

.page-about__dark-section .page-about__text-block p {
    color: var(--text-secondary);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    margin-bottom: 40px;
}

.page-about__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    margin-bottom: 60px;
}

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

.page-about__card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
}

.page-about__card-image {
    width: 100%;
    height: 250px; /* Consistent height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--glow);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Make paragraphs take available space */
}

/* History Section */
.page-about__history-section {
    margin-bottom: 60px;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

/* Responsibility Section */
.page-about__responsibility-section {
    margin-bottom: 60px;
}

/* Join Us Section */
.page-about__join-us-section {
    padding: 80px 0;
    text-align: center;
}

.page-about__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 40px;
}

/* --- Responsive Styles --- */

/* Mobile general styles */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .page-about__container {
        padding: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: 2em !important;
        margin-bottom: 30px !important;
    }

    .page-about__sub-title {
        font-size: 1.4em !important;
        margin-bottom: 15px !important;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* As per instruction */
        margin-bottom: 20px !important;
    }

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

    .page-about__hero-content {
        margin: 20px auto !important;
        padding: 0 10px !important;
    }

    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.8em) !important; /* Use clamp for H1 */
        margin-bottom: 15px !important;
    }

    .page-about__intro-text {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Grid layouts */
    .page-about__grid-two-cols,
    .page-about__content-grid {
        grid-template-columns: 1fr !important; /* Stack columns */
        gap: 30px !important;
    }

    .page-about__grid-cards {
        grid-template-columns: 1fr !important; /* Stack cards */
        gap: 20px !important;
    }

    .page-about__card {
        padding: 20px !important;
    }
    
    .page-about__card-image {
        height: 200px !important; /* Min 200px height for mobile cards */
    }

    /* Images general mobile adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Containers for images and other content */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__history-section,
    .page-about__responsibility-section,
    .page-about__join-us-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Reset padding for sections to be handled by container's default */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Specific overrides for containers that need internal padding */
    .page-about__hero-content {
         padding-left: 15px !important;
         padding-right: 15px !important;
    }
    .page-about__mission-vision-section .page-about__container,
    .page-about__why-choose-us-section .page-about__container,
    .page-about__history-section .page-about__container,
    .page-about__responsibility-section .page-about__container,
    .page-about__join-us-section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* --- Required @media (max-width: 768px) blocks for specific elements (even if not in HTML) --- */
/* 1. 顶区轮播 (Hero Carousel Section) - Minimal as not a carousel page */
@media (max-width: 768px) {
    .page-about__hero-carousel-section {
        padding-top: 10px !important; /* Ensure small top padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 2. 操作指引外框 + 五张 `team` 竖型卡 (Guide Box + Five Team Cards) - Minimal as not used on this page */
@media (max-width: 768px) {
    .page-about__guide-box {
        padding: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__guide-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns for mobile */
        gap: 15px !important;
    }
    .page-about__guide-card {
        padding-top: 0 !important; /* Reset specific top padding */
        grid-column: span 1 !important; /* Each card takes 1 column */
        max-width: 100% !important;
        flex: none !important;
    }
    .page-about__guide-card img {
        aspect-ratio: 250/350 !important;
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__guide-card--pos-1, .page-about__guide-card--pos-2, .page-about__guide-card--pos-3, .page-about__guide-card--pos-4, .page-about__guide-card--pos-5 {
        padding-top: 0 !important;
        grid-column: span 1 !important;
    }
}

/* 3. `home_content` 外框 (Home Content Box) - Minimal as not used on this page */
@media (max-width: 768px) {
    .page-about__home-content-box {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Full height for mobile */
        box-sizing: border-box !important;
        padding: 10px !important;
        border: none !important; /* Remove border for mobile if too heavy */
        box-shadow: none !important;
    }
    .page-about__home-content-inner {
        height: auto !important;
        overflow: visible !important; /* Show all content */
    }
}

/* 4. 博客卡片区 (Blog Card Section) - Minimal as not used on this page */
@media (max-width: 768px) {
    .page-about__blog-section {
        margin-bottom: 30px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__blog-grid {
        grid-template-columns: 1fr !important; /* Single column for mobile blog cards */
        gap: 20px !important;
    }
}

/* 5. 通用图片与按钮 (General Images and Buttons) - Already included above */
/* This is covered by .page-about img and .page-about__btn-* rules in the main mobile block */