/* style/promotions.css */
:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --bg-dark: #140C0C;
    --card-bg: #2A1212;
    --text-light: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-accent: #F3C54D;
    --deep-red-accent: #7E0D0D;
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--text-light); /* Assuming body background is dark from shared.css */
    background-color: var(--bg-dark);
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
    z-index: 1;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over image slightly for visual flow */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text readability */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    font-size: clamp(1em, 1.5vw, 1.25em);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__large-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 176, 74, 0.6);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--gold-accent);
    border: 2px solid var(--gold-accent);
    box-shadow: 0 5px 15px rgba(243, 197, 77, 0.2);
}

.page-promotions__btn-secondary:hover {
    background: var(--gold-accent);
    color: var(--bg-dark);
    box-shadow: 0 8px 20px rgba(243, 197, 77, 0.4);
}

.page-promotions__large-cta-button {
    min-width: 280px;
    font-size: 1.3em;
    padding: 18px 35px;
}

/* General Sections */
.page-promotions__introduction-section,
.page-promotions__featured-section,
.page-promotions__guide-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-promotions__introduction-section.page-promotions__dark-section,
.page-promotions__guide-section.page-promotions__dark-section,
.page-promotions__faq-section.page-promotions__dark-section {
    background-color: var(--deep-red-accent);
    color: var(--text-light);
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold-accent);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-promotions__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

.page-promotions__promotion-card.page-promotions__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold-accent);
    text-align: center;
}

.page-promotions__card-description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: center;
}

.page-promotions__card-button {
    margin-top: auto;
    align-self: center;
    width: 100%;
}

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

.page-promotions__guide-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.page-promotions__guide-item:hover {
    transform: translateY(-5px);
}

.page-promotions__guide-step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold-accent);
}

.page-promotions__guide-item p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
}

.page-promotions__guide-item a {
    color: var(--gold-accent);
    text-decoration: underline;
}

.page-promotions__guide-item a:hover {
    color: #FFB04A;
}

/* Terms & Conditions */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
    font-size: 1em;
    color: var(--text-light);
}

.page-promotions__terms-item strong {
    color: var(--gold-accent);
}

.page-promotions__terms-section a {
    color: var(--gold-accent);
    text-decoration: underline;
}

.page-promotions__terms-section a:hover {
    color: #FFB04A;
}

/* 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(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold-accent);
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker for contrast */
    border-bottom: 1px solid var(--border-color);
}

.page-promotions__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−";
}

.page-promotions__faq-answer {
    padding: 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-promotions__cta-bottom-content {
    max-width: 800px;
}

.page-promotions__cta-bottom-section .page-promotions__section-title {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-bottom-section .page-promotions__text-block {
    color: #ffffff;
    margin-bottom: 40px;
}

/* Responsive Styles */

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

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

    .page-promotions__hero-image {
        max-height: 400px; /* Adjust height for mobile */
    }

    .page-promotions__hero-content {
        padding: 25px 15px;
        margin-top: -60px; /* Adjust pull-up for mobile */
        margin-bottom: 20px;
    }

    .page-promotions__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure container fills width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    /* 按钮与按钮容器 */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__large-cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        margin: 0;
    }
    
    .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;
    }

    /* 其他内容模块 */
    .page-promotions__introduction-section,
    .page-promotions__featured-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 0.95em;
        text-align: left;
    }

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

    .page-promotions__promotion-card.page-promotions__card {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        width: 100%;
    }

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

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

    .page-promotions__guide-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__terms-list {
        margin-top: 20px;
    }

    .page-promotions__terms-item {
        padding: 15px;
        margin-bottom: 10px;
    }

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

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

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__cta-bottom-section {
        padding: 60px 15px;
    }
}

/* Desktop (min-width: 1025px) */
@media (min-width: 1025px) {
    .page-promotions__hero-content {
        margin-top: -150px; /* More pull-up for larger screens */
    }
}