/* style/payment-methods.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Color Contrast Enforcement */
.page-payment-methods__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-payment-methods__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-payment-methods__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Slightly darken background image for text readability */
}

.page-payment-methods__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for prominent titles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-payment-methods__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-payment-methods__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    margin-top: 20px;
}

.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-payment-methods__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom color for Register/Login font */
    border: 2px solid #C30808;
}

.page-payment-methods__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    color: #ffffff;
}

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom color for Register/Login font */
    border: 2px solid #FFFF00;
}

.page-payment-methods__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Video Section */
.page-payment-methods__video-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f8f8;
}

.page-payment-methods__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Limit video width */
    margin: 30px auto 0 auto;
    background-color: #000; /* Fallback for video area */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-payment-methods__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-payment-methods__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-payment-methods__content-area {
    padding: 60px 0;
}

.page-payment-methods__section-title {
    font-size: 2.2em;
    color: #017439; /* Primary brand color */
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

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

.page-payment-methods__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-payment-methods__text-block {
    font-size: 1.05em;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-payment-methods__image {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-payment-methods__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-payment-methods__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-payment-methods__numbered-list {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-payment-methods__numbered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-payment-methods__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-payment-methods__link:hover {
    text-decoration: underline;
    color: #005f2e;
}

/* FAQ Section */
.page-payment-methods__faq-container {
    margin-top: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-payment-methods__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-payment-methods__faq-item:last-child {
    border-bottom: none;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: #f0f0f0;
}

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

.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;
    background-color: #ffffff;
    color: #555555;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Important for dynamic content, sufficiently large */
    padding: 15px 25px;
}

.page-payment-methods__faq-answer p {
    margin-bottom: 15px;
    font-size: 1.0em;
}

/* Bottom CTA Buttons */
.page-payment-methods__cta-buttons--bottom {
    margin-top: 60px;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 2.2em;
    }
    .page-payment-methods__hero-description {
        font-size: 1.1em;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__sub-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific styles */
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header offset for mobile, controlled by shared */
    .page-payment-methods__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is applied */
    }

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

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

    .page-payment-methods__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-payment-methods__video-section {
        padding: 40px 15px;
    }

    .page-payment-methods__video-wrapper {
        margin: 20px auto 0 auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-payment-methods__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-payment-methods__container {
        padding: 0 15px;
    }

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

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

    .page-payment-methods__section-title::after {
        width: 60px;
    }

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

    .page-payment-methods__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
    }

    .page-payment-methods__text-block,
    .page-payment-methods__list li,
    .page-payment-methods__numbered-list li,
    .page-payment-methods__faq-answer p {
        font-size: 0.95em;
    }

    /* FAQ Mobile Styles */
    .page-payment-methods__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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

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

/* Image filter restriction */
.page-payment-methods img {
    filter: none; /* Ensure no color-changing filters are applied */
}