/* style/about.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --card-bg: #2A1212;
    --background-color: #140C0C;
    --text-main-color: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --text-dark: #333333;
    --text-light: #ffffff;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page, assuming dark body bg */
    background-color: var(--background-color); /* Explicitly set page background to match brand */
}

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

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.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;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(20, 12, 12, 0.7); /* Dark background for text contrast */
    border-radius: 8px;
    margin-top: -100px; /* Overlap image slightly for design, but text is below */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

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

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

.page-about__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn--primary {
    background: var(--btn-gradient);
    color: var(--text-light);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-about__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-about__btn--secondary {
    background: var(--card-bg);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(243, 197, 77, 0.2);
}

.page-about__btn--secondary:hover {
    background: var(--gold-color);
    color: var(--background-color);
    box-shadow: 0 6px 20px rgba(243, 197, 77, 0.4);
}

.page-about__section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    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: var(--btn-gradient);
    border-radius: 2px;
}

.page-about__text-block {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-main-color);
    text-align: justify;
}

.page-about__text-block strong {
    color: var(--gold-color);
}

.page-about__figure {
    margin: 40px auto;
    text-align: center;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-about__figcaption {
    font-size: 0.95rem;
    color: var(--text-main-color);
    padding: 15px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.page-about__dark-section {
    background-color: var(--card-bg);
    color: var(--text-light);
}

.page-about__dark-section .page-about__section-title {
    color: var(--gold-color);
}

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

.page-about__value-item {
    margin-bottom: 40px;
    padding: 25px;
    background-color: rgba(20, 12, 12, 0.6); /* Slightly lighter dark background */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__value-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-about__value-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main-color);
    text-align: justify;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.page-about__value-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-about__value-list li::before {
    content: '✓';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-about__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__commitment-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    background-color: rgba(42, 18, 18, 0.4); /* Slightly lighter dark background for list items */
    border-left: 4px solid var(--gold-color);
    padding: 15px 20px 15px 30px;
    border-radius: 4px;
}

.page-about__commitment-list li strong {
    color: var(--gold-color);
}

.page-about__cta-bottom {
    background: linear-gradient(90deg, var(--deep-red-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-about__cta-box {
    background-color: rgba(20, 12, 12, 0.8);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gold-color);
}

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

/* Desktop/Tablet (up to 1024px) */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -80px;
        padding: 15px;
    }

    .page-about__main-title {
        font-size: 2.8rem;
    }

    .page-about__description {
        font-size: 1rem;
    }

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

    .page-about__section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .page-about__text-block,
    .page-about__value-description,
    .page-about__value-list li,
    .page-about__commitment-list li {
        font-size: 0.95rem;
    }

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

    .page-about__cta-box {
        padding: 40px;
    }
}

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

    .page-about__hero-content {
        margin-top: -60px; /* Adjust overlap */
        padding: 15px;
        max-width: 95%;
    }

    .page-about__main-title {
        font-size: 2.2rem !important;
        margin-bottom: 10px;
    }

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

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

    .page-about__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-about__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }

    .page-about__text-block,
    .page-about__value-description {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .page-about__value-item {
        margin-bottom: 30px;
        padding: 20px;
    }

    .page-about__value-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .page-about__value-list li,
    .page-about__commitment-list li {
        font-size: 0.9rem;
        line-height: 1.5;
        padding-left: 20px;
    }

    /* 3. 通用图片与 figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-about__figcaption {
        font-size: 0.85rem;
        padding: 10px;
    }

    /* 4. 按钮与按钮容器 (already covered in cta-buttons) */

    /* 5. 注册教程与 FAQ 区块 (Not explicit FAQ accordion, but content readability) */
    .page-about__cta-box {
        padding: 30px 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Ensure no CSS filter changes image color */
.page-about img {
    filter: none;
}