/* promotions.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --text-main-color: #FFF5E1;
    --background-color-card: #D32F2F;
    --background-color-main: #B71C1C;
    --border-color-gold: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark-section: #B71C1C;
    --bg-card-dark-section: #D32F2F;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default for light backgrounds */
}

.page-promotions__dark-section {
    background: var(--bg-dark-section);
    color: var(--text-light);
}

.page-promotions__light-bg {
    background: var(--bg-light);
    color: var(--text-dark);
}

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

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

.page-promotions__hero-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.page-promotions__dark-section .page-promotions__section-title {
    color: var(--text-light);
}

.page-promotions__light-bg .page-promotions__section-title {
    color: var(--text-dark);
}

.page-promotions__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__feature-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-dark); /* Changed to dark for contrast with gold gradient */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__light-bg .page-promotions__btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__promo-card {
    background: var(--background-color-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color-gold);
}

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

.page-promotions__promo-card .page-promotions__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-promotions__promo-card .page-promotions__card-text {
    font-size: 0.95rem;
    color: var(--text-main-color);
    margin-bottom: 25px;
    flex-grow: 1;
    padding: 0 15px;
}

.page-promotions__how-to-claim-section {
    padding: 60px 0;
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__step-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-promotions__step-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-promotions__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.page-promotions__terms-section {
    padding: 60px 0;
}

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

.page-promotions__terms-list li {
    background: var(--deep-red-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__terms-list li p {
    margin: 0;
    color: var(--text-light);
}

.page-promotions__terms-list li strong {
    color: var(--gold-color);
}

.page-promotions__inline-link {
    color: var(--gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-promotions__inline-link:hover {
    color: var(--glow-color);
}

.page-promotions__why-choose-section {
    padding: 60px 0;
}

.page-promotions__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__benefit-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-promotions__benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-promotions__benefit-text {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.page-promotions__faq-section {
    padding: 60px 0;
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color-gold);
  overflow: hidden;
  background: var(--background-color-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: var(--deep-red-color);
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: inherit;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-red-color);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-promotions__faq-answer p {
    margin: 0;
    color: var(--text-light);
}

.page-promotions__final-cta-section {
    padding: 60px 0 80px;
    text-align: center;
}

/* General image responsiveness */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-promotions__hero-description {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-promotions__btn-primary, .page-promotions__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-promotions__hero-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-bottom: 30px;
    }
    .page-promotions__hero-image {
        max-height: 250px;
        margin-bottom: 15px;
    }
    .page-promotions__hero-image img {
        object-fit: contain !important; /* HERO主图区域: mobile object-fit:contain */
        aspect-ratio: unset !important;
    }
    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-promotions__hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .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;
        padding-right: 15px;
    }

    .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: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-promotions__section-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
        overflow-x: hidden; /* 产品展示图区域防横滚 */
    }
    .page-promotions__promo-card {
        padding-bottom: 20px;
    }
    .page-promotions__promo-card .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__promo-card .page-promotions__card-title {
        font-size: 1.2rem;
    }
    .page-promotions__promo-card .page-promotions__card-text {
        font-size: 0.9rem;
    }
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    .page-promotions__step-icon {
        width: 120px;
        height: 120px;
    }
    .page-promotions__step-title {
        font-size: 1.2rem;
    }
    .page-promotions__terms-list li {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    .page-promotions__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    .page-promotions__benefit-title {
        font-size: 1.2rem;
    }
    details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
    .page-promotions__faq-qtext { font-size: 15px; }
    .page-promotions__faq-toggle { font-size: 20px; width: 24px; }
    details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

}