﻿.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #002855 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

    .page-header h1 {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .page-header p {
        font-size: 20px;
        opacity: 0.9;
        max-width: 700px;
        margin: 0 auto;
    }

.faq-section {
    background-color: var(--background);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
}

    .category-btn:hover {
        border-color: var(--secondary);
        color: var(--secondary);
    }

    .category-btn.active {
        background-color: var(--secondary);
        border-color: var(--secondary);
        color: white;
    }

.faq-list {
    max-width: 900px;
    margin: 0 auto 60px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(1, 31, 63, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: rgba(255, 107, 53, 0.3);
        box-shadow: 0 10px 30px rgba(1, 31, 63, 0.1);
    }

.faq-question {
    padding: 25px 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: var(--primary);
    background: var(--background);
    transition: background-color 0.3s ease;
}

    .faq-question:hover {
        background-color: rgba(255, 107, 53, 0.05);
    }

    .faq-question i {
        color: var(--secondary);
        transition: transform 0.3s;
    }

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    border-top: 2px solid transparent;
}

.faq-item.active .faq-answer {
    padding: 30px;
    max-height: 500px;
    border-top-color: rgba(255, 107, 53, 0.2);
}

.faq-answer p {
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

.faq-contact {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(1, 31, 63, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

    .faq-contact h3 {
        font-size: 28px;
        color: var(--primary);
        margin-bottom: 15px;
    }

    .faq-contact p {
        color: var(--text);
        margin-bottom: 25px;
        opacity: 0.8;
    }

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }

    .page-header p {
        font-size: 16px;
    }

    .faq-categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .faq-question {
        padding: 20px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 20px;
    }

    .faq-contact {
        padding: 30px 20px;
    }
}
