/* style/vip-club.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
  --bg-dark-section: #26A9E0; /* Using primary color for dark sections */
  --btn-login-color: #EA7C07; /* Custom color for login buttons if any */
}

/* Base styles for the VIP Club page */
.page-vip-club {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Matches shared body background */
}

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

.page-vip-club__container--centered {
  text-align: center;
}

.page-vip-club__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

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

.page-vip-club__section-title {
  font-size: 36px;
  color: inherit; /* Inherits from section, so white on dark, dark on light */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-vip-club__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--text-color-light); /* White line on dark section */
  border-radius: 2px;
}

.page-vip-club__introduction .page-vip-club__section-title::after {
  background-color: var(--primary-color); /* Blue line on light section */
}

.page-vip-club__privileges .page-vip-club__section-title::after {
  background-color: var(--primary-color); /* Blue line on light section */
}

.page-vip-club__faq-section .page-vip-club__section-title::after {
  background-color: var(--primary-color); /* Blue line on light section */
}

.page-vip-club__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit; /* Inherits from section */
}

/* 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: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color-dark);
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-vip-club__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Limit hero image width */
}

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

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

.page-vip-club__hero-title {
  font-size: 48px;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-vip-club__hero-description {
  font-size: 20px;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-vip-club__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-vip-club__cta-button:hover {
  background: var(--btn-login-color); /* Using login color for hover, as a strong action */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-vip-club__level-card {
  background: rgba(255, 255, 255, 0.1); /* Light background for cards on dark section */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light); /* Light text on dark card */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-vip-club__level-title {
  font-size: 24px;
  color: var(--text-color-light);
  margin-bottom: 15px;
}

.page-vip-club__level-description {
  font-size: 16px;
  color: var(--text-color-light);
}

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

.page-vip-club__privilege-item {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

.page-vip-club__privilege-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-vip-club__privilege-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-vip-club__privilege-description {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* Join/Upgrade Steps Grid */
.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: rgba(255, 255, 255, 0.1); /* Light background for cards on dark section */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-vip-club__step-title {
  font-size: 22px;
  color: var(--text-color-light);
  margin-bottom: 10px;
}

.page-vip-club__step-description {
  font-size: 16px;
  color: var(--text-color-light);
}

/* FAQ Section */
.page-vip-club__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-vip-club__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-vip-club__faq-item.active .page-vip-club__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark); /* Ensure text is dark on light background */
}

/* 问题样式 */
.page-vip-club__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  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;
  color: var(--text-color-dark); /* Ensure text is dark on light background */
}

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

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

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

/* 切换图标 */
.page-vip-club__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Using primary 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: 28px;
  height: 28px;
}

.page-vip-club__faq-item.active .page-vip-club__faq-toggle {
  color: var(--text-color-dark); /* Darker color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Final CTA Section */
.page-vip-club__cta-final {
  padding: 80px 0;
  text-align: center;
}