/* FAQ Styles */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.faq-title {
    font-size: 32px;
    color: #053f72;
    font-weight: 700;
}
#faq-search {
    display: block !important; /* 确保搜索框显示 */
}
.faq-search .search-block {
    position: relative;
    width: 100%;
    max-width: 500px; /* 可调整搜索框最大宽度 */
}
.faq-question{
    color: #485460 !important;
}
.faq-search .input-search {
    width: 100%;
    padding: 8px 40px 8px 20px; /* 右侧留出图标空间 */
    border: 1px solid #ccc;
    border-radius: 20px; /* 大圆角 */
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.faq-search .search {
    position: absolute;
    right: 12px; /* 图标位置，可微调 */
    top: 50%;
    transform: translateY(-50%);
    color: #999; /* 图标颜色 */
    cursor: pointer;
}

/* 可选：聚焦样式优化 */
.faq-search .input-search:focus {
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(153, 153, 153, 0.2);
}

/* 按钮容器（可选，用于排列按钮） */
.category-buttons {
    display: flex;
    gap: 8px; /* 按钮间距 */
    margin: 20px 0;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: space-between;
}

/* 通用按钮样式 */
.category-btn {
    padding: 6px 16px; /* 内边距，可调整 */
    border: 1px solid #D1D5DB; /* 边框颜色 */
    border-radius: 20px; /* 大圆角，关键 */
    background-color: #F1F5F9; /* 未选中背景色 */
    color: #6B7280; /* 未选中文字色 */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 25%;
}
@media (max-width: 490px) {
    /* 按钮容器（可选，用于排列按钮） */
    .category-buttons {
        display: flex;
        gap: 8px; /* 按钮间距 */
        margin: 20px 0;
        justify-content: space-between;
    }
    .category-btn {
        padding: 6px 16px; /* 内边距，可调整 */
        border: 1px solid #D1D5DB; /* 边框颜色 */
        border-radius: 20px; /* 大圆角，关键 */
        background-color: #F1F5F9; /* 未选中背景色 */
        color: #6B7280; /* 未选中文字色 */
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        width: auto;
    }
}
/* 选中状态样式 */
.category-btn.active {
    background-color: #BFDBFE; /* 选中背景色 */
    color: #0369A1; /* 选中文字色 */
    border-color: #BFDBFE; /* 选中边框色，可选 */
}

/* hover 效果（可选增强） */
.category-btn:hover {
    background-color: #E5E7EB;
}
.faq-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    color: #053f72;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    color: #0C0C0D;
}

.faq-question:hover {
    background: #f0f0f0;
}
.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: none;
    height: auto;
    visibility: visible;
    opacity: 1;
    overflow: visible;
    color: #6c757d;
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease;
    /* 添加以下属性 */
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
}
.active {
    font-weight: 800 !important;
}
.no-results {
    padding: 40px;
    background: #f9f9f9;
    border-radius: 4px;
}

.no-results h3 {
    color: #646161;
    margin-bottom: 10px;
}

.contact-support {
    padding: 30px;
    background: #f5f5f5;
    border-radius: 4px;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}