/* 阶段列表样式 */

/* 阶段列表 */
.stage-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stage-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    gap: 1rem;
    color: var(--text-primary);
}

.stage-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.stage-info {
    flex: 1;
}

.stage-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.stage-output {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stage-prompt-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stage-prompt-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.prompt-content-box {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-primary);
}

.prompt-content-box::-webkit-scrollbar {
    width: 6px;
}

.prompt-content-box::-webkit-scrollbar-track {
    background: transparent;
}

.prompt-content-box::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.stage-prompt-header {
    padding: 0.6rem 0.85rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.stage-prompt-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
}

.stage-prompt-title {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.stage-prompt-title .badge {
    font-size: 0.7rem;
}

.stage-prompt-body {
    display: none;
    padding: 0.75rem 1rem;
}

.stage-prompt-body.show {
    display: block;
}

.stage-prompt-body .alert {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

/* 深色主题下 alert 样式优化 */
.stage-prompt-body .alert-info,
.form-section .alert-info,
.config-panel .alert-info,
.alert.alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #ffffff !important;
}

.stage-prompt-body .alert-warning,
.form-section .alert-warning,
.config-panel .alert-warning,
.alert.alert-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #ffffff !important;
}

.stage-prompt-body .alert-danger,
.form-section .alert-danger,
.config-panel .alert-danger,
.alert.alert-danger {
    background: rgba(220, 53, 69, 0.15) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
    color: #ffffff !important;
}

.stage-prompt-body .alert-success,
.form-section .alert-success,
.config-panel .alert-success,
.alert.alert-success {
    background: rgba(25, 135, 84, 0.15) !important;
    border-color: rgba(25, 135, 84, 0.4) !important;
    color: #ffffff !important;
}

.stage-prompt-body .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stage-prompt-body .form-text {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    color: var(--text-muted);
}

/* 知识库相关 */
.knowledge-class-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.knowledge-class-item {
    transition: all 0.2s ease;
}

.knowledge-class-item:hover {
    background: var(--glass-bg-hover) !important;
}

.knowledge-category .category-arrow {
    transition: transform 0.2s ease;
    width: 12px;
}

.knowledge-category .fa-chevron-down {
    transform: rotate(0deg);
}

.knowledge-item {
    transition: all 0.2s ease;
    border-color: var(--primary-color) !important;
}

.knowledge-item:hover {
    background: var(--glass-bg-hover);
}

.cursor-pointer {
    cursor: pointer;
}

