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

/* General styles for the page content, ensuring light text on dark body background */
.page-support {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: #0a0a0a; /* Explicitly set for consistency, though body handles it */
}

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

.page-support__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-support__section-title {
    font-size: 3em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly off-white for body text */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

.page-support__hero-title {
    font-size: 3.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-support__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.page-support__video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    cursor: pointer; /* Indicates clickability */
}

.page-support__video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

/* CTA Buttons */
.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
    background-color: #1e87b3;
    border-color: #1e87b3;
}

.page-support__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

/* Card Styles */
.page-support__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-support__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-support__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    width: 100%; /* Make card images responsive */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

.page-support__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
    background-color: #1a1a1a; /* Slightly darker background for FAQ section */
    padding: 80px 0;
}

.page-support__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-support__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
    font-weight: bold;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-support__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-support__text-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-right: 15px; /* Spacing for multiple links */
}

.page-support__text-link:hover {
    color: #1e87b3;
    text-decoration: underline;
}

/* Contact Section */
.page-support__contact-section {
    background-color: #0a0a0a;
    padding: 80px 0;
}

.page-support__flex-container {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-support__contact-info {
    flex: 1;
}

.page-support__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-support__contact-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-support__contact-method {
    color: #26A9E0;
    margin-right: 10px;
}

.page-support__contact-info a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__contact-info a:hover {
    color: #26A9E0;
    text-decoration: underline;
}

.page-support__contact-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Resources Section */
.page-support__resources-section {
    background-color: #1a1a1a;
    padding: 80px 0;
}

.page-support__responsible-gaming-cta {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-top: 60px;
    text-align: left;
}

.page-support__responsible-gaming-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

.page-support__responsible-gaming-content {
    flex: 1;
    color: #ffffff;
}

.page-support__responsible-gaming-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__responsible-gaming-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* Final CTA Section */
.page-support__final-cta {
    background-color: #0a0a0a;
    padding: 80px 0;
}

.page-support__text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__section-title {
        font-size: 2.5em;
    }
    .page-support__flex-container {
        flex-direction: column;
        text-align: center;
    }
    .page-support__contact-image-wrapper,
    .page-support__responsible-gaming-image {
        max-width: 80%;
        margin-top: 30px;
    }
    .page-support__responsible-gaming-cta {
        flex-direction: column;
        text-align: center;
    }
    .page-support__responsible-gaming-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__section-description {
        font-size: 0.95em;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important; /* Mobile button full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-support__grid {
        grid-template-columns: 1fr;
    }
    .page-support__card {
        padding: 20px;
    }
    .page-support__faq-question h3 {
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px 20px;
    }
    .page-support__contact-list li {
        font-size: 1em;
    }
    .page-support__responsible-gaming-cta {
        padding: 20px;
    }
    .page-support__responsible-gaming-title {
        font-size: 1.5em;
    }
    .page-support__responsible-gaming-description {
        font-size: 1em;
    }

    /* Mobile image and video responsive adaptation */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size even on mobile */
        min-height: 200px !important; /* Enforce minimum size even on mobile */
    }
    
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__video-wrapper,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Add padding to sections/containers to prevent content from touching edges on mobile */
    .page-support__section:not(.page-support__hero-section) .page-support__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__responsible-gaming-cta {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile if needed */
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__responsible-gaming-title {
        font-size: 1.3em;
    }
    .page-support__contact-list {
        text-align: center;
    }
}