/* style/support.css */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Text Main */
    background-color: #140C0C; /* Background */
}

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

/* --- Hero Section --- */
.page-support__hero-section {
    padding-top: 10px; /* Adhere to fixed header spacing rule */
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    background-color: #140C0C; /* Background */
    padding-bottom: 40px;
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Consistent with container max-width */
    margin-bottom: 20px;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-support__main-title {
    font-size: 2.8em; /* Using em, not fixed px, let it scale */
    font-weight: bold;
    line-height: 1.2;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-support__intro-description {
    font-size: 1.1em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 25px;
}

.page-support__cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #ffffff; /* White text for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__cta-button:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

/* --- Section Titles & Descriptions --- */
.page-support__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #F3C54D; /* Gold */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-support__section-description {
    font-size: 1.1em;
    color: #FFF1E8; /* Text Main */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* --- Channels Section (Dark Background) --- */
.page-support__channels-section {
    background-color: #2A1212; /* Card BG, as a dark section */
    padding: 60px 0;
}

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

.page-support__channel-card {
    background-color: #140C0C; /* Background */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__channel-icon {
    width: 100%;
    max-width: 200px; /* Minimum 200px width/height for generation, display adjusted by CSS */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px;
}

.page-support__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
}

.page-support__card-text {
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-support__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

/* --- Guide Section --- */
.page-support__guide-section {
    padding: 60px 0;
    background-color: #140C0C; /* Background */
}

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

.page-support__step-card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-support__step-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
}

.page-support__step-text {
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
}

/* --- FAQ Section (Dark Background) --- */
.page-support__faq-section {
    background-color: #2A1212; /* Card BG, as a dark section */
    padding: 60px 0;
}

.page-support__faq-list {
    margin-top: 40px;
}

.page-support__faq-item {
    background-color: #140C0C; /* Background */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F3C54D; /* Gold */
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-support__faq-question::-webkit-details-marker {
    display: none;
}

.page-support__faq-question:hover {
    background-color: #C61F1F; /* Main color */
}

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

.page-support__faq-answer {
    padding: 0 30px 20px 30px;
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
}

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

.page-support__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff; /* White background */
    color: #C61F1F; /* Main color text */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    border: 2px solid #C61F1F; /* Main color border */
    cursor: pointer;
    font-size: 0.95em;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-secondary:hover {
    background: #C61F1F; /* Main color */
    color: #ffffff; /* White text */
}

/* --- Privacy Section --- */
.page-support__privacy-section {
    padding: 60px 0;
    background-color: #140C0C; /* Background */
}

.page-support__privacy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-support__privacy-list li {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-support__list-item-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #F3C54D; /* Gold */
    margin-bottom: 10px;
}

/* --- Feedback Section (Dark Background) --- */
.page-support__feedback-section {
    background-color: #2A1212; /* Card BG, as a dark section */
    padding: 60px 0;
}

.page-support__feedback-content {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.page-support__feedback-content p {
    font-size: 1.1em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 20px;
}

/* --- Conclusion Section --- */
.page-support__conclusion-section {
    padding: 60px 0;
    background-color: #140C0C; /* Background */
    text-align: center;
}

.page-support__conclusion-text {
    max-width: 800px;
    margin: 40px auto;
}

.page-support__conclusion-text p {
    font-size: 1.1em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 20px;
}

/* --- Responsive Styles --- */

/* Mandatory general image and button rules for all viewports */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary,
.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 {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 2.5em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__channel-grid,
    .page-support__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-support__container {
        padding: 15px;
    }

    /* Mandatory image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-support__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    .page-support__hero-content {
        margin-bottom: 20px;
    }
    .page-support__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .page-support__intro-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-support__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        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;
    }

    /* Section Titles & Descriptions */
    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-support__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Channels Section */
    .page-support__channels-section,
    .page-support__guide-section,
    .page-support__faq-section,
    .page-support__privacy-section,
    .page-support__feedback-section,
    .page-support__conclusion-section {
        padding: 40px 0;
    }
    .page-support__channel-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-support__channel-card {
        padding: 20px;
    }
    .page-support__channel-icon {
        max-width: 150px; /* Adjust for mobile display, generation still uses 400x300 */
    }
    .page-support__card-title {
        font-size: 1.3em;
    }
    .page-support__card-text {
        font-size: 0.95em;
    }
    .page-support__btn-primary {
        padding: 10px 20px;
        font-size: 0.95em;
        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;
    }

    /* Guide Section */
    .page-support__guide-steps {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-support__step-card {
        padding: 20px;
    }
    .page-support__step-title {
        font-size: 1.4em;
    }
    .page-support__step-text {
        font-size: 0.95em;
    }

    /* FAQ Section */
    .page-support__faq-item {
        margin-bottom: 10px;
    }
    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }
    .page-support__btn-secondary {
        padding: 8px 15px;
        font-size: 0.9em;
        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;
    }

    /* Privacy Section */
    .page-support__privacy-list li {
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-support__list-item-title {
        font-size: 1.2em;
    }

    /* Feedback Section */
    .page-support__feedback-content {
        margin: 30px auto;
    }
    .page-support__feedback-content p {
        font-size: 1em;
    }

    /* Conclusion Section */
    .page-support__conclusion-text {
        margin: 30px auto;
    }
    .page-support__conclusion-text p {
        font-size: 1em;
    }

    /* --- MANDATORY CSS BLOCKS FOR HOME PAGE COMPONENTS (EVEN IF NOT IN HTML) --- */
    /* 1. Top Carousel (Hero Slider) */
    .page-support__hero-carousel-section {
        padding-top: 10px !important; /* Fixed header spacing, if present */
        background-color: #140C0C;
        position: relative;
        overflow: hidden;
        width: 100%;
        height: 250px; /* Example fixed height for mobile */
    }
    .page-support__hero-slider {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
        height: 100%;
    }
    .page-support__hero-slide {
        min-width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        display: none; /* Hide by default, JS toggles active */
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .page-support__hero-slide.is-active {
        display: flex;
    }
    .page-support__hero-slider-prev,
    .page-support__hero-slider-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        z-index: 10;
        font-size: 1.5em;
        border-radius: 5px;
    }
    .page-support__hero-slider-prev { left: 10px; }
    .page-support__hero-slider-next { right: 10px; }

    /* 2. Guide Box + Five Team Vertical Cards (上二下三) */
    .page-support__guide-box {
        padding: 16px 15px 24px 15px;
        background: #2A1212; /* Card BG */
        border-radius: 4px;
        margin: 20px 0;
    }
    .page-support__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* 6 columns for mobile grid */
        gap: 10px;
    }
    .page-support__guide-card {
        padding-top: 0 !important; /* Reset specific desktop padding */
        text-align: center;
        background-color: #140C0C; /* Background */
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .page-support__guide-card--pos-1,
    .page-support__guide-card--pos-2 {
        grid-column: span 3; /* Two cards occupy 3 columns each (total 6) */
    }
    .page-support__guide-card--pos-3,
    .page-support__guide-card--pos-4,
    .page-support__guide-card--pos-5 {
        grid-column: span 2; /* Three cards occupy 2 columns each (total 6) */
    }
    .page-support__guide-card img {
        aspect-ratio: 250/350; /* Fixed aspect ratio for vertical images */
        object-fit: contain;
        width: 100%;
        height: auto;
        display: block;
    }
    /* No text under guide card images */

    /* 3. Home Content Box (700px height desktop -> auto height mobile) */
    .page-support__home-content-box {
        max-width: 100% !important;
        width: 100% !important;
        margin: 20px 0;
        padding: 10px 15px;
        border: 5px solid #6A1E1E; /* Border */
        border-radius: 15px;
        box-shadow: 0 0 10px #7E0D0D; /* Deep Red */
        height: auto !important; /* Auto height for mobile */
        box-sizing: border-box;
    }
    .page-support__home-content-inner {
        height: auto !important;
        overflow: visible !important;
        padding: 0;
    }

    /* 4. Blog Card Section (4 -> 2 -> 1 columns) */
    .page-support__blog-section {
        padding: 40px 0;
        background-color: #140C0C; /* Background */
    }
    .page-support__blog-grid {
        display: grid;
        grid-template-columns: 1fr !important; /* Single column for mobile */
        gap: 20px;
    }
    .page-support__blog-card {
        background-color: #2A1212; /* Card BG */
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .page-support__blog-card-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        aspect-ratio: 16/9; /* Example aspect ratio */
    }
    .page-support__blog-card-content {
        padding: 20px;
    }
    .page-support__blog-card-title {
        font-size: 1.2em;
        color: #F3C54D; /* Gold */
        margin-bottom: 10px;
    }
    .page-support__blog-card-text {
        font-size: 0.9em;
        color: #FFF1E8; /* Text Main */
    }
    .page-support__blog-view-all {
        display: block;
        text-align: center;
        margin-top: 30px;
        padding: 12px 25px;
        background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
        color: #ffffff;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
}