.container {
    width: 90vw;
    /*height: 100vh;*/
}

.searchForm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    flex-direction: column;
}

.searchInput {
    /*width: 500px;*/
    flex: 1;
    border: 2px solid cornflowerblue;
}

.search-input-container button.search {
    padding: 5px;
    background-color: transparent;
    border: 3px solid cornflowerblue;
    border-radius: 10px;
}

.resultList {
    overflow-y: scroll;
    height: 80vh;
}

.result {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.optionList {
    display: flex;
    flex-direction: column;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    /*padding: 10px;*/
    gap: 5px;
}

.answerList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.question-data {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*gap: 10px;*/
}

.search-input-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.search-input-container label, .search-input-container button {
    flex-shrink: 0;
}

.filter-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-section {
    min-width: 200px;
    display: flex;
    align-items: center;
}

.filter-section h4 {
    /*margin: 0 0 10px 0;*/
    color: #333;
    flex-shrink: 0;
}

.checkbox-group {
    display: flex;
    /*flex-direction: column;*/
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
}

.end-message {
    text-align: center;
    color: #999;
    font-size: 16px;
    margin-top: 10px;
}

/* 正确答案高亮样式 */
.optionList .option {
    padding: 8px 10px;
    border-radius: 6px;
}

.option.is-answer {
    background-color: #e8f8ec; /* 淡绿色背景 */
    border-left: 4px solid #26a65b; /* 左侧绿色条强调 */
}

.option.is-answer::before {
    content: "\2714"; /* ✓ 勾号 */
    color: #1e8e3e;
    margin-right: 6px;
}

.option .answer-mark {
    color: #1e8e3e;
    background-color: #d9f7be;
    border: 1px solid #b7eb8f;
    font-weight: 600;
    padding: 1px 6px;
    margin-left: 6px;
    border-radius: 4px;
}

/* 判断题答案样式 */
.judge-answer {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.judge-answer.is-true {
    color: #0f5132;
    background-color: #d1e7dd; /* 绿色系 */
    border: 1px solid #badbcc;
}

.judge-answer.is-false {
    color: #842029;
    background-color: #f8d7da; /* 红色系 */
    border: 1px solid #f5c2c7;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        padding: 10px 0;
    }

    .resultList {
        flex: 1;
        min-height: 0;
        height: auto;
        overflow-y: auto;
    }

    .filter-container {
        /*flex-direction: column;*/
        gap: 5px;
        margin-bottom: 0;
    }

    .filter-section {
        /*width: 100%;*/
    }

    .checkbox-group {
        /*flex-direction: row;*/
        flex-wrap: wrap;
        gap: 5px;
    }

    .search-input-container button {
        padding: 8px 12px;
        font-size: 16px;
    }

    .searchInput {
        padding: 8px;
    }
}
