/* style/support.css */

/* Custom colors from requirements */
:root {
    --color-primary: #11A84E; /* 主色调 */
    --color-secondary: #22C768; /* 辅助色 */
    --color-card-bg: #11271B; /* Card BG */
    --color-background: #08160F; /* 背景 */
    --color-text-main: #F2FFF6; /* Text Main */
    --color-text-secondary: #A7D9B8; /* Text Secondary */
    --color-border: #2E7A4E; /* 边框 */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */
    --btn-primary-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page-support scope */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Overall page background */
}

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

.page-support__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive H2 */
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-support__text-block {
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability, not changing color */
    display: block;
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text block */
    border-radius: 10px;
    margin-top: 150px; /* Pushes content down below the top of the image */
}

.page-support__main-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem); /* Responsive H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-support__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
}

.page-support__btn-primary {
    background: var(--btn-primary-gradient);
    color: #ffffff;
    border: none;
}

.page-support__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-support__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-support__btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: var(--color-background); /* Use the overall background color */
}

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

.page-support__faq-item {
    background-color: var(--color-card-bg); /* Card BG */
    border: 1px solid var(--color-border); /* Border color */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main); /* Main text color for card */
}

.page-support__faq-item details > summary {
    list-style: none;
}
.page-support__faq-item details > summary::-webkit-details-marker {
    display: none;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text-main); /* Question text color */
    background-color: var(--color-card-bg); /* Ensure consistent background */
}

.page-support__faq-question:hover {
    background-color: rgba(var(--color-primary), 0.1); /* Slightly lighter hover */
}

.page-support__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gold);
}

.page-support__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary); /* Secondary text color for answer */
}

/* Guide Section */
.page-support__guide-section {
    padding: 80px 0;
    background-color: var(--color-deep-green); /* Deep Green background */
}

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

.page-support__guide-card {
    background-color: var(--color-card-bg); /* Card BG */
    border: 1px solid var(--color-border); /* Border color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main); /* Main text color for card */
}

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

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

.page-support__card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-support__card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-support__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
    color: var(--color-text-secondary);
}

.page-support__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.page-support__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: var(--color-background); /* Background color */
}

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

.page-support__channel-item {
    background-color: var(--color-card-bg); /* Card BG */
    border: 1px solid var(--color-border); /* Border color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--color-text-main); /* Main text color */
}

.page-support__channel-icon {
    width: 100px; /* Display size, generated size is >=200x200 */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-support__channel-title {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-support__channel-description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-support__response-info,
.page-support__tips-info {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 30px;
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 80px 0;
    background-color: var(--color-deep-green); /* Deep Green background */
}

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

.page-support__commitment-item {
    background-color: var(--color-card-bg); /* Card BG */
    border: 1px solid var(--color-border); /* Border color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--color-text-main); /* Main text color */
}

.page-support__commitment-icon {
    width: 100px; /* Display size, generated size is >=200x200 */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-support__item-title {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-support__item-description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Conclusion Section */
.page-support__conclusion-section {
    padding: 80px 0;
    background-color: var(--color-background); /* Background color */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-content {
        margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .page-support__container {
        padding: 0 15px !important;
    }

    .page-support__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }

    .page-support__hero-content {
        margin-top: 80px !important;
        padding: 15px !important;
    }

    .page-support__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
    }

    .page-support__description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
    }

    .page-support__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
    }

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

    .page-support__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
        margin-bottom: 30px !important;
    }

    .page-support__faq-section,
    .page-support__guide-section,
    .page-support__contact-section,
    .page-support__commitment-section,
    .page-support__conclusion-section {
        padding: 50px 0 !important;
    }

    .page-support__guide-image,
    .page-support__channel-icon,
    .page-support__commitment-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__guide-card,
    .page-support__channel-item,
    .page-support__commitment-item,
    .page-support__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by container for consistency on mobile */
    }

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

    /* All containers that might hold images/videos/buttons */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__grid,
    .page-support__faq-list,
    .page-support__contact-channels,
    .page-support__commitment-grid,
    .page-support__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Specific padding for sections that need it on mobile */
    .page-support__faq-section .page-support__container,
    .page-support__guide-section .page-support__container,
    .page-support__contact-section .page-support__container,
    .page-support__commitment-section .page-support__container,
    .page-support__conclusion-section .page-support__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-support__hero-content {
        margin-top: 50px !important;
    }
    .page-support__main-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem) !important;
    }
    .page-support__description {
        font-size: clamp(0.85rem, 3vw, 1rem) !important;
    }
}

/* Contrast Fixes (as per requirements) */
/* These are mostly handled by the specific color variables for text and backgrounds.
   Explicit classes can be added if specific areas need override. */
.page-support__dark-bg {
    background: var(--color-background); /* Example dark background */
    color: var(--color-text-main); /* Light text */
}

.page-support__light-bg {
    background: #ffffff;
    color: #333333;
}

/* Ensure no filter properties on images */
.page-support img {
    filter: none !important; /* Explicitly remove any potential filter */
}

/* Content area images CSS size lower limit */
/* This rule applies to any img within .page-support, ensuring it's not too small */
.page-support img:not(.page-support__channel-icon):not(.page-support__commitment-icon) {
    min-width: 200px;
    min-height: 200px;
}
/* For icons that are intentionally smaller in display but generated large */
.page-support__channel-icon,
.page-support__commitment-icon {
    width: 100px;
    height: 100px;
    min-width: unset;
    min-height: unset;
}