/* style/vip-club.css */

/* Base Styles */
.page-vip-club {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8;
}

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

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

.page-vip-club__heading {
    font-size: 36px;
    color: #0A2342; /* Primary color for headings */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-vip-club__text-block {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #555555;
}

/* Dark Section Specific Styles */
.page-vip-club__dark-section {
    background-color: #0A2342; /* Primary color */
    color: #ffffff;
}

.page-vip-club__dark-section .page-vip-club__heading {
    color: #E6B325; /* Accent color for headings on dark background */
}

.page-vip-club__dark-section .page-vip-club__text-block {
    color: #f0f0f0;
}

/* Light Background Specific Styles */
.page-vip-club__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* CTA Button Styles */
.page-vip-club__cta-button,
.page-vip-club__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #E6B325; /* Accent color for primary buttons */
    color: #0A2342; /* Dark text on gold button */
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid #E6B325;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-vip-club__cta-button:hover,
.page-vip-club__btn-primary:hover {
    background: #0A2342; /* Primary color on hover */
    color: #E6B325; /* Accent color text on hover */
    border-color: #E6B325;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-vip-club__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 */
    background-color: #0A2342; /* Dark background for hero */
    color: #ffffff;
    overflow: hidden; /* Ensure no overflow from absolute positioning */
}

.page-vip-club__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Content above image if image is background-like */
}

.page-vip-club__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-vip-club__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-vip-club__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 20px 0;
}

.page-vip-club__hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: #E6B325; /* Accent color for hero title */
    font-weight: 800;
    line-height: 1.2;
}

.page-vip-club__hero-content p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* VIP Tiers Grid */
.page-vip-club__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-vip-club__card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-vip-club__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-vip-club__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    object-fit: cover;
}

.page-vip-club__card-title {
    font-size: 24px;
    color: #0A2342;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-vip-club__card-description {
    font-size: 16px;
    color: #555555;
}

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

.page-vip-club__feature-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-vip-club__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-vip-club__feature-item img {
    width: 100%;
    height: 200px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-vip-club__feature-title {
    font-size: 22px;
    color: #0A2342;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-vip-club__feature-description {
    font-size: 16px;
    color: #555555;
}

/* How To Join Steps */
.page-vip-club__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-vip-club__step-item {
    background-color: #f0f5f9; /* Light background for steps */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-vip-club__step-item:hover {
    transform: translateY(-5px);
}

.page-vip-club__step-number {
    font-size: 48px;
    font-weight: bold;
    color: #E6B325; /* Accent color for step numbers */
    margin-bottom: 15px;
}

.page-vip-club__step-title {
    font-size: 24px;
    color: #0A2342;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-vip-club__step-description {
    font-size: 16px;
    color: #555555;
}

/* CTA Wrapper */
.page-vip-club__cta-wrapper {
    margin-top: 50px;
    text-align: center;
}

/* FAQ Section */
.page-vip-club__faq {
    background-color: #f0f5f9;
}

.page-vip-club__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

/* FAQ默认状态 - 答案隐藏 */
.page-vip-club__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.3s ease;
  padding: 0 20px;
  opacity: 0;
  background: #ffffff;
  color: #555555;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-vip-club__faq-item.active .page-vip-club__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.02);
}

/* 问题样式 */
.page-vip-club__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A2342; /* Primary color for question background */
  color: #E6B325; /* Accent color for question text */
  border: 1px solid #0A2342;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.page-vip-club__faq-question:hover {
  background: #1a3a63; /* Slightly lighter primary color on hover */
  border-color: #E6B325;
}

.page-vip-club__faq-item.active .page-vip-club__faq-question {
    border-radius: 8px 8px 0 0;
    background: #0A2342;
    color: #E6B325;
}

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

/* 切换图标 */
.page-vip-club__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E6B325; /* Accent color for toggle icon */
  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: 30px;
  height: 30px;
}

.page-vip-club__faq-item.active .page-vip-club__faq-toggle {
  color: #ffffff; /* White color when active */
  transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-vip-club__heading {
        font-size: 32px;
    }
    .page-vip-club__hero-content h1 {
        font-size: 40px;
    }
    .page-vip-club__hero-content p {
        font-size: 18px;
    }
    .page-vip-club__text-block {
        font-size: 16px;
    }
    .page-vip-club__card-title,
    .page-vip-club__feature-title,
    .page-vip-club__step-title {
        font-size: 22px;
    }
    .page-vip-club__card-description,
    .page-vip-club__feature-description,
    .page-vip-club__step-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-vip-club__section {
        padding: 40px 0;
    }
    .page-vip-club__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-vip-club__hero-content h1 {
        font-size: 32px;
    }
    .page-vip-club__hero-content p {
        font-size: 16px;
    }
    .page-vip-club__cta-button,
    .page-vip-club__btn-primary {
        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-vip-club__container {
        padding: 0 15px;
    }
    .page-vip-club__heading {
        font-size: 28px;
    }

    .page-vip-club__grid,
    .page-vip-club__feature-grid,
    .page-vip-club__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-vip-club__card,
    .page-vip-club__feature-item,
    .page-vip-club__step-item {
        padding: 25px;
    }
}