/* style/payment-methods.css */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a; /* Inherited from shared.css body background */
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
}

/* Base styles for the payment methods page */
.page-payment-methods {
  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); /* Ensure consistency if not inherited */
  padding-top: 100px; /* 🚨 固定导航栏间距：桌面端默认值，会被hero-section覆盖或调整 */
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px 40px;
  padding-top: 120px; /* 🚨 固定导航栏间距：确保内容不被导航栏遮挡 */
  text-align: center;
  overflow: hidden;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-payment-methods__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-payment-methods__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-payment-methods__main-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-payment-methods__main-title a:hover {
  color: #fff;
}

.page-payment-methods__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-payment-methods__hero-description a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-payment-methods__hero-description a:hover {
  color: #fff;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* 🚨 按钮响应式：允许换行 */
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* 🚨 按钮响应式 */
  box-sizing: border-box; /* 🚨 按钮响应式 */
  white-space: normal; /* 🚨 按钮响应式 */
  word-wrap: break-word; /* 🚨 按钮响应式 */
}

.page-payment-methods__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-payment-methods__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__cta-button--secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-payment-methods__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

/* General Section Styles */
.page-payment-methods__section {
  padding: 80px 20px;
  overflow: hidden;
}

.page-payment-methods__dark-bg {
  background: var(--primary-color);
  color: var(--text-light);
}

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

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-payment-methods__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section background */
}

.page-payment-methods__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-payment-methods__section-description a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-payment-methods__section-description a:hover {
  color: #fff;
}

/* Grid for Payment Methods Overview */
.page-payment-methods__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-payment-methods__card {
  background: var(--card-bg-dark-mode); /* For dark sections */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: var(--text-light); /* Default for dark mode cards */
}

.page-payment-methods__light-bg .page-payment-methods__card {
  background: #ffffff; /* For light sections */
  color: var(--text-dark);
}

.page-payment-methods__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card-image {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: inherit;
}

.page-payment-methods__card-text {
  font-size: 16px;
  color: inherit;
  flex-grow: 1;
}

.page-payment-methods__card-text a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-payment-methods__card-text a:hover {
  color: var(--primary-color);
}

/* Steps Guide (Deposit/Withdraw) */
.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-payment-methods__step-item {
  background: var(--card-bg-dark-mode); /* For dark sections */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-payment-methods__light-bg .page-payment-methods__step-item {
  background: #ffffff; /* For light sections */
  color: var(--text-dark);
}

.page-payment-methods__step-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: inherit;
}

.page-payment-methods__step-text {
  font-size: 16px;
  color: inherit;
}

.page-payment-methods__step-text a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-payment-methods__step-text a:hover {
  color: var(--primary-color);
}

.page-payment-methods__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Security Section */
.page-payment-methods__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-payment-methods__feature-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
}

.page-payment-methods__dark-bg .page-payment-methods__feature-item {
  background: var(--card-bg-dark-mode);
  color: var(--text-light);
}

.page-payment-methods__feature-icon {
  width: 200px; /* 🚨 图片尺寸：最小200px */
  height: auto; /* Allow auto height to maintain aspect ratio */
  max-width: 100%; /* Ensure responsiveness */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-payment-methods__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: inherit;
}

.page-payment-methods__feature-text {
  font-size: 16px;
  color: inherit;
}

.page-payment-methods__feature-text a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-payment-methods__feature-text a:hover {
  color: var(--primary-color);
}

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

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  overflow: hidden;
  background: var(--card-bg-dark-mode); /* Dark mode background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__light-bg .page-payment-methods__faq-item {
  background: #ffffff;
}

/* FAQ default state - answer hidden */
.page-payment-methods__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 25px; /* Adjust padding for better look */
  opacity: 0;
  color: var(--text-light);
  font-size: 15px;
}

.page-payment-methods__light-bg .page-payment-methods__faq-answer {
  color: var(--text-dark);
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to accommodate any content */
  padding: 20px 25px !important; /* Adjust padding for better look */
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for expanded answer in dark mode */
  border-radius: 0 0 8px 8px;
  color: var(--text-light);
}

.page-payment-methods__light-bg .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  background: #f9f9f9;
  color: var(--text-dark);
}

/* Question style */
.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px; /* Adjust padding */
  background: transparent; /* Inherit from item background */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for dark mode */
  border-radius: 8px; /* Match item border-radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-payment-methods__light-bg .page-payment-methods__faq-question {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-dark);
}

.page-payment-methods__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.08); /* Lighter hover for dark mode */
}

.page-payment-methods__light-bg .page-payment-methods__faq-question:hover {
  background: #f5f5f5;
}

.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: inherit;
}

/* Toggle icon */
.page-payment-methods__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Use secondary color for icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px; /* Adjust margin */
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger icon area */
  height: 32px; /* Larger icon area */
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: var(--text-light); /* White when active in dark mode */
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change to '-' */
}

.page-payment-methods__light-bg .page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: var(--primary-color);
}

/* Contact CTA Section */
.page-payment-methods__contact-cta {
  background: linear-gradient(90deg, var(--primary-color) 0%, #1a2a44 100%);
  color: var(--text-light);
}

.page-payment-methods__cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.page-payment-methods__cta-content {
  flex: 1;
  min-width: 300px;
}

.page-payment-methods__contact-cta .page-payment-methods__section-title {
  text-align: left;
  margin-bottom: 15px;
}
}