/* style/promotions.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --text-dark-color: #000000;
    --background-card: #FFFFFF;
    --background-page: #F4F7FB;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light backgrounds */
    background-color: var(--background-page);
}

.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; /* Adjust if shared.css body padding-top is not present */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for desktop hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 1920px; /* Ensure image doesn't stretch beyond its intended max width */
}

.page-promotions__hero-content {
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darken for text readability on image */
    position: relative;
    z-index: 1;
    margin-top: -5px; /* Slight overlap to make it feel connected */
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Section Titles and Descriptions */
.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Dark background sections for contrast */
.page-promotions__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__section-description,
.page-promotions__dark-bg .page-promotions__card-title,
.page-promotions__dark-bg .page-promotions__card-text {
    color: #ffffff;
}

/* Light background sections */
.page-promotions__light-bg {
    background-color: var(--background-page);
    color: var(--text-main-color);
}

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

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

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__text-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__text-link:hover {
    color: var(--primary-color);
}

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

.page-promotions__promotion-card {
    background-color: var(--background-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    color: var(--text-main-color);
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark-color);
}

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

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

.page-promotions__step-item {
    background-color: var(--background-card);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-promotions__step-item:last-child {
    margin-bottom: 0;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__step-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Terms Section */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin: 40px auto 0 auto;
    max-width: 900px;
    color: #f0f0f0;
    text-align: left;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-dark-color);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding-top: 10px;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
}

/* General image styling for content areas */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 80%;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 0 !important;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 300px;
    }
    .page-promotions__hero-content {
        padding: 20px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em) !important;
        margin-bottom: 10px;
    }
    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 产品展示图区域 */
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }
    .page-promotions__promotion-card {
        padding: 15px !important;
    }
    .page-promotions__card-image {
        height: 180px !important;
        min-width: 200px !important;
        min-height: 180px !important;
    }

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-promotions__container,
    .page-promotions__overview-section,
    .page-promotions__categories-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* 按钮与按钮容器 */
    .page-promotions__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    /* 其他内容模块 */
    .page-promotions__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    .page-promotions__section-description {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }
    .page-promotions__step-item {
        padding: 20px !important;
    }
    .page-promotions__step-title {
        font-size: 1.2em !important;
    }
    .page-promotions__faq-question {
        font-size: 1em !important;
        padding: 15px 20px !important;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px !important;
    }
    .page-promotions__terms-list {
        padding-left: 20px !important;
    }
    .page-promotions__terms-list li {
        font-size: 0.95em !important;
    }
}