* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
}
.header {
    text-align: center;
    padding: 12px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 16px;
}
.header h1 {
    font-size: 20px;
    font-weight: 600;
}
.step-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    background-color: #f0f2f5;
    padding: 12px;
    border-radius: 8px;
}
.step {
    padding: 6px 12px;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    border: none;
    transition: all 0.3s;
}
.step.completed {
    background-color: #e0e0e0;
    color: #888;
}
.step.active {
    background-color: #1890ff;
    color: white;
}
.step-arrow {
    display: none;
}
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
textarea {
    width: 100%;
    height: 160px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    font-family: inherit;
}
button {
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background: #f5f7fa;
    color: #666;
}
.btn-secondary:hover {
    background: #e8eaed;
    box-shadow: none;
}
.doc-content {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}
.questions-list {
    margin-bottom: 20px;
}
.question-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
.question-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}
.answer-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
}
.option:hover {
    background: #f0f0f0;
}
.option.selected {
    background: #e8f0fe;
    color: #1967d2;
}
.option input[type="radio"] {
    cursor: pointer;
}
.other-input {
    margin-top: 10px;
    display: none;
}
.other-input.show {
    display: block;
}
.other-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.progress {
    text-align: center;
    padding: 20px;
    color: #666;
}
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}
.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}
.message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}
.finish-card {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.finish-card h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}
.finish-card p {
    color: #555;
    font-size: 14px;
}
.main-layout {
    display: flex;
    gap: 20px;
    width: 100%;
}
.left-panel {
    flex: 1;
    min-width: 0;
}
.right-panel {
    flex: 0.5;
    min-width: 0;
}
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.tab {
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background: #f5f7fa;
    color: #666;
    border: 1px solid #eee;
}
.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 12px;
    margin-top: 12px;
}
.feature-card {
    background: white;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}
