/* style/promotions.css */

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

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--page-bg);
    line-height: 1.6;
    font-size: 16px;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-bg);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

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

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
}

/* General Section Styles */
.page-promotions__overview-section,
.page-promotions__types-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__final-cta-section {
    padding: 60px 0;
    background-color: var(--page-bg);
}

.page-promotions__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-promotions__text-block {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Promo Grid */
.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: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-promotions__card-title {
    font-size: 1.4em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__card-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-promotions__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.05em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__list-item strong {
    color: var(--primary-color);
}

.page-promotions__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Terms and Conditions Section */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-promotions__terms-list .page-promotions__list-item {
    font-size: 0.98em;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-promotions__text-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__text-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: var(--text-main);
}

.page-promotions__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-item summary:hover {
    background-color: var(--deep-green);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 10px;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.page-promotions__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.98em;
    color: var(--text-secondary);
}

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--deep-green);
    border-top: 1px solid var(--border-color);
}

.page-promotions__final-cta-section .page-promotions__section-title {
    color: var(--gold-color);
}

/* Responsive Styles */

/* Desktop/Tablet - up to 1024px */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.5em;
    }

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

    .page-promotions__hero-image-wrapper {
        max-height: 400px;
    }
}

/* Mobile - up to 768px */
@media (max-width: 768px) {
    .page-promotions {
        font-size: 15px;
        line-height: 1.5;
    }

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

    /* HERO 主图区域 */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body padding-top for header offset */
        padding-bottom: 30px;
    }

    .page-promotions__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Using clamp for responsive H1 font size */
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden; /* Ensure no horizontal scroll */
    }

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

    /* 产品展示图区域 (Promo Grid) */
    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 20px;
    }

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

    .page-promotions__promo-image {
        height: 180px;
    }

    .page-promotions__card-title {
        font-size: 1.2em;
    }

    .page-promotions__card-text {
        font-size: 0.9em;
    }

    /* Other Content Modules */
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 0.95em;
    }

    .page-promotions__list-item {
        padding: 15px;
        font-size: 1em;
    }

    .page-promotions__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

    .page-promotions__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.9em;
    }

    .page-promotions__final-cta-section {
        padding: 50px 0;
    }
}