/* Base styles for the page-payment-methods scope */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main from custom colors */
  background-color: #B71C1C; /* Background from custom colors */
}

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

.page-payment-methods__section {
  padding: 40px 0;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.page-payment-methods__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  background: rgba(19, 19, 19, 0.7); /* Dark overlay for text readability */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #FFF5E1;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #F4D34D; /* Gold from custom colors */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-payment-methods__cta-buttons--center {
  margin-top: 30px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button from custom colors */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 15px rgba(244, 211, 77, 0.4);
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(244, 211, 77, 0.6);
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: #F4D34D; /* Gold text */
  border: 2px solid #F4D34D; /* Gold border */
}

.page-payment-methods__btn-secondary:hover {
  background: rgba(244, 211, 77, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(244, 211, 77, 0.2);
}

.page-payment-methods__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #F4D34D; /* Gold from custom colors */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__intro-text {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #FFF5E1;
}

.page-payment-methods__why-choose {
  background-color: #7A0E0E; /* Deep Red for contrast */
}

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

.page-payment-methods__feature-card {
  background: #D32F2F; /* Card BG from custom colors */
  color: #FFF5E1;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border from custom colors */
}

.page-payment-methods__feature-card .page-payment-methods__feature-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-payment-methods__feature-card .page-payment-methods__card-title {
  font-size: 1.8rem;
  color: #FFD86A; /* Lighter gold for title */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__feature-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.page-payment-methods__deposit-methods,
.page-payment-methods__how-to-withdraw,
.page-payment-methods__faq-section {
  background-color: #B71C1C; /* Background from custom colors */
}

.page-payment-methods__text-contrast-fix {
  color: #FFF5E1; /* Ensure text is light on dark background */
}

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

.page-payment-methods__method-card {
  background: #D32F2F; /* Card BG from custom colors */
  color: #FFF5E1;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border from custom colors */
}

.page-payment-methods__method-card .page-payment-methods__method-icon {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__method-card .page-payment-methods__card-title {
  font-size: 1.6rem;
  color: #FFD86A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-payment-methods__method-card p {
  font-size: 1rem;
}

.page-payment-methods__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-payment-methods__step-item {
  background: #D32F2F; /* Card BG from custom colors */
  color: #FFF5E1;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

.page-payment-methods__step-title {
  font-size: 1.5rem;
  color: #FFD86A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-payment-methods__step-item p {
  font-size: 1rem;
  color: #FFF5E1;
}

.page-payment-methods__step-item a {
  color: #FFD86A;
  text-decoration: underline;
}

.page-payment-methods__step-item a:hover {
  color: #FFCC66;
}

.page-payment-methods__withdraw-info {
  margin-top: 30px;
}

.page-payment-methods__sub-title {
  font-size: 1.8rem;
  color: #FFD86A;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__info-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-payment-methods__info-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-payment-methods__safety-tips {
  background-color: #7A0E0E;
}

.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-payment-methods__tip-item {
  background: #D32F2F;
  color: #FFF5E1;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

.page-payment-methods__tip-title {
  font-size: 1.5rem;
  color: #FFD86A;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-payment-methods__tip-item p {
  font-size: 1rem;
  color: #FFF5E1;
}

.page-payment-methods__tip-item a {
  color: #FFD86A;
  text-decoration: underline;
}

.page-payment-methods__tip-item a:hover {
  color: #FFCC66;
}

/* FAQ styles */
details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border from custom colors */
  overflow: hidden;
  background: #D32F2F; /* Card BG from custom colors */
  color: #FFF5E1;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #E53935; /* Auxiliary color for hover */
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold for question text */
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F4D34D; /* Gold for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: #B71C1C; /* Background from custom colors for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
}

.page-payment-methods__conclusion {
  text-align: center;
  background-color: #7A0E0E;
  padding-bottom: 60px;
}

.page-payment-methods__conclusion p {
  color: #FFF5E1;
}

.page-payment-methods__conclusion a {
  color: #FFD86A;
  text-decoration: underline;
}

.page-payment-methods__conclusion a:hover {
  color: #FFCC66;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    padding: 40px 20px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-payment-methods__feature-card .page-payment-methods__card-title,
  .page-payment-methods__method-card .page-payment-methods__card-title,
  .page-payment-methods__step-title,
  .page-payment-methods__sub-title,
  .page-payment-methods__tip-title {
    font-size: 1.6rem;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-payment-methods__container {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-payment-methods__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }
  .page-payment-methods__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    position: relative;
    height: auto;
  }
  .page-payment-methods__hero-image-wrapper {
    position: relative;
    height: auto;
    margin-bottom: 20px;
  }
  .page-payment-methods__hero-content {
    padding: 30px 15px;
    margin-top: -80px; /* Adjust to overlap image slightly if needed, or remove */
    background: rgba(19, 19, 19, 0.8);
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.3;
  }
  .page-payment-methods__description {
    font-size: 1rem;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 1rem !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 产品展示图区域 (General content grids, not gameshow) */
  .page-payment-methods__features-grid,
  .page-payment-methods__methods-grid,
  .page-payment-methods__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-payment-methods__intro-text {
    font-size: 1rem;
    padding: 0 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-payment-methods__section-title-wrap,
  .page-payment-methods__article-body,
  .page-payment-methods__article-figure {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-payment-methods__article-body h2,
  .page-payment-methods__article-body h3 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    line-height: 1.4;
  }
  .page-payment-methods__article-body p {
    font-size: 1rem;
  }

  /* 通用图片与容器 */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__feature-card,
  .page-payment-methods__method-card,
  .page-payment-methods__step-item,
  .page-payment-methods__tip-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__hero-image-wrapper img {
    object-fit: contain !important;
  }

  /* FAQ specific mobile styles */
  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 15px;
  }
  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
  }
}