/* Base styles for the payment-methods page */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-payment-methods__section {
  padding: 40px 0;
}

.page-payment-methods__dark-bg {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Main color gradient */
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-payment-methods__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #1F2D3D; /* Text Main */
}

.page-payment-methods__dark-bg .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__text-block {
  font-size: 16px;
  text-align: justify;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-payment-methods__hero-image {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

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

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: -100px; /* Overlap slightly with image for visual appeal */
  color: #ffffff;
}

.page-payment-methods__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-payment-methods__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  margin-right: 15px;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.6);
}

.page-payment-methods__btn-secondary {
  background-color: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__cta-buttons {
  text-align: center;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-payment-methods__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
  color: #1F2D3D; /* Text Main */
}

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

.page-payment-methods__card-image {
  width: 100%;
  height: 200px;
  object-fit: contain; /* Changed from cover to contain to avoid cropping payment logos */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-payment-methods__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2F6BFF; /* Main color */
}

.page-payment-methods__card-description {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
}

/* Guide Steps */
.page-payment-methods__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-payment-methods__step-item {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  border: 1px solid #D6E2FF; /* Border */
  color: #1F2D3D; /* Text Main */
}

.page-payment-methods__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-payment-methods__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2F6BFF; /* Main color */
}

.page-payment-methods__step-description {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-payment-methods__note-text {
  font-size: 14px;
  color: #1F2D3D;
  text-align: center;
  margin-top: 30px;
  padding: 15px;
  background-color: #e6f0ff; /* Light blue background */
  border-radius: 8px;
  border-left: 5px solid #2F6BFF;
}

/* Security Section */
.page-payment-methods__security-section {
  padding: 60px 0;
}

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-payment-methods__security-list li {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-payment-methods__list-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 5px #A5C4FF); /* Glow */
}

/* FAQ Section */
details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* 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: #f5f5f5;
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

/* Conclusion Section */
.page-payment-methods__conclusion-section {
  text-align: center;
  padding-bottom: 60px;
}

.page-payment-methods__conclusion-section .page-payment-methods__section-title {
  color: #2F6BFF;
}

.page-payment-methods__conclusion-section .page-payment-methods__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    margin-top: -50px;
    padding: 25px 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }

  .page-payment-methods__hero-description {
    font-size: 16px;
  }

  .page-payment-methods__section-title {
    font-size: 28px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    font-size: 15px;
    padding: 10px 20px;
  }

  .page-payment-methods__card-title {
    font-size: 20px;
  }

  .page-payment-methods__step-title {
    font-size: 18px;
  }

  .page-payment-methods__security-list li {
    font-size: 15px;
  }

  .page-payment-methods__faq-qtext {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__section {
    padding: 30px 0;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }

  .page-payment-methods__hero-image img {
    object-fit: contain !important; /* HERO 主图区域: 移动 object-fit:contain !important */
    aspect-ratio: unset !important; /* aspect-ratio:unset */
    height: auto !important; /* Ensure height adjusts */
  }

  .page-payment-methods__hero-content {
    margin-top: -50px;
    padding: 20px 15px;
    border-radius: 0;
  }

  .page-payment-methods__main-title {
    font-size: clamp(22px, 6vw, 36px); /* Adjust clamp for smaller screens */
    line-height: 1.3;
  }

  .page-payment-methods__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-payment-methods__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-payment-methods__text-block {
    font-size: 15px;
    text-align: left;
  }

  /* Buttons and Button Containers */
  .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;
    margin-right: 0 !important; /* Remove margin for stacked buttons */
  }

  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* Images and Image Containers */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__card-image {
    height: auto;
    max-height: 180px;
  }

  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__methods-grid,
  .page-payment-methods__guide-steps {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-payment-methods__card {
    padding: 20px;
  }

  .page-payment-methods__step-item {
    padding: 20px;
  }

  .page-payment-methods__security-list {
    gap: 15px;
  }

  .page-payment-methods__security-list li {
    font-size: 14px;
    padding: 12px 15px;
  }

  .page-payment-methods__list-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }

  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;
  }

  /* General content area for long articles/text blocks */
  .page-payment-methods__article-body {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 15px; /* Adjust font size for readability */
    line-height: 1.7;
  }

  .page-payment-methods__section-title-wrap, /* Placeholder for section title wrap if any */
  .page-payment-methods__article-figure { /* Placeholder for figures in articles */
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 15px;
    margin: 0 auto;
    text-align: center; /* Center align images/figures */
  }

  .page-payment-methods__article-figure img {
    width: 100%;
    height: auto;
  }

  .page-payment-methods__products-grid { /* Assuming this might be a product grid for non-homepage */
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust minmax for smaller cards */
    gap: 15px;
  }

  .page-payment-methods__products-section { /* Container for product grid */
    overflow-x: hidden;
  }
}