/* 移动端优化 */
@media (max-width: 576px) {
    .spinner-border {
        width: 2rem !important;
        height: 2rem !important;
    }
}

/* toast位置 */
.jq-toast-wrap {
    top: 60px !important;
}

/* 防止iOS点击延迟 */
.btn {
    touch-action: manipulation;
}

/* 防止滚动穿透 */
body.loading-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 使用配色 */
:root {
    --completed: #89cd56; /* 已完成  */
    --current: #ffcb51; /* 进行中 */
    --pending: #e4e6ef; /* 未操作 */
    --text-dark: #3f4254; /* 主要文字色 */
    --text-light: #7e8299; /* 次要文字色 */
    --text-finish: #7e8299; /* 结束图标色 */
}

.workflow-container {
    max-width: 100%;
}

/* 主时间轴 */
.workflow-timeline {
    position: relative;
    padding-left: 4px;
    margin-top: 20px;
}

/* 时间轴竖线 */
.workflow-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--pending);
    z-index: 1;
}

/* 诊疗阶段 */
.workflow-stage {
    margin-bottom: 20px;
    position: relative;
}

/* 阶段标题 */
.stage-title {
    font-weight: 400;
    font-size: 1rem;
    color: var(--pending);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    margin-left: -3px;
}

/* 阶段标题前的标记 */
.stage-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--pending);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    position: relative;
    z-index: 2;
}

/* 已完成阶段 */
.stage-completed .stage-marker {
    border-color: var(--completed);
    background-color: var(--completed);
    color: white;
}

/* 进行中阶段 */
.stage-current .stage-marker {
    border-color: var(--current);
    background-color: var(--current);
    color: white;
    animation: pulse 1.5s infinite;
}

/* 子步骤容器 */
.substeps-container {
    padding-left: 30px;
}

/* 子步骤 */
.substep {
    padding: 4px 5px;
    margin-bottom: 10px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

/* 子步骤状态指示器 */
.substep::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--pending);
    z-index: 100;
}

/* 已完成子步骤 */
.substep-completed {
    border-left: 3px solid var(--completed);
    cursor: pointer;
}

.substep-completed::before {
    background-color: var(--completed);
}

/* 已完成子步骤 */
.substep-default {
    border-left: 3px solid var(--text-light);
}

.substep-default::before {
    background-color: var(--pending);
}

/* 当前子步骤 */
.substep-current {
    border-left: 3px solid var(--current);
    box-shadow: 0 0 15px rgba(54, 153, 255, 0.2);
    cursor: pointer;
}

.substep-current::before {
    background-color: var(--current);
    animation: pulse 1.5s infinite;
}

/* 子步骤标题 */
.substep-title {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

/* 子步骤描述 */
.substep-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 54, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 215, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 54, 0);
    }
}


/* 自定tag */
.tag-style {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    font-size: 1rem;
    margin-right: 0.4rem;
    margin-top: 0.4rem;
    border: 1px solid #dee2e6; /* 灰色边框 */
    border-radius: 0.5rem;
    background-color: #f8f9fa; /* 浅灰色背景 */
    color: #495057; /* 深灰色文字 */
    transition: all 0.2s;
    cursor: pointer;
}

/* 选中状态 */
.tag-style.active {
    background-color: #007bff; /* 蓝色背景 */
    color: white; /* 白色文字 */
    border-color: #007bff;
}

.tag-style:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* 移除默认的点击效果 */
.tag-style:active, .tag-style:focus {
    outline: none;
    transform: none;
    box-shadow: none;
}

/* 自定义toast样式确保不阻挡操作 */
.custom-toast-container {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1080;
    width: 300px;
    pointer-events: none;
}
.custom-toast {
    pointer-events: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ai诊断等待时的提示 */
.glow-text {
    color: white;
    font-weight: bold;
    text-shadow:
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 8px #fff,
        0 0 12px #fff,
        0 0 16px #fff,
        0 0 24px #fff,
        0 0 32px #fff,
        0 0 48px #fff;
    }


