/* FAQ Page Styles - Two Column Layout */
.faq-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 30px;
}

/* Left Sidebar - Category Navigation */
.faq-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.faq-sidebar-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1E88E5;
}

.faq-category-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-category-nav-item {
    margin-bottom: 8px;
}

.faq-category-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
}

.faq-category-nav-link:hover {
    background: #f0f7ff;
    color: #1E88E5;
}

.faq-category-nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.faq-category-nav-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Image icon style */
.faq-category-nav-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.faq-category-nav-count {
    margin-left: auto;
    background: rgba(30, 136, 229, 0.1);
    color: #1E88E5;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.faq-category-nav-link.active .faq-category-nav-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Right Content Area */
.faq-content {
    flex: 1;
    min-width: 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 18px;
    color: #666;
}

/* 搜索框样式 */
.faq-search-box {
    max-width: 700px;
    margin: 30px auto 40px;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 15px 0 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.faq-search-input:focus {
    border-color: #1E88E5;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
}

.faq-search-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    pointer-events: none;
}

.faq-search-clear {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    cursor: pointer;
    display: none;
    padding: 5px;
    transition: color 0.3s ease;
}

.faq-search-clear:hover {
    color: #666;
}

.faq-search-results-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    display: none;
}

.faq-search-results-info.show {
    display: block;
}

.faq-no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.faq-no-results.show {
    display: block;
}

.faq-no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.faq-no-results h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.faq-no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.faq-highlight {
    background: yellow;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 600;
    display: inline;
    margin: 0;
}

/* Loading and Error States */
.loading-message,
.error-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.error-message {
    color: #d32f2f;
    background: #ffebee;
    border-radius: 8px;
    margin: 20px 0;
}

.faq-category {
    margin-bottom: 50px;
    scroll-margin-top: 120px;
}

.faq-category-title {
    font-size: 28px;
    color: #1E88E5;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1E88E5;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Category title icon */
.faq-category-title-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #1E88E5;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
}

/* Text wrapper inside flex container to prevent spacing issues */
.faq-question-text {
    flex: 1;
    display: inline;
    white-space: normal;
    line-height: 1.5;
}

.faq-question-text .faq-highlight {
    display: inline;
    margin: 0;
    padding: 0 2px;
}

.faq-question:hover {
    background: #e3f2fd;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #1E88E5;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 500px;
}

.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
}

.contact-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
    .faq-container {
        flex-direction: column;
    }

    .faq-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 30px;
    }

    .faq-category-nav {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }

    .faq-category-nav-item {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .faq-category-nav-link {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 14px;
    }

    .faq-category-nav-count {
        display: none;
    }

    .faq-header h1 {
        font-size: 28px;
    }

    .faq-category-title {
        font-size: 22px;
    }

    .faq-category-title-icon {
        width: 24px;
        height: 24px;
    }

    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

    .faq-answer {
        font-size: 14px;
    }
}
