/* 案件列表专用样式 */

/* 1. 案件特有组件样式 */

/* 案件编号链接样式 */
.case-no-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.case-no-link:hover {
    text-decoration: underline;
}

/* 案件名称单元格 */
.case-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-type-icon {
    font-size: 16px;
    opacity: 0.8;
}

/* 案件状态标签 */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-filing { background: #e0f2fe; color: #0284c7; } /* 立案中 */
.status-ongoing { background: #fef3c7; color: #d97706; } /* 进行中 */
.status-closed { background: #f0fdf4; color: #16a34a; } /* 已结案 */
.status-archived { background: #f3f4f6; color: #4b5563; } /* 已归档 */

/* 进度条组件 */
.progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.progress-text {
    font-size: 11px;
    color: var(--main-text-secondary);
    font-weight: 600;
    text-align: right;
}

.progress-bar-bg {
    height: 6px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* 自动完成建议列表 */
.suggestions-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: var(--primary-bg);
}

.suggestion-item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.suggestion-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-text-primary);
}

.case-sortable-th {
    cursor: pointer;
    user-select: none;
}

.suggestion-type {
    font-size: 12px;
    color: var(--main-text-secondary);
}

/* 案件阶段步骤条组件 */
.steps-container {
    padding: 40px 0 20px; /* 移除左右内边距，靠 layout 容器控制 */
    position: relative;
    margin-top: 20px;
    width: 100%;
}

.steps-progress-bar {
    position: absolute;
    top: 54px; /* 对应圆圈中心 */
    left: calc(100% / 13 / 2); /* 起点在第一个 item 的中心 */
    right: calc(100% / 13 / 2); /* 终点在最后一个 item 的中心 */
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    z-index: 1;
}

.steps-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.steps-list {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    width: 100%;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1; /* 每个 item 平分宽度 */
    position: relative;
}

.step-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    z-index: 3;
}

.step-item:hover .step-icon {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.step-label {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s;
    font-weight: 500;
}

/* 步骤条不同状态 */
.step-item.completed .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.step-item.completed .step-label {
    color: var(--primary-color);
}

/* 当前激活阶段视觉优化：实心蓝色 + 呼吸效果 */
.step-item.active .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    animation: step-pulse 2s infinite;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

/* 呼吸动画 */
@keyframes step-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

.current-step-label {
    font-size: 14px;
    color: #666;
}

#currentStepName {
    color: var(--primary-color);
    margin-left: 4px;
}

/* 响应式适配 */
@media (max-width: 1400px) {
    .step-label {
        font-size: 12px;
        transform: rotate(30deg);
        margin-top: 15px;
        transform-origin: top center;
    }
    .steps-container {
        padding-bottom: 80px;
    }
}

/* 2. 响应式与间距微调 */
@media (max-width: 1200px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
