:root {
  --page-payment-methods-primary-color: #FF8C1A;
  --page-payment-methods-secondary-color: #FFA53A;
  --page-payment-methods-background-dark: #0D0E12;
  --page-payment-methods-card-bg: #17191F;
  --page-payment-methods-text-main: #FFF3E6;
  --page-payment-methods-border-color: #A84F0C;
  --page-payment-methods-glow-color: #FFB04D;
  --page-payment-methods-deep-orange: #D96800;
  --page-payment-methods-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  color: var(--page-payment-methods-text-main);
  background-color: var(--page-payment-methods-background-dark);
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top margin, rely on body padding-top for header offset */
  background-color: var(--page-payment-methods-background-dark);
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
}

.page-payment-methods__hero-image img {
  width: 100%;
  height: 675px; /* Adjust as needed for aspect ratio or fill */
  object-fit: cover;
  display: block;
}

.page-payment-methods__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-payment-methods__description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 30px;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-payment-methods__btn-primary {
  background: var(--page-payment-methods-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-payment-methods__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-payment-methods__btn-secondary:hover {
  background: var(--page-payment-methods-secondary-color);
  color: #ffffff;
}

/* General Section Styles */
.page-payment-methods__section {
  padding: 60px 0;
  background-color: var(--page-payment-methods-background-dark);
  overflow: hidden; /* Prevent content overflow */
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--page-payment-methods-primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-payment-methods__subsection-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--page-payment-methods-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-payment-methods p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 15px;
}

.page-payment-methods__list,
.page-payment-methods__ordered-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-payment-methods__ordered-list {
  list-style-type: decimal;
}

.page-payment-methods__list li,
.page-payment-methods__ordered-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-payment-methods-text-main);
  margin-bottom: 8px;
}

.page-payment-methods a {
  color: var(--page-payment-methods-secondary-color);
  text-decoration: none;
}

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

.page-payment-methods__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Methods Grid */
.page-payment-methods__methods-grid,
.page-payment-methods__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-payment-methods__method-card,
.page-payment-methods__channel-card {
  background-color: var(--page-payment-methods-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 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;
  color: var(--page-payment-methods-text-main);
}

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

.page-payment-methods__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  max-width: 100%;
}

.page-payment-methods__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-payment-methods-primary-color);
  margin-bottom: 15px;
}

.page-payment-methods__method-card p,
.page-payment-methods__channel-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1; /* Make sure paragraph takes available space */
  margin-bottom: 20px;
}

.page-payment-methods__method-card .page-payment-methods__btn-primary,
.page-payment-methods__channel-card .page-payment-methods__btn-primary {
  margin-top: auto; /* Push button to bottom */
  width: 100%;
  max-width: 200px; /* Limit button width inside card */
}

.page-payment-methods__note {
  font-style: italic;
  text-align: center;
  margin-top: 30px;
  color: var(--page-payment-methods-text-main);
  opacity: 0.8;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 40px;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-payment-methods-border-color);
  overflow: hidden;
  background: var(--page-payment-methods-card-bg);
  color: var(--page-payment-methods-text-main);
}
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: rgba(255, 255, 255, 0.05); /* Lighter hover for dark background */
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-payment-methods-text-main);
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-payment-methods-secondary-color);
  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: rgba(255, 255, 255, 0.03); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer p {
  color: var(--page-payment-methods-text-main);
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-image img {
    height: 500px;
  }
  .page-payment-methods__hero-content {
    padding: 30px 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-payment-methods__description {
    font-size: 1rem;
  }
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }
  .page-payment-methods__subsection-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }
  .page-payment-methods__container {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-payment-methods__hero-section {
    padding-top: 10px; /* Small top margin, rely on body padding-top for header offset */
  }
  .page-payment-methods__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    height: auto !important; /* Auto height for mobile */
  }
  .page-payment-methods__hero-content {
    padding: 20px 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    text-align: center;
  }
  .page-payment-methods__description {
    font-size: 0.95rem;
    text-align: center;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* 按钮与按钮容器 */
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* General Section Styles for Mobile */
  .page-payment-methods__section {
    padding: 30px 0;
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 30px;
  }
  .page-payment-methods__subsection-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    text-align: left;
  }
  .page-payment-methods p,
  .page-payment-methods__list li,
  .page-payment-methods__ordered-list li {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .page-payment-methods__container {
    padding: 0 15px; /* Use 0 padding for container and add padding to inner elements */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__channel-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__image-content {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0; /* Remove border-radius on mobile for full width */
  }

  /* Methods Grid for Mobile */
  .page-payment-methods__methods-grid,
  .page-payment-methods__support-channels {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    padding: 0;
  }
  .page-payment-methods__method-card,
  .page-payment-methods__channel-card {
    padding: 20px;
    border-radius: 0; /* Full width cards */
  }
  .page-payment-methods__card-image {
    height: 180px;
    border-radius: 0;
  }

  /* FAQ Section for Mobile */
  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;
  }
}