/* style/promotions.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base Styles */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--dark-bg); /* Use shared dark background */
}

/* Ensure text on dark shared background is light */
.page-promotions,
.page-promotions__section.page-promotions__dark-section {
    color: #ffffff;
}

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

.page-promotions__container--center {
    text-align: center;
}

.page-promotions__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555; /* Slightly darker for better contrast on light bg */
}

/* Ensure description on dark background is light */
.page-promotions__section.page-promotions__dark-section .page-promotions__section-description {
    color: #f0f0f0;
}


/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: #017439; /* Main brand color for hero background */
    color: #ffffff;
    min-height: 500px;
}

.page-promotions__hero-content {
    max-width: 50%;
    z-index: 1;
    padding-right: 40px;
}

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-promotions__hero-image-wrapper {
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

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

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.page-promotions__cta-buttons--center {
    justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-card {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text on dark hero */
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Ensure btn-secondary on light backgrounds looks good */
.page-promotions__section--cta-final .page-promotions__btn-secondary {
    color: #FFFF00; /* Register/Login font color */
    border-color: #FFFF00;
}

.page-promotions__section--cta-final .page-promotions__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-promotions__btn-card {
    background-color: #017439;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 20px;
}

.page-promotions__btn-card:hover {
    background-color: #005a2e;
}

/* Video Section */
.page-promotions__section--video {
    background-color: #f8f8f8;
    color: #333333;
}

.page-promotions__section--video .page-promotions__section-title {
    color: #017439;
}

.page-promotions__section--video .page-promotions__section-description {
    color: #555555;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.page-promotions__video-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #666666;
}

/* Promo Grid */
.page-promotions__section--types {
    background-color: #ffffff;
    color: #333333;
}

.page-promotions__section--types .page-promotions__section-title {
    color: #017439;
}

.page-promotions__section--types .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    color: #333333;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__promo-card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__promo-card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow text to grow */
    margin-bottom: 20px;
}

/* How to Claim Section */
.page-promotions__dark-section {
    background-color: #017439; /* Main brand color for dark section */
    color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title {
    color: #ffffff;
}

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

.page-promotions__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-promotions__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for accent */
    background-color: #C30808; /* Red for accent */
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__content-text {
    margin-top: 40px;
    font-size: 1.1em;
    color: #555555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__dark-section .page-promotions__content-text {
    color: #f0f0f0;
}

.page-promotions__content-text--center {
    text-align: center;
}

/* Terms & Conditions */
.page-promotions__section--terms {
    background-color: #f8f8f8;
    color: #333333;
}

.page-promotions__section--terms .page-promotions__section-title {
    color: #017439;
}

.page-promotions__section--terms .page-promotions__section-description {
    color: #555555;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background-color: #ffffff;
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-promotions__terms-subtitle {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__terms-text {
    font-size: 1em;
    color: #555555;
}

/* Why Choose Section */
.page-promotions__section--why-choose {
    background-color: #FFFFFF; /* Explicitly light background */
    color: #333333;
}

.page-promotions__section--why-choose .page-promotions__section-title {
    color: #017439;
}

.page-promotions__section--why-choose .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__feature-card {
    background-color: #f0f0f0; /* Light grey for contrast */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    color: #333333;
}

.page-promotions__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__feature-card-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: contain; /* Use contain for icons/logos */
    margin-bottom: 20px;
}

.page-promotions__feature-card-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__feature-card-text {
    font-size: 0.95em;
    color: #555555;
}

/* FAQ Section */
.page-promotions__section--faq {
    background-color: #f0f0f0;
    color: #333333;
}

.page-promotions__section--faq .page-promotions__section-title {
    color: #017439;
}

.page-promotions__section--faq .page-promotions__section-description {
    color: #555555;
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #f5f5f5;
}

.page-promotions__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
    font-weight: bold;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Important for JS toggle */
    padding: 20px 25px;
}

.page-promotions__faq-answer p {
    margin: 0;
    color: #555555;
}

/* Final CTA Section */
.page-promotions__section--cta-final {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 0;
}

.page-promotions__section--cta-final .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__section--cta-final .page-promotions__section-description {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        flex-direction: column;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top is applied */
    }

    .page-promotions__hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__hero-image-wrapper {
        max-width: 100%;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to prevent overflow if buttons are too wide */
    }

    .page-promotions__cta-buttons--center {
        align-items: center;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-promotions__section-description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-promotions__container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Video responsiveness */
    .page-promotions__video-wrapper {
        margin: 20px auto;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden !important;
    }

    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__promo-card-image,
    .page-promotions__feature-card-image {
        height: auto; /* Allow height to adjust */
        max-height: 180px; /* Keep max height for consistency if desired */
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__feature-card {
        padding: 20px;
    }

    .page-promotions__terms-item {
        padding: 20px;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
    }

    .page-promotions__faq-title {
        font-size: 1.1em;
    }
}