/* 后台工作流管理页面样式 */
/* 参照 ai_companies.css 样式设计 */

.workflow-container, .workflow-container-fluid {
    display: flex;
    flex-direction: row; /* 左右布局 */
    min-height: 100vh;
    height: auto;
    width: 100%;
}

/* 基本样式 */
.workflow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

.workflow-header {
    text-align: center;
    margin-bottom: 60px;
}

.workflow-title {
    color: var(--primary-color, #4a8cff);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.workflow-description {
    color: var(--text-color, #fff);
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* 返回链接样式 */
.back-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    z-index: 1001;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: rgba(40, 40, 40, 0.9);
}

/* 主要内容区域 */
.workflow-content {
    display: flex;
    gap: 30px;
    min-height: 600px;
}

/* 侧边栏样式 */
.sidebar {
    width: 300px;
    background-color: #1e1e1e;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h3 {
    color: #4a9eff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

#workflow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#workflow-list li {
    padding: 6px 15px;
    margin-bottom: 1px;
    background-color: #2d2d2d;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#workflow-list li:hover {
    background-color: #3a3a3a;
}

#workflow-list li.active {
    background-color: #4a9eff;
    color: #fff;
}

.workflow-item {
    padding: 12px 15px;
    margin-bottom: 2px;
    background-color: #2d2d2d;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.workflow-item:hover {
    background-color: #3a3a3a;
    border-left-color: #4a9eff;
}

.workflow-item.active {
    background-color: #4a9eff;
    color: #fff;
    border-left-color: #fff;
}

.workflow-name {
    font-weight: 500;
    font-size: 14px;
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    padding: 30px;
    background-color: #121212;
    overflow-y: auto;
    height: 100vh;
}

#workflow-info {
    max-width: 800px;
    margin: 0 auto;
}

#workflow-info h2 {
    color: #4a9eff;
    margin-bottom: 20px;
    font-size: 28px;
}

#workflow-description {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
}

#workflow-description p {
    margin-bottom: 15px;
    text-align: justify;
}

/* 默认状态样式 */
.default-state {
    text-align: center;
    padding: 40px 20px;
}

.default-state h2 {
    color: #4a9eff;
    margin-bottom: 30px;
    font-size: 32px;
}

.default-state p {
    color: #ddd;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #ddd;
}

.loading i {
    font-size: 2em;
    color: #4a9eff;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #ff6b6b;
}

.error-state i {
    font-size: 3em;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .workflow-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .content-area {
        height: auto;
    }
}

@media (max-width: 768px) {
    .workflow-container, .workflow-container-fluid {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
    }
    
    .content-area {
        padding: 20px;
        height: auto;
    }
    
    .workflow-title {
        font-size: 2em;
    }
    
    .back-link {
        position: relative;
        left: calc(100vw - 120px);
        top: 20px;
        margin-bottom: 20px;
        display: inline-block;
        z-index: 1001;
        background: rgba(30, 30, 30, 0.8);
        padding: 8px 15px;
        border-radius: 5px;
        transition: background-color 0.3s;
    }
    
    footer.modern-footer {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        z-index: 1000;
    }
}

@media (max-width: 480px) {
    .workflow-title {
        font-size: 1.8em;
    }
    
    .workflow-description {
        font-size: 1em;
    }
    
    .sidebar h3 {
        font-size: 1.3em;
    }
    
    #workflow-info h2 {
        font-size: 24px;
    }
} 