/* 高考数学 RAG 插件样式 */
.math-rag-container {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.math-rag-form {
    margin-bottom: 20px;
}

.math-rag-form .form-row {
    margin-bottom: 15px;
}

.math-rag-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.math-rag-form input[type="text"],
.math-rag-form input[type="number"],
.math-rag-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.math-rag-button {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.math-rag-button:hover {
    background-color: #135e96;
}

.math-rag-results {
    margin-top: 20px;
}

.problem-list {
    margin-top: 15px;
}

.problem-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.problem-text {
    margin-bottom: 10px;
    line-height: 1.6;
}

.problem-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.problem-meta span {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 3px;
}

.generated-problem {
    padding: 20px;
    background-color: #e7f4ff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.reference-problems h4 {
    margin: 20px 0 15px;
}

.loading {
    color: #666;
    font-style: italic;
}

.error {
    color: #cc0000;
    padding: 10px;
    background-color: #ffeeee;
    border-radius: 4px;
}

/* 知识点列表样式 */
.math-rag-knowledge-points-grid {
    margin: 20px 0;
}

.math-rag-knowledge-points-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .math-rag-knowledge-points-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .math-rag-knowledge-points-list {
        grid-template-columns: 1fr;
    }
}

.math-rag-knowledge-points-list li {
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kp-name {
    font-weight: 500;
}

.kp-count {
    font-size: 14px;
    color: #666;
}