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

/* General styles for the page promotions */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Light background for the content sections */
}

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

.page-promotions__section {
    padding: 60px 0;
    background-color: #ffffff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__section:first-of-type {
    margin-top: 20px; /* Add some space above the first section */
}

.page-promotions__section:last-of-type {
    margin-bottom: 60px; /* Add some space below the last section */
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly transparent to make text readable */
    z-index: 1;
}

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

.page-promotions__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

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

.page-promotions__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-promotions__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Image content within sections */
.page-promotions__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Card Grid for Promo Types */
.page-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
    min-width: 200px; /* Enforce minimum size */
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow text to grow and fill space */
}

.page-promotions__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    padding: 0;
}

.page-promotions__list-item {
    margin-bottom: 8px;
    font-size: 1em;
    color: #555555;
}

/* Steps Grid for Guide Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__step-text {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-promotions__step-card .page-promotions__btn-primary,
.page-promotions__step-card .page-promotions__btn-secondary {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

/* Terms & Conditions List */
.page-promotions__list--two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    list-style: disc;
    margin-left: 20px;
    margin-top: 30px;
}

/* Why Choose Section */
.page-promotions__list--bullets {
    list-style: disc;
    margin-left: 20px;
    margin-top: 30px;
}
.page-promotions__list--bullets .page-promotions__list-item {
    font-size: 1.1em;
    margin-bottom: 12px;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.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; /* For details tag */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    color: #26A9E0;
    font-weight: bold;
    cursor: pointer;
    background-color: #eaf6fc; /* Lighter shade of brand color */
    border-bottom: 1px solid #d0e9f7;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid #d0e9f7;
}

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

.page-promotions__faq-question::marker {
    display: none;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-promotions__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

/* Conclusion Section */
.page-promotions__conclusion {
    text-align: center;
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-promotions__conclusion .page-promotions__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-promotions__conclusion .page-promotions__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-promotions__cta-buttons--bottom {
    margin-top: 0;
}

.page-promotions__cta-buttons--bottom .page-promotions__btn-primary {
    background-color: #EA7C07;
    border-color: #EA7C07;
    color: #ffffff;
}
.page-promotions__cta-buttons--bottom .page-promotions__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-promotions__cta-buttons--bottom .page-promotions__btn-secondary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #26A9E0;
}
.page-promotions__cta-buttons--bottom .page-promotions__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #26A9E0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__list--two-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 1em;
    }

    .page-promotions__image-content {
        margin: 30px auto;
    }

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

    .page-promotions__card,
    .page-promotions__step-card {
        padding: 25px;
    }

    .page-promotions__card-title,
    .page-promotions__step-title {
        font-size: 1.3em;
    }

    .page-promotions__list,
    .page-promotions__list--bullets {
        margin-left: 15px;
    }

    .page-promotions__list--two-cols {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .page-promotions__conclusion {
        padding: 60px 0;
    }
    .page-promotions__conclusion .page-promotions__text-block {
        margin-bottom: 30px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__step-card,
    .page-promotions__faq-list,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Add padding to prevent content from touching screen edges */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Override specific padding for hero container */
    .page-promotions__hero-section .page-promotions__container {
        padding-left: 20px;
        padding-right: 20px;
    }
    /* Specific override for section padding to remove horizontal padding */
    .page-promotions__section {
        padding-left: 0;
        padding-right: 0;
    }
    /* Ensure .page-promotions__container inside .page-promotions__section has its padding */
    .page-promotions__section > .page-promotions__container {
        padding-left: 20px;
        padding-right: 20px;
    }
    /* Ensure cta-buttons within hero section get their padding */
    .page-promotions__hero-section .page-promotions__cta-buttons {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Important: Ensure elements causing overflow are handled */
    .page-promotions {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

/* Ensure no CSS filter on images */
.page-promotions img {
    filter: none !important;
}

/* Content area image CSS dimensions lower bound */
.page-promotions img:not(.page-promotions__hero-image) { /* Exclude hero image from this specific rule if it's full width and not a 'content area image' */
    min-width: 200px;
    min-height: 200px;
}