.orchestration-modal-container {
    display: none;
    justify-content: space-between;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1400px;
    height: 700px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.2);
    padding: 24px;
    z-index: 1000;
    font-family: 'Segoe UI', sans-serif;
}

.orchestration-modal {
    width: 45%;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}

.orchestration-canvas-container {
    width: 52%;
    height: 100%;
    overflow: auto;
    border-left: 1px solid #e5e7eb;
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
}

.orchestration-canvas {
    width: 2000px;
    height: 2000px;
    min-width: 800px;
    min-height: 600px;
    background-color: #ffffff;
    transition: transform 0.3s ease-in-out;
}

#arrowhead {
    markerWidth: 10;
    markerHeight: 10;
    refX: 9;
    refY: 3;
    orient: auto;
    markerUnits: "strokeWidth";
}

#arrowhead path {
    fill: #666;
    stroke: none;
}

.orchestration-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.orchestration-add-btn {
    display: flex;
    align-items: center;
    background: #3b82f6;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.orchestration-add-btn:hover {
    background: #2563eb;
}

.orchestration-add-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    stroke: white;
}

.orchestration-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.orchestration-table {
    width: 100%;
    border-collapse: collapse;
}

.orchestration-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
}

.orchestration-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.orchestration-table input,
.orchestration-table select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    color: #1f2937;
    background: white;
    transition: border-color 0.2s;
}

.orchestration-table input:focus,
.orchestration-table select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.orchestration-task {
    width: 25%;
}

.orchestration-logic {
    width: 28%;
}

.orchestration-node-type {
    width: 18%;
}

.structure-type {
    width: 18%;
}

.orchestration-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.orchestration-delete-btn:hover {
    background: #f3f4f6;
}

.orchestration-delete-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ef4444;
}

.orchestration-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.orchestration-modal-footer button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s;
}

.orchestration-save-btn {
    background: #3b82f6;
    color: white;
}

.orchestration-save-btn:hover {
    background: #2563eb;
}

.orchestration-cancel-btn {
    background: #f3f4f6;
    color: #374151;
}

.orchestration-cancel-btn:hover {
    background: #e5e7eb;
}

.my-issue {
    border-bottom: #aaa 1px solid;
}

.my-issue a {
    margin-top: -25px;
    float: right;
}

/* =======新样式========*/
/* 按钮和图标样式（操作栏中的图标+按钮组合） */
.operation-button {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    gap: 5px;
    /* 图标和文字之间的间距 */
}

.operation-button svg {
    width: 16px;
    height: 16px;
    fill: white;
    /* 确保图标颜色与按钮文字一致 */
}

/* 发布按钮 */
.operation-button.publish {
    color: #3bc05c;
}

/* 取消发布按钮 */
.operation-button.unpublish {
    color: #363636;
}

/* 编辑按钮 */
.operation-button.edit {
    color: #1890ff;
}

/* 编排按钮 */
.operation-button.orchestrate {
    color: #666666;
}

/* 删除按钮 */
.operation-button.delete {
    color: #f74f4f;
}

.operation-button:hover {
    opacity: 0.8;
    /* 鼠标悬停时稍微变淡 */
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
}

.pagination button {
    font-size: 14px;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.pagination button:hover {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.pagination button.active {
    background-color: #1890ff;
    color: white;
    font-weight: bold;
    border-color: #1890ff;
}

/* 确保表格和整体布局与图片保持一致 */
#agent-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#agent-list th,
#agent-list td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

#agent-list th {
    background-color: #f5f5f5;
    font-weight: bold;
}