/* style/promotions.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for dark body background */
    background-color: var(--bg-color);
}

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-promotions__dark-bg {
    background-color: var(--bg-color);
    color: var(--text-main-color);
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-promotions__section-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.page-promotions__section-description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary-color);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-promotions__hero-content {
    padding: 40px 20px;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    background-color: var(--bg-color);
    border-radius: 10px;
    margin-top: -50px; /* Overlap slightly for visual effect */
    position: relative;
    z-index: 1;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.3);
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 900;
    line-height: 1.2;
    color: var(--gold-color);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px var(--glow-color);
}

.page-promotions__intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* Advantages Section */
.page-promotions__advantages-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__advantages-section .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__advantage-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    border-left: 5px solid var(--primary-color);
}

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

.page-promotions__advantage-text {
    font-size: 1em;
    line-height: 1.7;
    color: #666666;
}

/* Types Section (Promo Grid) */
.page-promotions__types-section .page-promotions__section-title {
    color: var(--gold-color);
}

.page-promotions__types-section .page-promotions__section-description {
    color: var(--text-secondary-color);
}

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

.page-promotions__promo-card.page-promotions__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-promotions__promo-card.page-promotions__card:hover {
    transform: translateY(-5px);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    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.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.page-promotions__promo-card .page-promotions__btn-primary,
.page-promotions__promo-card .page-promotions__btn-secondary {
    width: 100%;
    text-align: center;
    margin-top: auto; /* Push button to bottom */
}

/* Guide Section */
.page-promotions__guide-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__guide-section .page-promotions__section-description {
    color: #555555;
}

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-promotions__guide-item {
    background-color: #f9f9f9;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
    counter-increment: guide-counter;
    position: relative;
    padding-left: 80px;
}

.page-promotions__guide-item::before {
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
}

.page-promotions__guide-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-promotions__guide-text {
    font-size: 1em;
    line-height: 1.7;
    color: #666666;
}

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

.page-promotions__guide-text a:hover {
    color: var(--secondary-color);
}

/* Terms Section */
.page-promotions__terms-section .page-promotions__section-title {
    color: var(--gold-color);
}

.page-promotions__terms-section .page-promotions__section-description {
    color: var(--text-secondary-color);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    text-align: left;
}

.page-promotions__terms-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.page-promotions__terms-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-promotions__terms-text {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-secondary-color);
}

.page-promotions__terms-cta {
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-secondary-color);
}

.page-promotions__terms-cta .page-promotions__link-text {
    color: var(--gold-color);
    text-decoration: underline;
}

.page-promotions__terms-cta .page-promotions__link-text:hover {
    color: var(--glow-color);
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__faq-section .page-promotions__section-description {
    color: #555555;
}

.page-promotions__faq-list {
    margin-top: 50px;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.page-promotions__faq-item summary::-webkit-details-marker,
.page-promotions__faq-item summary::marker {
    display: none;
    content: "";
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: #666666;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Bottom CTA Section */
.page-promotions__cta-bottom .page-promotions__section-title {
    color: var(--gold-color);
}

.page-promotions__cta-bottom .page-promotions__section-description {
    color: var(--text-secondary-color);
}

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

/* Global Link Styling for dark background */
.page-promotions__dark-bg a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-promotions__dark-bg a:hover {
    text-decoration: underline;
}

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

    .page-promotions__hero-content {
        margin-top: -30px;
        padding: 30px 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-promotions__intro-text {
        font-size: 1.1em;
    }

    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .page-promotions__promo-card.page-promotions__card {
        height: auto;
    }

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

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }

    .page-promotions__hero-image-wrapper {
        max-height: 50vh;
    }

    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__hero-content {
        margin-top: -20px;
        padding: 25px 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-promotions__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

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

    .page-promotions__container,
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__promo-card,
    .page-promotions__advantage-item,
    .page-promotions__guide-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

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

    .page-promotions__promo-card.page-promotions__card {
        padding: 0;
    }

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

    .page-promotions__card-content {
        padding: 20px;
    }

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

    .page-promotions__card-text {
        font-size: 0.9em;
    }

    /* 按钮与按钮容器 */
    .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: 12px 20px;
        font-size: 1em;
    }

    .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; /* Ensure vertical stacking for multiple buttons */
    }

    /* 其他内容模块 */
    .page-promotions__advantage-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-promotions__advantage-item {
        padding: 25px;
        padding-left: 25px; /* Remove extra left padding from ::before if it was there */
        text-align: left;
        border-left: 5px solid var(--primary-color);
    }

    .page-promotions__advantage-item::before {
        position: static;
        transform: none;
        margin-right: 15px;
        margin-bottom: 10px;
        display: inline-flex;
        vertical-align: middle;
    }

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

    .page-promotions__guide-list {
        margin-top: 30px;
        gap: 20px;
    }

    .page-promotions__guide-item {
        padding: 20px;
        padding-left: 65px;
    }

    .page-promotions__guide-item::before {
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }

    .page-promotions__guide-title {
        font-size: 1.2em;
    }

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

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

    .page-promotions__terms-text {
        font-size: 0.9em;
    }

    .page-promotions__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    .page-promotions__faq-toggle {
        font-size: 1.3em;
    }
}