/* style/promotions.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --border-color: #E0E0E0;
    --page-bg-color: #F5F7FA;
}

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

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

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

.page-promotions__section-title--light {
    color: var(--card-bg-color); /* White text on dark background */
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__section-description--light {
    color: #f0f0f0; /* Light grey text on dark background */
}

/* Card Styles */
.page-promotions__card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-promotions__card--dark-bg {
    background-color: var(--primary-color);
    color: var(--card-bg-color);
    border: 1px solid var(--secondary-color);
}

.page-promotions__card--dark-bg .page-promotions__faq-question {
    color: var(--card-bg-color);
}

.page-promotions__card--dark-bg .page-promotions__faq-answer p {
    color: #f0f0f0;
}

/* Button Styles */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

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

.page-promotions__btn-large {
    padding: 16px 32px;
    font-size: 1.2em;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    overflow: hidden;
    text-align: center;
    background-color: var(--primary-color);
}

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

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    color: #ffffff;
    background-color: var(--primary-color);
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-promotions__hero-description {
    font-size: 1.25em;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
    background-color: var(--page-bg-color);
}

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

.page-promotions__feature-icon {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__feature-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-promotions__feature-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Featured Promotions Section */
.page-promotions__featured-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-promotions__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.page-promotions__promotion-card {
    text-align: left;
    overflow: hidden;
    padding: 0;
}

.page-promotions__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: block;
}

.page-promotions__promotion-content {
    padding: 25px;
}

.page-promotions__promotion-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-promotions__promotion-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 60px 0;
    background-color: var(--page-bg-color);
}

.page-promotions__claim-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-promotions__claim-step-item {
    position: relative;
    padding-top: 60px;
}

.page-promotions__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 90, 79, 0.4);
}

.page-promotions__step-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

.page-promotions__step-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__step-text a:hover {
    text-decoration: underline;
}

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

/* Promotion Types Section */
.page-promotions__promotion-types-section {
    padding: 60px 0;
    background-color: var(--page-bg-color);
}

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

.page-promotions__type-icon {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__type-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions-section {
    padding: 60px 0;
    background-color: var(--page-bg-color);
}

.page-promotions__terms-list {
    list-style: disc;
    margin-left: 20px;
    color: #555555;
    font-size: 1em;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

.page-promotions__terms-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__terms-list a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    margin-bottom: 20px;
    text-align: left;
    overflow: hidden;
}

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

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details */
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    line-height: 1.4;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #f0f0f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
}

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

/* Final CTA Section */
.page-promotions__final-cta-section {
    padding: 80px 0;
    background-color: var(--page-bg-color);
    text-align: center;
}

.page-promotions__final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Image Responsive Styles (Base) */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2em;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 24px;
        font-size: 1em;
    }

    .page-promotions__features-grid,
    .page-promotions__promotions-grid,
    .page-promotions__claim-steps,
    .page-promotions__type-cards-grid {
        gap: 20px;
    }

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

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

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

    .page-promotions__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em) !important;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em !important;
        margin-bottom: 30px;
    }

    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* 产品展示图区域 & 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__promotion-image {
        height: auto !important;
    }

    .page-promotions__container,
    .page-promotions__overview-section,
    .page-promotions__featured-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__promotion-types-section,
    .page-promotions__terms-conditions-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__features-grid,
    .page-promotions__promotions-grid,
    .page-promotions__claim-steps,
    .page-promotions__type-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions__promotion-card {
        padding: 0;
    }

    .page-promotions__promotion-content {
        padding: 20px;
    }

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

    /* 按钮与按钮容器 */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        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__hero-cta-buttons,
    .page-promotions__cta-bottom,
    .page-promotions__final-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 其他内容模块 */
    .page-promotions__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }

    .page-promotions__section-description {
        font-size: 0.95em !important;
        margin-bottom: 30px;
    }

    .page-promotions__claim-step-item {
        padding-top: 50px;
    }

    .page-promotions__step-number {
        width: 45px;
        height: 45px;
        font-size: 1.6em;
        top: 15px;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-promotions__terms-list {
        margin-left: 15px;
        font-size: 0.95em;
    }
}