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

.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark, so text is light */
    background-color: var(--black-color); /* Inherited from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    background-color: #26A9E0; /* Brand primary color for hero */
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

.page-payment-methods__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-payment-methods__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-payment-methods__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

/* Section common styles */
.page-payment-methods__overview-section,
.page-payment-methods__deposit-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__security-section,
.page-payment-methods__tips-section,
.page-payment-methods__faq-section {
    padding: 60px 0;
}

.page-payment-methods__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-payment-methods__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-payment-methods__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    margin-bottom: 25px;
    text-align: justify;
}

.page-payment-methods__highlight {
    font-weight: bold;
    color: inherit; /* Ensure highlight color contrasts with background */
}

.page-payment-methods__image {
    display: block;
    margin: 30px auto;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-payment-methods__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
    color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-payment-methods__light-bg .page-payment-methods__card {
    background-color: #F8F8F8; /* Light background for light section */
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-payment-methods__card-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: inherit;
}

.page-payment-methods__card-image {
    width: 100%;
    max-width: 400px; /* Constrain card image width */
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-payment-methods__card-text {
    font-size: 1em;
    text-align: left;
    margin-bottom: 15px;
}

.page-payment-methods__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.page-payment-methods__list li {
    margin-bottom: 8px;
}

.page-payment-methods__note {
    font-size: 0.9em;
    font-style: italic;
    display: block;
    margin-top: 10px;
    text-align: left;
    color: inherit;
}

/* Security Features */
.page-payment-methods__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

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

.page-payment-methods__feature-icon {
    width: 100%;
    max-width: 200px; /* Max width for icon */
    height: 200px; /* Fixed height for icon */
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-payment-methods__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-payment-methods__feature-description {
    font-size: 1em;
    color: #F0F0F0;
}

/* Tips Section */
.page-payment-methods__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    font-size: 1.1em;
}

.page-payment-methods__tips-list li {
    background-color: #F8F8F8;
    color: #333333;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.page-payment-methods__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-payment-methods__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit */
}

.page-payment-methods__faq-qtext {
    flex-grow: 1;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-payment-methods__faq-answer {
    padding: 20px;
    font-size: 1.1em;
    background-color: rgba(255, 255, 255, 0.03);
    color: #F0F0F0;
}

.page-payment-methods__faq-answer p {
    margin: 0;
}

.page-payment-methods__link {
    color: #FFFFFF; /* White for dark background */
    text-decoration: underline;
}

.page-payment-methods__light-bg .page-payment-methods__link {
    color: #26A9E0; /* Brand color for light background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods__main-title {
        font-size: 2.8em;
    }
    .page-payment-methods__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding: 60px 0;
    }

    .page-payment-methods__main-title {
        font-size: 2.2em;
    }

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

    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

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

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

    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-section,
    .page-payment-methods__withdrawal-section,
    .page-payment-methods__security-section,
    .page-payment-methods__tips-section,
    .page-payment-methods__faq-section {
        padding: 40px 0;
    }

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

    .page-payment-methods__payment-grid,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-payment-methods__image,
    .page-payment-methods__card-image,
    .page-payment-methods__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    /* All containing elements for images/videos in content area */
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__payment-grid,
    .page-payment-methods__security-features,
    .page-payment-methods__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Add padding to prevent content from touching screen edges */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Override padding for specific sections that might have 0 padding */
    .page-payment-methods__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* FAQ toggle rotation fix for mobile */
    .page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
        transform: rotate(45deg) !important;
    }
}