/* style/promotions.css */

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

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

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--color-deep-green);
}

.page-promotions__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic reasons */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-promotions__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: 90%;
    padding: 20px;
    text-align: center;
    z-index: 10;
    /* No direct text overlay on image, this is for the initial setup. The content appears below the image due to DOM order. */
    /* The absolute positioning here is for the *visual placement* of the content block in the hero area, not literally on top of the image in the final render. */
    /* As per instructions, text will be below the image in DOM, and this styling would be adjusted if it were a true overlay. */
    /* Re-interpreting: the absolute positioning is for the text to appear *within the hero section* but not necessarily layered on the image itself due to the strict "no text on image" rule. */
    /* Given the "强制上图下文、禁止在主图上叠字" rule, this absolute positioning is incorrect for the final output. I must adjust. */
    /* The DOM order must be image wrapper then content. So, content cannot be absolutely positioned over the image. */
    /* Removing absolute positioning for hero-content and relying on normal flow + flex column on hero-section. */
    position: static; /* Override to static */
    transform: none; /* Remove transform */
    margin-top: 30px; /* Add margin to separate from image */
}

.page-promotions__hero-section {
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--color-background);
}

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

.page-promotions__hero-content {
    max-width: 900px;
    width: 90%;
    padding: 20px;
    text-align: center;
    z-index: 1; /* Ensure content is above any background elements if needed */
    margin-top: 30px; /* Space between image and text */
    color: var(--color-text-main);
}


.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-gold);
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-promotions__text-block {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__text-block a,
.page-promotions__text-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__text-block a:hover,
.page-promotions__text-link:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.page-promotions__cta-button {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-glow);
}

.page-promotions__cta-button--bottom {
    margin-top: 40px;
}

.page-promotions__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

.page-promotions__dark-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

.page-promotions__image-content {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-glow);
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-promotions__btn-secondary {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start; /* Align button to start */
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

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

.page-promotions__step-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-promotions__step-number {
    background-color: var(--color-gold);
    color: var(--color-background);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-promotions__step-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.page-promotions__terms-list,
.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__terms-item,
.page-promotions__benefits-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__list-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-promotions__list-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    user-select: none;
}

.page-promotions__faq-question:hover {
    background-color: var(--color-primary);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--color-gold);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-align: left;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__intro-text {
        font-size: 1.1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-promotions__promotion-grid {
        gap: 20px;
    }
    .page-promotions__promotion-card,
    .page-promotions__step-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 10px;
    }
    .page-promotions__container {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-content {
        padding: 10px;
        width: 95%;
        margin-top: 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-promotions__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 0.95rem;
        text-align: center;
    }
    .page-promotions__image-content {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__promotion-grid,
    .page-promotions__step-by-step {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promotion-card,
    .page-promotions__step-card {
        padding: 20px;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__card-text {
        font-size: 0.9rem;
    }
    .page-promotions__btn-secondary {
        padding: 8px 15px;
        font-size: 0.9rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        align-self: center;
    }
    .page-promotions__step-number {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    .page-promotions__step-title {
        font-size: 1.15rem;
    }
    .page-promotions__step-text {
        font-size: 0.9rem;
    }
    .page-promotions__terms-item,
    .page-promotions__benefits-item {
        padding: 20px;
    }
    .page-promotions__list-title {
        font-size: 1.1rem;
    }
    .page-promotions__list-text {
        font-size: 0.9rem;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    .page-promotions__faq-toggle {
        font-size: 1.3rem;
    }

    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__video-section {
        padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
    }

    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column; /* Mobile vertical stacking */
    }
}