@charset "UTF-8";

/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: 'iconfont';  /* Project id 549174 */
  src: url('//at.alicdn.com/t/c/font_549174_jaalfz4elyp.woff2?t=1763111641312') format('woff2'),
       url('//at.alicdn.com/t/c/font_549174_jaalfz4elyp.woff?t=1763111641312') format('woff'),
       url('//at.alicdn.com/t/c/font_549174_jaalfz4elyp.ttf?t=1763111641312') format('truetype');
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    --themecolor: white;
    --txtcolor: black;
    margin: 0;
    padding: 0;
    background: var(--themecolor);
    color: var(--txtcolor);
    line-height: 1.6;
    min-height: 100vh;
    font-family: "iconfont";
}

a {
    color: var(--txtcolor);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0;
}

.subtitle {
    font-weight: 100;
    margin-top: 0;
    font-size: 0.85em;
}

/* 主内容区域 */
.main {
    flex: 1;
}

/* 可视化输入界面样式 - 极简点线风格 */

.visual-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.input-row {
    display: flex;
    align-items: center;
}

.task-row {
    display: flex;
    align-items: center;
}

.row-number {
    min-width: 20px;
    text-align: center;
    width: 20px;
    line-height: 20px;
    border-radius: 50%;
    background: var(--txtcolor);
    color: var(--themecolor);
}

.task-type-select {
    color: var(--txtcolor);
    border: none;
    background: none;
    text-align: center;
}

#add-row-btn,.remove-row-btn,.add-row-btn{
    font-size: 1.5em;
    line-height: 1em;
    cursor: pointer;
    white-space: nowrap;
    font-family: "iconfont",monospace;
}

.remove-row-btn{
    color: red;
}

#add-row-btn, .add-row-btn {
    color: limegreen;
}



.markdown-input {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

#pipeline-input {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid var(--txtcolor);
    color: var(--txtcolor);
    background: none;
    font-family:
    'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

#pipeline-input:focus {
    border-color: var(--txtcolor);
    border-style: solid;
}

/* 格式检测反馈样式 */
.format-feedback {
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.format-feedback.valid {
    background-color: #f0fff0;
    border: 1px dashed #4CAF50;
    color: #2E7D32;
}

.format-feedback.invalid {
    background-color: #fff0f0;
    border: 1px dashed #f44336;
    color: #C62828;
}

.format-feedback.warning {
    background-color: #fffbf0;
    border: 1px dashed #FFC107;
    color: #FF8F00;
}

.format-status {
    font-weight: bold;
    margin-bottom: 5px;
}

.format-details {
    font-size: 13px;
    line-height: 1.4;
}

.buttons {
    display: flex;
    gap: 15px;
    white-space: nowrap;
    flex-wrap: wrap;
}
.buttons>* {
    flex: 1;
}

/* 流水线管理区域 */
.pipelines-section {
    margin: 15px 0;
}

.all-pipelines {}

.pipeline-container {}

.pipeline-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid;
    margin: 1.5em 0;
    position: relative;
}

.pipeline-title {
    display: flex;
    font-size: 1.1rem;
    align-items: flex-end;
}

.progress-bar {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: limegreen;
}

.progress-text {
    font-size: 0.8rem;
    opacity: 0.5;
    font-weight: 300;
}

.control-btn {
    padding: 4px;
    border: none!important;
    color: var(--txtcolor);
    background: none;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.control-btn:hover {
    background: var(--txtcolor);
    color: #fff;
}

/* 思维导图容器 */

/* 思维导图节点样式 */
.mindmap-nodes{display: flex;flex-wrap: wrap;gap: 10px;}
.mindmap-node {
    position: relative;
    flex: 1;
    display: flex;
    max-width: 100%;
    cursor: pointer;
    padding: 0.25em 2em;
    color: var(--themecolor);
    background: var(--txtcolor);
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    /* 左侧主体使用百分比，右侧箭头宽度固定为40px */
    clip-path: polygon(0% 10%, 
                      calc(100% - 40px) 10%, 
                      calc(100% - 40px) calc(50% - 18px), 
                      100% 50%, 
                      calc(100% - 40px) calc(50% + 18px), 
                      calc(100% - 40px) 90%, 
                      0% 90%);
}

.mindmap-node a{
    color: var(--themecolor);
    text-decoration: none;
}

.mindmap-node a:before,.mindmap-node .mindmap-title:before{
    font-size: 1.2em;
    vertical-align: middle;
    padding-right: 0.25em;
}

.mindmap-node a[href*="://"]:before{
    content:"\e668"
}
.mindmap-node a[href*="mailto:"]:before{
    content:"\e737"
}
.mindmap-node a[href*="tel:"]:before{
    content:"\e734"
}
.mindmap-node a[href*="ftp:"]:before{
    content:"\ed8e"
}

.mindmap-node.copy-node .mindmap-title:before{
    content:"\e630"
}
.mindmap-node.ai-node .mindmap-title:before{
    content:"\e7a3"
}

.mindmap-index {
    position: absolute;
    left: 0.25em;
    width: 1.2em;
    line-height: 1.2em;
    border-radius: 50%;
    cursor: pointer;
    color: var(--txtcolor);
    background: var(--themecolor);
    text-align: center;
}

.mindmap-node.completed {
    background: limegreen;
}
.mindmap-node.completed .mindmap-index:before {
    opacity: 1;
}

.mindmap-title {
    display: inline-block;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 快捷工具区域 */

input,button,.task-content-input {
    flex-grow: 1;
    padding: 6px;
    border: 1px solid;
    background: var(--themecolor);
    color: var(
    --txtcolor);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

input,.task-content-input{
    border: none;
    border-bottom: 1px solid;
    overflow: hidden;
}

button:hover,button.hover {
    border: 1px solid var(--txtcolor);
    background: var(--txtcolor);
    color: var(--themecolor);
}

/* 编辑模态框样式 - 极简风格 */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.edit-modal-content {
    background: var(--themecolor);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.edit-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-direction: column;
}
.edit-textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 1px solid var(--txtcolor);
    border-radius: 0;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.edit-actions {
    display: flex;
    gap: 15px;
}
footer {
    text-align: center;
    border-bottom: 1px dotted;
    border-top: 1px dotted;
    font-size: 0.8em;
    line-height: 2;
}

/* 文档区域样式 - 保持黑白点线风格 */

.documentation h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 300;
}

.documentation h3 {
    border-left: 3px solid var(--txtcolor);
    padding-left: 10px;
}

.documentation pre {
    padding: 15px;
    border: 1px solid var(--txtcolor);
    font-family: 'Courier New', monospace;
    font-size: 14px;

    overflow-x: auto;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .pipeline-header,.pipeline-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 主题选择器样式 */
.theme-selector {
    display: inline-flex;
    gap: 8px;
    margin-left: 15px;
    vertical-align: middle;
}

.theme-square {
    width: 20px;
    height: 20px;
    border: 1px solid var(--txtcolor);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-square:hover {
    transform: scale(1.1);
}

/* 默认主题颜色 */
body {
    --themecolor: white;
    --txtcolor: black;
}