/* style/promotions.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-dark: #0A0A0A;
    --text-light: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Based on dark body background */
    background-color: var(--background-dark);
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relies on body padding-top from shared */
    padding-bottom: 60px;
    background-color: var(--background-dark);
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px;
}

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-promotions__main-title {
    font-size: 3.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-promotions__hero-description {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.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;
    transform: translateY(-3px);
}

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* General Sections */
.page-promotions__overview-section,
.page-promotions__details-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__final-cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

.page-promotions__dark-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 40px;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: bold;
}

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

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

.page-promotions__card {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px 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__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

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

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-promotions__card-button:hover {
    opacity: 0.9;
}

/* Promotion Details */
.page-promotions__promotion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__item-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__item-text {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-promotions__item-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.page-promotions__item-list li {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-promotions__item-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

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

.page-promotions__step-list li {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-light);
    position: relative;
    padding-left: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-promotions__step-list li strong {
    color: var(--primary-color);
}

.page-promotions__step-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

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

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

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.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;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
    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 25px;
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.5;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background: linear-gradient(90deg, #0A0A0A, #1a1a1a);
    border-radius: 10px;
    margin-bottom: 40px;
}

/* Footer */
.page-promotions__footer {
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    background-color: var(--background-dark);
    border-top: 1px solid var(--border-color);
}

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

    .page-promotions__section-title {
        font-size: 2em;
    }

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

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

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO 主图区域 */
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-promotions__main-title {
        font-size: 2.2em;
        line-height: 1.3;
    }

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

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

    /* 按钮与按钮容器 */
    .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__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;
        flex-direction: column;
    }

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    /* 产品展示图区域 (Promotions Grid) */
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card-image {
        height: auto;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__section-description {
        font-size: 0.9em;
    }

    .page-promotions__item-title {
        font-size: 1.5em;
    }

    .page-promotions__step-list li {
        font-size: 1em;
        padding-left: 50px;
    }

    .page-promotions__step-list li::before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 0.8em;
    }

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

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