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

/* Base styles for the page content area */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default body background is white */
}

/* --- Hero Section --- */
.page-support__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f8f8f8;
    color: #333333;
}

.page-support__hero-content {
    max-width: 800px;
    margin-bottom: 30px;
}

.page-support__hero-title {
    font-size: 2.8em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no image filter */
}

/* --- General Section Styles --- */
.page-support__section-title {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555555;
    padding: 0 15px;
}

/* --- Buttons --- */
.page-support__btn {
    display: inline-block;
    padding: 14px 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;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%;
}

.page-support__btn--primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom color for register/login font */
    border: 2px solid #C30808;
}

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

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

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

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

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


/* --- Channels Section --- */
.page-support__channels-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-support__channels-section .page-support__section-title {
    color: #ffffff;
}

.page-support__channels-section .page-support__section-description {
    color: #f0f0f0;
}

.page-support__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-support__channel-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-support__channel-icon {
    width: 200px; /* Adjusted to meet minimum 200px display size */
    height: 150px; /* Adjusted to meet minimum 200px display size */
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 8px;
    filter: none; /* Ensure no image filter */
}

.page-support__channel-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-support__channel-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Ensure text takes available space */
}

/* --- FAQ Section --- */
.page-support__faq-section {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333333;
}

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

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

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

.page-support__faq-question:hover {
    background-color: #e0e0e0;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or '-' */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #ffffff;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 20px 25px; /* Padding for expanded state */
}

.page-support__faq-answer p {
    margin: 0;
    padding: 0;
}

/* --- Guides Section --- */
.page-support__guides-section {
    padding: 80px 20px;
    background-color: #f0f8f0; /* Light green background */
    color: #333333;
}

.page-support__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-support__guide-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-support__guide-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no image filter */
}

.page-support__guide-title {
    font-size: 1.4em;
    margin: 20px 15px 10px 15px;
    color: #017439;
}

.page-support__guide-title a {
    color: #017439;
    text-decoration: none;
}

.page-support__guide-title a:hover {
    text-decoration: underline;
}

.page-support__guide-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

/* --- Safety Section --- */
.page-support__safety-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand dark background */
    color: #ffffff;
}

.page-support__safety-section .page-support__section-title {
    color: #ffffff;
}

.page-support__safety-section .page-support__section-description {
    color: #f0f0f0;
}

.page-support__safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-support__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__feature-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no image filter */
}

.page-support__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-support__feature-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* --- Contact CTA Section --- */
.page-support__contact-cta {
    padding: 80px 20px;
    background-color: #f8f8f8;
    text-align: center;
    color: #333333;
}

.page-support__contact-cta .page-support__section-title {
    color: #017439;
}

.page-support__contact-cta .page-support__section-description {
    color: #555555;
    margin-bottom: 50px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
}

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

    .page-support__channels-section,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__safety-section,
    .page-support__contact-cta {
        padding: 50px 15px;
    }

    .page-support__section-title {
        font-size: 1.6em;
    }
    .page-support__section-description {
        font-size: 0.95em;
    }

    .page-support__channel-card,
    .page-support__guide-card,
    .page-support__feature-item {
        padding: 25px;
    }

    .page-support__faq-question {
        padding: 18px 20px;
        font-size: 1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 18px 20px;
    }

    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no image filter on mobile */
    }
    
    .page-support__hero-image-wrapper,
    .page-support__channel-card,
    .page-support__guide-card,
    .page-support__feature-item,
    .page-support__channels-grid,
    .page-support__guides-grid,
    .page-support__safety-features,
    .page-support__faq-list,
    .page-support__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure content area does not cause horizontal scroll */
    .page-support {
      overflow-x: hidden;
    }
    /* Ensure multiple buttons wrap correctly in a column layout */
    .page-support__hero-buttons,
    .page-support__button-group,
    .page-support__btn-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}