.page-support {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: var(--secondary-color, #FFFFFF); /* Body background from shared */
}

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

.page-support__hero-section {
    position: relative;
    padding-top: 10px; /* Rely on body padding for header offset, only small top padding here */
    background-color: #017439; /* Brand primary color for hero background */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-support__hero-title {
    font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive H1 font size */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-support__hero-description {
    font-size: clamp(1em, 1.2vw, 1.2em);
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-support__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* Make sure wrapper doesn't collapse */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.8; /* Slightly dim the image to make text pop */
    filter: brightness(0.7); /* Darken image for better text contrast */
}

.page-support__section-title {
    font-size: clamp(1.8em, 2.5vw, 2.5em);
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-support__section-title--light {
    color: #FFFFFF;
}

.page-support__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 0;
}

.page-support__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
    padding: 60px 0;
}

.page-support__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-support__text-block--light {
    color: #f0f0f0;
}

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

.page-support__topic-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.page-support__topic-card:hover {
    transform: translateY(-5px);
}

.page-support__topic-card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-support__topic-card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__topic-card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

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

.page-support__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
    border-color: #017439;
}

.page-support__btn-outline {
    background: transparent;
    color: #017439;
    border: 2px solid #017439;
    margin-top: auto; /* Push button to bottom of card */
}

.page-support__btn-outline:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-support__btn-full-width {
    width: 100%;
    display: block;
    margin-top: 20px;
}

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

.page-support__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f0f0f0;
    color: #017439;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    -webkit-tap-highlight-color: transparent; /* Prevent tap highlight on mobile */
}

.page-support__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-support__faq-item[open] .page-support__faq-question {
    background-color: #e0e0e0;
}

.page-support__faq-qtext {
    flex-grow: 1;
    margin-right: 10px;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-support__faq-answer {
    padding: 15px 25px;
    background-color: #ffffff;
    color: #555555;
    font-size: 1em;
    border-top: 1px solid #e0e0e0;
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

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

.page-support__contact-form-wrapper,
.page-support__other-channels {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.page-support__contact-form-title,
.page-support__other-channels-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

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

.page-support__form-label {
    display: block;
    font-size: 1em;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 500;
}

.page-support__form-input,
.page-support__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    box-sizing: border-box;
}

.page-support__form-input::placeholder,
.page-support__form-textarea::placeholder {
    color: #aaaaaa;
}

.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.2);
}

.page-support__channel-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-support__channel-item {
    margin-bottom: 15px;
}

.page-support__channel-link {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__channel-link:hover {
    color: #005a2e;
}

.page-support__channel-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: #017439;
}

/* Commitment Section */
.page-support__commitment-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* --- Placeholder CSS for required selectors (even if not used on this page) --- */
/* Module 0-2 from homepage (hero is handled above) */
.page-support__home-content {
    border: 1px solid #FBB00D;
    border-radius: 10px;
    height: 650px;
    overflow-y: auto;
    padding: 20px; /* Added padding */
    margin: 40px auto; /* Added margin */
    max-width: 900px; /* Added max-width */
}

/* Module 3: Games Row (Not used on support page, but selectors required) */
.page-support__row-games,
.page-support__row-sport,
.page-support__row-coop {
    background-color: #1A202C; /* Example dark background */
    padding: 40px 20px;
    max-width: 1330px;
    margin: 0 auto;
    display: none; /* Hide these sections on support page */
}

.page-support__games-title,
.page-support__sport-title,
.page-support__coop-title {
    color: #fff;
    text-align: center;
}

.page-support__slider-wrapper {
    overflow: hidden;
    display: none; /* Hide slider wrapper */
}

.page-support__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}

.page-support__game-slide {
    flex: 0 0 200px;
    max-width: 200px;
    display: none; /* Hide game slides */
}

/* Module 4: Banners Top Wrapper (Gameshow - Not used on support page, but selectors required) */
.page-support__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)); /* Desktop 6 columns */
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    display: none; /* Hide these sections on support page */
}

.page-support__banner-item img {
    
    
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Module 5 & 6: Blog (Used on support page for related articles / topics) */
/* Re-using page-support__topics-grid for blog-masonry style */
/* If a dedicated blog section existed with masonry/slider, rules would be here */
/* For now, topics-grid serves this purpose visually */
.page-support__blog-masonry { /* Placeholder if explicit blog section is added */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 40px;
}

.page-support__blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-support__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.page-support__blog-slide {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

/* General image and button responsiveness (REQUIRED) */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-outline,
.page-support a[class*="button"],
.page-support a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__cta-buttons,
.page-support__button-group,
.page-support__btn-container,
.page-support__contact-form-wrapper,
.page-support__other-channels {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* --- Responsive Styles (Mobile - max-width: 768px) --- */
@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-support__container {
        padding: 15px;
    }

    /* 1. HERO 主图区域 */
    .page-support__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-support__hero-content {
        padding: 40px 15px;
    }

    .page-support__hero-title {
        font-size: 2em;
    }

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

    /* General section padding */
    .page-support__light-bg,
    .page-support__dark-bg {
        padding: 40px 0;
    }

    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-support__text-block {
        font-size: 1em;
    }

    .page-support__topics-grid {
        grid-template-columns: 1fr; /* Single column for topics */
        gap: 20px;
    }

    .page-support__topic-card {
        padding: 20px;
    }

    .page-support__topic-card-image {
        height: 180px; /* Slightly smaller height for mobile cards */
    }

    /* 2. 长文金框区 */
    .page-support__home-content {
        height: auto; /* Allow content to expand */
        overflow-y: visible;
        padding: 15px;
        margin: 20px auto;
    }

    /* 3. 游戏轮播 (Placeholder for required selectors) */
    .page-support__row-games,
    .page-support__row-sport,
    .page-support__row-coop {
        padding: 20px 15px;
    }
    .page-support__slider-track {
        /* No specific mobile rules needed as it's hidden */
    }
    .page-support__game-slide {
        /* No specific mobile rules needed as it's hidden */
    }

    /* 4. 合作品牌六宫格 (Placeholder for required selectors) */
    .page-support__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns for mobile */
        gap: 8px;
    }
    .page-support__banner-item img {
         /* Smaller images for mobile */
        
    }

    /* 5. 博客卡片区 (using .page-support__topics-grid as a blog-like layout) */
    .page-support__blog-masonry { /* If a dedicated blog masonry existed */
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__blog-slide { /* If a dedicated blog slider existed */
        flex: 0 0 100%;
        max-width: 100%;
    }
    .page-support__blog-slider-track {
        /* No specific mobile rules needed as it's not present */
    }

    /* General image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* General container responsiveness */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__contact-form-wrapper,
    .page-support__other-channels {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 7. 按钮与按钮容器 */
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-outline,
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__commitment-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-support__contact-grid {
        grid-template-columns: 1fr; /* Single column for contact form and channels */
        gap: 20px;
    }

    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-support__faq-answer {
        padding: 10px 20px;
    }
}