/* style/promotions.css */
.page-promotions {
    color: #333333; /* Default text color for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8;
}

.page-promotions__section {
    padding: 60px 20px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

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

.page-promotions__section-title {
    font-size: 36px;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-title--light {
    color: #ffffff;
}

.page-promotions__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold gradient */
    color: #000000; /* Dark text on light background */
    padding: 100px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-promotions__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #333333;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap; /* Prevent text wrapping for primary buttons */
}

.page-promotions__cta-button--primary {
    background-color: #000000;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-promotions__cta-button--primary:hover {
    background-color: #333333;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.page-promotions__cta-button--secondary {
    background-color: #FFD700;
    color: #000000;
    border: 2px solid #000000;
}

.page-promotions__cta-button--secondary:hover {
    background-color: #e6c200;
    color: #333333;
    border-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Promotions Grid Section */
.page-promotions__promotions-grid {
    background-color: #ffffff;
}

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

.page-promotions__promotion-card {
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.page-promotions__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

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

.page-promotions__card-title {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FFD700;
    color: #000000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-promotions__card-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

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

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

/* FAQ容器样式 */
.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #555555;
    font-size: 15px;
    line-height: 1.7;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

/* 问题样式 */
.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
}

.page-promotions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
    background: #eeeeee;
}

/* 问题标题样式 */
.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #000000;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #000000;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: #000000;
    background-color: #FFD700;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Brand Section */
.page-promotions__brand-section {
    background-color: #000000; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-promotions__brand-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-promotions__brand-image {
    width: 45%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(255,215,0,0.2);
}

.page-promotions__brand-text-block {
    width: 55%;
}

.page-promotions__brand-text-block p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #f0f0f0;
}

/* Blog Section */
.page-promotions__blog-section {
    background-color: #ffffff;
}

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

.page-promotions__blog-item {
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.page-promotions__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

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

.page-promotions__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-promotions__blog-item-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__blog-item-title a:hover {
    color: #FFD700;
}

.page-promotions__blog-item-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-promotions__blog-item-date {
    font-size: 14px;
    color: #888888;
    align-self: flex-end;
}

.page-promotions__view-all-button {
    text-align: center;
    margin-top: 40px;
}

/* All images responsive base style */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 42px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__brand-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__brand-image,
    .page-promotions__brand-text-block {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__main-title {
        font-size: 32px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__cta-button {
        width: 100%;
        max-width: 300px; /* Limit max width for readability */
        margin: 0 auto;
        padding: 12px 25px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: 28px;
    }
    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-promotions__grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-text {
        font-size: 15px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }
    .page-promotions__brand-text-block p {
        font-size: 16px;
    }
    .page-promotions__blog-image {
        height: 160px;
    }
    .page-promotions__blog-item-title {
        font-size: 18px;
    }
    .page-promotions__blog-item-excerpt {
        font-size: 14px;
    }

    /* Mobile image, video, button overflow prevention */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__section,
    .page-promotions__container,
    .page-promotions__grid,
    .page-promotions__promotion-card,
    .page-promotions__faq-list,
    .page-promotions__brand-content,
    .page-promotions__blog-list,
    .page-promotions__blog-item,
    .page-promotions__cta-buttons,
    .page-promotions__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__cta-buttons {
        padding-left: 0;
        padding-right: 0;
        gap: 15px;
    }
    .page-promotions__cta-button {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}