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

/* General Styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background for the main content area */
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__section-title {
    font-size: 2.8em;
    color: #017439; /* Brand primary color for titles */
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555555;
}

.page-promotions__text-block a {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-promotions__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #017439;
    transform: translateY(-2px);
}

.page-promotions__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for prominence */
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Overview Section */
.page-promotions__overview .page-promotions__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Promotion Types Section */
.page-promotions__types {
    background-color: #f8f8f8;
}

.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.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow title to take available space */
}

.page-promotions__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 20px;
}

/* Benefits Section */
.page-promotions__benefits.page-promotions__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
}

.page-promotions__benefits.page-promotions__dark-section .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__benefits.page-promotions__dark-section .page-promotions__text-block {
    color: #f0f0f0;
}

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

.page-promotions__benefits-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-promotions__benefit-icon {
    width: 200px; /* Must be >= 200px */
    height: 200px; /* Must be >= 200px */
    margin-bottom: 15px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #FFFFFF;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Added shadow for better visual */
}

.page-promotions__benefits-title {
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for prominence */
    margin-bottom: 10px;
}

.page-promotions__benefits-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-promotions__benefits-text a {
    color: #FFFF00;
    text-decoration: underline;
    font-weight: bold;
}

/* Guide Section */
.page-promotions__guide {
    background-color: #FFFFFF;
}

.page-promotions__step-by-step {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    background-color: #e6f7ed; /* Light green background */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-promotions__step-content {
    flex-grow: 1;
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

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

.page-promotions__step-text a {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

/* Terms Section */
.page-promotions__terms {
    background-color: #f8f8f8;
}

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

.page-promotions__terms-list strong {
    color: #333333;
}

/* FAQ Section */
.page-promotions__faq {
    background-color: #FFFFFF;
}

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

.page-promotions__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    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: 20px 25px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 1.2em;
    color: #333333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #e0e0e0;
}

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #FFFFFF;
    color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px; /* Adjust padding for expanded state */
}

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    line-height: 1.6;
}

.page-promotions__faq-answer a {
    color: #017439;
    text-decoration: underline;
    font-weight: normal;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom.page-promotions__dark-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 80px 0;
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: #FFFF00; /* Yellow for prominence */
}

.page-promotions__cta-bottom .page-promotions__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-promotions__cta-bottom .page-promotions__text-block a {
    color: #FFFF00;
    text-decoration: underline;
    font-weight: bold;
}

/* Images Global */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 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: 2.2em;
    }
    .page-promotions__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important; /* Button responsive */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__btn-center {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .page-promotions__card-grid {
        grid-template-columns: 1fr;
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    .page-promotions__benefits-list {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-promotions__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-promotions__step-number {
        margin-bottom: 15px;
    }
    .page-promotions__terms-list {
        padding-left: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-promotions__faq-list {
        padding: 0 15px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px 20px 20px;
    }

    /* Images Mobile Responsive */
    .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__card-grid,
    .page-promotions__benefits-list,
    .page-promotions__step-by-step,
    .page-promotions__faq-list,
    .page-promotions__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* For sections that need padding, add it here */
        /* padding-left: 15px; */
        /* padding-right: 15px; */
    }
    /* Specific padding for sections that might not have it from container */
    .page-promotions__section:not(.page-promotions__hero-section) .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button groups should wrap */
    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section {
        height: 400px;
    }
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__faq-question h3 {
        font-size: 1em;
    }
}