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

/* Base Styles for dark body background */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-support__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Light color for titles on dark background */
    text-align: center;
    font-weight: bold;
}

.page-support__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for paragraphs */
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-support__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-support__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-support__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-support__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-text {
    display: inline-block;
    padding: 12px 25px;
    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;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

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

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-support__btn-text {
    background-color: transparent;
    color: #017439; /* Primary color for text links */
    border: none;
    padding: 5px 10px;
    text-decoration: underline;
}

.page-support__btn-text:hover {
    color: #005a2d;
}

/* Sections */
.page-support__intro-section,
.page-support__contact-methods,
.page-support__faq-section,
.page-support__responsible-gaming,
.page-support__feedback-section {
    padding: 60px 0;
}

.page-support__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__paragraph,
.page-support__light-bg .page-support__method-title,
.page-support__light-bg .page-support__method-description,
.page-support__light-bg .page-support__form-label {
    color: #333333;
}

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

.page-support__method-card {
    background-color: #f8f8f8; /* Light background for cards in light section */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 400px; /* Ensure cards have similar height */
}

.page-support__light-bg .page-support__method-card {
    background-color: #ffffff; /* White background for cards in light section */
    color: #333333;
}

.page-support__method-icon {
    width: 200px; /* Min size for images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__method-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Primary color for card titles */
}

.page-support__method-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow description to take available space */
}

/* FAQ Section */
.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ items on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-support__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

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

.page-support__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
    color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 20px;
}

.page-support__faq-item.active .page-support__faq-question {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-support__faq-answer .page-support__btn-text {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Responsible Gaming */
.page-support__responsible-gaming .page-support__image-full-width {
    display: block;
    margin: 30px auto;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
}

/* Feedback Form */
.page-support__feedback-form {
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__form-group {
    margin-bottom: 20px;
}

.page-support__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

.page-support__form-input,
.page-support__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-support__form-input::placeholder,
.page-support__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-support__form-input:focus,
.page-support__form-textarea:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

.page-support__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-support__feedback-form .page-support__btn-primary {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__paragraph {
        font-size: 0.95em;
    }
    .page-support__method-grid {
        grid-template-columns: 1fr;
    }
    .page-support__method-card {
        padding: 20px;
        min-height: auto;
    }
    .page-support__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-support__faq-answer {
        padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 15px;
    }

    /* Images responsiveness for mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__feedback-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-support__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Maintain height for hero */
    }
}

@media (max-width: 480px) {
    .page-support__hero-section {
        height: 400px;
    }
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__hero-description {
        font-size: 0.9em;
    }
    .page-support__hero-cta-buttons {
        gap: 10px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        padding: 10px 15px !important;
        font-size: 0.9em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__feedback-form {
        padding: 20px;
    }
}