/* style/promotions.css */

/* Variables for consistency */
:root {
    --primary-color: #0A2463; /* Dark Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --bg-light: #f1f3f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* Page specific styles for .page-promotions */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from body */
}

/* 🚨 HERO主图区域样式 */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* 🚨 桌面端：根据导航栏实际高度调整 */
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark)); /* Dark background for hero */
    color: var(--text-light);
}

.page-promotions__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Gold title for impact */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color); /* Gold button */
    color: var(--primary-color); /* Dark blue text on gold */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.page-promotions__cta-button:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
}

.page-promotions__light-bg {
    background-color: var(--card-bg); /* White background for content sections */
    color: var(--text-dark); /* Dark text on white background */
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
    padding: 40px;
    margin-bottom: 30px;
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 40px 20px;
    background-color: var(--bg-dark); /* Dark background for overall section */
}

.page-promotions__intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions__intro-container p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Core Promos Section */
.page-promotions__core-promos-section {
    padding: 40px 20px;
    background-color: var(--bg-dark);
}

.page-promotions__core-promos-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-promotions__promo-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow-medium);
}

.page-promotions__promo-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

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

.page-promotions__promo-card p {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__promo-summary {
    text-align: center;
    font-size: 1.1em;
    margin-top: 40px;
    color: var(--text-dark);
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 40px 20px;
    background-color: var(--bg-dark);
}

.page-promotions__guide-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions__guide-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

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

/* Latest News Section */
.page-promotions__latest-news-section {
    padding: 40px 20px;
    background-color: var(--bg-dark);
}

.page-promotions__latest-news-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-promotions__news-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-promotions__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow-medium);
}

.page-promotions__news-image {
    width: 100%;
    height: 250px; /* Adjusted height for larger images */
    object-fit: cover;
    display: block;
}

.page-promotions__news-card h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin: 20px 20px 10px;
    font-weight: bold;
}

.page-promotions__news-card h3 a.page-promotions__news-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__news-card h3 a.page-promotions__news-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__news-card p {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px;
    margin-bottom: 15px;
    text-align: justify;
}

.page-promotions__news-date {
    display: block;
    font-size: 0.85em;
    color: #999999;
    padding: 0 20px 20px;
}

/* Buttons */
.page-promotions__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-light);
    border: none;
    cursor: pointer;
}

.page-promotions__btn-primary:hover {
    background: #071a47; /* Darken primary color */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--shadow-light);
    border: none;
    cursor: pointer;
}

.page-promotions__btn-secondary:hover {
    background: #e6c200; /* Darken secondary color */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--shadow-medium);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 40px 20px;
    background-color: var(--bg-dark);
}

.page-promotions__faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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;
    padding: 0 15px;
    opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* 🚨 MUST use !important for functionality */
    padding: 20px 15px !important; /* 🚨 MUST use !important for functionality */
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.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: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color); /* Ensure contrast */
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: 28px;
    height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change '+' to 'x' or similar for active state */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content h1 {
        font-size: 2.8em;
    }
    .page-promotions__hero-content p {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 🚨 移动端必须重新设置padding-top */
    .page-promotions__hero-section {
        padding-top: 140px !important; /* 🚨 移动端：根据移动端导航栏实际高度调整 */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-image img {
        border-radius: 4px;
    }

    .page-promotions__hero-content h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-promotions__hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

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

    .page-promotions__light-bg {
        padding: 25px;
        margin-bottom: 20px;
    }

    .page-promotions__intro-container p {
        font-size: 1em;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-promotions__promo-card {
        padding: 20px;
    }
    .page-promotions__promo-card h3 {
        font-size: 1.3em;
    }
    .page-promotions__promo-icon {
        width: 150px; /* Adjust size for mobile, keeping min 200x200 for generation */
        height: 150px;
    }

    .page-promotions__guide-list {
        padding-left: 20px;
    }
    .page-promotions__guide-list li {
        font-size: 0.95em;
    }

    .page-promotions__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-promotions__news-card h3 {
        font-size: 1.1em;
    }
    .page-promotions__news-card p {
        font-size: 0.9em;
    }
    .page-promotions__news-image {
        height: 160px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-promotions__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }

    /* 🚨 Mobile image responsive adaptation */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__core-promos-section,
    .page-promotions__guide-section,
    .page-promotions__latest-news-section,
    .page-promotions__faq-section,
    .page-promotions__hero-container,
    .page-promotions__intro-container,
    .page-promotions__core-promos-container,
    .page-promotions__guide-container,
    .page-promotions__latest-news-container,
    .page-promotions__faq-container,
    .page-promotions__promo-card,
    .page-promotions__news-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}