.segment-dialog {
    :deep(.el-dialog) {
        border-radius: 14px;
        
        .el-dialog__header {
            padding: 24px 24px 16px;
            border-bottom: 1px solid #F3F3F5;
            
            .el-dialog__title {
                font-size: 18px;
                font-weight: 500;
                color: #101828;
                letter-spacing: -0.02em;
            }
        }
        
        .el-dialog__body {
            padding: 24px;
            background: #FAFAFA;
        }
        
        .el-dialog__footer {
            padding: 16px 24px;
            border-top: 1px solid #F3F3F5;
        }
    }
}

.top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 20px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;

    .action-buttons {
        display: flex;
        gap: 12px;
    }
}

.segment-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    
    &::-webkit-scrollbar {
        width: 6px;
    }
    
    &::-webkit-scrollbar-track {
        background: transparent;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #D1D5DB;
        border-radius: 3px;
        
        &:hover {
            background: #9CA3AF;
        }
    }

    .segment-item {
        background: #FFFFFF;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 12px;
        transition: all 0.2s;

        &:hover {
            border-color: #409eff;
            box-shadow: 0 4px 12px rgba(64, 158, 255, 0.12);
        }

        &:last-child {
            margin-bottom: 0;
        }
    }

    .segment-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        gap: 12px;

        .segment-index {
            font-weight: 500;
            color: #101828;
            font-size: 14px;
            letter-spacing: -0.01em;
            white-space: nowrap;
        }

        .segment-info {
            flex: 1;
            font-size: 12px;
            color: #6A7282;
            letter-spacing: -0.01em;
            white-space: nowrap;
        }

        .segment-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
    }

    .segment-content {
        margin-bottom: 12px;
        
        .el-textarea {
            textarea {
                font-family: inherit;
                font-size: 14px;
                line-height: 1.6;
            }
        }

        .segment-text {
            padding: 12px;
            background: #F9FAFB;
            border: 1px solid transparent;
            border-radius: 8px;
            line-height: 1.6;
            color: #4A5565;
            font-size: 14px;
            white-space: pre-wrap;
            word-break: break-word;
            letter-spacing: -0.01em;
        }
    }

    .segment-keywords {
        margin-top: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        
        :deep(.el-tag) {
            background: #EFF6FF;
            border: 1px solid transparent;
            border-radius: 8px;
            color: #1447E6;
            font-size: 12px;
            padding: 2px 8px;
            height: 24px;
            line-height: 20px;
        }
    }

    .segment-meta {
        margin-top: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);

        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #667085;
            letter-spacing: -0.01em;

            .el-icon {
                font-size: 14px;
                color: #9CA3AF;
            }
        }
    }

    .empty-state {
        text-align: center;
        padding: 80px 20px;
        background: #FFFFFF;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 14px;

        p {
            font-size: 14px;
            color: #6A7282;
            margin: 0;
            letter-spacing: -0.01em;
        }
    }
}

.pagination-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}
