/* style/promotions-new-user.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-color: #FFFF00;
    --background-color: #FFFFFF;
}

.page-promotions-new-user {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: var(--background-color);
}

.page-promotions-new-user__section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
    box-sizing: border-box;
}

.page-promotions-new-user__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-promotions-new-user__light-bg {
    background-color: var(--background-color);
    color: var(--text-color-dark);
}

.page-promotions-new-user__section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-promotions-new-user__dark-section .page-promotions-new-user__section-title {
    color: var(--text-color-light);
}

.page-promotions-new-user__paragraph {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions-new-user__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions-new-user__dark-section .page-promotions-new-user__text-link {
    color: var(--secondary-color);
}

/* Hero Section */
.page-promotions-new-user__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

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

.page-promotions-new-user__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

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

.page-promotions-new-user__hero-title {
    font-size: 44px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-promotions-new-user__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.page-promotions-new-user__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions-new-user__btn-primary {
    background: var(--button-register-bg);
    color: var(--button-text-color);
    border: 2px solid transparent;
}

.page-promotions-new-user__btn-primary:hover {
    background: darken(var(--button-register-bg), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions-new-user__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.page-promotions-new-user__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Card Grid */
.page-promotions-new-user__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-promotions-new-user__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
    color: var(--text-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-new-user__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions-new-user__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promotions-new-user__card-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 20px 15px;
    color: var(--primary-color);
}

.page-promotions-new-user__card .page-promotions-new-user__paragraph {
    padding: 0 20px;
    font-size: 15px;
    text-align: left;
}

/* Steps Grid */
.page-promotions-new-user__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-promotions-new-user__step-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: var(--text-color-dark);
}

.page-promotions-new-user__step-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-promotions-new-user__step-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions-new-user__step-description {
    font-size: 15px;
    text-align: left;
}

/* List Styles */
.page-promotions-new-user__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions-new-user__list-item {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-color-dark);
}

.page-promotions-new-user__list-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-promotions-new-user__list-description {
    font-size: 15px;
    text-align: justify;
}

/* Features Grid */
.page-promotions-new-user__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-new-user__feature-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: var(--text-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-new-user__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions-new-user__feature-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-promotions-new-user__feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions-new-user__feature-description {
    font-size: 15px;
    text-align: left;
}

/* Button Group */
.page-promotions-new-user__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-promotions-new-user__button-group .page-promotions-new-user__btn-primary,
.page-promotions-new-user__button-group .page-promotions-new-user__btn-secondary {
    margin-top: 0;
    margin-left: 0;
}

/* FAQ Section */
.page-promotions-new-user__faq-container {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-promotions-new-user__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions-new-user__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 15px;
  opacity: 0;
}

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

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

.page-promotions-new-user__faq-item.active .page-promotions-new-user__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
}

.page-promotions-new-user__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions-new-user__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-promotions-new-user__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
}

/* 切换图标 */
.page-promotions-new-user__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-new-user__faq-item.active .page-promotions-new-user__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate for minus sign */
}

/* Global image settings (ensure no filter) */
.page-promotions-new-user img {
    filter: none; /* Ensure no CSS filter is applied */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-promotions-new-user__hero-title {
        font-size: 38px;
    }
    .page-promotions-new-user__section-title {
        font-size: 28px;
    }
    .page-promotions-new-user__card-grid,
    .page-promotions-new-user__steps-grid,
    .page-promotions-new-user__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions-new-user__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions-new-user__hero-image img {
        border-radius: 4px;
    }
    .page-promotions-new-user__hero-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-promotions-new-user__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-promotions-new-user__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions-new-user__section {
        padding: 40px 15px;
    }
    .page-promotions-new-user__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-promotions-new-user__paragraph,
    .page-promotions-new-user__list-description,
    .page-promotions-new-user__step-description,
    .page-promotions-new-user__feature-description {
        font-size: 14px;
    }
    .page-promotions-new-user__card-grid,
    .page-promotions-new-user__steps-grid,
    .page-promotions-new-user__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions-new-user__card-image {
        height: 200px;
    }
    .page-promotions-new-user__card-title,
    .page-promotions-new-user__step-title,
    .page-promotions-new-user__list-title,
    .page-promotions-new-user__feature-title {
        font-size: 18px;
    }
    .page-promotions-new-user__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions-new-user__btn-secondary {
        margin-left: 0;
    }
    .page-promotions-new-user__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-promotions-new-user__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-promotions-new-user__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-promotions-new-user__faq-answer {
        padding: 0 15px;
    }
    .page-promotions-new-user__faq-item.active .page-promotions-new-user__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-promotions-new-user img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-promotions-new-user__section,
    .page-promotions-new-user__card,
    .page-promotions-new-user__container,
    .page-promotions-new-user__hero-container,
    .page-promotions-new-user__card-grid,
    .page-promotions-new-user__steps-grid,
    .page-promotions-new-user__features-grid,
    .page-promotions-new-user__button-group,
    .page-promotions-new-user__faq-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}