.feature-icon {
    font-size: 18px;
    margin-bottom: 4px;
    text-align: center;
}
.feature-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    text-align: center;
}
.feature-description {
    font-size: 10px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 6px;
    text-align: left;
    flex: 1;
}
.feature-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: auto;
    padding-top: 4px;
    min-height: 48px;
    max-height: 48px;
    overflow: hidden;
}
.feature-capabilities span {
    padding: 3px 8px;
    background: #f0f2f5;
    border-radius: 10px;
    font-size: 10px;
    color: #666;
    height: 22px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

.index-main-layout {
    justify-content: center;
}

.index-left-panel {
    max-width: 800px;
}

.index-card {
    text-align: center;
    padding: 40px;
}

.index-card-title {
    font-size: 20px;
    margin-bottom: 30px;
}

.index-header-desc {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.agent-panel {
    display: flex;
    gap: 20px;
    height: calc(100vh - 120px);
}

.step-panel {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.step-panel-header {
    padding: 12px 15px;
    background: #f5f7fa;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    height: 53px;
}

.step-panel-header h3 {
    font-size: 13px;
    font-weight: 600;
}

.add-agent-btn {
    padding: 4px 12px;
    background: white;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    height: 28px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.add-agent-btn:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
}

.step-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.agent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.agent-item:hover {
    background: #f0f0f0;
}

.agent-item.selected {
    background: #e8f0fe;
    border-color: #1890ff;
}

.agent-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.agent-item.drag-over {
    border-color: #667eea;
    background: #f0f4ff;
}

.agent-info {
    flex: 1;
    overflow: hidden;
}

.agent-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-id {
    display: none;
}

.agent-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.agent-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
}

.agent-status-dot.running {
    background: #1890ff;
    animation: blink 1s infinite;
}

.agent-status-dot.completed {
    background: #52c41a;
}

.agent-status-dot.failed {
    background: #ff4d4f;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.agent-remark {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-item.running {
    background: #e6f7ff;
    border-color: #91d5ff;
}

.agent-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.agent-item:hover .agent-actions,
.agent-item.selected .agent-actions {
    opacity: 1;
}

.action-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.action-btn.delete {
    background: #fff0f0;
    color: #ff4d4f;
}

.action-btn.delete:hover {
    background: #ffccc7;
}

.action-btn.copy {
    background: #f0f7ff;
    color: #1890ff;
}

.action-btn.copy:hover {
    background: #e6f7ff;
}

.action-btn.move-up,
.action-btn.move-down {
    background: #f5f5f5;
    color: #666;
}

.action-btn.move-up:hover,
.action-btn.move-down:hover {
    background: #e8e8e8;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 13px;
}

.empty-state-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state-desc {
    font-size: 12px;
    margin-top: 5px;
}

.design-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.design-panel-header {
    padding: 8px 15px;
    background: #f5f7fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 53px;
}

.design-panel-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.design-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.config-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    height: 40px;
    box-sizing: border-box;
}

.section-number {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.section-subtitle {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row .form-group:last-child {
    max-width: 200px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.input-source-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.version-type-selector {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fafafa;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.radio-label:hover {
    background: #f0f0f0;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

.radio-label input[type="radio"]:checked {
    border-color: #667eea;
}

.input-source-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fafafa;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
}

.input-source-option:hover {
    background: #f5f5f5;
}

.input-source-option.selected {
    background: #f5f0ff;
    border-color: #7c4dff;
    color: #6200ea;
}

.input-source-option input[type="radio"] {
    display: none;
}

.input-source-option .option-radio {
    display: none;
}

.input-source-option label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.input-source-icon {
    font-size: 18px;
}

.input-source-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-source-desc {
    font-size: 12px;
    color: #999;
}

.dynamic-input-area {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    display: none;
}

.dynamic-input-area.show {
    display: block;
}

.dynamic-input-area textarea {
    margin-bottom: 10px;
}

#agent-prompt-input{
    height: 280px;
}

#dialog-input-text {
    height: 180px;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #999;
}

.file-upload-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.file-upload-hint {
    font-size: 12px;
    color: #999;
}

.selected-file-name {
    font-size: 13px;
    color: #667eea;
    margin-top: 10px;
}

.design-panel-footer {
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.design-panel-footer button {
    padding: 4px 12px;
    font-size: 12px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

#save-agent-btn {
    background: white;
    color: #666;
}

#save-agent-btn:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
    box-shadow: none;
    transform: none;
}

#run-agent-btn {
    border: none;
}

.output-panel {
    width: 350px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.output-panel-header {
    padding: 12px 15px;
    background: #f5f7fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 53px;
}

.output-panel-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.output-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.output-action-btn {
    padding: 4px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
    height: 28px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.output-action-btn:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
}

.output-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.output-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 13px;
}

.output-editor {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    white-space: pre-wrap;
}

.output-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    border-radius: 8px;
}

.project-name-display {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.project-name-display:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.project-action-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    transition: all 0.3s;
}

.project-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 8px;
    padding: 25px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer button {
    padding: 8px 20px;
    font-size: 13px;
}

.model-select-container {
    max-height: 200px;
    overflow-y: auto;
}

.header-desc {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.9;
}

.center-card {
    text-align: center;
    padding: 40px;
}

.center-icon-lg {
    font-size: 60px;
    margin-bottom: 20px;
}

.center-icon-md {
    font-size: 50px;
    margin-bottom: 15px;
}

.center-h2 {
    margin-bottom: 10px;
}

.center-p {
    color: #666;
    margin-bottom: 30px;
}

.design-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.design-empty-desc {
    font-size: 13px;
    margin-top: 8px;
}

.input-option-title {
    font-weight: 500;
}

.dynamic-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.dynamic-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.previous-input-hint {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.previous-input-title {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 5px;
}

.previous-input-desc {
    font-size: 13px;
    color: #666;
}

.previous-agent-info {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.output-loading {
    text-align: center;
    padding: 30px;
}

.output-loading-text {
    color: #666;
    font-size: 13px;
    margin-top: 10px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border-width: 2px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.error-text {
    color: #ff4d4f;
}

.steps-select-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.step-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.step-select-item:hover {
    background: #f0f0f0;
}

.step-select-item.selected {
    background: #e8f0fe;
    border-color: #1890ff;
}

.step-select-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.step-select-index {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-select-info {
    flex: 1;
    overflow: hidden;
}

.step-select-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-select-status {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.message-fixed {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.project-list-container {
    margin-bottom: 20px;
}

.project-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.refresh-btn {
    padding: 4px 10px;
    font-size: 12px;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: #e8eaed;
}

.project-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 5px;
}

.project-item {
    padding: 12px;
    margin-bottom: 5px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.project-item:hover {
    background: #f0f0f0;
}

.project-item.selected {
    background: #e8f0fe;
    border-color: #1890ff;
}

.project-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.project-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.project-item-count {
    font-size: 12px;
    color: #999;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 10px;
}

.project-item-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.project-item-select-btn {
    float: right;
    padding: 5px 14px;
    font-size: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.project-item-select-btn:hover {
    transform: translateY(-1px);
}

.empty-project-list {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

.divider {
    text-align: center;
    margin: 15px 0;
    color: #ddd;
    font-size: 13px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.output-panel .form-row {
    flex-direction: column;
}

.output-panel .form-row .form-group:last-child {
    max-width: 100%;
}

.output-panel .input-source-options {
    flex-direction: column;
}

.output-panel .input-source-option {
    min-width: 100%;
    max-width: 100%;
}

.config-section .output-content {
    flex: none;
}

.project-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-management-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.add-project-btn {
    padding: 6px 14px;
    font-size: 13px;
}

.project-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.empty-project-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    color: #999;
}

.project-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-card-icon {
    font-size: 24px;
}

.project-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-left: 10px;
}

.project-card-index {
    font-size: 12px;
    color: #999;
    padding: 2px 8px;
    background: #f0f2f5;
    border-radius: 4px;
}

.project-card-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.project-card:hover .project-card-actions {
    opacity: 1;
}

.project-card-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #f5f5f5;
    color: #666;
}

.project-card-action-btn:hover {
    background: #e8e8e8;
}

.project-card-action-btn.delete {
    background: #fff0f0;
    color: #ff4d4f;
}

.project-card-action-btn.delete:hover {
    background: #ffccc7;
}

.project-card-action-btn.edit {
    background: #fffbe6;
    color: #faad14;
}

.project-card-action-btn.edit:hover {
    background: #ffe58f;
}

.project-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.project-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-card-count {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f2f5;
    border-radius: 10px;
    font-size: 11px;
    color: #666;
}

.project-card-date {
    font-size: 11px;
    color: #bbb;
}

.back-to-projects-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    transition: all 0.3s;
}

.back-to-projects-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.prompt-version-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.prompt-version-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    height: 28px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.prompt-version-btn:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
}

.prompt-version-list {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.version-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.version-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.version-list-close-btn {
    padding: 2px 8px;
    font-size: 12px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.version-list-close-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.version-list-content {
    max-height: 300px;
    overflow-y: auto;
}

.version-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.version-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.version-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.version-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.version-item-id {
    font-size: 11px;
    color: #999;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.version-item-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.version-item-time,
.version-item-length {
    display: flex;
    align-items: center;
    gap: 4px;
}

.version-item-actions {
    display: flex;
    gap: 8px;
}

.version-action-btn {
    padding: 4px 12px;
    font-size: 11px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    height: 26px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.version-action-btn.preview {
    background: #f0f7ff;
    color: #1890ff;
}

.version-action-btn.preview:hover {
    background: #e6f7ff;
}

.version-action-btn.apply {
    background: #f6ffed;
    color: #52c41a;
}

.version-action-btn.apply:hover {
    background: #d9f7be;
}

.version-action-btn.delete {
    background: #fff2f0;
    color: #ff4d4f;
}

.version-action-btn.delete:hover {
    background: #ffccc7;
}

.version-preview-modal {
    width: 600px;
    max-width: 90%;
}

.version-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.preview-version-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.preview-version-time {
    font-size: 12px;
    color: #999;
}
