/* Base styles for the payment methods page */
.page-payment-methods {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: #f9f9f9;
}

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

.page-payment-methods__section {
    padding: 60px 0;
    text-align: center;
}

.page-payment-methods__dark-section {
    background-color: #26A9E0; /* Brand main color */
    color: #ffffff;
}

.page-payment-methods__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-payment-methods__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    background-color: #f0f8ff; /* Light blue background for hero */
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    display: block;
}

.page-payment-methods__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-payment-methods__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 800;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-payment-methods__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-payment-methods__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-payment-methods__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

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

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

.page-payment-methods__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
}

.page-payment-methods__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-payment-methods__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-payment-methods__card-text {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

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

.page-payment-methods__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: #333333;
}

.page-payment-methods__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 20px;
    display: block;
}

.page-payment-methods__feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-payment-methods__feature-description {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

.page-payment-methods__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-payment-methods__tips-list li {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #26A9E0;
    color: #333333;
    font-size: 17px;
}

.page-payment-methods__tips-list li strong {
    color: #26A9E0;
}

/* FAQ styles */
details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
  color: #333333; /* Ensure dark text on light background */
}
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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #26A9E0; /* Brand color for question text */
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #555555;
}
.page-payment-methods__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods__hero-image {
        height: 500px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-payment-methods__section-title {
        font-size: 32px;
    }
    .page-payment-methods__card,
    .page-payment-methods__feature-item {
        padding: 25px;
    }
    .page-payment-methods__card-title,
    .page-payment-methods__feature-title {
        font-size: 20px;
    }
    .page-payment-methods__card-text,
    .page-payment-methods__feature-description,
    .page-payment-methods__tips-list li {
        font-size: 15px;
    }
    .page-payment-methods__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-payment-methods__hero-image {
        height: 300px; /* Smaller height for mobile hero */
        margin-bottom: 15px;
    }
    .page-payment-methods__hero-image img {
        object-fit: contain !important; /* Contain for mobile */
        aspect-ratio: unset !important;
    }
    .page-payment-methods__hero-section {
        padding-top: 10px; /* Small top padding */
    }
    .page-payment-methods__hero-content {
        padding: 10px 0 40px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
        color: #26A9E0; /* Ensure color contrast */
    }
    .page-payment-methods__description {
        font-size: 15px;
        margin-bottom: 20px;
        color: #555555; /* Ensure color contrast */
    }
    
    /* 按钮与按钮容器 */
    .page-payment-methods__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-payment-methods__button-container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-payment-methods__button-container a {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 装饰主标题 + 长文 SEO 区 (general section titles, content grids) */
    .page-payment-methods__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        color: inherit; /* Inherit color from parent section */
    }
    .page-payment-methods__content-grid,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-payment-methods__card,
    .page-payment-methods__feature-item {
        padding: 20px;
    }
    .page-payment-methods__card-title,
    .page-payment-methods__feature-title {
        font-size: 18px;
    }
    .page-payment-methods__card-text,
    .page-payment-methods__feature-description {
        font-size: 15px;
    }
    .page-payment-methods__tips-list {
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-payment-methods__tips-list li {
        font-size: 15px;
        padding: 15px 20px;
    }

    /* FAQ 区域 */
    details.page-payment-methods__faq-item summary.page-payment-methods__faq-question { padding: 15px; }
    .page-payment-methods__faq-qtext { font-size: 16px; }
    details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
        padding: 0 15px 15px;
    }
    .page-payment-methods__faq-answer p {
        font-size: 15px;
    }

    /* 通用图片与容器 */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__security-features,
    .page-payment-methods__content-grid,
    .page-payment-methods__tips-list,
    .page-payment-methods__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods__section {
        padding: 40px 0;
    }
}