/* style/promotions.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --bg-color-dark: #0A0A0A;
    --card-bg-color: #111111;
    --text-main-color: #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-main-color);
    background-color: var(--bg-color-dark); /* Inherited from body, but explicitly set for safety */
    line-height: 1.6;
}

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

.page-promotions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, main offset from shared body */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    margin-top: -150px; /* Adjust to move content slightly up over the bottom of the image */
    padding: 0 20px;
    max-width: 900px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--text-main-color);
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-promotions__intro-text {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__section {
    padding: 60px 0;
    background-color: var(--bg-color-dark);
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

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

.page-promotions__card {
    background-color: var(--card-bg-color);
    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 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

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

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

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

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-description {
    font-size: 1em;
    color: var(--text-main-color);
}

.page-promotions__featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-promotions__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.page-promotions__promo-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__promo-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-promotions__promo-date {
    font-size: 0.85em;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 20px;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__term-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.5;
}

.page-promotions__term-item strong {
    color: var(--primary-color);
}

.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-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--secondary-color);
}

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

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

.page-promotions__final-cta {
    text-align: center;
    padding-bottom: 80px;
}

.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;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__hero-image {
        max-height: 300px;
    }

    .page-promotions__hero-content {
        margin-top: -80px; /* Adjust for smaller screens */
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        line-height: 1.2;
    }

    .page-promotions__intro-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

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

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

    /* 产品展示图区域 (Featured Promotions) */
    .page-promotions__featured-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-promotions__promo-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-promotions__promo-title {
        font-size: 1.4em;
    }

    .page-promotions__promo-description {
        font-size: 0.85em;
    }

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

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

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

    /* 按钮与按钮容器 */
    .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 !important;
        padding-right: 15px !important;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }

    .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 !important;
        padding-right: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-promotions__btn-large {
        padding: 15px 25px;
        font-size: 1.1em;
        margin-top: 20px;
    }

    /* 其他内容模块 */
    .page-promotions__step-item,
    .page-promotions__term-item,
    .page-promotions__faq-item {
        padding: 20px;
    }

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

    .page-promotions__faq-question {
        font-size: 1em;
    }

    .page-promotions__faq-answer {
        font-size: 0.9em;
    }
}