/* style/about.css */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
}

.page-about__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared body padding-top */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #B71C1C; /* Background color as specified */
    padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
}

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

.page-about__hero-content {
    position: relative; /* Changed from absolute to relative to be in normal flow */
    padding: 20px;
    max-width: 900px;
    margin: 20px auto 0 auto;
    color: #FFF5E1; /* Text Main for dark background */
    z-index: 2;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFF5E1;
}

.page-about__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1;
}

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

.page-about__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-about__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn--primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn--secondary {
    background-color: #D32F2F; /* Card BG color */
    color: #FFF5E1; /* Text Main for dark background */
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn--secondary:hover {
    background-color: #B71C1C; /* Background color */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__article-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #C91F17; /* Primary color for titles */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-bg .page-about__section-title {
    color: #FFF5E1; /* Text Main for dark background */
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-about__figure {
    margin: 40px auto;
    max-width: 680px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

.page-about__figcaption {
    font-size: 0.9em;
    color: #555;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.page-about__dark-section {
    background-color: #B71C1C; /* Background color as specified */
    color: #FFF5E1; /* Text Main for dark background */
}

.page-about__dark-section .page-about__paragraph,
.page-about__dark-section .page-about__list-item {
    color: #FFF5E1;
}

.page-about__card-bg {
    background-color: #D32F2F; /* Card BG color as specified */
    color: #FFF5E1; /* Text Main for dark background */
}

.page-about__card-bg .page-about__paragraph,
.page-about__card-bg .page-about__list-item {
    color: #FFF5E1;
}

.page-about__values-list,
.page-about__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-about__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-about__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #F4D34D; /* Gold color */
    font-size: 1.2em;
    top: 0;
}

.page-about__product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__product-card {
    background-color: #D32F2F; /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    color: #FFF5E1; /* Text Main for dark background */
    border: 1px solid #F2B544; /* Border color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__product-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFF5E1;
    padding: 0 15px;
}

.page-about__product-description {
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #FFF5E1;
}

.page-about__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
    margin-top: auto; /* Push button to bottom */
}

.page-about__cta-paragraph {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2em;
    font-weight: 500;
    color: #FFF5E1;
}

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

.page-about__advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__advantage-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #E53935; /* Auxiliary color */
}

.page-about__advantage-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #C91F17; /* Primary color */
}

.page-about__advantage-description {
    font-size: 1em;
    color: #555;
}

.page-about__link {
    color: #C91F17;
    text-decoration: underline;
    font-weight: bold;
}

.page-about__link:hover {
    color: #E53935;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-content {
        padding: 15px;
    }

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

    .page-about__intro-text {
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__paragraph {
        font-size: 1em;
    }

    .page-about__product-card-grid,
    .page-about__advantage-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-about__hero-content {
        margin-top: 15px;
        padding: 0 15px;
        max-width: 100%;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Adjust font size for mobile */
        margin-bottom: 10px;
    }

    .page-about__intro-text {
        font-size: 0.95em;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-about__btn {
        width: 100% !important; /* Full width for mobile buttons */
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 2. 单栏长文容器 */
    .page-about__container,
    .page-about__article-wrap {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .page-about__paragraph {
        font-size: 1em;
        text-align: left;
    }

    .page-about__list-item {
        font-size: 1em;
        padding-left: 25px;
    }

    /* 3. 通用图片与 figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Allow smaller images if needed for layout */
        min-height: unset;
    }

    .page-about__figure {
        margin: 30px auto;
        max-width: 100%;
        border-radius: 8px;
    }

    .page-about__figcaption {
        font-size: 0.85em;
    }

    /* 4. 按钮与按钮容器 (already covered in cta-buttons) */
    .page-about__product-card-grid,
    .page-about__advantage-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-about__product-image {
        height: auto;
        min-height: 200px;
    }

    .page-about__product-card {
        padding-bottom: 15px;
    }

    .page-about__advantage-item {
        padding: 25px;
    }

    .page-about__advantage-title {
        font-size: 1.3em;
    }

    .page-about__cta-paragraph {
        font-size: 1.1em;
        padding: 0 10px;
    }

    /* 5. 注册教程与 FAQ 区块 (N/A for this page, but structure for general application) */
    /* If there were a specific FAQ section with h3, its styling would go here. */
    /* Example for any h3 in main content: */
    .page-about h3 {
        font-size: 1.2em;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em) !important;
    }

    .page-about__section-title {
        font-size: 1.6em !important;
    }

    .page-about__product-image {
        height: 180px; /* Further adjust for smaller screens */
    }
}