/* style/payment-methods.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #0a0a0a; /* Body background from shared.css */
  --card-dark-bg: rgba(255, 255, 255, 0.1);
  --card-light-bg: #ffffff;
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text on dark body background */
  background-color: var(--background-dark);
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-payment-methods__hero-section {
  position: relative;
  padding: 100px 0;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-light);
}

.page-payment-methods__hero-section .page-payment-methods__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-payment-methods__hero-content {
  flex: 1;
  text-align: left;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-payment-methods__hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.page-payment-methods__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-payment-methods__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-payment-methods__introduction-section,
.page-payment-methods__security-section,
.page-payment-methods__support-section,
.page-payment-methods__conclusion-section {
  padding: 80px 0;
  background-color: var(--card-light-bg);
  color: var(--text-dark);
}

.page-payment-methods__introduction-section .page-payment-methods__section-title,
.page-payment-methods__security-section .page-payment-methods__section-title,
.page-payment-methods__support-section .page-payment-methods__section-title,
.page-payment-methods__conclusion-section .page-payment-methods__section-title {
  color: var(--text-dark);
}

.page-payment-methods__introduction-section .page-payment-methods__section-title::after,
.page-payment-methods__security-section .page-payment-methods__section-title::after,
.page-payment-methods__support-section .page-payment-methods__section-title::after,
.page-payment-methods__conclusion-section .page-payment-methods__section-title::after {
  background-color: var(--text-dark);
}

.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__how-to-deposit-section,
.page-payment-methods__how-to-withdrawal-section,
.page-payment-methods__limits-fees-section,
.page-payment-methods__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-payment-methods__deposit-methods-section .page-payment-methods__section-title,
.page-payment-methods__withdrawal-methods-section .page-payment-methods__section-title,
.page-payment-methods__how-to-deposit-section .page-payment-methods__section-title,
.page-payment-methods__how-to-withdrawal-section .page-payment-methods__section-title,
.page-payment-methods__limits-fees-section .page-payment-methods__section-title,
.page-payment-methods__faq-section .page-payment-methods__section-title {
  color: var(--primary-color);
}

.page-payment-methods__deposit-methods-section .page-payment-methods__section-title::after,
.page-payment-methods__withdrawal-methods-section .page-payment-methods__section-title::after,
.page-payment-methods__how-to-deposit-section .page-payment-methods__section-title::after,
.page-payment-methods__how-to-withdrawal-section .page-payment-methods__section-title::after,
.page-payment-methods__limits-fees-section .page-payment-methods__section-title::after,
.page-payment-methods__faq-section .page-payment-methods__section-title::after {
  background-color: var(--primary-color);
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-payment-methods__text-block a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-payment-methods__text-block a:hover {
  text-decoration: underline;
}

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

.page-payment-methods__method-card {
  background: var(--card-light-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__method-icon {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__method-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-payment-methods__method-card--dark .page-payment-methods__method-title {
  color: var(--primary-color);
}

.page-payment-methods__method-description {
  font-size: 1em;
  color: inherit;
}

.page-payment-methods__security-list,
.page-payment-methods__info-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-payment-methods__security-list li,
.page-payment-methods__info-list li {
  background: var(--card-light-bg);
  padding: 15px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-payment-methods__dark-bg .page-payment-methods__security-list li,
.page-payment-methods__dark-bg .page-payment-methods__info-list li {
  background: var(--card-dark-bg);
  color: var(--text-light);
}

.page-payment-methods__list-icon {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-right: 15px;
  line-height: 1;
}

.page-payment-methods__security-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-payment-methods__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-payment-methods__step-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-payment-methods__step-list li {
  background: var(--card-dark-bg);
  padding: 20px 30px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-payment-methods__step-list li strong {
  color: var(--primary-color);
}

.page-payment-methods__step-list li a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-payment-methods__step-list li a:hover {
  text-decoration: underline;
}

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

.page-payment-methods__contact-item {
  background: var(--card-light-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.page-payment-methods__contact-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-payment-methods__contact-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: inherit;
}

.page-payment-methods__support-image-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-payment-methods__support-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  background-color: var(--primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__faq-question:hover {
  background-color: #2093C9; /* Slightly darker primary color */
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  background-color: var(--background-dark);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-payment-methods__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-light);
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin: 5px;
}

.page-payment-methods__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-payment-methods__btn-primary:hover {
  background-color: #1a83b8;
  border-color: #1a83b8;
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Ensure all content area images are at least 200px wide/high if explicitly sized */
.page-payment-methods img:not(.page-payment-methods__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-section .page-payment-methods__container {
    flex-direction: column;
    text-align: center;
  }

  .page-payment-methods__hero-content {
    text-align: center;
  }

  .page-payment-methods__hero-buttons {
    justify-content: center;
  }

  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }

  .page-payment-methods__section-title {
    font-size: 2em;
  }

  .page-payment-methods__methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-payment-methods__support-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px !important;
  }

  .page-payment-methods__hero-section {
    padding: var(--header-offset, 120px) 0 60px 0; /* Apply offset if not handled by shared */
  }

  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }

  .page-payment-methods__hero-description {
    font-size: 1em;
  }

  .page-payment-methods__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 5px 0;
  }

  /* HERO 主图区域 */
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-payment-methods__hero-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 & 通用图片与容器 */
  .page-payment-methods__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-methods-section,
  .page-payment-methods__security-section,
  .page-payment-methods__how-to-deposit-section,
  .page-payment-methods__how-to-withdrawal-section,
  .page-payment-methods__limits-fees-section,
  .page-payment-methods__support-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-payment-methods__text-block {
    font-size: 1em;
    padding: 0 10px;
  }

  .page-payment-methods__security-list li,
  .page-payment-methods__info-list li,
  .page-payment-methods__step-list li {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-payment-methods__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-payment-methods__faq-answer {
    padding: 10px 20px;
  }

  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
  
  /* Other content modules */
  .page-payment-methods__introduction-section, .page-payment-methods__deposit-methods-section, .page-payment-methods__withdrawal-methods-section, .page-payment-methods__security-section, .page-payment-methods__how-to-deposit-section, .page-payment-methods__how-to-withdrawal-section, .page-payment-methods__limits-fees-section, .page-payment-methods__support-section, .page-payment-methods__faq-section, .page-payment-methods__conclusion-section {
    padding: 40px 0;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__contact-item {
    padding: 20px;
  }

  .page-payment-methods__method-title,
  .page-payment-methods__contact-title {
    font-size: 1.2em;
  }
}